/* StandInCourt: navy and brass, a serif display face over a plain sans. Colors live in tokens; dark mode redefines them. */
:root {
  --paper: #f7f4ee;
  --paper-2: #efe9dd;
  --card: #fffefb;
  --ink: #18203a;
  --ink-2: #46506a;
  --ink-3: #5c6478; /* 4.8:1 or better on every light background (WCAG AA) */
  --line: #e5ded0;
  --line-2: #cdc4b2;
  --navy: #1c2a4a;
  --navy-2: #2c3f6b;
  --navy-soft: #eaeef6;
  --brass: #b08a3e;
  --brass-2: #d9b673;
  --brass-soft: #f5ecd9;
  --brass-ink: #7d5f27; /* brass for text: 4.9:1 or better; --brass stays for borders and fills */
  --ok: #2f6b4a;
  --ok-soft: #e1efe6;
  --warn: #8a5a12;
  --warn-soft: #fbefd6;
  --bad: #9b2f2a;
  --bad-soft: #f8e1df;
  --focus: #3d6fd8;
  --on-navy: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(24, 32, 58, .06);
  --shadow: 0 1px 2px rgba(24, 32, 58, .05), 0 8px 24px -8px rgba(24, 32, 58, .12);
  --shadow-lg: 0 2px 4px rgba(24, 32, 58, .06), 0 18px 40px -12px rgba(24, 32, 58, .22);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #10141d; --paper-2: #151b27; --card: #181e2a; --ink: #eceae4; --ink-2: #b9bdc8; --ink-3: #8f95a4;
    --line: #2a3141; --line-2: #3a4256; --navy: #c9d6f2; --navy-2: #e2e9f8; --navy-soft: #1d2638; --brass: #d6b06a; --brass-2: #e2c27f;
    --brass-ink: #d6b06a; --brass-soft: #2e2716; --ok: #7fc69c; --ok-soft: #17291f; --warn: #e4b763; --warn-soft: #2d2412;
    --bad: #f08a83; --bad-soft: #301817; --on-navy: #10141d;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.45);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #10141d; --paper-2: #151b27; --card: #181e2a; --ink: #eceae4; --ink-2: #b9bdc8; --ink-3: #8f95a4;
  --line: #2a3141; --line-2: #3a4256; --navy: #c9d6f2; --navy-2: #e2e9f8; --navy-soft: #1d2638; --brass: #d6b06a; --brass-2: #e2c27f;
  --brass-ink: #d6b06a; --brass-soft: #2e2716; --ok: #7fc69c; --ok-soft: #17291f; --warn: #e4b763; --warn-soft: #2d2412;
  --bad: #f08a83; --bad-soft: #301817; --on-navy: #10141d;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.45);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 18px 40px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 16px 56px; outline: none; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.18; margin: 0 0 .5em; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brass-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-ink); font-weight: 700; margin-bottom: .7em;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brass); }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px max(16px, calc(50% - 504px)); background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--serif); font-size: 1.28rem; font-weight: 600; letter-spacing: -.01em; }
.brand b { color: var(--brass-ink); font-weight: 700; }
.brand-badge {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(150deg, #2c3f6b, #142039); color: #d9b673; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), var(--shadow-sm);
}
.brand-mark { width: 20px; height: 20px; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: 7px 12px; border-radius: 99px; transition: background .15s, color .15s; }
.topnav a:hover { background: var(--card); color: var(--ink); }
.topnav a.on { background: var(--navy-soft); color: var(--navy); }
@media (max-width: 480px) {
  .brand { font-size: 1.06rem; gap: 7px; }
  .brand-badge { width: 28px; height: 28px; border-radius: 8px; }
  .brand-mark { width: 17px; height: 17px; }
  .topbar { gap: 4px; }
  .topnav { gap: 0; flex-wrap: nowrap; }
  .topnav a { padding: 6px 6px; font-size: .83rem; white-space: nowrap; }
}
/* very narrow phones: the menu goes under the name instead of pushing the page sideways */
@media (max-width: 369px) {
  .topbar { flex-wrap: wrap; row-gap: 2px; }
  .topnav { width: 100%; justify-content: flex-start; margin-left: -6px; }
}

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--paper-2); font-size: .85rem; color: var(--ink-3); }
.foot-inner { max-width: 1040px; margin: 0 auto; padding: 26px 16px 32px; display: grid; gap: 10px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font: 600 1.02rem var(--serif); color: var(--ink-2); }
.foot-brand .brand-badge { width: 26px; height: 26px; border-radius: 8px; }
.foot-brand .brand-mark { width: 15px; height: 15px; }
.foot p { margin: 0; max-width: 72em; }
.foot strong { color: var(--ink-2); }
.foot-links a { color: var(--ink-2); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border-radius: 12px; border: 1px solid transparent; font: 600 .97rem var(--sans); cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 1px 2px rgba(24,32,58,.18), 0 4px 12px -4px rgba(24,32,58,.35);
  transition: transform .12s, box-shadow .15s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 4px rgba(24,32,58,.18), 0 8px 18px -6px rgba(24,32,58,.4); }
.btn:active { transform: translateY(0); filter: brightness(.98); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { border-color: var(--navy-2); filter: none; }
.btn.brass { background: linear-gradient(180deg, #d0ad65, #ad873b); color: #1b1608; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 1px 2px rgba(80,58,14,.25), 0 6px 16px -6px rgba(140,104,30,.55); }
.btn.small { min-height: 36px; padding: 6px 13px; font-size: .88rem; border-radius: 10px; }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--line-2); box-shadow: none; }
.btn.danger:hover { background: var(--bad-soft); filter: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; filter: none; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.compare > .card, .grid > .card { margin-top: 0; }
.card.next {
  position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--brass) 45%, var(--line));
  background: linear-gradient(135deg, var(--brass-soft), var(--card) 55%);
}
.card.next::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--brass-2), var(--brass)); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tile {
  position: relative; display: block; text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tile:hover { border-color: color-mix(in srgb, var(--brass) 60%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile:active { transform: translateY(0); }
.tile h3 { margin-bottom: .3em; }
.tile p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.tile.off { cursor: default; opacity: .7; }
.tile.off:hover { border-color: var(--line); transform: none; box-shadow: var(--shadow-sm); }
.tile-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin: 2px 0 14px;
  background: linear-gradient(150deg, var(--brass-soft), color-mix(in srgb, var(--brass-soft) 60%, var(--card)));
  color: var(--brass-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brass) 25%, transparent);
}
.tile-icon svg { width: 24px; height: 24px; }
.tile-go { position: absolute; right: 18px; bottom: 16px; color: var(--brass-ink); font-weight: 700; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.tile:not(.off):hover .tile-go { opacity: 1; transform: none; }
.tile.compact { display: flex; gap: 14px; align-items: flex-start; }
.tile.compact .tile-icon { margin: 0; flex: none; }
.tile.compact > div { min-width: 0; flex: 1; }
.price { font-weight: 700; font-size: .86rem; color: var(--ink-2); }
.grid > .tile { display: flex; flex-direction: column; }
.grid > .tile > p { margin-bottom: 14px; }
.grid > .tile .tile-foot { margin-top: auto; }
.tile-foot { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); line-height: 1.3; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.brass { background: var(--brass-soft); color: var(--brass-ink); }

/* callouts */
.note { border-radius: 12px; padding: 14px 16px 14px 18px; border: 1px solid var(--line); background: var(--card); font-size: .94rem; position: relative; }
.note.info { background: var(--navy-soft); border-color: color-mix(in srgb, var(--navy-2) 14%, transparent); box-shadow: inset 4px 0 0 var(--navy-2); }
.note.warn { background: var(--warn-soft); border-color: transparent; box-shadow: inset 4px 0 0 var(--warn); color: var(--ink); }
.note.ok { background: var(--ok-soft); border-color: transparent; box-shadow: inset 4px 0 0 var(--ok); }
.note.bad { background: var(--bad-soft); border-color: transparent; box-shadow: inset 4px 0 0 var(--bad); }
.note p:last-child { margin-bottom: 0; }

/* home: the hero band runs the full width of the window, always navy */
.hero-band {
  position: relative; margin: -28px calc(50% - 50vw) 0; padding: 64px max(16px, calc(50vw - 504px)) 56px; color: #dfe5f2;
  background:
    radial-gradient(900px 380px at 85% -20%, rgba(217, 182, 115, .22), transparent 65%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 2px, transparent 2px 72px),
    linear-gradient(165deg, #1d2d52 0%, #121c35 70%, #0e1629 100%);
  border-bottom: 1px solid rgba(217, 182, 115, .35);
}
/* up to the content width, main spans the window: bleed by its own padding (vw can differ from the page width) */
@media (max-width: 1040px) { .hero-band { margin: -28px -16px 0; padding: 48px 16px 44px; } }
.hero-band .eyebrow { color: #d9b673; }
.hero-band .eyebrow::before { background: #d9b673; }
.hero-band h1 { color: #fff; max-width: 15em; font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
.hero-band h1 em { font-style: normal; color: #e6c88a; }
.hero-band .lede { font-size: 1.13rem; color: #c3cce0; max-width: 36em; margin-bottom: 26px; }
.hero-band .btn.ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none; }
.hero-band .btn.ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: #b9c3d9; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: #d9b673; flex: none; }
.hero { padding: 28px 0 8px; }
.hero h1 { max-width: 16em; }
.hero .lede { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.steps3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 36px 0 8px; counter-reset: s; }
.steps3 > div { position: relative; padding: 20px 20px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.steps3 > div::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 12px;
  font: 700 1.05rem var(--serif); color: #1b1608; background: linear-gradient(180deg, #d9b673, #b08a3e); box-shadow: 0 4px 10px -4px rgba(140,104,30,.6);
}
.steps3 h3 { margin-bottom: .25em; }
.steps3 p { margin: 0; }
.section { margin-top: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }

/* forms */
label.q, .q { display: block; font-weight: 600; margin-bottom: 6px; }
.help { font-size: .87rem; color: var(--ink-3); margin: -2px 0 8px; }
.field { margin-bottom: 20px; }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=tel], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font: 16px var(--sans); box-shadow: inset 0 1px 2px rgba(24,32,58,.05);
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--navy-2) 40%, var(--line-2)); }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.money input { padding-left: 26px; }
/* choices: a card per option, with a radio marker */
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 16px 9px 12px; border: 1px solid var(--line-2); border-radius: 12px;
  font-weight: 600; font-size: .94rem; background: var(--card); box-shadow: var(--shadow-sm); transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice span::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; border: 2px solid var(--line-2); background: var(--card);
  transition: border-color .15s, box-shadow .15s;
}
.choice:hover span { border-color: color-mix(in srgb, var(--navy-2) 45%, var(--line-2)); }
.choice input:checked + span { border-color: var(--navy-2); background: var(--navy-soft); box-shadow: 0 0 0 1px var(--navy-2); }
.choice input:checked + span::before { border-color: var(--navy-2); box-shadow: inset 0 0 0 4px var(--card); background: var(--navy-2); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy-2); }
.two { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.req { color: var(--bad); }

/* repeat groups */
.rep-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 2px; margin-bottom: 12px; background: var(--paper); }
.rep-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; font-size: .86rem; letter-spacing: .03em; text-transform: uppercase; color: var(--brass-ink); }

/* state picker */
.state-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: 16px; }
.state-btn { text-align: left; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 .95rem var(--sans); cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .12s, box-shadow .15s; }
.state-btn small { display: block; font-weight: 500; color: var(--ink-3); font-size: .76rem; margin-top: 2px; }
.state-btn:hover { border-color: var(--brass); transform: translateY(-1px); box-shadow: var(--shadow); }
.state-btn.on { border-color: var(--brass); background: var(--brass-soft); }

/* interview layout: a numbered stepper beside the questions */
.iv { display: grid; gap: 28px; grid-template-columns: 250px 1fr; align-items: start; }
.iv > * { min-width: 0; }
.iv-nav { position: sticky; top: 78px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-sm); }
.iv-nav ol { list-style: none; padding: 0; margin: 0; position: relative; }
.iv-nav li { position: relative; }
.iv-nav li + li::before { content: ""; position: absolute; left: 21px; top: -9px; height: 18px; width: 2px; background: var(--line); }
.iv-nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 600; line-height: 1.3; }
.iv-nav a:hover { background: var(--paper); color: var(--ink); }
.iv-nav a.on { background: var(--navy-soft); color: var(--navy); }
.dot {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; position: relative; z-index: 1;
  border: 2px solid var(--line-2); background: var(--card); color: var(--ink-3); font: 700 .74rem var(--sans);
}
.dot svg { width: 13px; height: 13px; }
.dot.done { background: var(--ok); border-color: var(--ok); color: var(--card); }
.dot.part { border-color: var(--brass); color: var(--brass-ink); background: var(--brass-soft); }
.iv-nav a.on .dot:not(.done) { border-color: var(--navy-2); background: var(--navy-2); color: var(--card); }
.iv-head .bar { margin: 2px 0 18px; max-width: 420px; }
@media (max-width: 760px) {
  .iv { grid-template-columns: 1fr; gap: 16px; }
  .iv-nav { position: static; padding: 6px; }
  .iv-nav ol { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .iv-nav li + li::before { display: none; }
  .iv-nav a { white-space: nowrap; border: 1px solid var(--line); padding: 6px 10px 6px 6px; }
  .dot { width: 22px; height: 22px; font-size: .68rem; }
}

/* progress */
.bar { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(24,32,58,.08); }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brass), var(--brass-2)); border-radius: 99px; transition: width .3s; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--ok); }
.checklist .done h4 { text-decoration: line-through; color: var(--ink-3); }
.checklist h4 { margin: 0 0 2px; font-size: 1rem; }
.checklist p { margin: 0; font-size: .9rem; color: var(--ink-2); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); background: var(--paper); }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--paper) 60%, transparent); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; border-radius: 10px; }

/* compare */
.compare { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.compare ul { padding-left: 1.1em; margin: 0; }
.compare li { margin-bottom: 6px; }

/* worksheet */
.ws-form { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); }
.ws-form > header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.ws-form > header b { font-family: var(--serif); font-size: 1.05rem; }
.ws-body { padding: 8px 16px 14px; }
.kv { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 4px 14px; font-size: .93rem; padding: 4px 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.empty { color: var(--bad); font-style: italic; }

/* files */
.drop { display: block; border: 2px dashed var(--line-2); border-radius: 14px; padding: 28px; text-align: center; background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover { border-color: var(--brass); }
.drop.over { border-color: var(--brass); background: var(--brass-soft); }
.file-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 24px); opacity: 0; visibility: hidden; background: var(--navy); color: var(--paper); padding: 11px 18px; border-radius: 12px; font-weight: 600; transition: transform .25s, opacity .25s, visibility .25s; z-index: 20; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
.toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .topbar, .foot, .no-print, .iv-nav { display: none !important; }
  body { background: #fff; color: #000; }
  main { max-width: none; padding: 0; }
  .card, .ws-form { box-shadow: none; break-inside: avoid; }
}

/* details filled in from a court paper (docread.js): the person checks each one */
.from-doc { border-color: var(--brass) !important; background: var(--brass-soft) !important; }
.field .src { margin-top: 4px; overflow-wrap: anywhere; }

/* Terms / Refund policy (legal.js) */
.legal h2 { font-size: 1.1rem; margin: 18px 0 4px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; margin: 0; }
.legal li { margin: 4px 0; }
.ph { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* long web addresses in help and notes wrap instead of widening the page */
.field p, .note p, .note li { overflow-wrap: anywhere; }
