/* UAD 3.6, made simple: shared design system for every page.
   See DESIGN.md. Colours are tokens; dark mode redefines them below. */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef2f5;
  --ink: #0f1d2a;
  --muted: #4a5868;
  --line: #dbe2e9;
  --line-strong: #c3ced9;
  --link: #0b6a6e;
  --brand: #0d7377;
  --brand-strong: #095c5f;
  --brand-soft: #e2f2f1;
  --brand-ink: #075356;
  --on-brand: #ffffff;
  --navy: #0b2131;
  --navy-2: #123552;
  --on-navy: #ffffff;
  --on-navy-muted: #b7c8d6;
  --amber: #f5b445;
  --on-amber: #2b1a00;
  --warn-bg: #fff6e6;
  --warn-line: #f0d39c;
  --warn-ink: #7a4a00;
  --danger-bg: #fdecea;
  --danger-ink: #a12a1f;
  --gse: #1d6b43;  --gse-bg: #e2f3e8;
  --ven: #2b4f9e;  --ven-bg: #e8eefb;
  --app: #8a4f00;  --app-bg: #fdf0da;
  --sponsor-bg: #f1f2f3;
  --input-bg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 29, 42, .06), 0 1px 1px rgba(15, 29, 42, .04);
  --shadow-md: 0 6px 18px -6px rgba(15, 29, 42, .14), 0 2px 6px rgba(15, 29, 42, .05);
  --shadow-lg: 0 18px 40px -12px rgba(11, 33, 49, .28);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --max: 1140px;
  --read: 800px;
  color-scheme: light;

  /* old names, kept for any page still written against them */
  --card: var(--surface);
  --soft: var(--muted);
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  --warm: var(--warn-bg);
  --warm-line: var(--warn-line);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a131c;
    --surface: #111d29;
    --surface-2: #172737;
    --ink: #e6edf4;
    --muted: #a3b3c3;
    --line: #223447;
    --line-strong: #2f465d;
    --link: #62d2cd;
    --brand: #3cc2bd;
    --brand-strong: #6dd8d4;
    --brand-soft: #0f2e32;
    --brand-ink: #86e3de;
    --on-brand: #05201f;
    --navy: #07111b;
    --navy-2: #0e2234;
    --on-navy-muted: #9fb2c4;
    --warn-bg: #261d0c;
    --warn-line: #5a4318;
    --warn-ink: #f6c66e;
    --danger-bg: #2c1414;
    --danger-ink: #ff9d92;
    --gse: #82d8a7;  --gse-bg: #10291c;
    --ven: #a4bcff;  --ven-bg: #17223e;
    --app: #f2c071;  --app-bg: #2a1f0d;
    --sponsor-bg: #141f2a;
    --input-bg: #0d1823;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 20px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 700; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; box-shadow: var(--shadow-md); transition: top .15s;
}
.skip-link:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }

/* ---------- Site header and nav ---------- */
.site-header { background: var(--navy); color: var(--on-navy); position: relative; z-index: 10; }
.site-bar {
  max-width: var(--max); margin: 0 auto; padding: 14px 20px 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-navy); text-decoration: none; }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-mark { width: 38px; height: 38px; flex: none; transition: transform .2s ease; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.8rem; color: var(--on-navy-muted); font-weight: 500; }

.site-header .topnav { max-width: var(--max); margin: 0 auto; padding: 0 12px; display: block; }
.site-header .nav-inner {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; position: relative;
  padding: 6px 8px 10px; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.site-header .nav-inner::-webkit-scrollbar { display: none; }
/* "More to swipe" cue: a fade with a chevron on the right edge of the phone nav,
   tied to the strip's scroll position so it fades out at the end. Browsers without
   scroll-driven animations keep the plain fade above. */
.site-header .topnav { position: relative; }
@supports (animation-timeline: scroll()) and (timeline-scope: none) {
  .site-header .topnav { timeline-scope: --navx; }
  .site-header .nav-inner { scroll-timeline: --navx inline; mask-image: none; }
  .site-header .topnav::after {
    content: ""; position: absolute; top: 0; bottom: 4px; right: 12px; width: 64px; pointer-events: none;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='11' fill='rgba(255,255,255,.16)'/%3E%3Cpath d='m10 7 5 5-5 5' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 4px center / 24px no-repeat,
      linear-gradient(90deg, transparent, var(--navy) 55%);
    opacity: 0;
    animation: nav-cue linear both;
    animation-timeline: --navx;
  }
}
@keyframes nav-cue { 0%, 94% { opacity: 1; } 100% { opacity: 0; } }
.site-header .topnav a {
  flex: none; white-space: nowrap; text-decoration: none;
  color: var(--on-navy-muted); font-weight: 600; font-size: 0.92rem;
  padding: 7px 13px; border-radius: 999px; background: none; border: 0;
  transition: background-color .15s, color .15s;
}
.site-header .topnav a:hover { color: var(--on-navy); background: rgba(255, 255, 255, .08); }
.site-header .topnav a.on { color: var(--navy); background: #ffffff; }
.site-header .topnav a:focus-visible { outline-color: var(--amber); }
@media (min-width: 1100px) {
  .site-header .nav-inner { mask-image: none; flex-wrap: wrap; }
  .site-header .topnav::after { display: none; }
}

/* Fallback: older generated pages with header.small + nav.topnav inside .wrap */
body > .wrap > header.small { padding: 22px 0 10px; }
header.small .kicker a { color: var(--brand); text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.topnav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.topnav a {
  text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.topnav a.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 700;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; font-size: 1rem;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, background-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-strong); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-amber { background: var(--amber); color: var(--on-amber); }
.btn-amber:hover { background: #ffc566; }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--on-navy); border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn .icon { width: 1.05em; height: 1.05em; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-navy);
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(60, 194, 189, .22), transparent 60%),
    radial-gradient(700px 360px at 5% 110%, rgba(245, 180, 69, .12), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 24px;
  padding-top: 40px; padding-bottom: 64px; align-items: center;
}
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber);
}
.hero .kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { color: var(--on-navy); font-size: clamp(2.3rem, 6vw, 3.6rem); margin: 0 0 16px; letter-spacing: -0.035em; line-height: 1.05; }
.hero-lead { color: var(--on-navy-muted); font-size: clamp(1.05rem, 2.2vw, 1.22rem); margin: 0 0 26px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin: 22px 0 0; font-size: 0.88rem; color: var(--on-navy-muted); display: flex; align-items: center; gap: 8px; min-height: 1.4em; }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); flex: none; }
.hero-meta:empty { display: none; }
.hero-art { display: none; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (min-width: 880px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 48px; padding-top: 56px; padding-bottom: 84px; }
  .hero-art { display: block; }
}
.reveal { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.reveal-2 { animation-delay: .08s; }
.reveal-3 { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Home: overview grid ---------- */
.home-grid {
  display: grid; gap: 18px; grid-template-columns: 1fr;
  margin-top: -36px; position: relative; z-index: 2;
}
@media (min-width: 900px) {
  .home-grid {
    grid-template-columns: 1.25fr 1fr;
    grid-template-areas: "start signup" "start faq" "warn1 warn2";
    grid-template-rows: auto 1fr auto;
    align-items: start;
  }
  .home-grid > .start-here { align-self: stretch; }
  .home-grid > .start-here { grid-area: start; }
  .home-grid > .signup { grid-area: signup; }
  .home-grid > .faq-teaser { grid-area: faq; }
  .home-grid > .warn:nth-of-type(1) { grid-area: warn1; }
  .home-grid > .warn:nth-of-type(2) { grid-area: warn2; }
}
.home .home-grid > * { margin: 0; }

.start {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin: 18px 0 28px; box-shadow: var(--shadow-md);
}
.start h2 { margin: 0 0 10px; font-size: 1.45rem; }
.start > p { margin: 0; }
.start ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; }
.start ol li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 14px; }
.start ol li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 0.95rem;
}
.start ul { margin: 12px 0 14px; padding: 0; list-style: none; }
.start ul li { border-top: 1px solid var(--line); }
.start ul li:last-child { border-bottom: 1px solid var(--line); }
.start ul li a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 2px; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.4;
}
.start ul li a::after {
  content: "→"; color: var(--brand); font-weight: 700; transition: transform .15s;
}
.start ul li a:hover { color: var(--link); }
.start ul li a:hover::after { transform: translateX(3px); }
.faq-teaser .all-link a { font-weight: 700; text-decoration: none; }
.date-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--amber); color: var(--on-amber); font-weight: 700;
  border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; margin: 14px 0 16px;
}

.warn:not(.st) {
  position: relative; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius);
  padding: 22px 24px 22px 24px; margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.warn h2 { margin: 0 0 10px; font-size: 1.2rem; display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.warn h2 .icon { color: var(--warn-ink); width: 1.35em; height: 1.35em; margin-top: -1px; }
.warn p { margin: 8px 0; }
.warn b { color: var(--warn-ink); }

/* ---------- Newsletter ---------- */
.signup {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 28px 0; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.signup::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--amber));
}
.signup h2 { margin: 0 0 6px; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.signup h2 .icon { color: var(--brand); }
.signup p { margin: 6px 0; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.signup input { flex: 1 1 200px; font: inherit; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--input-bg); color: var(--ink); }
.signup button { font: inherit; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--line); color: var(--muted); }
.signup form.formkit-form { display: block; max-width: 100% !important; }
.small-note { color: var(--muted); font-size: 0.88rem; }

/* ---------- Section headings ---------- */
.section-head { margin: 64px 0 18px; }
.eyebrow {
  display: inline-block; margin: 0 0 8px; font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand);
}
.section-head h2, .picker > h2, .find h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 0 0 8px; letter-spacing: -0.03em; }

/* ---------- Picker ---------- */
.picker { margin: 64px 0 34px; }
.picker .sub, .picker .note { color: var(--muted); font-size: 1rem; max-width: 62em; }
.picker .note { margin-top: 16px; }
.howto { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 22px 0 22px; box-shadow: var(--shadow-sm); }
.howto h3 { margin: 0 0 14px; font-size: 1.1rem; }
.howto ol { margin: 0; padding: 0; list-style: none; counter-reset: h; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .howto ol { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .howto ol { grid-template-columns: repeat(4, 1fr); } }
.howto li { counter-increment: h; position: relative; padding: 46px 0 0; font-size: 0.97rem; margin: 0; }
.howto li::before {
  content: counter(h); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--brand); color: var(--on-brand);
}
.howto li b { display: block; margin-bottom: 2px; }

.tbl-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); margin: 12px 0;
}
table.cmp { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.93rem; line-height: 1.5; }
.picker table.cmp { min-width: 760px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp th { background: var(--surface-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; white-space: nowrap; }
.cmp tbody tr { transition: background-color .15s; }
.cmp tbody tr:hover td { background: var(--surface-2); }
.picker .cmp td:first-child, .cmp.trk td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.picker .cmp th:first-child, .cmp.trk th:first-child { position: sticky; left: 0; z-index: 2; }
.cmp td a { overflow-wrap: anywhere; }
.st {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.78rem;
  padding: 3px 10px; border-radius: 999px; margin-right: 4px; white-space: nowrap;
  background: var(--surface-2); color: var(--muted);
}
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.ok { background: var(--gse-bg); color: var(--gse); }
.st.bad { background: var(--danger-bg); color: var(--danger-ink); }
.st.warn { background: var(--warn-bg); color: var(--warn-ink); }

.pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 22px; }
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pcard h3 { margin: 0 0 10px; font-size: 1.12rem; }
.pcard p { margin: 8px 0; font-size: 0.96rem; }
.pcard p b { display: inline-block; min-width: 0; }
.pcard p:nth-of-type(1) b { color: var(--gse); }
.pcard p:nth-of-type(2) b { color: var(--warn-ink); }
.pcard p:nth-of-type(3) { padding-top: 10px; border-top: 1px dashed var(--line); }

/* ---------- Sponsor ---------- */
.sponsor {
  background: var(--sponsor-bg); border: 1px dashed var(--line-strong); border-radius: 14px;
  padding: 14px 18px; margin: 30px 0; font-size: 0.95rem; color: var(--muted);
}
.sponsor b { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--muted); }
.sponsor p { margin: 4px 0 0; }

/* ---------- Search and tips ---------- */
.find { margin: 64px auto 0; max-width: 880px; }
.find > .sub { color: var(--muted); margin: 0 0 6px; }
.searchbar {
  position: sticky; top: 0; z-index: 5; padding: 12px 0 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.field { position: relative; }
.field .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; pointer-events: none; }
#search, #q {
  width: 100%; font: inherit; font-size: 1.02rem; padding: 15px 18px 15px 50px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--input-bg); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
#q { padding-left: 18px; margin: 12px 0 4px; }
#search::placeholder, #q::placeholder { color: var(--muted); opacity: .85; }
#search:focus, #q:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  font: inherit; font-size: 0.88rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--brand); color: var(--link); }
.chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

.topic { margin: 40px 0 10px; }
.topic h2 { font-size: 1.4rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.topic h2::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--brand); }
.topic .sub { color: var(--muted); margin: 0 0 16px; font-size: 0.98rem; }

.entry {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 18px 26px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-color .2s;
}
.entry::before {
  content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--line-strong);
}
.entry:has(.who.OFFICIAL)::before { background: var(--gse); }
.entry:has(.who.VENDOR)::before { background: var(--ven); }
.entry:has(.who.APPRAISER-SOURCED)::before { background: var(--app); }
.entry:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.entry .top { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; font-size: 0.82rem; }
.who { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.who::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.who.OFFICIAL { color: var(--gse); background: var(--gse-bg); }
.who.VENDOR { color: var(--ven); background: var(--ven-bg); }
.who.APPRAISER-SOURCED { color: var(--app); background: var(--app-bg); }
.sw { color: var(--muted); font-weight: 600; }
.entry h3 { margin: 2px 0 12px; font-size: 1.1rem; line-height: 1.4; letter-spacing: -0.01em; }
.entry h3 a { color: var(--ink); text-decoration: none; }
.entry h3 a:hover { color: var(--link); text-decoration: underline; }
.todo {
  background: var(--brand-soft); border-radius: 12px; padding: 12px 16px 12px 44px; margin: 0; position: relative;
}
.todo::before {
  content: ""; position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.todo b { color: var(--brand-ink); }
details { margin-top: 12px; }
summary {
  cursor: pointer; color: var(--link); font-weight: 700; font-size: 0.93rem; list-style: none;
  display: inline-flex; align-items: center; gap: 6px; border-radius: 6px;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .2s ease; margin-right: 2px;
}
details[open] > summary::before { transform: rotate(45deg) translate(-2px, -1px); }
details p { color: var(--muted); font-size: 0.97rem; margin: 10px 0 0; overflow-wrap: anywhere; }
.more-btn {
  display: flex; align-items: center; gap: 8px; margin: 10px auto 0; font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 20px; color: var(--link);
  transition: background-color .15s, border-color .15s;
}
.more-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
#empty { display: none; color: var(--muted); padding: 48px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); margin-top: 20px; }
.entry.flash { outline: 3px solid var(--brand); outline-offset: 2px; animation: flash 1.6s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 30%, transparent); } 100% { box-shadow: var(--shadow-sm); } }

/* ---------- Content pages ---------- */
body.paged .home { display: none; }
#tpages:empty { display: none; }
#tpages { padding-top: 36px; }
main.wrap { padding-top: 8px; padding-bottom: 24px; }
.tpage, main > .signup, main > .sponsor { max-width: var(--read); margin-left: auto; margin-right: auto; }
.tpage.wide { max-width: none; }
main > .tpage { padding-top: 28px; }
.tpage > h2:first-child { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 4px 0 8px; letter-spacing: -0.03em; }
.tpage h1 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.035em; margin: 6px 0 12px; }
.tpage h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.tpage .sub { color: var(--muted); font-size: 1rem; margin: 0 0 20px; }
.tpage h3.grp {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted);
  margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.titem .date { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.titem .top a { font-weight: 700; text-decoration: none; }
.titem p { margin: 6px 0 0; }
.titem .links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; }
.titem .links a { font-size: 0.92rem; font-weight: 600; overflow-wrap: anywhere; }
.titem .old { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); display: block; margin-bottom: 2px; }
.lead { font-size: 1.12rem; margin: 0 0 16px; color: var(--ink); }
.crumb { margin: 0 0 6px; }
.crumb a {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 700; text-decoration: none;
  padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.crumb a:hover { border-color: var(--brand); }
.note-box {
  background: var(--brand-soft); border-radius: 12px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
}
.unk { color: var(--muted); font-style: italic; }
.filters { margin: 8px 0; }
.fgroup { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.fgroup > span { font-weight: 700; font-size: 0.85rem; min-width: 80px; color: var(--muted); }
.chip.clear { margin-top: 6px; background: none; border-style: dashed; }
.fbox { margin: 8px 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 8px; }
.fbox summary { padding: 8px 0; }
.cmp .src { font-size: 0.8rem; margin-left: 4px; }
.cmp.trk td:first-child a { text-decoration: none; }
.cmp.trk td:first-child a:hover b { text-decoration: underline; }
table.cmp.trk { min-width: 640px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0; }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow-sm); border-top: 3px solid var(--brand);
}
.fact h2 { font-size: 0.75rem; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.fact p { margin: 4px 0; }
.fact details p { font-size: 0.92rem; }
.srcs { padding-left: 1.2em; font-size: 0.92rem; color: var(--muted); }
.srcs li { margin-bottom: 8px; overflow-wrap: anywhere; }
.srcs li::marker { color: var(--brand); }
.countdown {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #0e5d63 140%);
  color: var(--on-navy); border-radius: var(--radius); padding: 20px 24px; font-size: 1.15rem; margin: 14px 0 8px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.countdown b { color: var(--amber); }
.rules { padding: 0; list-style: none; }
.rules > li { position: relative; padding-left: 40px; margin-bottom: 16px; }
ul.rules > li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
ol.rules { counter-reset: r; }
ol.rules > li { counter-increment: r; }
ol.rules > li::before {
  content: counter(r); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; background: var(--brand-soft); color: var(--brand-ink);
}
.rules li .tbl-wrap { margin-top: 12px; }
form.submit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px 22px; box-shadow: var(--shadow-sm); margin-top: 20px; }
form.submit label { display: block; font-weight: 700; margin: 14px 0; }
form.submit select, form.submit input, form.submit textarea {
  display: block; width: 100%; font: inherit; font-weight: 400; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line-strong); margin-top: 6px; background: var(--surface-2); color: var(--ink);
}
form.submit :disabled { cursor: not-allowed; opacity: .75; }
form.submit label.check { display: flex; align-items: center; gap: 10px; }
form.submit label.check input { display: inline; width: 18px; height: 18px; margin: 0; }
form.submit button { font: inherit; font-weight: 700; padding: 11px 22px; border-radius: 999px; border: 0; background: var(--line); color: var(--muted); margin-top: 8px; }

/* ---------- Footer ---------- */
footer { color: var(--muted); font-size: 0.9rem; padding: 48px 0 60px; text-align: center; }
footer p { margin: 6px 0; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 72px; padding: 48px 0 40px; text-align: left; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 2fr; } }
.footer-brand .brand { color: var(--ink); }
.footer-brand .brand-tag { color: var(--muted); }
.footer-brand p { margin: 12px 0 0; max-width: 28em; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 560px) { .footer-links { grid-template-columns: repeat(4, 1fr); } }
.footer-links h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); margin: 0 0 10px; font-weight: 800; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--link); text-decoration: underline; }
.footer-notes { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.86rem; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .site-bar { padding: 12px 16px 4px; }
  .site-header .topnav { padding: 0 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero-inner { padding-top: 28px; padding-bottom: 60px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .start, .warn, .signup, .howto { padding: 20px 18px; }
  .entry { padding: 18px 16px 16px 20px; }
  .todo { padding-left: 40px; }
  .todo::before { left: 12px; }
  .tpage h1 { font-size: 1.75rem; }
  table.cmp.trk { min-width: 0; font-size: 0.88rem; }
  .cmp.trk .c-type { display: none; }
  .cmp.trk td:first-child, .cmp.trk th:first-child { position: static; }
  .cmp th, .cmp td { padding: 10px 11px; }
  .section-head, .picker, .find { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* the nav cue follows the finger, it isn't motion: keep it */
  .site-header .topnav::after { animation: nav-cue linear both !important; animation-timeline: --navx !important; }
}

@media print {
  .site-header .topnav, .searchbar, .signup, .sponsor, .hero-art, .skip-link { display: none !important; }
  .hero { background: none; color: #000; }
  .hero h1, .hero-lead { color: #000; }
}
