:root {
  --paper: #EEF1F4;
  --sheet: #FFFFFF;
  --ink: #17202B;
  --muted: #5A6676;
  --rule: #CBD2DA;
  --cite: #2340C8;
  --mark: #FFE45C;
  --mark-ink: #17202B;
  --miss: #8A95A3;
  --radius-lg: 14px;
  --radius-sm: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121822; --sheet: #1A2230; --ink: #E8ECF1; --muted: #9AA6B5;
    --rule: #2E3948; --cite: #8FA2FF; --mark: #F2D53C; --mark-ink: #121822; --miss: #6C7888;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121822; --sheet: #1A2230; --ink: #E8ECF1; --muted: #9AA6B5;
  --rule: #2E3948; --cite: #8FA2FF; --mark: #F2D53C; --mark-ink: #121822; --miss: #6C7888;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem; line-height: 1.55;
}
.num, .tally strong, .state-list span { font-variant-numeric: tabular-nums; }
a { color: var(--cite); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cite); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sheet); padding: 8px 12px; }
.skip:focus { left: 16px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; max-width: 18ch; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.small { font-size: 0.92rem; }

/* header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.head-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { color: var(--cite); font-weight: 700; margin-right: 2px; }
nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 0.97rem; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--cite); }
.nav-cta { color: var(--cite) !important; font-weight: 600; }

/* hero */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } .hero { padding: 80px 0 88px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--cite); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { color: var(--cite); box-shadow: inset 0 0 0 1.5px var(--cite); background: transparent; }

/* the answer card: the one bold element */
.answer { margin: 0; background: var(--sheet); border-radius: var(--radius-lg); padding: 22px 22px 18px; border: 1px solid var(--rule); }
.answer figcaption { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.prompt { font-size: 1.2rem; font-weight: 600; line-height: 1.35; margin-bottom: 16px; }
.engines { list-style: none; margin: 0; padding: 0; }
.engines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.engines .eng { font-weight: 600; }
.engines .res { text-align: right; }
.engines li.miss .res { color: var(--miss); }
.engines mark { background: var(--mark); color: var(--mark-ink); padding: 1px 5px; border-radius: 3px; font-weight: 600; }
.engines sup { color: var(--cite); font-weight: 700; font-size: 0.75em; }
.tally { margin: 14px 0 0; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 0.97rem; }
.engines.compact li { padding: 8px 0; }
.engines.compact .res { color: var(--miss); }

@media (prefers-reduced-motion: no-preference) {
  .answer .engines mark { background-size: 0% 100%; background-image: linear-gradient(var(--mark), var(--mark)); background-repeat: no-repeat; background-color: transparent; animation: highlight 0.7s ease-out forwards; }
  .answer .engines li:nth-child(2) mark { animation-delay: 0.35s; }
  .answer .engines li:nth-child(4) mark { animation-delay: 0.7s; }
  @keyframes highlight { to { background-size: 100% 100%; } }
}

/* bands and tables */
.band { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 48px 0; }
.page-head { padding-top: 44px; padding-bottom: 12px; }
.note { color: var(--muted); max-width: 64ch; }
.filters { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: end; margin: 8px 0 18px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: var(--muted); }
.filters input, .filters select { font: inherit; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--rule); border-radius: var(--radius-sm); padding: 9px 12px; min-width: 220px; }
.filters input:focus, .filters select:focus { border-color: var(--cite); outline: none; }
.count { margin: 0 0 10px; color: var(--muted); font-size: 0.92rem; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 0.88rem; color: var(--muted); font-weight: 600; padding: 10px 12px 10px 0; border-bottom: 2px solid var(--ink); }
td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.c-name a { font-weight: 600; color: var(--ink); text-decoration: none; }
.c-name a:hover { color: var(--cite); text-decoration: underline; }
.dom { display: block; color: var(--muted); font-size: 0.88rem; }
.c-loc { color: var(--muted); white-space: nowrap; }
.pending { color: var(--miss); font-size: 0.93rem; }
.empty { color: var(--muted); padding: 20px 0; }
@media (max-width: 560px) { .c-loc { white-space: normal; } th:nth-child(4), td.c-score { display: none; } }

/* profile */
.profile { padding-top: 32px; padding-bottom: 56px; }
.crumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 10px; }
.facts { display: grid; gap: 0; margin: 20px 0 32px; border-top: 1px solid var(--rule); max-width: 640px; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.scorebox { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; max-width: 640px; margin-bottom: 32px; }
.score-pending { color: var(--muted); }
.sources { padding-left: 1.2em; }

/* prose pages */
.prose { padding-top: 44px; padding-bottom: 56px; }
.prose > p, .prose li { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.weights, .tiers { margin: 24px 0 8px; max-width: 900px; }
.num { text-align: right; padding-right: 20px; font-weight: 700; }
.tiers td:not(:first-child), .tiers th:not(:first-child) { width: 9.5rem; }

/* badges and scores */
.badge { display: inline-block; vertical-align: 0.15em; margin-left: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em; padding: 2px 8px; border-radius: 999px; border: 1.5px solid var(--cite); color: var(--cite); }
h1 .badge { font-size: 0.9rem; vertical-align: 0.5em; }
.badge.verified { background: var(--cite); color: #fff; }
.badge.operator { border-color: var(--muted); color: var(--muted); }
.score { font-weight: 800; font-variant-numeric: tabular-nums; }
.of { color: var(--muted); font-size: 0.85em; margin-left: 1px; }
.bigscore { margin: 4px 0 14px; } .bigscore .score { font-size: 3rem; letter-spacing: -0.03em; }
.engines .res.pend { color: var(--miss); }

/* claim form */
.claim { max-width: 640px; display: grid; gap: 18px; margin-top: 12px; }
.claim label { display: grid; gap: 6px; font-weight: 600; font-size: 0.97rem; }
.claim input:not([type=radio]):not([type=checkbox]), .claim select, .claim textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--sheet);
  border: 1.5px solid var(--rule); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%;
}
.claim input:focus, .claim select:focus, .claim textarea:focus { border-color: var(--cite); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cite) 25%, transparent); }
.claim fieldset { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 16px 18px 18px; margin: 0; display: grid; gap: 14px; }
.claim legend { font-weight: 700; padding: 0 6px; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.help { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.plan { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 400 !important; padding: 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--rule); cursor: pointer; }
.plan:has(input:checked) { border-color: var(--cite); }
.plan strong { display: block; }
.plan input, .check input { margin-top: 4px; accent-color: var(--cite); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.hp { position: absolute !important; left: -9999px; }
.err { background: var(--sheet); border-left: 4px solid #C8323C; padding: 12px 16px; border-radius: var(--radius-sm); }
.err ul { margin: 6px 0 0; padding-left: 1.2em; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }

.state-list { list-style: none; padding: 0; columns: 2 12rem; column-gap: 32px; }
.state-list li { padding: 8px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; display: flex; justify-content: space-between; }
.state-list span { color: var(--muted); }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--muted); font-size: 0.93rem; margin-top: 24px; }
.foot-row p { max-width: 70ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.filters select { min-width: 170px; }
.filters .f-search input { min-width: 240px; }
.f-reset { font: inherit; font-size: 0.92rem; color: var(--ink); background: none; border: 1.5px solid var(--rule); border-radius: var(--radius-sm); padding: 9px 14px; cursor: pointer; }
.f-reset:hover, .f-reset:focus-visible { border-color: var(--cite); }
@media (max-width: 640px) { .filters label, .filters select, .filters input { width: 100%; min-width: 0; } }
.c-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.c-price .pending { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { th:nth-child(3), td.c-price { display: none; } }
.agencies th { white-space: nowrap; }
.questions { max-width: 760px; margin-bottom: 32px; }
.questions .engines .eng { font-weight: 500; flex: 1 1 60%; }
.questions .engines .res { flex: 0 1 auto; white-space: nowrap; }
.questions .engines mark + mark { margin-left: 4px; }
@media (max-width: 560px) { .questions .engines li { flex-wrap: wrap; } .questions .engines .res { text-align: left; white-space: normal; } }
