/* ═══════════════════════════════════════════════════════════════════════════
   Mangai Notary Service — notarypublicsign.com
   Palette: legal ink navy, brass, parchment. Sober, high-contrast, printable.
   No decorative gavels; the spec (§14) forbids them and they read as stock.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Ink — the authority colour. Deep navy, the shade of a court seal. */
  --ink-900: #0a1524;
  --ink-800: #0f2038;
  --ink-700: #17304f;
  --ink-600: #22456d;
  --ink-500: #35618f;
  --ink-300: #7c9cbd;
  --ink-100: #d8e3ef;

  /* Brass — the seal / embossing colour. Used sparingly, never as body text. */
  --brass-700: #8a6a1f;
  --brass-600: #a5822c;
  --brass-500: #bf9a3a;
  --brass-300: #ddc37f;
  --brass-100: #f4ead1;

  /* Parchment — the paper. Warm, low-glare, easy on older eyes. */
  --paper:      #fbf9f5;
  --paper-2:    #f4f0e8;
  --paper-3:    #ebe5d9;
  --rule:       #ddd6c7;
  --rule-soft:  #eae4d7;

  /* Text */
  --text:       #1a2331;
  --text-soft:  #4a5568;
  --text-faint: #6b7688;

  /* Semantic */
  --ok-bg: #edf6ee;  --ok-line: #2f7d4a;  --ok-text: #1d5c34;
  --no-bg: #fdf0ee;  --no-line: #b3392b;  --no-text: #8c2a1f;
  --warn-bg: #fdf6e3; --warn-line: #b8860b; --warn-text: #7a5a06;

  --shadow-sm: 0 1px 2px rgba(10,21,36,.06), 0 1px 3px rgba(10,21,36,.05);
  --shadow-md: 0 2px 4px rgba(10,21,36,.05), 0 8px 20px rgba(10,21,36,.07);
  --shadow-lg: 0 4px 8px rgba(10,21,36,.06), 0 18px 44px rgba(10,21,36,.11);

  --serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  --wrap: 1180px;
  --measure: 68ch;
  --radius: 10px;
  --radius-lg: 16px;
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* Focus — visible and unmistakable. Spec §14 requires it. */
:focus-visible {
  outline: 3px solid var(--brass-600);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink-800); color: #fff; padding: .85rem 1.4rem;
  font-weight: 600; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--ink-800);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.05rem); line-height: 1.11; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.5rem, 1.22rem + 1.25vw, 2.05rem); margin-top: 2.9rem; margin-bottom: .85rem; }
h3 { font-size: clamp(1.19rem, 1.07rem + .5vw, 1.4rem); margin-top: 2rem; margin-bottom: .5rem; }
h4 { font-size: 1.06rem; margin-top: 1.5rem; margin-bottom: .35rem; font-weight: 700; }

/* Brass hairline under section headings — the "embossed seal" motif. */
.prose h2 {
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.prose h2::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 3rem; height: 2px; background: var(--brass-500);
}

p, ul, ol, blockquote, table, .callout, .figure { margin-bottom: 1.15rem; }
.prose > p, .prose > ul, .prose > ol { max-width: var(--measure); }

a { color: var(--ink-600); text-decoration-thickness: 1px; text-underline-offset: 2.5px; }
a:hover { color: var(--brass-700); }

strong { font-weight: 650; color: var(--ink-900); }

/* On the dark surfaces, ink-900 <strong> is invisible against ink-800.
   Every dark panel gets a light emphasis colour instead. */
.hero strong, .page-head strong, .notify strong,
.section-ink strong, .site-footer strong, .launch-bar strong { color: #fff; }
.hero em, .page-head em, .notify em { color: var(--brass-300); }
em { font-style: italic; }

ul, ol { padding-left: 1.35rem; }
li { margin-bottom: .42rem; }
li::marker { color: var(--brass-600); }
ol li::marker { font-weight: 600; font-variant-numeric: tabular-nums; }

hr {
  border: 0; height: 1px; background: var(--rule);
  margin: 2.6rem 0;
  max-width: var(--measure);
}

code {
  font-family: var(--mono); font-size: .88em;
  background: var(--paper-3); padding: .1em .38em; border-radius: 4px;
  border: 1px solid var(--rule-soft);
}

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.25rem); }
main { flex: 1 0 auto; }

.layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 3rem; padding-block: 2.6rem 4rem; }
@media (min-width: 1000px) {
  .layout.has-toc { grid-template-columns: minmax(0,1fr) 246px; gap: 3.5rem; }
}

/* ─── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--ink-800);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid var(--brass-600);
  box-shadow: 0 1px 14px rgba(10,21,36,.2);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 66px; }

.wordmark { display: flex; align-items: center; gap: .68rem; text-decoration: none; color: #fff; flex-shrink: 0; }
.wordmark:hover { color: #fff; }
.wordmark .seal { width: 33px; height: 33px; flex-shrink: 0; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.08; }
.wordmark-name { font-family: var(--serif); font-size: 1.11rem; font-weight: 600; letter-spacing: .002em; }
.wordmark-sub {
  font-size: .605rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brass-300); font-weight: 600;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .1rem; }
.nav a {
  color: var(--ink-100); text-decoration: none; font-size: .885rem; font-weight: 500;
  padding: .5rem .68rem; border-radius: 6px; white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 -2px 0 var(--brass-500); }

.nav-cta {
  background: var(--brass-600) !important; color: var(--ink-900) !important;
  font-weight: 650 !important; margin-left: .5rem; padding: .52rem 1.05rem !important;
}
.nav-cta:hover { background: var(--brass-500) !important; }

.nav-toggle {
  margin-left: auto; display: none; background: transparent; border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 7px; padding: .48rem .7rem; cursor: pointer; font-size: .875rem;
  align-items: center; gap: .45rem; font-family: inherit; font-weight: 500;
}
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-800); flex-direction: column; align-items: stretch;
    padding: .55rem clamp(1.1rem,4vw,2.25rem) 1.15rem;
    border-bottom: 3px solid var(--brass-600); gap: .1rem;
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: .72rem .5rem; font-size: .97rem; }
  .nav-cta { margin: .45rem 0 0; text-align: center; }
}

/* ─── Countdown banner ────────────────────────────────────────────────────── */
.launch-bar {
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800));
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.1);
}
.launch-bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .5rem 1.5rem; padding: .72rem 0; text-align: center;
}
.launch-label { font-size: .855rem; color: var(--ink-100); }
.launch-label strong { color: var(--brass-300); font-weight: 650; }

.countdown { display: flex; gap: .42rem; align-items: center; }
.cd-unit {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px; padding: .28rem .55rem; min-width: 3.05rem; text-align: center;
}
.cd-num {
  display: block; font-family: var(--serif); font-size: 1.16rem; font-weight: 600;
  color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.cd-lbl { display: block; font-size: .565rem; letter-spacing: .11em; text-transform: uppercase; color: var(--brass-300); font-weight: 600; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1100px 460px at 78% -12%, rgba(191,154,58,.15), transparent 62%),
    linear-gradient(168deg, var(--ink-800) 0%, var(--ink-900) 100%);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5.2rem);
  border-bottom: 3px solid var(--brass-600);
  position: relative; overflow: hidden;
}
/* Faint guilloché rule pattern, like an engraved certificate border. */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 1px, transparent 1px 9px);
}
.hero > * { position: relative; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .705rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 650;
  color: var(--brass-300); margin-bottom: 1.05rem;
  border: 1px solid rgba(221,195,127,.32); border-radius: 100px; padding: .34rem .9rem;
  background: rgba(191,154,58,.09);
}
.hero-sub { font-size: clamp(1.06rem, .99rem + .34vw, 1.24rem); color: var(--ink-100); max-width: 56ch; margin-top: 1.15rem; }
.hero-cities {
  margin-top: 1.5rem; font-family: var(--serif); font-size: clamp(1rem,.94rem + .3vw,1.16rem);
  color: var(--brass-300); font-weight: 500;
}
.hero-cities a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(221,195,127,.35); }
.hero-cities a:hover { color: #fff; border-bottom-color: #fff; }

.hero-countdown { display: flex; gap: .62rem; margin-top: 2.1rem; flex-wrap: wrap; }
.hero-countdown .cd-unit { min-width: 5rem; padding: .7rem .55rem; border-radius: 10px; background: rgba(255,255,255,.07); }
.hero-countdown .cd-num { font-size: 2.05rem; }
.hero-countdown .cd-lbl { font-size: .625rem; margin-top: .12rem; }

/* Page header for interior pages */
.page-head {
  background: linear-gradient(170deg, var(--ink-800), var(--ink-900));
  color: #fff; padding-block: clamp(2.1rem, 4.4vw, 3.2rem);
  border-bottom: 3px solid var(--brass-600); position: relative; overflow: hidden;
}
.page-head::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.026) 0 1px, transparent 1px 9px);
}
.page-head > * { position: relative; }
.page-head h1 { color: #fff; margin-bottom: .55rem; }
.page-head .lede { color: var(--ink-100); max-width: 62ch; font-size: 1.055rem; }
.page-head .launch-note {
  display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  margin-top: 1.05rem; font-size: .875rem; color: var(--brass-300);
  border: 1px solid rgba(221,195,127,.3); background: rgba(191,154,58,.1);
  border-radius: 100px; padding: .4rem 1rem; font-weight: 550;
}

/* ─── Breadcrumbs ─────────────────────────────────────────────────────────── */
.crumbs { font-size: .795rem; color: var(--ink-300); margin-bottom: .95rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .34rem; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: .34rem; }
.crumbs li + li::before { content: '/'; color: rgba(255,255,255,.28); }
.crumbs a { color: var(--ink-100); text-decoration: none; }
.crumbs a:hover { color: var(--brass-300); text-decoration: underline; }
.crumbs [aria-current] { color: var(--brass-300); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.2;
  padding: .82rem 1.6rem; border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .14s, transform .08s, box-shadow .14s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brass-600); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brass-500); color: var(--ink-900); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.34); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-ink { background: var(--ink-700); color: #fff; }
.btn-ink:hover { background: var(--ink-600); color: #fff; }
.btn-outline { background: #fff; color: var(--ink-700); border-color: var(--rule); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--brass-500); color: var(--ink-800); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.85rem; }

/* ─── Callouts (blockquote + explicit) ────────────────────────────────────── */
.prose blockquote, .callout {
  background: var(--warn-bg);
  border: 1px solid var(--brass-300);
  border-left: 4px solid var(--brass-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.05rem 1.3rem;
  max-width: var(--measure);
}
.prose blockquote > :last-child, .callout > :last-child { margin-bottom: 0; }
.callout-title {
  font-family: var(--serif); font-weight: 650; font-size: 1.03rem;
  color: var(--ink-800); margin-bottom: .35rem; display: flex; align-items: center; gap: .5rem;
}
.callout.danger { background: var(--no-bg); border-color: #eab9b1; border-left-color: var(--no-line); }
.callout.danger .callout-title { color: var(--no-text); }
.callout.ok { background: var(--ok-bg); border-color: #b8ddc3; border-left-color: var(--ok-line); }
.callout.ok .callout-title { color: var(--ok-text); }
.callout.info { background: #eef4fa; border-color: #c2d8ec; border-left-color: var(--ink-500); }
.callout.info .callout-title { color: var(--ink-700); }

/* ─── Tables ──────────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin-bottom: 1.4rem; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse; width: 100%; font-size: .945rem;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
}
thead th {
  background: var(--ink-800); color: #fff; text-align: left; font-weight: 600;
  padding: .72rem .95rem; font-size: .845rem; letter-spacing: .015em;
  border-bottom: 2px solid var(--brass-600);
}
tbody td, tbody th { padding: .72rem .95rem; border-top: 1px solid var(--rule-soft); vertical-align: top; text-align: left; }
tbody th { font-weight: 600; color: var(--ink-800); }
tbody tr:nth-child(even) { background: var(--paper-2); }
tbody tr:hover { background: var(--brass-100); }
/* Tables whose header row is empty (markdown two-col "definition" tables) */
table.headless thead { display: none; }
table.headless tbody tr:first-child td { border-top: 0; }

/* ─── Cards / grids ───────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.15rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px,1fr)); }

.card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: box-shadow .16s, border-color .16s, transform .16s;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--brass-500); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.card h3 { margin-top: 0; margin-bottom: .42rem; font-size: 1.13rem; }
.card p { color: var(--text-soft); font-size: .945rem; margin-bottom: .7rem; }
.card .meta {
  margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--rule-soft);
  font-size: .81rem; color: var(--brass-700); font-weight: 600;
}
.card-icon {
  width: 38px; height: 38px; margin-bottom: .85rem; color: var(--brass-600);
}

/* Three-answer strip (spec §6.3) */
.answers { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.answer { padding: 1.5rem 1.6rem; border-right: 1px solid var(--rule-soft); }
.answer:last-child { border-right: 0; }
@media (max-width: 780px) { .answer { border-right: 0; border-bottom: 1px solid var(--rule-soft); } .answer:last-child { border-bottom: 0; } }
.answer-q { font-size: .715rem; letter-spacing: .13em; text-transform: uppercase; color: var(--brass-700); font-weight: 700; margin-bottom: .5rem; }
.answer-a { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; color: var(--ink-800); line-height: 1.2; margin-bottom: .38rem; }
.answer-note { font-size: .875rem; color: var(--text-soft); margin: 0; }

/* ─── Sections ────────────────────────────────────────────────────────────── */
.section { padding-block: clamp(2.6rem, 5vw, 4rem); }
.section-tint { background: var(--paper-2); border-block: 1px solid var(--rule-soft); }
.section-ink { background: var(--ink-800); color: var(--ink-100); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink h2::after { background: var(--brass-500); }
.section-ink a { color: var(--brass-300); }
.section-head { margin-bottom: 1.7rem; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--text-soft); max-width: 60ch; margin-bottom: 0; }

/* ─── Notify form ─────────────────────────────────────────────────────────── */
.notify {
  background: linear-gradient(165deg, var(--ink-800), var(--ink-900));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem,3.5vw,2.5rem);
  border: 1px solid var(--ink-700); border-top: 3px solid var(--brass-600);
  box-shadow: var(--shadow-md); margin-block: 2.2rem;
}
.notify h2, .notify h3 { color: #fff; margin-top: 0; border: 0; padding: 0; }
.notify h2::after { display: none; }
.notify p { color: var(--ink-100); max-width: 54ch; }
.notify-form { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.15rem; }
.notify-form input[type="text"] {
  flex: 1 1 260px; min-width: 0; font-family: inherit; font-size: 1rem;
  padding: .8rem 1rem; border-radius: 8px; border: 1px solid var(--ink-500);
  background: rgba(255,255,255,.96); color: var(--text);
}
.notify-form input::placeholder { color: var(--text-faint); }
.notify-form input:focus-visible { outline-color: var(--brass-500); }
.notify-promise { font-size: .84rem; color: var(--ink-300); margin-top: .85rem; margin-bottom: 0; }
.notify-status { margin-top: .9rem; font-size: .93rem; font-weight: 550; display: none; }
.notify-status.show { display: block; }
.notify-status.good { color: #9ee0b4; }
.notify-status.bad { color: #ffb4a8; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ─── Tools (ID checker, calculator) ──────────────────────────────────────── */
.tool {
  background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--brass-600);
  border-radius: var(--radius-lg); padding: clamp(1.4rem,3vw,2rem);
  box-shadow: var(--shadow-md); margin-block: 2rem;
}
.tool h2, .tool h3 { margin-top: 0; border: 0; padding: 0; }
.tool h2::after { display: none; }
.tool-lede { color: var(--text-soft); font-size: .96rem; max-width: 60ch; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 600; font-size: .915rem; margin-bottom: .35rem; color: var(--ink-800); }
.field .hint { font-size: .82rem; color: var(--text-faint); font-weight: 400; margin-top: .18rem; }
.field select, .field input {
  width: 100%; font-family: inherit; font-size: 1rem; padding: .68rem .8rem;
  border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--text);
}
.field select:focus-visible, .field input:focus-visible { outline-color: var(--brass-600); border-color: var(--brass-500); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 1rem; }

.verdict { margin-top: 1.3rem; padding: 1.15rem 1.35rem; border-radius: var(--radius); border: 1px solid; display: none; }
.verdict.show { display: block; }
.verdict-head { font-family: var(--serif); font-size: 1.22rem; font-weight: 650; margin-bottom: .45rem; display: flex; align-items: center; gap: .55rem; }
.verdict p:last-child { margin-bottom: 0; }
.verdict.yes { background: var(--ok-bg); border-color: #b8ddc3; }  .verdict.yes .verdict-head { color: var(--ok-text); }
.verdict.no  { background: var(--no-bg); border-color: #eab9b1; }  .verdict.no  .verdict-head { color: var(--no-text); }
.verdict.maybe { background: var(--warn-bg); border-color: var(--brass-300); } .verdict.maybe .verdict-head { color: var(--warn-text); }

.calc-out {
  margin-top: 1.3rem; background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.15rem 1.35rem;
}
.calc-line { display: flex; justify-content: space-between; gap: 1rem; padding: .38rem 0; font-size: .95rem; border-bottom: 1px dashed var(--rule); }
.calc-line:last-of-type { border-bottom: 0; }
.calc-line .lbl { color: var(--text-soft); }
.calc-line .val { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-800); }
.calc-total { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: .7rem; padding-top: .8rem; border-top: 2px solid var(--ink-800); }
.calc-total .lbl { font-weight: 650; color: var(--ink-800); }
.calc-total .val { font-family: var(--serif); font-size: 1.85rem; font-weight: 650; color: var(--ink-800); font-variant-numeric: tabular-nums; }
.calc-note { font-size: .82rem; color: var(--text-faint); margin-top: .7rem; margin-bottom: 0; }

/* ─── FAQ accordion ───────────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--rule); border-radius: var(--radius); background: #fff;
  margin-bottom: .62rem; overflow: hidden;
}
.faq-item[open] { border-color: var(--brass-500); box-shadow: var(--shadow-sm); }
.faq-item > summary {
  cursor: pointer; padding: .95rem 1.2rem; font-family: var(--serif); font-weight: 600;
  font-size: 1.055rem; color: var(--ink-800); list-style: none;
  display: flex; align-items: flex-start; gap: .8rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+'; margin-left: auto; color: var(--brass-600); font-size: 1.4rem;
  line-height: 1; font-family: var(--sans); font-weight: 400; flex-shrink: 0;
}
.faq-item[open] > summary::after { content: '−'; }
.faq-item > summary:hover { background: var(--paper-2); }
.faq-body { padding: 0 1.2rem 1.15rem; }
.faq-body > :last-child { margin-bottom: 0; }
.faq-body > p, .faq-body > ul { max-width: none; }

/* ─── Table of contents ───────────────────────────────────────────────────── */
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: block; position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 116px); overflow-y: auto; font-size: .875rem; }
  .toc-title { font-size: .69rem; letter-spacing: .13em; text-transform: uppercase; color: var(--brass-700); font-weight: 700; margin-bottom: .7rem; }
  .toc ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--rule); }
  .toc li { margin: 0; }
  .toc a { display: block; padding: .32rem 0 .32rem .85rem; color: var(--text-soft); text-decoration: none; border-left: 2px solid transparent; margin-left: -2px; line-height: 1.35; }
  .toc a:hover { color: var(--ink-700); }
  .toc a.active { color: var(--ink-800); border-left-color: var(--brass-600); font-weight: 600; }
  .toc .lvl-3 a { padding-left: 1.7rem; font-size: .835rem; }
}

/* ─── Placeholder chip ────────────────────────────────────────────────────── */
.ph {
  display: inline-block; background: var(--warn-bg); color: var(--warn-text);
  border: 1px dashed var(--brass-600); border-radius: 5px; padding: .04em .42em;
  font-size: .855em; font-weight: 600; font-family: var(--sans);
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-900); color: var(--ink-100); margin-top: auto;
  border-top: 3px solid var(--brass-600); font-size: .915rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(196px,1fr));
  gap: 2.2rem; padding-block: 3rem 2.2rem;
}
.footer-col h3 {
  color: var(--brass-300); font-family: var(--sans); font-size: .705rem;
  letter-spacing: .13em; text-transform: uppercase; font-weight: 700;
  margin: 0 0 .85rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .42rem; }
.footer-col a { color: var(--ink-100); text-decoration: none; }
.footer-col a:hover { color: var(--brass-300); text-decoration: underline; }
.footer-brand .wordmark { margin-bottom: .9rem; }
.footer-brand p { color: var(--ink-300); font-size: .875rem; max-width: 34ch; }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem 2.4rem;
  color: var(--ink-300); font-size: .82rem;
}
.footer-legal p { max-width: 88ch; margin-bottom: .7rem; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal a { color: var(--ink-100); }
.footer-legal strong { color: var(--brass-300); }

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.lede { font-size: 1.12rem; color: var(--text-soft); max-width: 60ch; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: .875rem; }
.muted { color: var(--text-soft); }
.disclaimer {
  font-size: .845rem; color: var(--text-faint); font-style: italic;
  border-top: 1px solid var(--rule); padding-top: 1.05rem; margin-top: 2.4rem; max-width: var(--measure);
}
.jump-links {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; padding: 0; list-style: none;
}
.jump-links a {
  display: inline-block; font-size: .86rem; padding: .38rem .82rem; border-radius: 100px;
  background: #fff; border: 1px solid var(--rule); color: var(--ink-700); text-decoration: none; font-weight: 550;
}
.jump-links a:hover { border-color: var(--brass-500); background: var(--brass-100); color: var(--ink-800); }

.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.pill {
  font-size: .8rem; padding: .3rem .78rem; border-radius: 100px; font-weight: 600;
  background: var(--brass-100); color: var(--brass-700); border: 1px solid var(--brass-300);
}

.trust-list { list-style: none; padding: 0; display: grid; gap: .55rem; }
.trust-list li { display: flex; gap: .65rem; align-items: flex-start; margin: 0; }
.trust-list svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: .18rem; color: var(--brass-500); }

/* ─── Print (spec §7: What to Bring must be printable) ────────────────────── */
@media print {
  .site-header, .launch-bar, .site-footer, .notify, .nav-toggle, .toc,
  .btn, .skip-link, .jump-links, .print-hide { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .page-head { background: #fff !important; color: #000 !important; border-bottom: 2px solid #000; padding-block: 0 1rem; }
  .hero h1, .page-head h1, .page-head .lede, .crumbs { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .faq-item { break-inside: avoid; border-color: #999; }
  .faq-item > summary::after { display: none; }
  .card, table, .callout, .prose blockquote { break-inside: avoid; }
  .layout { display: block; padding-block: 0; }
  thead th { background: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
