/* conq "Scoresheet" theme. Tokens and contrast results: see the Phase 3 design book. */
:root {
  --ground: #f5f6f8; --surface: #ffffff; --sunk: #eceff3; --rule: #dce1e8;
  --ink: #0f1724; --ink-soft: #4b5567; --line-control: #6c7688;
  --accent: #1d4ed8; --accent-hover: #163fb3; --accent-soft: #e6edfc; --on-accent: #ffffff;
  --gold: #7c5800; --gold-fill: #e3b341; --on-gold: #0f1724; --gold-soft: #fbf1d6;
  --official: #17694a; --official-soft: #e1f3ea;
  --caution: #8a4a00; --caution-soft: #fbeedd;
  --danger: #b42318; --danger-soft: #fde8e6;
  --footer: #0f1724; --on-footer: #c9d1dd;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: Barlow, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0c1016; --surface: #151a22; --sunk: #090c11; --rule: #262e3a;
    --ink: #e9edf3; --ink-soft: #a4aebd; --line-control: #7f8a9b;
    --accent: #8eb0ff; --accent-hover: #b3caff; --accent-soft: #16233f; --on-accent: #0c1016;
    --gold: #f2c766; --gold-soft: #2e2510;
    --official: #6fd3a6; --official-soft: #10291f;
    --caution: #f5b06b; --caution-soft: #2f1f0d;
    --danger: #ff8f86; --danger-soft: #33140f;
    --footer: #090c11; --on-footer: #a4aebd;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/24px var(--body); }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.top { background: var(--surface); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; padding-top: 8px; padding-bottom: 8px; }
.brand { font: 700 28px/44px var(--display); letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.nav a[aria-current] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

main.wrap { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
h1, h2 { font-family: var(--display); font-weight: 700; margin: 0; }
h1 { font-size: 56px; line-height: 1; }
h2 { font-size: 32px; line-height: 36px; }
@media (max-width: 600px) { h1 { font-size: 40px; line-height: 1.05; } h2 { font-size: 26px; line-height: 30px; } }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-soft); margin: 0; max-width: 760px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--ink-soft); }
.soft { color: var(--ink-soft); }
.small { font-size: 14px; line-height: 20px; }
.crumb { font-size: 14px; color: var(--ink-soft); }
section { display: flex; flex-direction: column; gap: 12px; }
.row-head { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }

.search { display: flex; flex-wrap: wrap; gap: 8px; }
input[type=search], select { height: 44px; padding: 0 12px; border: 1px solid var(--line-control); border-radius: 4px;
  background: var(--surface); color: var(--ink); font: inherit; }
.search input { flex: 1 1 280px; height: 52px; font-size: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 4px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-primary { border: 0; background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { border: 1px solid var(--line-control); background: var(--surface); color: var(--ink); font-weight: 500; }
.search .btn { height: 52px; font-size: 18px; }

.tbl { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { background: var(--sunk); text-align: left; font-weight: 600; padding: 10px 16px; }
td { padding: 10px 16px; border-top: 1px solid var(--rule); vertical-align: top; }
.num { text-align: right; font-family: var(--mono); font-size: 14px; white-space: nowrap; }
tr.hit td { background: var(--accent-soft); }

.tier { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pips { font-family: var(--mono); letter-spacing: 1px; }
.chip { display: inline-flex; gap: 4px; padding: 2px 8px; border-radius: 3px; font-size: 13px; line-height: 20px; font-weight: 700;
  white-space: nowrap; text-decoration: none; }
.chip-champ { background: var(--gold-fill); color: var(--on-gold); }
.chip-bestof { background: var(--gold-soft); color: var(--gold); }
.chip-cut { background: var(--accent-soft); color: var(--accent); }
.chip-official { background: var(--official-soft); color: var(--official); font-weight: 600; }
.chip-inferred { background: var(--caution-soft); color: var(--caution); font-weight: 600; }
.chip-neutral { background: var(--sunk); color: var(--ink-soft); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 6px; }
a.card { color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--line-control); }
.card .name { font-weight: 600; font-size: 18px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.stat { background: var(--surface); padding: 14px 18px; }
.stat .label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.stat .fig { font: 500 30px/40px var(--mono); }
.stat .how { font-size: 13px; line-height: 19px; color: var(--ink-soft); }

.note { display: flex; gap: 10px; padding: 12px 16px; border-radius: 6px; font-size: 15px; }
.note-official { background: var(--official-soft); color: var(--official); }
.note-official a { color: var(--official); }
.note-caution { background: var(--caution-soft); color: var(--caution); }
.note-caution a { color: var(--caution); }
.note-info { background: var(--accent-soft); color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.steps li { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
.steps .step-name { font-weight: 700; font-size: 20px; }

.foot { background: var(--footer); color: var(--on-footer); font-size: 14px; line-height: 21px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; }
.foot p { margin: 0; max-width: 640px; }
.foot a { color: var(--on-footer); }
@media (prefers-reduced-motion: no-preference) { a, .btn { transition: color .15s ease-out, background-color .15s ease-out; } }
/* WCAG 2.2 target size: standalone links get at least a 24px-tall hit area. */
td a, .crumb a, .foot a, .stat a, .card a { display: inline-block; min-height: 24px; line-height: 24px; }
.foot .chips { gap: 8px 20px; }
