/* SkyBlock Progress site stylesheet. Colors, fonts, radii and spacing come only from
   tokens.css (a copy of docs/design/tokens.css; a test keeps them equal). No hex here. */

/* ── Fonts (self-hosted, Latin subset; scripts/build_fonts.py; SIL OFL 1.1) ── */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 600; font-style: normal; font-display: swap; src: url('/static/fonts/BricolageGrotesque-600.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-style: normal; font-display: swap; src: url('/static/fonts/BricolageGrotesque-800.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 400; font-style: normal; font-display: optional; src: url('/static/fonts/InstrumentSans-400.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 500; font-style: normal; font-display: optional; src: url('/static/fonts/InstrumentSans-500.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 600; font-style: normal; font-display: optional; src: url('/static/fonts/InstrumentSans-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('/static/fonts/JetBrainsMono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('/static/fonts/JetBrainsMono-500.woff2') format('woff2'); }

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--tx); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
main { flex: 1 0 auto; display: flex; flex-direction: column; gap: 56px; padding-bottom: 64px; }
a { color: var(--aqua); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; }
p { margin: 0; }
svg { display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); }
.tx2 { color: var(--tx2); }
.tx3 { color: var(--tx3); }
.wrap { padding-left: var(--page-x); padding-right: var(--page-x); }

/* ── Type roles (docs/design.md section 4) ── */
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); }
.label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); }
.value { font-family: var(--font-mono); font-size: 13px; color: var(--tx2); }
.small { font-size: 13px; color: var(--tx3); }
.help { font-size: 14px; color: var(--tx3); }
.big { font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1; letter-spacing: -0.02em; }
.big-sm { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.card-title { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; }
.card-title-lg { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.01em; }
.sub { font-size: 18px; color: var(--tx2); }
.h2 { font-size: 32px; letter-spacing: -0.01em; }
.page-title { font-size: 56px; line-height: 1; letter-spacing: -0.025em; }

/* ── Header ── */
.site-header { height: 76px; flex-shrink: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--page-x); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--tx); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 500; }
.nav a, .nav .nav-soon { display: inline-flex; align-items: center; min-height: 44px; color: var(--tx2); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { color: var(--tx); border-bottom-color: var(--gold); }
.nav .nav-soon { color: var(--tx3); }
.tag-soon { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line); border-radius: var(--r-chip); padding: 2px 6px; margin-left: 6px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--r-tile); cursor: pointer; color: var(--tx); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 52px; z-index: 10; min-width: 220px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-control); padding: 8px; display: flex; flex-direction: column; }
.menu-panel a, .menu-panel .nav-soon { display: flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--tx2); text-decoration: none; font-weight: 500; border-radius: var(--r-step); }
.menu-panel a[aria-current="page"] { color: var(--tx); background: var(--raise); }
.menu-panel .nav-soon { color: var(--tx3); }

/* ── Hero ── */
.hero { padding: 72px var(--page-x) 64px; display: grid; grid-template-columns: 700px minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-title { font-size: 76px; line-height: 1.0; letter-spacing: -0.025em; }
.lede { font-size: 21px; line-height: 1.5; color: var(--tx2); max-width: 590px; }
.lookup { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.lookup-row { display: flex; gap: 12px; }
.input { width: 400px; max-width: 100%; height: 58px; padding: 0 20px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-control); color: var(--tx); font-family: var(--font-body); font-size: 18px; }
input::placeholder { color: var(--tx3); opacity: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 0 28px; background: var(--gold); color: var(--on-gold); border: 0; border-radius: var(--r-control); font-family: var(--font-body); font-size: 18px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn[disabled], .btn[aria-disabled="true"], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; background: transparent; color: var(--tx); border: 1px solid var(--line-strong); border-radius: var(--r-tile); font-family: var(--font-body); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-outline[aria-disabled="true"] { color: var(--tx3); cursor: not-allowed; }
.hero-art { position: relative; height: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.hero-art svg { width: 100%; height: 100%; }
.hero-caption { position: absolute; left: 28px; bottom: 24px; font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.constellation .dust { fill: var(--line); }
.constellation .path-ahead { stroke: var(--line); }
.constellation .path-done { stroke: var(--gold); }
.constellation .node-done { fill: var(--gold); }
.constellation .node-halo { stroke: var(--gold); }
.constellation .node-ahead { fill: var(--panel); stroke: var(--tx3); }
.constellation .lbl-done { fill: var(--gold); }
.constellation .lbl-ahead { fill: var(--tx2); }
.constellation text { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.2px; }

/* ── Sections and grid ── */
.section { display: flex; flex-direction: column; gap: 24px; padding: 0 var(--page-x); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-12 { grid-column: span 12; } .span-2 { grid-column: span 2; }

/* ── Card and states ── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.is-empty, .card.is-expired, .card.is-unavailable { border-style: dashed; }
.card.is-gold { border-color: var(--gold); }
.card-pad-lg { padding: 28px; }
.stale-line { font-family: var(--font-mono); font-size: 12px; color: var(--tx3); }
.state-banner { border: 1px solid var(--line-strong); border-radius: var(--r-control); padding: 12px 16px; font-size: 15px; color: var(--tx2); }
.chips { display: flex; flex-direction: column; gap: 8px; }
.chips.wrap-row { flex-direction: row; flex-wrap: wrap; }
.chip { background: var(--raise); border-radius: var(--r-pill); padding: 8px 12px; font-size: 15px; font-weight: 500; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.status-tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--r-chip); padding: 4px 8px; border: 1px solid transparent; }
.status-tag.is-available { background: var(--gold); color: var(--on-gold); }
.status-tag.is-progress { border-color: var(--aqua); color: var(--aqua); }
.status-tag.is-planned { border-color: var(--line); color: var(--tx2); }
.status-tag.is-beta { border-color: var(--gold); color: var(--gold); }
.count-tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; border-radius: var(--r-chip); padding: 3px 8px; border: 1px solid var(--line); color: var(--tx2); }
.count-tag.is-gold { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.baseline { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.feature-icon { width: 34px; height: 34px; }
.feature-icon.is-gold { color: var(--gold); } .feature-icon.is-aqua { color: var(--aqua); } .feature-icon.is-muted { color: var(--tx3); }
.body-copy { font-size: 16px; line-height: 1.5; color: var(--tx2); }

/* ── Bars ── */
.bar-row { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.bar-name { width: 56px; flex-shrink: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { flex: 1 1 auto; height: 12px; background: var(--raise); border-radius: var(--r-chip); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--bar-muted); border-radius: var(--r-chip); }
.bar-row.is-first .bar > i { background: var(--gold); }
.bar-row.is-second .bar > i { background: var(--aqua); }
.bar-val { width: 72px; flex-shrink: 0; text-align: right; font-family: var(--font-mono); font-size: 13px; color: var(--tx2); }
.year-bar { height: 10px; background: var(--raise); border-radius: var(--r-chip); overflow: hidden; }
.year-bar > i { display: block; height: 100%; background: var(--gold); border-radius: var(--r-chip); }
.seasons { display: flex; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx3); }
.seasons span { width: 25%; }
.progress { height: 10px; background: var(--raise); border-radius: var(--r-chip); overflow: hidden; min-width: 120px; }
.progress.is-gold > i { background: var(--gold); }
.mini-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.mini-list .mono { font-family: var(--font-mono); font-size: 13px; color: var(--tx2); }
.progress > i { display: block; height: 100%; background: var(--aqua); border-radius: var(--r-chip); }

/* ── Footer ── */
.site-footer { margin-top: auto; flex-shrink: 0; padding: 36px var(--page-x); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 48px; font-size: 13px; line-height: 1.6; color: var(--tx3); }
.early-access { position: sticky; bottom: 0; z-index: 10; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 5px var(--page-x); background: var(--panel); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.4; color: var(--tx3); }
.early-access .status-tag { font-size: 10px; padding: 2px 6px; flex-shrink: 0; }
.early-access-short { display: none; }
.site-footer .notice { max-width: 780px; }
.site-footer .aside { text-align: right; flex-shrink: 0; }
.site-footer a { display: inline-block; min-height: 44px; line-height: 44px; }

/* ── Inner pages ── */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.page-head-copy { display: flex; flex-direction: column; gap: 12px; }
.crumbs { font-family: var(--font-mono); font-size: 13px; color: var(--tx3); }
.crumbs a { color: var(--tx3); }
.page-actions { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--tx3); }
.inner { padding-top: 40px; gap: 28px; }
.switcher-block { display: flex; flex-direction: column; gap: 10px; }
.switcher { display: flex; flex-wrap: wrap; gap: 12px; }
.switcher a { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px; background: var(--panel); color: var(--tx); border: 1px solid var(--line-strong); border-radius: var(--r-control); font-size: 17px; font-weight: 500; text-decoration: none; }
.switcher a[aria-current="page"] { background: var(--raise); border: 2px solid var(--gold); font-weight: 600; }
.switcher .mode { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--tx2); }
.stat-card { padding: 22px 24px; gap: 6px; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1.05; letter-spacing: -0.02em; }
.stat-value.is-gold { color: var(--gold); }
.stat-caption { font-size: 14px; color: var(--tx3); }
.rarity-bar { display: flex; height: 16px; border-radius: var(--r-chip); overflow: hidden; gap: 2px; }
.rarity-bar > i { display: block; background: var(--rc); }
.legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--tx2); }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--rc); margin-right: 6px; }
.r-common { --rc: var(--rarity-common); } .r-uncommon { --rc: var(--rarity-uncommon); } .r-rare { --rc: var(--rarity-rare); }
.r-epic { --rc: var(--rarity-epic); } .r-legendary { --rc: var(--rarity-legendary); }
.r-mythic, .r-divine, .r-special, .r-very-special, .r-unknown { --rc: var(--tx3); }
.rarity-chip { display: inline-block; background: var(--rc); color: var(--on-rarity); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--r-chip); padding: 4px 8px; }
.rarity-chip.r-unknown { background: transparent; color: var(--tx3); border: 1px solid var(--line-strong); }

/* ── Item tile (ADR-0005: glyphs only; the art slot is reserved and off) ── */
.tile { position: relative; width: 52px; height: 52px; flex-shrink: 0; border: 2px solid var(--rc); border-radius: var(--r-tile); background: var(--raise); display: flex; align-items: center; justify-content: center; color: var(--rc); }
.tile svg { width: 26px; height: 26px; }
.tile.is-next { border-style: dashed; border-color: var(--gold); background: transparent; color: var(--gold); }
.tile.is-unknown { border-color: var(--line); color: var(--tx3); background: var(--panel); }
.tile .badge { position: absolute; right: -8px; top: -8px; width: 22px; height: 22px; border-radius: 11px; background: var(--gold); color: var(--on-gold); display: flex; align-items: center; justify-content: center; }
.tile .badge svg { width: 14px; height: 14px; }
.tile.art-slot { display: none; border: 2px dashed var(--tx3); background: transparent; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--tx3); text-align: center; line-height: 1.2; }
.tile.is-lg { width: 64px; height: 64px; border-radius: var(--r-control); } .tile.is-lg svg { width: 32px; height: 32px; }
/* Pack art is 16px pixel art: scale by whole multiples only (2x in list tiles, 3x in large ones). */
.tile-art { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.tile.is-lg .tile-art { width: 48px; height: 48px; }

/* ── Tier stepper ── */
.stepper { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 500; }
.step { border-radius: var(--r-step); padding: 5px 10px; border: 1px solid var(--line); color: var(--tx3); }
.step.is-current { background: var(--tx); color: var(--on-rarity); border-color: var(--tx); }
.step.is-next { border: 2px dashed var(--gold); color: var(--gold); padding: 4px 10px; }
.step.is-replaced { text-decoration: line-through; }
.stepper .arrow { color: var(--tx3); }

/* ── Accessory list ── */
.list-card { padding: 0; gap: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
/* Data tables: accessories, achievements, bazaar, island quests */
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table caption { text-align: left; padding: 22px 24px 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; border-top: 1px solid var(--line); }
table.data-table caption .count-tag { margin-left: 12px; font-family: var(--font-mono); vertical-align: middle; }
table.data-table:first-of-type caption { border-top: 0; }
table.data-table thead th { text-align: left; padding: 14px 24px; background: var(--raise); font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); }
table.data-table td { padding: 12px 24px; border-top: 1px solid var(--line); vertical-align: middle; }
table.data-table .num { text-align: right; white-space: nowrap; }
table.data-table td.num { font-family: var(--font-mono); font-size: 15px; }
table.data-table .gain { color: var(--gold); }
table.data-table .muted { color: var(--tx3); font-size: 14px; }
table.data-table .name { font-size: 18px; font-weight: 600; }
table.data-table .family { font-size: 13px; color: var(--tx3); }
table.data-table .path-text { font-size: 14px; color: var(--tx2); }
table.data-table .next { font-size: 16px; font-weight: 500; }
table.data-table .next.none { font-size: 15px; color: var(--tx3); font-weight: 400; }
table.data-table.is-fixed { table-layout: fixed; }
/* Accessories table columns */
col.c-tile { width: 72px; } col.c-name { width: 26%; } col.c-rarity { width: 130px; } col.c-path { width: 30%; } col.c-next { width: 22%; } col.c-gain { width: 140px; }
/* Task list variant (island quests): fixed columns so chapters line up */
table.task-table .c-task { width: 46%; } table.task-table .c-status { width: 18%; } table.task-table .c-source { width: 14%; } table.task-table .c-mark { width: 22%; }
table.task-table .name { font-size: 16px; }
table.task-table tr[data-state="complete"] .name, table.task-table tr.is-marked .name { color: var(--tx2); font-weight: 500; }
.placeholder { color: var(--gold); }

/* Layout helpers */
.stack { display: flex; flex-direction: column; gap: inherit; }
.measure { max-width: 70ch; }
.card.list-card.is-overflow { overflow: visible; } /* lets tooltips extend past the card */
.list-card-head { padding: 22px 24px 8px; display: flex; align-items: center; gap: 12px; }
.list-card-head a { color: inherit; text-decoration: none; }
.list-card-head a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Clickable stat card */
a.stat-link { color: inherit; text-decoration: none; }
a.stat-link:hover { border-color: var(--line-strong); }
/* Compact link switcher (e.g. island nav) */
.switcher.is-compact a { min-height: 48px; font-size: 16px; }
/* Small outline button; disabled state */
.btn-outline.is-small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-outline:disabled { color: var(--tx3); cursor: not-allowed; }
/* Disclosure: a toggle button (chevron, title, count) with an optional action beside it */
.disclosure { border-top: 1px solid var(--line); }
.disclosure-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 8px 24px; min-height: 60px; }
.disclosure-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; background: transparent; border: 0; color: var(--tx); font-family: var(--font-display); font-weight: 800; font-size: 18px; cursor: pointer; }
.disclosure-toggle:hover .disclosure-title { text-decoration: underline; text-underline-offset: 4px; }
.disclosure-toggle .count-tag { font-family: var(--font-mono); font-weight: 500; }
.chev { width: 16px; height: 16px; flex: none; color: var(--tx2); transition: transform .15s ease; }
.disclosure-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
/* Tooltip on a tag button (hover or keyboard focus) */
.tip { position: relative; display: inline-block; }
.tip-trigger { background: transparent; min-height: 28px; cursor: help; }
.tip-text { display: none; position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); width: 280px; padding: 10px 12px; background: var(--raise); border: 1px solid var(--line-strong); border-radius: var(--r-tile); font-size: 13px; line-height: 1.4; color: var(--tx); text-transform: none; letter-spacing: normal; font-family: var(--font-body); }
.tip:hover .tip-text, .tip-trigger:focus-visible + .tip-text, .tip-trigger:focus + .tip-text { display: block; }
/* Checkbox with a text label */
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--tx2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.check input:disabled + span { color: var(--tx3); }

/* ── Prose (About, Privacy) ── */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.6; color: var(--tx2); }
.prose h2 { font-size: 26px; color: var(--tx); margin-top: 12px; }
.prose ul { margin: 0; padding-left: 22px; }
.prose strong { color: var(--tx); }

/* ── State page (errors, lookup problems) ── */
.state-page { max-width: 720px; gap: 16px; }
.state-page .status { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; color: var(--tx3); }
.state-page h1 { font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; }
.state-page .lookup .input { width: 100%; }

/* ── Focus ── */
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Tablet (proposal P1) ── */
@media (max-width: 1100px) {
  .wrap, .site-header, .section, .site-footer { padding-left: 32px; padding-right: 32px; }
  .hero { padding: 56px 32px 40px; grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-art { height: 300px; }
  .hero-title { font-size: 60px; }
  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-6.wide-tablet { grid-column: span 12; }
  .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-title { font-size: 44px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
}
/* ── Mobile (390 board) ── */
@media (max-width: 700px) {
  .wrap, .site-header, .section, .site-footer { padding-left: var(--page-x-mobile); padding-right: var(--page-x-mobile); }
  main { gap: 40px; padding-bottom: 40px; }
  .site-header { height: 64px; }
  .brand { font-size: 19px; gap: 10px; }
  .brand svg { width: 26px; height: 26px; }
  .hero { padding: 36px var(--page-x-mobile) 32px; gap: 24px; }
  .hero-copy { gap: 20px; }
  .hero-title { font-size: 48px; line-height: 1.02; }
  .lede { font-size: 17px; }
  .lookup-row { flex-direction: column; gap: 10px; }
  .input { width: 100%; height: 56px; padding: 0 18px; font-size: 17px; }
  .btn { height: 56px; font-size: 17px; width: 100%; }
  .help { font-size: 13px; }
  .hero-art { height: 260px; }
  .hero-caption { font-size: 18px; left: 20px; bottom: 16px; }
  .section { gap: 16px; }
  .h2 { font-size: 26px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .grid12 { gap: 12px; }
  .grid12 > * { grid-column: span 12; }
  .grid12 > .half-mobile { grid-column: span 6; }
  .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { padding: 20px; gap: 10px; }
  .card-pad-lg { padding: 22px; }
  .half-mobile.card { padding: 18px; gap: 8px; }
  .half-mobile .card-title { font-size: 22px; }
  .half-mobile .help { display: none; }
  .big { font-size: 38px; } .big-sm { font-size: 36px; }
  .card-title { font-size: 22px; } .card-title-lg { font-size: 26px; }
  .sub { font-size: 16px; }
  .chips { flex-direction: row; flex-wrap: wrap; }
  .chip { font-size: 14px; }
  .bar-row { font-size: 14px; gap: 10px; } .bar-name { width: 50px; } .bar-val { width: 64px; font-size: 12px; }
  .seasons { font-size: 10px; }
  .body-copy { font-size: 15px; }
  .early-access { justify-content: flex-start; padding: 4px var(--page-x-mobile); font-size: 11px; }
  .early-access-long { display: none; } .early-access-short { display: inline; }
  .site-footer { flex-direction: column; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 12px; }
  .site-footer .aside { text-align: left; }
  .inner { padding-top: 28px; gap: 20px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-title { font-size: 40px; }
  .stat-value { font-size: 38px; }
  .switcher a { min-height: 52px; padding: 0 16px; font-size: 16px; }
  .card.list-card { padding: 0; }
  table.data-table thead, table.data-table colgroup { display: none; }
  table.data-table, table.data-table tbody, table.data-table tr, table.data-table td { display: block; }
  table.data-table.is-fixed { table-layout: auto; }
  table.data-table caption { display: block; padding: 18px 20px 6px; }
  table.data-table tr { padding: 12px 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  table.data-table td { padding: 0; border: 0; }
  table.data-table td.td-name { grid-column: 1 / -1; }
  table.data-table td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx3); margin-bottom: 2px; }
  table.data-table td.td-tile::before, table.data-table td.td-name::before { display: none; }
  table.data-table .num { text-align: left; }
  table.data-table.with-tile tr { grid-template-columns: 52px minmax(0, 1fr); }
  table.data-table.with-tile td { grid-column: 2; }
  table.data-table.with-tile td.td-tile { grid-column: 1; grid-row: 1 / span 5; }
  table.data-table td.td-empty { display: none; }
  .state-page h1 { font-size: 32px; }
  .list-card-head, .disclosure-head { padding-left: 20px; padding-right: 20px; }
  .tip-text { width: 240px; }
}
