/* =============================================================================
   PADEL — the property's own components

   Everything here is drawn from the house tokens in assets/css/site.css, so the
   dark edition needs nothing of its own: assets/css/dark.css re-points --ink,
   --paper, --line and the rest under html[data-dark] and every rule below
   follows. No literal white and no literal near-black on a SURFACE — that is
   the one way a component survives the paper edition and blanks out in the
   dark one.

   The class names that carry over from the standalone padel.llc page — .chip,
   .card, .grid, .facts, .player — were checked against site.css, dark.css,
   search.css and toast.css before being reused: none of them exists there.
   .band, .wrap and .eyebrow DO, and those are the house's, used as the house
   uses them.
   ========================================================================== */

/* ------------------------------------------------------------------- chips
   One control shape for the whole page: the filter buttons, the outbound
   links and the register's category pills are all this. */
.chip, button.chip {
    display: inline-flex; align-items: baseline; gap: .5rem;
    padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px;
    background: transparent; font: inherit; font-size: .78rem; font-weight: 600;
    letter-spacing: -.005em; color: var(--ink-77); text-decoration: none;
    cursor: pointer;
    transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip em { font-style: normal; font-weight: 500; opacity: .62; letter-spacing: 0; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] em { opacity: .7; }
.chip--quiet { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }

/* --------------------------------------------------------------- the hero */
/* The featured brand's rule. text-decoration, not an inset box-shadow: the
   name wraps in the middle on a phone, and a box-shadow underlines the whole
   inline FRAGMENT — trailing space included — so the rule under the first line
   ran on past the word. A real underline breaks with the text. */
.pick {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 3px;
    text-underline-offset: .12em;
    text-decoration-skip-ink: none;
}
.hero__cat {
    display: inline-block; margin: 0 0 1.4rem;
    font-size: .625rem; font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; color: var(--accent);
}
.hero__keys { margin: 1.4rem 0 0; font-size: .74rem; color: var(--muted); }
.hero__keys kbd {
    font: inherit; font-weight: 700; color: var(--ink);
    border: 1px solid var(--line); border-radius: 4px; padding: 0 .35em;
}

/* ============================================================================
   THE FACILITY DATABASE
   ========================================================================= */
.facbar { display: grid; gap: .7rem; margin: 1.4rem 0 1rem; }
.facbar__row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.facbar__row .field { flex: 1 1 20rem; min-width: 0; }
.facbar select.field { flex: 0 1 15rem; }
.facsw {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .45rem .8rem .45rem .6rem; border-radius: 999px;
    border: 1px solid var(--line); cursor: pointer; user-select: none;
    font-size: .78rem; font-weight: 600; color: var(--ink-77);
    transition: border-color .2s var(--ease), color .2s var(--ease);
}
.facsw:hover { border-color: var(--ink); color: var(--ink); }
.facsw input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); flex: 0 0 auto; }
.facsw:has(input:checked) { border-color: var(--ink); color: var(--ink); }

.facstat {
    margin: 0 0 .9rem; font-size: .68rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.facstat--src { text-transform: none; letter-spacing: .02em; font-weight: 500; font-size: .74rem; }

/* One rule per row and none at the ends: a list of eight thousand things
   should read as a ledger, not as eight thousand boxes. */
.faclist { display: grid; }
.fac {
    display: grid; gap: .3rem;
    padding: .9rem 0; border-top: 1px solid var(--line-soft);
}
.fac:first-child { border-top: 0; }
.fac__head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.fac__n { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.fac__n.is-unnamed { font-weight: 400; color: var(--ink-55); font-style: italic; }
.fac__ct {
    flex: 0 0 auto; font-size: .625rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--accent); font-variant-numeric: tabular-nums;
}
.fac__p { margin: 0; font-size: .84rem; color: var(--ink-77); }
.fac__tags { margin: .1rem 0 0; font-size: .72rem; color: var(--muted); }
.fac__acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.fac__acts .chip { padding: .3rem .65rem; font-size: .7rem; }

.facpage {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    margin: 1.6rem 0 .3rem;
}
.facpage .chip[disabled] { opacity: .35; cursor: default; }
.facpage .chip[disabled]:hover { border-color: var(--line); color: var(--ink-77); }

/* ============================================================================
   THE BRAND REGISTER
   1px gaps over a hairline ground draw every rule on the grid with no per-cell
   borders to double up at the seams.
   ========================================================================= */
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.4rem 0 1rem; }
.toolbar .field { flex: 1 1 18rem; min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.count {
    margin: 0 0 .9rem; font-size: .68rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr));
    gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 2px;
}
.card {
    display: flex; flex-direction: column; gap: .55rem;
    background: var(--paper); padding: 1.05rem 1.1rem .95rem;
    text-decoration: none; color: inherit; transition: background .2s var(--ease);
}
.card:hover { background: var(--tint); }
.card .head { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; }
.card h3 { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.card .tag {
    flex: 0 0 auto; font-size: .58rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--muted);
}
.card p { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--ink-77); flex: 1; }
.card .go {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    margin-top: .2rem; padding-top: .55rem; border-top: 1px solid var(--line-soft);
    font-size: .625rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-55);
}
.card:hover .go { color: var(--ink); }
.card .flag { color: var(--accent); }
.empty { padding: 2rem 0; color: var(--muted); }

/* ================================================================= the roster */
.player {
    display: grid; grid-template-columns: 3rem minmax(0, 1.05fr) minmax(0, 1.25fr);
    gap: clamp(1rem, 3vw, 2.4rem);
    padding: 1.7rem 0; border-top: 1px solid var(--line);
}
.player:last-of-type { border-bottom: 1px solid var(--line); }
.num {
    font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--muted);
    padding-top: .45rem; font-variant-numeric: tabular-nums;
}
.who h3 { margin: 0 0 .2rem; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.legal { margin: 0 0 .6rem; font-size: .8rem; color: var(--muted); }
.meta {
    display: flex; flex-wrap: wrap; gap: .35rem .9rem;
    font-size: .625rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--ink-55);
}
.meta .nat { color: var(--ink); }
.meta .rank { color: var(--accent); }
.bio { margin: 0 0 .9rem; color: var(--ink-77); font-size: .92rem; line-height: 1.6; max-width: 52ch; }
.bio.said { border-left: 2px solid var(--accent); padding-left: .85rem; }
@media (max-width: 860px) {
    .player { grid-template-columns: 2.2rem minmax(0, 1fr); }
    .links { grid-column: 2; }
}

/* ============================================================== provenance */
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.sources li { font-size: .8rem; color: var(--ink-55); }
.sources a { color: var(--ink); display: inline-block; padding: .3rem 0; }
.prov { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 760px) { .prov { grid-template-columns: minmax(0, 1fr); } }
.prov p { font-size: .88rem; color: var(--ink-77); margin: 0 0 .7rem; max-width: 64ch; }
.stamp {
    font-size: .625rem; font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem;
}

/* The hero figures, and the facility totals under them. */
.hero__facts { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; }

/* 16px and nothing smaller on a touch pointer: Safari zooms the page for a
   focused field under that, and a zoomed page carries the fixed header off the
   top of the screen. Matched on pointer, not on width. */
@media (pointer: coarse) {
    .field, .menu__q { font-size: 16px; }
}

/* A facility whose courts nobody has drawn yet. It is not a count, so it does
   not get the accent a count gets. */
.fac__ct.is-unknown { color: var(--muted); font-weight: 500; letter-spacing: .08em; }

/* Every row carries three or four of these and they are the only things on the
   page a thumb aims at. At .3rem of padding they measured 30px tall on a phone
   — under the 32px floor the rest of this site holds to — so on a touch pointer
   they get the height back. Matched on pointer, not on width: a narrow window
   on a desktop is not a phone and does not need 32px chips. */
@media (pointer: coarse) {
    .fac__acts .chip { min-height: 32px; padding-block: .45rem; }
    .facpage .chip, .filters .chip, #facContinents .chip { min-height: 32px; }
}
