:root {
  --paper: #f3f6f5;
  --surface: #ffffff;
  --ink: #1b2a38;
  --ink-soft: #44566a;
  --rule: #cfd8d6;
  --accent: #2d6a5c;
  --accent-strong: #1f5045;
  --accent-tint: #e3eeea;
  --highlight: #f2e28a;
  --band: #1b2a38;
  --band-ink: #f3f6f5;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
}

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

a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--highlight);
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--band-ink);
  padding: 10px 16px; z-index: 10; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: var(--measure); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--ink); display: block; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; display: block; }
.brand-by { font-size: 0.9rem; color: var(--ink-soft); display: block; margin-top: 2px; }

.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.site-nav a { display: inline-block; padding: 10px 10px; text-decoration: none; color: var(--ink); font-size: 1rem; border-radius: 4px; }
.site-nav a:hover { background: var(--accent-tint); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-nav .nav-cta a { background: var(--accent-strong); color: #fff; font-weight: 700; padding: 10px 16px; }
.site-nav .nav-cta a:hover { background: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 1rem; font-weight: 700;
    min-height: 48px; padding: 0 16px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 4px; cursor: pointer;
  }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .site-nav a { display: block; padding: 14px 4px; border-top: 1px solid var(--rule); border-radius: 0; font-size: 1.1rem; }
  .site-nav .nav-cta a { text-align: center; margin-top: 12px; border-radius: 4px; }
}

/* Type */
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.18; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); margin: 0 0 24px; letter-spacing: -0.01em; max-width: 22ch; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 18px; max-width: 30ch; }
h3 { font-size: 1.3rem; margin: 30px 0 8px; }
p { margin: 0 0 18px; }
.eyebrow { font-family: var(--text); font-size: 1rem; font-weight: 700; color: var(--accent-strong); margin: 0 0 10px; display: block; }

.lede { font-size: 1.25rem; color: var(--ink); }
.source { font-size: 0.95rem; color: var(--ink-soft); margin-top: 6px; }
.source a { color: var(--ink-soft); }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); background: var(--surface); border-bottom: 1px solid var(--rule); }

.answer {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 6px solid var(--accent);
  padding: 20px 22px;
  margin: 0 0 24px;
  max-width: var(--measure);
  font-size: 1.2rem;
}
.answer p { margin: 0; }

/* Stage map: the site's signature element */
.stage-map { margin: 8px 0 0; }
.stage-map ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: stage; }
.stage-map li { position: relative; padding: 0 12px 0 0; counter-increment: stage; }
.stage-map li::before {
  content: counter(stage);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  position: relative; z-index: 1;
}
.stage-map li::after {
  content: ""; position: absolute; top: 21px; left: 44px; right: 0; height: 2px; background: var(--ink); opacity: 0.35;
}
.stage-map li:last-child::after { display: none; }
.stage-name { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 12px 0 6px; line-height: 1.25; }
.stage-name a { color: var(--ink); }
.stage-desc { font-size: 1rem; color: var(--ink-soft); margin: 0; padding-right: 8px; }
.stage-map li[aria-current="step"]::before { background: var(--highlight); }
.stage-map li[aria-current="step"] .stage-name { background: linear-gradient(transparent 38%, var(--highlight) 38%, var(--highlight) 92%, transparent 92%); padding: 0 4px; margin-left: -4px; }
.you-are-here { display: block; font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-top: 2px; }
.stage-after { margin-top: 26px; font-size: 1rem; color: var(--ink-soft); max-width: var(--measure); }

.stage-map.compact .stage-desc { display: none; }
.stage-map.compact .stage-name { font-size: 1.05rem; }

@media (max-width: 760px) {
  .stage-map ol { grid-template-columns: 1fr; }
  .stage-map li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0 0 22px; }
  .stage-map li::before { grid-row: 1 / span 3; }
  .stage-map li::after { top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .stage-name { margin-top: 8px; }
  .stage-map.compact li { padding-bottom: 14px; }
}

/* Situation list */
.situations { list-style: none; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.situations li { border-bottom: 1px solid var(--rule); }
.situations a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 22px 6px; text-decoration: none; color: var(--ink); min-height: 48px;
}
.situations a:hover { background: var(--surface); }
.sit-title { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.25; }
.sit-desc { display: block; color: var(--ink-soft); font-size: 1.05rem; margin-top: 4px; }
.chev { width: 28px; height: 28px; flex: none; color: var(--accent-strong); }
.situations .unsure .sit-title { font-family: var(--text); font-size: 1.15rem; }

/* Two column helper */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Quote */
.pull {
  margin: 26px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--highlight);
  font-family: var(--display); font-size: 1.35rem; line-height: 1.4;
}
.pull cite { display: block; font-family: var(--text); font-style: normal; font-size: 1rem; color: var(--ink-soft); margin-top: 8px; }

/* Tools */
.tools { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.tools li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); }
.tools svg { width: 52px; height: 52px; color: var(--accent-strong); }
.tools h3 { margin: 0 0 6px; font-size: 1.2rem; }
.tools p { margin: 0; font-size: 1.05rem; color: var(--ink-soft); }
@media (max-width: 760px) { .tools { grid-template-columns: 1fr; } }

/* Legal help band */
.band { background: var(--band); color: var(--band-ink); }
.band h2, .band h3 { color: #fff; }
.band a { color: #fff; }
.band .eyebrow { color: var(--highlight); }
.band .source, .band .source a { color: #c9d4dc; }
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 26px 0; }
.scope h3 { margin: 0 0 10px; font-family: var(--text); font-size: 1.1rem; }
.scope ul { margin: 0; padding-left: 1.2em; }
.scope li { margin-bottom: 8px; }
@media (max-width: 760px) { .scope { grid-template-columns: 1fr; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px;
  font: inherit; font-weight: 700; font-size: 1.1rem; text-decoration: none; border-radius: 4px; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--highlight); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,0.08); }
.btn-ink { background: var(--accent-strong); color: #fff; }
.btn-ink:hover { background: var(--ink); }

/* FAQ */
.faq h3 { margin-top: 32px; }
.faq h3:first-of-type { margin-top: 8px; }

/* Notice illustration */
.notice-figure { margin: 28px 0 8px; }
.notice-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .notice-grid { grid-template-columns: 1fr; } }
.letter {
  background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 6px 6px 0 var(--accent-tint);
  padding: 26px 24px 30px; position: relative; font-size: 0.95rem;
}
.letter .bar { height: 9px; background: #dfe5e3; border-radius: 2px; margin: 9px 0; }
.letter .bar.w60 { width: 60%; } .letter .bar.w80 { width: 80%; } .letter .bar.w45 { width: 45%; } .letter .bar.w90 { width: 90%; } .letter .bar.w70 { width: 70%; }
.letter .zone { position: relative; padding: 8px 10px 6px 40px; margin: 14px -10px; background: linear-gradient(transparent 6%, rgba(242,226,138,0.55) 6%, rgba(242,226,138,0.55) 94%, transparent 94%); }
.letter .zone-label { font-weight: 700; font-size: 0.95rem; display: block; }
.marker {
  position: absolute; left: 6px; top: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
}
.letter-caption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 12px; }
.notice-keys { margin: 0; padding: 0; list-style: none; counter-reset: key; }
.notice-keys li { counter-increment: key; position: relative; padding: 0 0 18px 44px; }
.notice-keys li::before {
  content: counter(key); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.notice-keys strong { display: block; }

/* Checklist */
.checklist { list-style: none; margin: 10px 0 18px; padding: 0; border-top: 2px solid var(--ink); max-width: var(--measure); }
.checklist li { position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--rule); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 3px; background: var(--surface); }
.print-btn { display: none; }
.js .print-btn { display: inline-flex; }

/* Example box */
.example { background: var(--surface); border: 1px solid var(--rule); padding: 18px 20px; margin: 18px 0 22px; max-width: var(--measure); }
.example p { margin: 0; }
.example .ex-label { font-weight: 700; display: block; margin-bottom: 4px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); padding: 48px 0 40px; font-size: 1rem; color: var(--ink-soft); }
.site-footer .wrap > * { max-width: 78ch; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin: 0 0 6px; }
.footer-links { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--ink); }
.footer-small { font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

@media print {
  .site-header, .site-footer, .band, .stage-map, .actions, .print-btn, .skip-link, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; color: #000; }
  .section, .hero { padding: 12pt 0; border: 0; background: #fff; }
  a { color: #000; text-decoration: none; }
  .checklist li::before { border-color: #000; }
}

/* Fixes: CTA contrast inside the band, left alignment for single-column sections */
.band .btn-primary { color: var(--ink); }
.band .btn-primary:hover { color: var(--ink); }
.wrap.read { max-width: 1120px; }
.wrap.read > * { max-width: var(--measure); }

/* Hero v2: dark ink field, two columns, brand color up top */
.hero { background: var(--band); color: var(--band-ink); border-bottom: 0; padding: clamp(40px, 6vw, 80px) 0; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--highlight); }
.hero .lede { color: #dbe3e8; }
.hero .answer { background: var(--paper); color: var(--ink); border: 0; border-left: 6px solid var(--highlight); }
.hero .btn-ink { background: var(--highlight); color: var(--ink); }
.hero .btn-ink:hover { background: #fff; }
.hero .btn-line { color: #fff; }
.hero :focus-visible { outline-color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-art svg { width: 100%; max-width: 420px; display: block; margin-left: auto; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

/* Stage card in a stage-page hero */
.stage-card { background: var(--paper); color: var(--ink); padding: 26px 24px 8px; border-radius: 4px; border-top: 6px solid var(--highlight); }
.stage-card-title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 0 0 18px; }
.stage-map.vertical ol { grid-template-columns: 1fr; }
.stage-map.vertical li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0 0 18px; }
.stage-map.vertical li::before { grid-row: 1 / span 3; }
.stage-map.vertical li::after { top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
.stage-map.vertical .stage-name { margin-top: 9px; }
.stage-map.vertical .stage-desc { display: none; }
@media (max-width: 860px) { .hero .stage-card { margin-top: 8px; } }

/* Legal help band moves to deep teal so it reads differently from the hero */
.band { background: var(--accent-strong); }
.band .source, .band .source a { color: #d6e6e0; }
.stage-map.vertical .stage-name { justify-self: start; }
.stage-map.vertical li[aria-current="step"] .stage-name { margin-left: -4px; }

/* Brand alignment with downardlaw.com: navy, Downard red, warm paper */
:root {
  --paper: #f9f7f3;
  --ink: #1e2947;
  --ink-soft: #4a5370;
  --rule: #e2ddd5;
  --accent: #8e2928;
  --accent-strong: #8e2928;
  --accent-dark: #6f1f1e;
  --accent-tint: #f4ebe8;
  --band: #1e2947;
  --band-2: #1f2d53;
}
a { color: var(--ink); text-decoration-color: var(--accent); }
a:hover { color: var(--accent-dark); }
.eyebrow { color: var(--accent); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--accent); flex: none; }
.hero .eyebrow { color: #fff; }
.answer { border-left-color: var(--accent); }
.hero .answer { border-left-color: var(--accent); }
.btn-ink, .hero .btn-ink { background: var(--accent); color: #fff; }
.btn-ink:hover, .hero .btn-ink:hover { background: var(--accent-dark); color: #fff; }
.btn-primary, .band .btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover, .band .btn-primary:hover { background: var(--accent-dark); color: #fff; }
.site-nav .nav-cta a { background: var(--accent); }
.site-nav .nav-cta a:hover { background: var(--accent-dark); }
.site-nav a[aria-current="page"] { text-decoration-color: var(--accent); }
.chev, .tools svg { color: var(--accent); }
.band { background: var(--band-2); }
.band .eyebrow { color: #fff; }
.band .source, .band .source a { color: #c8cee0; }
.letter .zone ~ .zone .marker { background: var(--ink); }
.pull { border-left-color: var(--accent); }
.stage-card { border-top-color: var(--accent); }

/* ---------- Batch 1 components ---------- */
.js-only { display: none; }
.js .js-only { display: block; }

.contact-card { background: var(--paper); color: var(--ink); padding: 26px 24px; border-radius: 4px; border-top: 6px solid var(--accent); }
.contact-card p { margin: 0 0 10px; font-size: 1.05rem; }
.contact-label { font-weight: 700; color: var(--accent); }
.contact-phone { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--ink); text-decoration: none; margin: 0 0 12px; }
.contact-addr { color: var(--ink-soft); margin-top: 14px !important; }
@media (max-width: 860px) { .contact-card { margin-top: 8px; } }

.plain-list { padding-left: 1.2em; margin: 0 0 18px; }
.plain-list li { margin-bottom: 10px; }

.boundary { margin: 22px 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--rule); border-left: 6px solid var(--ink); }
.boundary p { margin: 0; }

/* Forms */
.inquiry, .selector { margin-top: 18px; }
.field { margin: 0 0 22px; border: 0; padding: 0; }
.field > label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; }
.inquiry input[type="text"], .inquiry select, .inquiry textarea {
  width: 100%; font: inherit; font-size: 1.1rem; padding: 12px 14px; min-height: 52px;
  border: 2px solid var(--ink-soft); border-radius: 4px; background: var(--surface); color: var(--ink);
}
.inquiry textarea { min-height: 120px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; font-weight: 400; cursor: pointer; }
.choice input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.optional { font-weight: 400; color: var(--ink-soft); }
.hint { font-size: 1rem; color: var(--ink-soft); margin: 6px 0 0; }
.form-status { background: var(--accent-tint); border-left: 6px solid var(--accent); padding: 14px 18px; font-weight: 700; }
.form-terms { font-size: 1rem; color: var(--ink-soft); }
.field-note { background: var(--surface); border: 1px solid var(--rule); padding: 12px 16px; margin-top: -8px; }
button[disabled] { opacity: 0.55; cursor: not-allowed; }

.result:not(:empty) { margin-top: 26px; padding: 22px; background: var(--surface); border: 1px solid var(--rule); border-top: 6px solid var(--highlight); }
.result h3 { margin-top: 0; }
.result-msg { font-weight: 700; color: var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 10px 0 26px; }
.map-table, .sheet { width: 100%; border-collapse: collapse; background: var(--surface); }
.map-table th, .map-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.map-table thead th { border-bottom: 2px solid var(--ink); font-size: 1rem; }
.sheet caption { text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.25rem; padding: 0 0 10px; }
.sheet th { text-align: left; font-size: 0.95rem; padding: 10px 10px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.sheet td { border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); padding: 0; }
.sheet td:last-child { border-right: 0; }
.sheet input { width: 100%; min-width: 120px; border: 0; padding: 14px 10px; font: inherit; font-size: 1rem; background: transparent; color: var(--ink); }
@media (max-width: 760px) {
  .sheet thead { display: none; }
  .sheet, .sheet tbody, .sheet tr, .sheet td { display: block; width: 100%; }
  .sheet tr { border: 1px solid var(--rule); margin-bottom: 14px; background: var(--surface); }
  .sheet td { border-right: 0; padding: 8px 12px 4px; }
  .sheet td::before { content: attr(data-label); display: block; font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); }
  .sheet input { padding: 8px 0; border-bottom: 1px dashed var(--rule); }
}

.sheet-title { font-size: clamp(1.6rem, 3vw, 2rem); }
.print-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 28px; }
.print-bar .hint { max-width: 52ch; margin: 0; }

.job-block { border: 1px solid var(--rule); background: var(--surface); padding: 18px 20px 6px; margin: 0 0 22px; }
.job-block legend { font-family: var(--display); font-weight: 700; font-size: 1.25rem; padding: 0 6px; }
.job-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.job-grid label { display: block; font-size: 0.95rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 12px; }
.job-grid .wide { grid-column: 1 / -1; }
.job-grid input, .job-grid textarea, .fill-list input, .fill-list textarea {
  display: block; width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); font-weight: 400;
  border: 0; border-bottom: 2px solid var(--rule); background: transparent; padding: 8px 2px; margin-top: 2px;
}
.job-grid textarea, .fill-list textarea { border: 1px solid var(--rule); padding: 8px; resize: vertical; }
@media (max-width: 760px) { .job-grid { grid-template-columns: 1fr; } }

.fill-list { margin: 0 0 18px; padding-left: 1.4em; max-width: 78ch; }
.fill-list li { margin-bottom: 18px; }
.check-label { display: block; font-weight: 700; margin-bottom: 4px; }
.worksheet h3 { font-family: var(--display); }

@media print {
  .hero, .hero h1, .hero .eyebrow, .hero .lede { background: #fff !important; color: #000 !important; }
  .eyebrow::before { display: none; }
  .tool-hero { padding: 0 0 8pt; }
  .worksheet { padding-top: 0; }
  .sheet-title { display: none; }
  .sheet th { background: #fff; }
  .sheet input, .job-grid input, .fill-list input { border-bottom: 1px solid #000; }
  .job-block, .sheet td, .job-grid textarea, .fill-list textarea { border-color: #000; }
  .job-block { break-inside: avoid; }
  .table-wrap { overflow: visible; }
}
.field > label.choice { display: flex; font-weight: 400; margin-bottom: 0; }
.compare th[scope="row"] { font-weight: 700; width: 30%; }
@media (max-width: 760px) {
  .map-table th, .map-table td { padding: 10px 8px; font-size: 1rem; }
  .compare th[scope="row"] { width: 34%; }
}

/* Articles */
.byline { color: #dbe3e8; font-size: 1rem; margin: 0; }
.toc-sec { padding-bottom: 0; }
.toc-sec + .section { border-top: 0; }
.toc-title { font-family: var(--text); font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 10px; }
.toc { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 6px; }
.changelog p { font-size: 1rem; color: var(--ink-soft); }
.wrap.read > h2 + p, .wrap.read > h2 + ul { margin-top: 0; }
@media print { .byline { color: #000 !important; } }

/* Header v2: utility bar, logo mark, red rule */
.topbar { background: var(--ink); color: #dfe4ef; font-size: 0.95rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.topbar-by { letter-spacing: 0.01em; }
.topbar-phone { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.topbar-phone:hover { color: var(--highlight); }
.topbar :focus-visible { outline-color: #fff; }
.site-header { border-bottom: 4px solid var(--accent); box-shadow: 0 2px 10px rgba(30, 41, 71, 0.08); position: relative; z-index: 2; }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 52px; height: 32px; flex: none; }
.brand-name { font-size: 1.65rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-accent { color: var(--accent); }
.site-nav ul { justify-content: flex-end; }
.site-nav a { font-weight: 700; font-size: 0.98rem; }
.site-nav a:hover { background: var(--accent-tint); color: var(--accent-dark); }
@media (max-width: 1180px) and (min-width: 901px) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: wrap; }
  .brand-name { font-size: 1.35rem; }
  .brand-mark { width: 42px; height: 26px; }
  .topbar-by { font-size: 0.85rem; }
}
@media (max-width: 420px) {
  .topbar-by { display: none; }
  .topbar .wrap { justify-content: center; }
  .brand-name { font-size: 1.2rem; }
}
@media print { .topbar { display: none !important; } }
@media (min-width: 1241px) {
  .site-nav ul { flex-wrap: nowrap; gap: 2px; }
  .site-nav a { padding: 10px 9px; font-size: 0.95rem; white-space: nowrap; }
  .site-nav .nav-cta a { padding: 10px 16px; margin-left: 8px; }
  .brand-name { font-size: 1.55rem; }
}
@media (max-width: 1240px) and (min-width: 901px) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: flex-start; }
}
.site-header .wrap, .topbar .wrap { max-width: 1320px; }
@media (max-width: 1319px) and (min-width: 901px) {
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: flex-start; flex-wrap: wrap; }
}
.wrap, .site-header .wrap, .topbar .wrap { max-width: 1240px; }
