/* ═══════════════════════════════════════════════════════════════
   pages.css — The Dink Society
   Shared look for the team, teams, ladder, Queen and ladder-night pages.
   Same language as the front page: italic 900 headlines, a sticky tab
   bar, cards, stat tiles, photo-led player cards. Tokens come from
   shared.css, so dark and light themes both work. Everything is scoped
   under .dk so it cannot leak into the nav, footer or older pages.
   ═══════════════════════════════════════════════════════════════ */
:where(.dk) a { color: inherit; text-decoration: none; }
.dk { color: var(--color-text); }
.dk [hidden] { display: none !important; }
.dk .lime { color: var(--color-lime); }
.dk .muted { color: var(--color-text-muted); }
.dk .pos { color: var(--color-lime); }
.dk .neg { color: var(--color-red); }
.dk-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.dk-stack { display: flex; flex-direction: column; gap: 32px; padding-top: 24px; padding-bottom: 72px; }
.dk-loading, .dk-empty { padding: 28px 16px; text-align: center; font-size: 14px; color: var(--color-text-muted); }
.dk-loading { padding: 160px 16px 120px; }

/* ── Hero ── */
.dk-hero { background: radial-gradient(900px 320px at 80% -20%, rgba(184,255,44,.07), transparent 60%); }
.dk-hero__in { padding-top: 96px; padding-bottom: 4px; display: flex; flex-wrap: wrap; gap: 24px 36px; align-items: stretch; }
.dk-hero__txt { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.dk-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dk-eyebrow .a { color: var(--color-lime); }
.dk-eyebrow .b { color: var(--color-text-muted); }
.dk-eyebrow a:hover { text-decoration: underline; }
.dk-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-full); background: var(--color-text); color: var(--color-bg); white-space: nowrap; }
.dk-pill--lime { background: var(--color-lime); color: var(--color-text-inverse); }
.dk-pill--gold { background: var(--color-gold); color: #0e0e0e; }
.dk-pill--out { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border-strong); }
.dk-pill--live { background: var(--color-red); color: #0e0e0e; }
.dk-pill--live i { width: 7px; height: 7px; border-radius: 50%; background: #0e0e0e; animation: dkpulse 1.3s infinite; }
@keyframes dkpulse { 50% { opacity: .3; } }
.dk-h1 { margin: 0; font-size: clamp(2.1rem, 1rem + 4.2vw, 3.75rem); line-height: .98; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.02em; color: var(--color-text); overflow-wrap: anywhere; }
.dk-h1--sm { font-size: clamp(1.9rem, 1rem + 3vw, 3rem); }
.dk-lede { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.5; color: var(--color-text-muted); }
.dk-lede b { color: var(--color-text); font-weight: 700; }
.dk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.dk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-full); border: 1px solid var(--color-lime); background: var(--color-lime); color: var(--color-text-inverse); font: inherit; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; white-space: nowrap; }
.dk-btn:hover { background: var(--color-lime-hover); border-color: var(--color-lime-hover); }
.dk-btn--out { background: transparent; border-color: var(--color-border-strong); color: var(--color-text); }
.dk-btn--out:hover { background: transparent; border-color: var(--color-lime); color: var(--color-lime); }
.dk-btn--sm { min-height: 44px; padding: 0 18px; font-size: 13px; }
.dk-btn[disabled] { opacity: .5; cursor: default; }
.dk-hero__pic { flex: 1 1 380px; min-width: 0; aspect-ratio: 4 / 3; min-height: 220px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--color-surface) center / cover no-repeat; display: block; position: relative; overflow: hidden; }
.dk-hero__pic span { position: absolute; left: 12px; bottom: 12px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #f0f0ec; background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: var(--radius-full); }
.dk-art { display: flex; align-items: center; justify-content: center; font-size: 96px; line-height: 1; font-weight: 900; font-style: italic; color: var(--color-lime); background: radial-gradient(120% 120% at 50% 20%, rgba(184,255,44,.14), var(--color-surface) 70%); }

/* ── Sticky bar: tabs and filters stay under the nav ── */
.dk-bar { position: sticky; top: var(--dk-top, 65px); z-index: 30; background: var(--color-bg); border-bottom: 1px solid var(--color-border); margin-top: 18px; }
.dk-bar__in { display: flex; flex-direction: column; }
.dk-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0 8px; }
.dk-chips button, .dk-chips a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--radius-full); border: 1px solid var(--color-border-strong); background: transparent; color: var(--color-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dk-chips button:hover, .dk-chips a:hover { border-color: var(--color-lime); }
.dk-chips button.on, .dk-chips a.on { background: var(--color-lime); border-color: var(--color-lime); color: var(--color-text-inverse); font-weight: 800; }
.dk-chips .sp { flex: 1; }
.dk-tabs { display: flex; align-items: stretch; }
.dk-tabs button, .dk-tabs a { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; height: 50px; padding: 0 6px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--color-text-muted); font: inherit; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; white-space: nowrap; }
.dk-tabs button:hover, .dk-tabs a:hover { color: var(--color-text); }
.dk-tabs button.on, .dk-tabs a.on { color: var(--color-text); border-bottom-color: var(--color-lime); }
.dk-tabs .n { font-size: 10px; font-weight: 800; color: var(--color-text-inverse); background: var(--color-lime); border-radius: var(--radius-full); padding: 1px 6px; }
.dk-panel { display: none; }
.dk-panel.on { display: flex; flex-direction: column; gap: 32px; }

/* ── Section heads, cards ── */
.dk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.dk-head--mid { align-items: center; }
.dk-h2 { margin: 0; font-size: 22px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; color: var(--color-text); }
.dk-h2--lg { font-size: 26px; }
.dk-h3 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.dk-head > span, .dk-sub { font-size: 13px; color: var(--color-text-muted); }
.dk-more { font-size: 13px; font-weight: 700; color: var(--color-lime); white-space: nowrap; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.dk-more:hover { text-decoration: underline; }
.dk-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); min-width: 0; }
.dk-card--hot { border-color: rgba(184,255,44,.45); }
.dk-card--pad { padding: 20px; }
.dk-note { padding-top: 12px; font-size: 12px; line-height: 1.5; color: var(--color-text-muted); }
.dk-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.dk-cols > .wide { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; }
.dk-cols > .side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; }
.dk-cols > * > .dk-card { flex: 1; }
.dk-kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-lime); }

/* ── Stat tiles ── */
.dk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dk-tile { padding: 16px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); min-width: 0; }
.dk-tile small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.dk-tile b { display: block; margin-top: 6px; font-size: 32px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--color-text); white-space: nowrap; }
.dk-tile b em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--color-text-muted); }
.dk-tile.hot b { color: var(--color-lime); }
.dk-tile.bad b { color: var(--color-red); }
.dk-tile span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--color-text-muted); }
.dk-tile a.nm { display: block; margin-top: 6px; font-size: 15px; font-weight: 800; color: var(--color-text); }
.dk-tile a.nm:hover { color: var(--color-lime); }
.dk-tile.num b { margin-top: 0; font-size: 34px; }

/* ── Rows inside a card ── */
.dk-rows { padding: 6px 18px 12px; }
.dk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--color-divider); min-width: 0; }
.dk-rows > .dk-row:last-child { border-bottom: 0; }
.dk-row .rk { flex: 0 0 22px; font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dk-row .who { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 12px; }
.dk-row .who > div { min-width: 0; }
.dk-row .nm { display: block; font-size: 15px; font-weight: 800; color: var(--color-text); overflow-wrap: anywhere; }
a.nm:hover, .dk-row a.nm:hover { color: var(--color-lime); }
.dk-row .sm { display: block; font-size: 12px; color: var(--color-text-muted); }
.dk-row .big { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dk-cells { flex: 999 1 300px; min-width: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; font-variant-numeric: tabular-nums; }
.dk-cells > div small, .dk-cell small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); white-space: nowrap; }
.dk-cells > div b, .dk-cell b { display: block; font-size: 14px; font-weight: 700; color: var(--color-text-muted); white-space: nowrap; }
.dk-cells > div b.main, .dk-cell b.main { font-size: 15px; font-weight: 900; color: var(--color-text); }
.dk-cells > div b.pos, .dk-cell b.pos { color: var(--color-lime); font-weight: 800; }
.dk-cells > div b.neg, .dk-cell b.neg { color: var(--color-red); font-weight: 800; }

/* ── Small pieces ── */
.dk-tb { flex: 0 0 auto; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-style: normal; line-height: 1; color: var(--color-text); background: var(--color-surface-2); border: 1px solid var(--color-border-strong); box-sizing: border-box; }
.dk-tb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-av { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--color-text-muted); background: var(--color-surface-3); }
.dk-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.dk-res { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; font-style: normal; border: 1px solid var(--color-border-strong); background: var(--color-surface-3); color: var(--color-text-muted); }
.dk-res.w { background: var(--color-lime); border-color: var(--color-lime); color: var(--color-text-inverse); }
.dk-res.t { background: transparent; border-color: var(--color-text-muted); color: var(--color-text); }
.dk-res.up { background: transparent; border-style: dashed; }
.dk-form { width: 22px; height: 22px; border-radius: 6px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; font-style: normal; border: 1px solid var(--color-border-strong); background: var(--color-surface-3); color: var(--color-text-muted); }
.dk-form.w { background: var(--color-lime); border-color: var(--color-lime); color: var(--color-text-inverse); }
.dk-form.t { background: transparent; border-color: var(--color-text-muted); color: var(--color-text); }
.dk-track { display: block; height: 8px; border-radius: var(--radius-full); background: var(--color-surface-3); overflow: hidden; }
.dk-track i { display: block; height: 100%; border-radius: var(--radius-full); background: var(--color-lime); }
.dk-track i.dim { background: var(--color-text-muted); }
.dk-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--radius-full); background: var(--color-surface); border: 1px solid var(--color-border-strong); }
.dk-seg button { height: 40px; padding: 0 14px; border-radius: var(--radius-full); border: 0; background: transparent; color: var(--color-text-muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dk-seg button:hover { color: var(--color-text); }
.dk-seg button.on { background: var(--color-text); color: var(--color-bg); font-weight: 800; }
.dk-find { height: 48px; box-sizing: border-box; width: 100%; padding: 0 18px; border-radius: var(--radius-full); border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 15px; }
.dk-find:focus { outline: 2px solid var(--color-lime); outline-offset: 1px; }
.dk-lbl { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.dk-ctl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.dk-ctl .grow { flex: 1 1 220px; min-width: 0; }
.dk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Photo-led person card (podiums, #1 cards) ── */
.dk-pc { display: flex; overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); min-width: 0; color: var(--color-text); }
.dk-pc.first { border-color: rgba(184,255,44,.45); }
.dk-pc__pic { position: relative; flex: 0 0 116px; min-height: 132px; display: flex; align-items: center; justify-content: center; background: var(--color-surface-2); overflow: hidden; font-size: 40px; font-weight: 900; font-style: italic; color: var(--color-lime); }
.dk-pc__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.dk-pc__b { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.dk-pc__k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.dk-pc.first .dk-pc__k { color: var(--color-lime); }
.dk-pc__n { font-size: 19px; line-height: 1.1; font-weight: 900; font-style: italic; text-transform: uppercase; overflow-wrap: anywhere; }
a.dk-pc:hover .dk-pc__n, .dk-pc a.dk-pc__n:hover { color: var(--color-lime); }
.dk-pc__v { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.dk-pc__v b { font-size: 34px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.dk-pc__v span { font-size: 13px; color: var(--color-text-muted); }
.dk-pc__s { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-text-muted); }
.dk-pc__s .hot { color: var(--color-lime); font-weight: 800; }
.dk-pc__s b { color: var(--color-text); font-weight: 800; }

/* ── Grids ── */
.dk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min, 300px), 1fr)); gap: 14px; }
.dk-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dk-pics a, .dk-pics button { display: block; padding: 0; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-md); background: var(--color-surface-2) center / cover no-repeat; border: 1px solid var(--color-border); overflow: hidden; cursor: pointer; }
.dk-pics a:hover, .dk-pics button:hover { border-color: var(--color-lime); }
.dk-pics img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Tale of the tape ── */
.dk-vs { display: flex; align-items: flex-start; gap: 10px; }
.dk-vs__side { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 15px; font-weight: 800; color: var(--color-text); overflow-wrap: anywhere; }
.dk-vs__side a:hover { text-decoration: underline; }
.dk-vs__v { margin-top: 22px; font-size: 13px; font-weight: 800; font-style: italic; color: var(--color-text-muted); }
.dk-tape div { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--color-divider); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--color-text); }
.dk-tape b { flex: 1; font-weight: 800; }
.dk-tape b:last-child { text-align: right; }
.dk-tape span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }

/* ── Table (stats tabs) ── */
.dk-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.dk-table th { padding: 10px 10px; text-align: right; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border-strong); white-space: nowrap; }
.dk-table th button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.dk-table th button:hover, .dk-table th.on button { color: var(--color-text); }
.dk-table th.on button::after { content: ' ▾'; color: var(--color-lime); }
.dk-table td { padding: 11px 10px; text-align: right; border-bottom: 1px solid var(--color-divider); color: var(--color-text-muted); white-space: nowrap; }
.dk-table th:first-child, .dk-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--color-surface); }
.dk-table td:first-child a { font-weight: 800; color: var(--color-text); }
.dk-table td:first-child a:hover { color: var(--color-lime); }
.dk-table td.main { font-weight: 900; color: var(--color-text); }
.dk-table tr:last-child td { border-bottom: 0; }

@media (max-width: 600px) {
  .dk-stack { gap: 28px; }
  .dk-lede { font-size: 16px; }
  .dk-tabs button, .dk-tabs a { font-size: 12px; letter-spacing: .01em; padding: 0 3px; height: 48px; }
  .dk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-tile b { font-size: 28px; }
  .dk-rows { padding: 4px 14px 10px; }
  .dk-pc__pic { flex-basis: 100px; }
  .dk-card--pad { padding: 16px; }
  .dk-chips button, .dk-chips a { padding: 0 13px; }
}
@media (prefers-reduced-motion: reduce) { .dk-pill--live i { animation: none; } }
