/* =====================================================================
 * JurisDeed · LA Collector Hub — Brand Foundation
 * ---------------------------------------------------------------------
 * Audience: Louisiana parish tax collectors.
 * Tone: institutional, calm, lawyerly, generous-with-information.
 * Brand: per CANONICAL JurisDeed Brand Kit (2026-06-06).
 *   Primary: JurisDeed Navy #111144 (true navy; replaces deprecated #131836)
 *   Accent:  Sandy Gold #D4BD8A
 *   Display: Lato 700/900 · Body/UI: Inter 400/500/600/700
 *   Pairing: navy + gold + white space — light-first layouts with
 *            navy/gold accents.
 * =====================================================================
 */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 68, 0.25);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
  color: var(--navy-light);
  text-decoration-color: var(--gold);
}
button { font-family: inherit; cursor: pointer; }

/* ---------- Canonical Tokens (JurisDeed Brand Kit, 2026-06-06) ---------- */
:root {
  /* Primary — Navy */
  --navy: #111144;            /* JurisDeed Navy — primary */
  --navy-light: #1E1E7A;      /* hover / active */
  --navy-deep: #0B0F24;       /* deepest backgrounds / overlays */
  --hero-gradient-from: #0E0E3C;
  --hero-gradient-to:   #1C1C72;
  --navy-soft: rgba(17, 17, 68, 0.08);

  /* Accent — Gold */
  --gold: #D4BD8A;            /* Sandy Gold */
  --gold-dark: #A8915F;       /* hover / borders */
  --gold-light: #EFE6D2;      /* soft fills / chips */

  /* Neutrals */
  --ink: #0F172A;             /* primary text on light */
  --slate: #475569;           /* secondary text */
  --slate-light: #64748B;     /* tertiary text / labels */
  --blue-gray: #94A3B8;       /* muted / captions */
  --line: #E2E8F0;            /* borders */
  --line-soft: #EEF2F6;       /* subtle dividers */
  --white: #FFFFFF;
  --bg-soft: #F8F9FB;         /* alternating section background */
  --cream: #F8F7F2;           /* warm neutral background */

  /* Status / utility (kept minimal and tonal to brand) */
  --success: #1e6f5c;
  --warn: #b3791f;
  --danger: #9b2c2c;

  /* Typography stacks */
  --font-display: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 56px; --s-10: 80px;

  /* Radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 22px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(15, 23, 42, 0.05);
  --sh-2: 0 4px 18px rgba(15, 23, 42, 0.08);
  --sh-3: 0 12px 40px rgba(15, 23, 42, 0.14);
}

/* ---------- Heading defaults ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.15;
}

/* ---------- Layout shells ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--s-6); }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--s-6); }

/* ---------- Top brand bar ---------- */
.brandbar {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  padding: var(--s-4) 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--sh-2);
}
.brandbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: #fff; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark { width: 38px; height: auto; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Personalized greeting on the right */
.greeting { text-align: right; font-size: 0.84rem; line-height: 1.4; min-width: 200px; }
.greeting-eyebrow {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.greeting-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 0.98rem;
  letter-spacing: 0;
}
.greeting-parish { color: var(--gold-light); font-weight: 500; font-size: 0.84rem; }

/* ---------- Navigation ---------- */
.subnav {
  background: var(--navy-light);
  border-bottom: 1px solid var(--navy-deep);
  position: sticky; top: 78px; z-index: 40;
}
.subnav-inner { display: flex; align-items: center; gap: var(--s-2); overflow-x: auto; padding: 0; scrollbar-width: thin; }
.navlink {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.navlink:hover { color: #fff; background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.navlink[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(212, 189, 138, 0.08);
}

/* ---------- Page header ---------- */
.page-hero {
  padding: var(--s-9) 0 var(--s-7);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
}
.page-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.page-lede { font-size: 1.05rem; color: var(--slate); margin-top: var(--s-4); max-width: 720px; line-height: 1.6; }

/* ---------- Section ---------- */
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-7) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin-bottom: var(--s-4);
}
.section-lede { font-size: 1rem; color: var(--slate); max-width: 720px; margin-bottom: var(--s-6); }

/* ---------- Cards & tiles ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-1);
}
.card-tight { padding: var(--s-4); }
.card-feature {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
  border-left: 4px solid var(--gold);
}

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.tile {
  display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  color: inherit;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: var(--gold);
  text-decoration: none;
}
.tile-icon { width: 40px; height: 40px; color: var(--gold-dark); }
.tile-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.tile-body { font-size: 0.93rem; color: var(--slate); flex: 1; }
.tile-meta {
  font-size: 0.78rem;
  color: var(--slate-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.92rem;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn:hover {
  background: var(--bg-soft);
  border-color: var(--navy);
  color: var(--navy);
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-light);
  color: #fff;
  border-color: var(--navy-light);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold-dark);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  border-color: var(--gold-dark);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}
.btn-lg { padding: var(--s-4) var(--s-6); font-size: 1rem; }
.btn-sm { padding: var(--s-2) var(--s-3); font-size: 0.82rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(17, 17, 68, 0.10);
}
.field input[readonly] { background: var(--bg-soft); color: var(--slate-light); }
.field-hint { font-size: 0.78rem; color: var(--slate-light); font-weight: 400; }

/* ---------- Pills & badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: var(--s-1) var(--s-3);
  background: var(--bg-soft);
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
}
.pill-gold { background: var(--gold-light); color: var(--navy-deep); border-color: var(--gold); }
.pill-success { background: #d8f0e6; color: var(--success); border-color: #b8e3d2; }
.pill-warn { background: #fbe7c6; color: var(--warn); border-color: #f3d6a3; }
.pill-info { background: #dbe3fb; color: #1d4ed8; border-color: #c3d1f6; }
.pill-locked { background: var(--navy); color: var(--gold); border-color: var(--navy-deep); }

/* ---------- Stat blocks ---------- */
.stats { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.stat-label { font-size: 0.74rem; font-weight: 600; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--navy); margin-top: var(--s-2); line-height: 1; letter-spacing: -0.01em; }
.stat-meta { font-size: 0.82rem; color: var(--slate-light); margin-top: var(--s-2); }

/* ---------- Timeline (cycle page) ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 50%, var(--navy) 100%);
  border-radius: 2px;
}
.timeline-month { position: relative; padding-bottom: var(--s-7); }
.timeline-month::before {
  content: ""; position: absolute; left: -28px; top: 10px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--navy);
  box-shadow: 0 0 0 3px var(--white);
}
.timeline-month-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.timeline-month-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: var(--s-3);
  letter-spacing: -0.015em;
}
.timeline-milestone {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  margin-top: var(--s-3);
  border-left: 4px solid var(--gold);
}
.timeline-milestone.is-critical { border-left-color: var(--danger); background: #fff8f6; }
.timeline-milestone.is-required { border-left-color: var(--warn); }
.timeline-milestone-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  letter-spacing: -0.005em;
}
.timeline-milestone-body { font-size: 0.92rem; color: var(--slate); }
.timeline-milestone-cite { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate-light); margin-top: var(--s-2); }

/* ---------- Calendar grid ---------- */
.calendar { display: grid; gap: var(--s-2); grid-template-columns: 1fr; }
@media (min-width: 720px) { .calendar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .calendar { grid-template-columns: repeat(3, 1fr); } }
.cal-month {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.cal-month-header {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  letter-spacing: -0.005em;
}
.cal-month-count { font-size: 0.78rem; color: var(--slate-light); font-weight: 600; }
.cal-row { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px dashed var(--line); font-size: 0.88rem; }
.cal-row:first-of-type { border-top: none; }
.cal-day { font-family: var(--font-mono); font-weight: 700; color: var(--navy); min-width: 36px; }
.cal-jur { flex: 1; }
.cal-jur a { color: var(--navy); }
.cal-platform { font-size: 0.74rem; padding: 2px 8px; border-radius: 999px; font-weight: 600; }

/* Platform color tags */
.plat-zeus { background: #dbe3fb; color: #1d4ed8; }
.plat-govease { background: #cdebde; color: #047857; }
.plat-bid4 { background: #e4d8f9; color: #6d28d9; }
.plat-laf { background: #cce7e4; color: #0f766e; }
.plat-inperson { background: #e2e6ed; color: #475569; }
.plat-tbd { background: #fbe7c6; color: #92400e; }

/* ---------- Footer ---------- */
.footer {
  padding: var(--s-9) 0 var(--s-7);
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.80);
  margin-top: var(--s-9);
}
.footer a { color: var(--gold-light); }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
  font-weight: 700;
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Gate page (index.html) ---------- */
.gate-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--s-6);
  background: linear-gradient(180deg, var(--hero-gradient-from) 0%, var(--hero-gradient-to) 100%);
  color: #fff;
}
.gate-card {
  background: var(--white);
  color: var(--ink);
  max-width: 520px; width: 100%;
  padding: var(--s-9) var(--s-7);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  border-top: 6px solid var(--gold);
}
.gate-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
}
.gate-lede { color: var(--slate); margin-bottom: var(--s-6); }
.gate-status {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  margin-top: var(--s-4);
  font-size: 0.92rem;
}
.gate-status.is-error { background: #fdecea; color: var(--danger); border: 1px solid #f5b7b1; }
.gate-status.is-info { background: var(--bg-soft); color: var(--navy); border: 1px solid var(--line); }

/* ---------- Locked tiles (integrations) ---------- */
.locked-tile {
  position: relative;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  overflow: hidden;
}
.locked-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17, 17, 68, 0.6);
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-direction: column; gap: var(--s-3);
}
.locked-tile:hover .locked-overlay { opacity: 1; }
.locked-tile .tile-title { color: var(--slate-light); }

/* ---------- Print sheet (calculator) ---------- */
@media print {
  .brandbar, .subnav, .footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; padding: 0; }
  .card, .tile { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--slate-light); }
.mono { font-family: var(--font-mono); }
.mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.mb-1 { margin-bottom: var(--s-1); } .mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); } .mb-6 { margin-bottom: var(--s-6); } .mb-7 { margin-bottom: var(--s-7); }
.hidden { display: none !important; }
.flex { display: flex; gap: var(--s-3); }
.flex-wrap { flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }

/* =====================================================================
 * Team Voice — Quarterly Survey UI
 * Mobile-first, tap-target-friendly. Extends the canonical brand tokens.
 * ===================================================================== */

html, body { height: 100%; }
body.tv-body {
  background: var(--cream);
  color: var(--ink);
  min-height: 100dvh;
}

/* App shell — a single centered mobile-width column */
.tv-app {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Sticky top: brand + progress + anonymity ---------- */
.tv-top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.tv-top-inner {
  padding: var(--s-4) var(--s-5) var(--s-3);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.tv-top-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.tv-brand { display: flex; align-items: center; gap: var(--s-2); }
.tv-brand img { width: 30px; height: auto; }
.tv-brand-name {
  font-family: var(--font-display); font-weight: 900; color: var(--navy);
  font-size: 15px; letter-spacing: -0.01em;
}
.tv-brand-sub { font-size: 11px; color: var(--slate-light); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* Anonymity chip */
.tv-chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: var(--gold-light);
  border: 1px solid var(--gold-dark);
  color: #6f5c30;
  font-size: 11.5px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  line-height: 1.2;
}
.tv-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-dark); flex: none; }

/* Per-QUESTION progress — one continuous bar that fills ~1/11 per answer */
.tv-progress { display: flex; }
.tv-bar {
  flex: 1; height: 7px; border-radius: 999px;
  background: var(--line); overflow: hidden;
}
.tv-bar > i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold-dark) 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.tv-progress-label {
  font-size: 12px; color: var(--slate); font-weight: 600;
  display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap;
}
.tv-progress-label b { color: var(--navy); }
.tv-progress-count { color: var(--slate-light); font-weight: 500; font-family: var(--font-mono); font-size: 11px; margin-left: auto; }

/* ---------- Screen container ---------- */
.tv-main { flex: 1; padding: var(--s-6) var(--s-5) var(--s-10); }
.tv-screen { display: none; animation: tvIn 0.35s ease; }
.tv-screen.active { display: block; }
@keyframes tvIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Intro / name step ---------- */
.tv-intro { text-align: center; padding-top: var(--s-6); }
.tv-intro .tv-mono-mark { width: 64px; margin: 0 auto var(--s-6); }
.tv-intro h1 {
  font-size: clamp(30px, 8vw, 42px); line-height: 1.08; margin-bottom: var(--s-4);
}
.tv-intro .lede { font-size: 16px; color: var(--slate); line-height: 1.6; margin: 0 auto var(--s-6); max-width: 34ch; }
.tv-trust {
  text-align: left; margin: 0 auto var(--s-6); max-width: 46ch;
  display: flex; flex-direction: column; gap: var(--s-3);
}
.tv-trust-p {
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  font-size: 13.5px; color: var(--slate); line-height: 1.6;
}
/* Second paragraph — highlighted box with a full gold border for the
   "extra-anonymous" Q4 + Q8 callout. */
.tv-trust-box {
  background: var(--gold-light);
  border: 2px solid var(--gold-dark);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}
.tv-trust-box p {
  font-size: 13.5px; color: #5f4f28; line-height: 1.6;
}
.tv-trust-box strong { color: var(--navy); font-weight: 700; }
.tv-field { text-align: left; max-width: 420px; margin: 0 auto; }
.tv-label { display: block; font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: var(--s-2); }
.tv-req { color: var(--gold-dark); }
.tv-select, .tv-textarea, .tv-text {
  width: 100%; font-family: var(--font-body); font-size: 16px;
  padding: 14px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: #fff; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.tv-select:focus, .tv-textarea:focus, .tv-text:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft);
}
.tv-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ---------- Section header ---------- */
.tv-sec-head { margin-bottom: var(--s-6); }
.tv-sec-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: var(--s-2); }
.tv-sec-kicker .num { font-family: var(--font-mono); }
.tv-sec-title { font-size: clamp(24px, 6vw, 30px); line-height: 1.1; }
.tv-sec-time { font-size: 13px; color: var(--slate-light); font-weight: 500; margin-top: 6px; }

/* ---------- Question block ---------- */
.tv-q { margin-bottom: var(--s-8); }
.tv-q-num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--gold-dark); }
.tv-q-title { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 18px; line-height: 1.35; margin: 4px 0 var(--s-2); letter-spacing: -0.01em; }
.tv-q-hint { font-size: 13px; color: var(--slate-light); margin-bottom: var(--s-4); }

/* ---------- Fully-anonymous banner (Q4 + Q8 only) ---------- */
/* Full-width, warm-navy fill (navy @ 8%), navy icon + text. Not dismissible. */
.tv-anon-banner {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--navy-soft);            /* #111144 @ 8% */
  border: 1px solid rgba(17, 17, 68, 0.18);
  border-left: 4px solid var(--navy);
  border-radius: var(--r-md);
  padding: 13px 16px;
  margin: 0 0 var(--s-5);
}
.tv-anon-lock {
  flex: none; width: 26px; height: 26px; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.tv-anon-lock svg { width: 22px; height: 22px; }
.tv-anon-text {
  font-family: var(--font-display); font-weight: 700;
  color: var(--navy); font-size: 13.5px; line-height: 1.35;
  letter-spacing: -0.005em;
}
.tv-q-anon .tv-q-head { padding-top: 2px; }

/* ---------- Card checkbox / radio options ---------- */
.tv-opts { display: flex; flex-direction: column; gap: var(--s-3); }
.tv-opts.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 480px) { .tv-opts.grid2 { grid-template-columns: 1fr; } }

.tv-opt {
  position: relative; display: flex; align-items: center; gap: var(--s-3);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.05s;
  min-height: 54px; -webkit-tap-highlight-color: transparent;
}
.tv-opt:active { transform: scale(0.99); }
.tv-opt:hover { border-color: var(--gold-dark); }
.tv-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tv-opt .box {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid var(--blue-gray); background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.tv-opt.radio .box { border-radius: 50%; }
.tv-opt .box svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.5); transition: all 0.15s; color: #fff; }
.tv-opt .emoji { font-size: 20px; flex: none; line-height: 1; }
.tv-opt .opt-text { font-size: 15px; color: var(--ink); font-weight: 500; line-height: 1.35; }
.tv-opt.checked { border-color: var(--navy); background: var(--navy-soft); }
.tv-opt.checked .box { background: var(--navy); border-color: var(--navy); }
.tv-opt.checked .box svg { opacity: 1; transform: scale(1); }
.tv-opt.disabled { opacity: 0.45; cursor: not-allowed; }
.tv-opt.disabled:hover { border-color: var(--line); }

/* "Something else" inline text */
.tv-else { margin-top: 10px; }
.tv-max-note { font-size: 12px; color: var(--slate-light); margin-top: var(--s-2); }
.tv-max-note.hit { color: var(--warn); font-weight: 600; }

/* ---------- Textarea + counter ---------- */
.tv-counter { font-family: var(--font-mono); font-size: 12px; color: var(--slate-light); text-align: right; margin-top: 4px; }
.tv-counter.near { color: var(--warn); }

/* ---------- Q4 nominee (dropdown + required note) ---------- */
.tv-nominee { display: flex; flex-direction: column; gap: var(--s-5); }
.tv-nominee .tv-field { text-align: left; max-width: none; margin: 0; }
.tv-nominee .tv-label { margin-bottom: var(--s-2); }

/* ---------- Q7 rank ---------- */
.tv-rank-hint { font-size: 13px; color: var(--slate-light); margin-bottom: var(--s-4); }
.tv-rank { display: flex; flex-direction: column; gap: var(--s-3); }
.tv-rank-item {
  display: flex; align-items: center; gap: var(--s-3);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; min-height: 56px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.tv-rank-item:hover { border-color: var(--gold-dark); }
.tv-rank-item .rank-badge {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: var(--slate-light);
  transition: all 0.15s;
}
.tv-rank-item.ranked { border-color: var(--navy); background: var(--navy-soft); }
.tv-rank-item.ranked .rank-badge { background: var(--gold); border-color: var(--gold-dark); color: var(--navy); font-weight: 500; }
.tv-rank-item .rank-text { font-size: 14.5px; color: var(--ink); font-weight: 500; line-height: 1.35; flex: 1; }
.tv-rank-item.full-disabled { opacity: 0.5; }
.tv-rank-controls { display: flex; gap: 6px; flex: none; }
.tv-rank-move {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; display: flex; align-items: center; justify-content: center;
  color: var(--slate); font-size: 16px; line-height: 1;
}
.tv-rank-move:disabled { opacity: 0.3; }
.tv-rank-status { font-family: var(--font-mono); font-size: 12px; color: var(--slate-light); margin-bottom: var(--s-3); }

/* ---------- Goals reference panel (Q6) ---------- */
.tv-goals-ref {
  background: linear-gradient(180deg, var(--hero-gradient-from), var(--hero-gradient-to));
  color: #fff; border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-5);
}
.tv-goals-ref .ns { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.tv-goals-ref .ns-val { font-family: var(--font-display); font-weight: 900; font-size: 30px; color: #fff; margin: 2px 0 var(--s-3); letter-spacing: -0.01em; }
.tv-goals-ref ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tv-goals-ref li { display: flex; gap: var(--s-3); font-size: 13px; color: rgba(255,255,255,0.9); align-items: baseline; }
.tv-goals-ref li .gn { font-family: var(--font-mono); color: var(--gold); flex: none; }
.tv-goals-ref li .go { color: var(--gold-light); font-size: 12px; margin-left: auto; flex: none; }

/* ---------- Nav buttons ---------- */
.tv-nav { display: flex; gap: var(--s-3); margin-top: var(--s-8); }
.tv-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 15px 22px; border-radius: var(--r-md); border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.15s; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; -webkit-tap-highlight-color: transparent;
}
.tv-btn-primary { background: var(--navy); color: #fff; flex: 1; }
.tv-btn-primary:hover { background: var(--navy-light); }
.tv-btn-primary:disabled { background: var(--blue-gray); cursor: not-allowed; }
.tv-btn-gold { background: var(--gold); color: var(--navy); flex: 1; }
.tv-btn-gold:hover { background: var(--gold-dark); }
.tv-btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); flex: none; padding: 15px 18px; }
.tv-btn-ghost:hover { border-color: var(--navy); }

.tv-save-note { font-size: 12px; color: var(--slate-light); text-align: center; margin-top: var(--s-4); display: flex; align-items: center; justify-content: center; gap: 6px; }
.tv-save-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* ---------- Celebration ---------- */
.tv-celebrate { text-align: center; padding-top: var(--s-8); position: relative; }
.tv-celebrate .tv-mono-mark { width: 72px; margin: 0 auto var(--s-5); animation: pop 0.5s cubic-bezier(0.2,1.4,0.4,1); }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.tv-celebrate h1 { font-size: clamp(28px, 7vw, 38px); margin-bottom: var(--s-3); }
.tv-celebrate .sub { color: var(--slate); font-size: 15px; line-height: 1.6; max-width: 40ch; margin: 0 auto var(--s-6); }
.tv-edit-note {
  background: var(--gold-light); border: 1px solid var(--gold-dark); color: #6f5c30;
  border-radius: var(--r-md); padding: var(--s-3) var(--s-4); font-size: 13.5px; font-weight: 600;
  display: inline-block; margin-bottom: var(--s-6);
}
.tv-ps { max-width: 460px; margin: 0 auto; text-align: left; }

/* Confetti / gold stars */
.tv-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.tv-confetti i {
  position: absolute; top: -20px; font-size: 18px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Toast / error */
.tv-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; box-shadow: var(--sh-3); z-index: 80;
  transition: transform 0.3s ease; max-width: 90vw; text-align: center;
}
.tv-toast.show { transform: translateX(-50%) translateY(0); }
.tv-toast.err { background: var(--danger); }

/* Closed / deadline-passed state */
.tv-closed { text-align: center; padding-top: var(--s-9); }
.tv-closed .tv-mono-mark { width: 60px; margin: 0 auto var(--s-5); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tv-screen, .tv-celebrate .tv-mono-mark, .tv-confetti i { animation: none !important; }
  .tv-progress .seg > i { transition: none; }
}
