/* Self-hosted fonts (SIL OFL) — no third-party font requests. */
@font-face { font-family: "Libre Franklin"; src: url("fonts/LibreFranklin-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/LibreFranklin-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/SourceSans3-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Design tokens: fixed by Core (Your Advocate v1.1, Civic Clear); site family derived from the pack's one colour. */
:root {
  --ink: #0B0C0C;
  --ink-secondary: #484949;
  --bg: #FFFFFF;
  --bg-grey: #F3F4F2;
  --border: #B1B4B6;
  --border-strong: #6F777B;
  --border-input: #0B0C0C;
  --link: #1A5C9E;
  --link-hover: #0F385F;
  --link-visited: #6B2C91;
  --focus: #FFDD00;
  --focus-text: #0B0C0C;
  --on-site: #FFFFFF;
  --emergency-ink: #8F2E22;
  --emergency-bg: #F7EAE6;
  --emergency-line: #ECD3CB;
  --site: #00703C;
  --site-dark: #004726;
  --site-tint: #EAF5F0;
  --font-heading: "Libre Franklin", Arial, "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", Arial, "Helvetica Neue", sans-serif;
}

/* Your Advocate v1.1 "Civic Clear" — the one Shell stylesheet (design/v1.1/HANDOFF.md step 2).
   Rebuilt from design/v1.1/design-system/components/bundle.css. The bundle's `ya-` components map onto
   the Shell's own class names (bundle -> here): ya-safety -> .safety, ya-network -> .network-bar,
   ya-band -> .site-band, ya-tabs -> .tabs, ya-crumbs -> .crumbs, ya-btn -> .btn, ya-notice/ya-panel ->
   .disclosure.notice, ya-steps -> .steps, ya-topics -> .topics, ya-pager -> .pager, ya-table ->
   .records/.facts-table, ya-checks -> .q-item, ya-writein -> .writein, ya-footer -> .site-footer.
   Parameterised only by the :root token block core/render.py prepends (fixed v1.1 colours + the site
   family derived from the pack's one colour; core/shell/theme.py). Plain CSS, no build step, no
   JavaScript anywhere. Rules that don't bend (tests/core/test_type_floor.py, test_targets.py):
   no text under 17px, body 19px, every tap target at least 56px tall, square corners, nothing moves. */

/* ---------- type, measure, space and target tokens (tokens.json) ---------- */
:root {
  --fs-body: 1.1875rem;      /* 19px body */
  --fs-lede: 1.5rem;         /* 24px lede */
  --fs-h1: 3rem;             /* 48px heading-xl (34px on phones) */
  --fs-h2: 2.125rem;         /* 34px heading-l */
  --fs-h3: 1.5625rem;        /* 25px heading-m */
  --fs-h4: 1.25rem;          /* 20px heading-s */
  --fs-pull: 1.5625rem;      /* 25px pull quote */
  --fs-button: 1.25rem;      /* 20px button */
  --fs-secondary: 1.1875rem; /* 19px: card copy, option text, checklist items — body size */
  --fs-meta: 1.0625rem;      /* 17px meta: sources, dates, captions, footer, bands; the smallest text */
  --fs-floor: 1.0625rem;     /* 17px: nothing on a screen is smaller */
  --fs-label: 1.0625rem;     /* 17px: labels, table headers; sentence case */
  --lh-body: 1.5; --lh-heading: 1.12;
  --measure: 66ch;
  --wrap: 1040px;
  --target: 56px;            /* every button, tab, topic row and nav link */
  --checkbox: 32px;
  --underline: 2px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-8: 48px; --space-10: 64px;
  --radius-none: 0px; --radius-round: 999px;
  --shadow-button: 0 3px 0 #0B0C0C;
  --shadow-button-secondary: 0 3px 0 #929191;
  --shadow-focus: 0 4px 0 #0B0C0C;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink); margin: 0; font-weight: 800; }
h3, h4 { font-weight: 700; }
p, ul, ol, dl { margin: 0; }
img, svg { max-width: 100%; }
em, i { font-style: normal; font-weight: 700; }   /* no italics for emphasis (brand book "Content") */

/* links: one colour on every site, always underlined, visited is distinct, hover thickens */
a { color: var(--link); text-decoration: underline; text-decoration-thickness: var(--underline); text-underline-offset: .18em; }
a:visited { color: var(--link-visited); }
a:hover { color: var(--link-hover); text-decoration-thickness: 4px; }
/* focus: yellow fill + black text + a 4px black bar, on every site and every ground */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid transparent; background: var(--focus) !important; color: var(--focus-text) !important;
  box-shadow: var(--shadow-focus) !important; text-decoration: none;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-5); }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-secondary); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: var(--fs-label); font-weight: 600; color: var(--ink-secondary); margin: 0 0 var(--space-3); }
.micro { font-size: var(--fs-label); font-weight: 600; color: var(--ink-secondary); }
.display { font-size: var(--fs-h1); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; max-width: 24ch; }
.section-h2 { font-size: var(--fs-h2); line-height: 1.15; font-weight: 800; }
.lede { font-size: var(--fs-lede); line-height: 1.4; color: var(--ink); max-width: 40ch; }
.body { color: var(--ink); }
.small { font-size: var(--fs-secondary); }
.meta { font-size: var(--fs-meta); line-height: 1.45; color: var(--ink-secondary); }
.legal { font-size: var(--fs-floor); color: var(--ink-secondary); }
.measure { max-width: var(--measure); }
.stack > * + * { margin-top: var(--space-4); }
.prose p + p { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--space-2); }

/* ---------- buttons (square, site-coloured, 56px; 64px "start") ---------- */
.btn, .btn:visited {
  display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--target); padding: 0 var(--space-5);
  border: 0; border-radius: var(--radius-none); font-family: var(--font-body); font-size: var(--fs-button); font-weight: 700;
  line-height: 1.2; text-decoration: none; cursor: pointer; margin-bottom: 3px;
}
.btn-primary, .btn-primary:visited { background: var(--site); color: var(--on-site); box-shadow: var(--shadow-button); }
.btn-primary:hover { background: var(--site-dark); color: var(--on-site); }
.btn-start { font-size: var(--fs-lede); padding: 0 28px; min-height: 64px; }
.btn-secondary, .btn-secondary:visited { background: var(--bg-grey); color: var(--ink); box-shadow: var(--shadow-button-secondary); }
.btn-secondary:hover { background: #DBDAD9; color: var(--ink); }
.btn-full { display: flex; width: 100%; justify-content: center; }

/* chips: topic and region pickers — square, outlined, a tap target each */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; list-style: none; }
.chip, .chip:visited {
  display: inline-flex; align-items: center; min-height: var(--target); padding: 0 var(--space-4);
  border: 2px solid var(--border-strong); background: var(--bg); color: var(--link); font-weight: 600; font-size: var(--fs-body);
}
.chip:hover { color: var(--link-hover); }
.chip[aria-current="page"] { background: var(--site-tint); border-color: var(--site); color: var(--ink); text-decoration: none; }
.chip-accent {
  display: inline-block; padding: 2px var(--space-2); border-left: 4px solid var(--site); background: var(--site-tint);
  color: var(--ink); font-size: var(--fs-meta); font-weight: 600;
}
.chip-never {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px var(--space-2); background: var(--bg-grey);
  color: var(--ink); font-size: var(--fs-meta); font-weight: 600; border: 1px solid var(--border-strong);
}
.icon-chip { display: none; }   /* decorative icons are gone in v1.1 (brand book "imagery") */

/* ---------- cards, panels, callouts ---------- */
.card { background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-none); padding: var(--space-5); }
.card-sm { padding: 20px; }
.card-lift:hover { border-color: var(--ink); }   /* a linked card: the edge darkens, nothing moves */
.card h3 { font-size: var(--fs-h4); line-height: 1.3; }
.panel, .callout {
  background: var(--bg-grey); padding: 20px var(--space-5); color: var(--ink); font-size: var(--fs-secondary);
}
.callout strong { color: var(--ink); }
/* the old dark band is now a quiet panel with the site's colour on the edge (colour beside words) */
.band-dark { background: var(--bg-grey); color: var(--ink); border-left: 6px solid var(--site); padding: var(--space-5) var(--space-6); }
.band-dark .micro { color: var(--ink-secondary); }
.band-dark .pull { font-family: var(--font-heading); font-size: var(--fs-pull); line-height: 1.3; font-weight: 700; margin: 10px 0 12px; }
.band-dark .foot { font-size: var(--fs-meta); color: var(--ink-secondary); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }

/* ---------- chrome 1: skip link + safety band (the emergency band: fixed, unchanged colours) ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--focus); color: var(--focus-text); padding: 10px 16px;
  z-index: 300; font-weight: 700; min-height: var(--target); display: inline-flex; align-items: center;
}
.skip:focus { left: 12px; top: 12px; }
.safety { background: var(--emergency-bg); border-bottom: 1px solid var(--emergency-line); color: var(--emergency-ink); font-size: var(--fs-meta); }
.safety .wrap { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-5); flex-wrap: wrap; }
.safety strong { font-weight: 700; }
.safety a, .safety a:visited { color: var(--emergency-ink); font-weight: 700; }
.safety .escape, .safety .escape:visited {
  margin-left: auto; background: var(--emergency-ink); color: #fff; padding: 0 18px; text-decoration: none;
  font-weight: 700; min-height: var(--target); display: inline-flex; align-items: center;
}
.escape-float, .escape-float:visited {
  position: fixed; right: 16px; bottom: 16px; z-index: 250; background: var(--emergency-ink); color: #fff;
  padding: 0 18px; font-weight: 700; text-decoration: none; min-height: var(--target);
  display: inline-flex; align-items: center; box-shadow: var(--shadow-button);
}

.site-header { display: block; }
.site-band .nav { display: block; }
/* ---------- chrome 2: the black "Your Advocate" bar, identical on every site ---------- */
.network-bar { background: #0B0C0C; color: #fff; }
.network-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--target); flex-wrap: wrap; }
.network-bar .brand, .network-bar .brand:visited {
  color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-h4);
  letter-spacing: -.01em; min-height: var(--target); display: inline-flex; align-items: center;
}
.network-bar .brand { gap: 10px; }
/* ADV-41: the logo marks are inline SVG from design/v1.1/logos/final, never resized out of square */
.ya-mark { flex: 0 0 auto; display: block; }
.network-bar nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.network-bar nav a, .network-bar nav a:visited { color: #fff; font-weight: 600; font-size: var(--fs-body); min-height: var(--target); display: inline-flex; align-items: center; }
.network-bar nav a:hover { color: #fff; }

/* ---------- chrome 3: the site band — the site's colour, its name, and the three doors as tabs ---------- */
.site-band { background: var(--site); color: var(--on-site); }
.site-band .wrap { padding-top: 22px; }
.site-title, .site-title:visited {
  display: inline-flex; align-items: center; min-height: var(--target); color: var(--on-site); text-decoration: none;
  font-family: var(--font-heading); font-weight: 800; font-size: 2rem; line-height: 1.1; letter-spacing: -.015em;
}
.site-title:hover { color: var(--on-site); text-decoration: underline; text-decoration-thickness: 3px; }
.tabs { display: flex; gap: var(--space-1); margin: var(--space-4) 0 0; flex-wrap: wrap; list-style: none; padding: 0; }
.tabs a, .tabs a:visited {
  color: var(--on-site); text-decoration: none; font-weight: 600; font-size: var(--fs-body); min-height: var(--target);
  padding: 0 var(--space-4); display: inline-flex; align-items: center;
}
.tabs a:hover { color: var(--on-site); text-decoration: underline; text-decoration-thickness: 3px; }
.tabs a[aria-current="page"] { background: var(--bg); color: var(--ink); box-shadow: inset 0 5px 0 var(--site-dark); }
.site-band .service-cta { margin: var(--space-3) 0; }

/* ---------- chrome 4: breadcrumbs (a supplement, never the only way back) ---------- */
.crumbs, .breadcrumb ol { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: var(--space-1) 0; font-size: var(--fs-meta); }
.crumbs li, .breadcrumb li { display: inline-flex; align-items: center; }
.crumbs li + li::before, .breadcrumb li + li::before {
  content: ""; width: 8px; height: 8px; border: solid var(--ink-secondary); border-width: 2px 2px 0 0;
  transform: rotate(45deg); margin: 0 14px 0 8px;
}
.crumbs [aria-current], .breadcrumb [aria-current] { color: var(--ink-secondary); }

/* ---------- chrome 5: the not-advice panel (the disclosure band, near the top of every page) ---------- */
.disclosure { display: flex; gap: var(--space-4); align-items: flex-start; background: var(--bg-grey); padding: 20px var(--space-5);
  font-weight: 700; color: var(--ink); margin: 0 0 var(--space-2); }
.disclosure .mark {
  flex: 0 0 36px; height: 36px; border-radius: var(--radius-round); background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 1.375rem;
}
.disclosure p { max-width: var(--measure); padding-top: 4px; }
.disclosure strong { color: var(--ink); }
main { display: block; }

/* ---------- chrome 6: footer, with the list of every Advocate site ---------- */
.site-footer { background: var(--bg-grey); border-top: 4px solid var(--site); margin-top: var(--space-10); color: var(--ink); font-size: var(--fs-meta); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: var(--space-6); padding-bottom: var(--space-5); }
.foot-name { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-h4); display: flex; align-items: center; gap: 10px; }
.ya-pattern { margin: 0 0 var(--space-5); }
.ya-pattern-svg { display: block; width: 100%; max-width: 640px; height: auto; }
.foot-about { max-width: 40ch; color: var(--ink); margin-top: var(--space-3); }
.foot-col h2, .foot-family h2 { font-family: var(--font-heading); font-size: var(--fs-h4); font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.foot-col a { display: flex; align-items: center; min-height: var(--target); }
/* ADV-42: a link inside the footer's about text stays inline, so the sentence's closing "." doesn't wrap onto its own line. */
.foot-about a { display: inline; }
.foot-family { padding-bottom: var(--space-5); }
.foot-legal { border-top: 1px solid var(--border); padding-top: 22px; padding-bottom: 44px; }
.foot-legal p { margin: 0 0 10px; max-width: 74ch; }
.foot-legal .disclaimer { color: var(--ink); font-size: var(--fs-meta); }
.foot-legal .disclaimer strong { color: var(--ink); }
.foot-legal .scam-help { color: var(--ink); font-size: var(--fs-meta); }
.foot-legal .emergency { color: var(--emergency-ink); font-weight: 600; }
.foot-legal .meta { font-size: var(--fs-meta); color: var(--ink-secondary); }

/* ---------- topic list: big rows with a colour key (www and every footer) ---------- */
.topics { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.topics li { border-bottom: 1px solid var(--border); }
.topics a, .topics a:visited {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 18px; align-items: center; min-height: 72px;
  padding: var(--space-3) var(--space-2) var(--space-3) 0; text-decoration: none; color: var(--ink);
}
.topics .key { width: 14px; align-self: stretch; }   /* colour: the .key-<id> rules appended by family.key_css */
.topics .name {
  display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.4375rem; line-height: 1.25; color: var(--link);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em;
}
.topics a:visited .name { color: var(--link-visited); }
.topics a:hover .name { text-decoration-thickness: 4px; }
.topics .what { display: block; font-size: 1.125rem; color: var(--ink-secondary); margin-top: 2px; }
.topics .chev { width: 14px; height: 14px; border: solid var(--ink); border-width: 3px 3px 0 0; transform: rotate(45deg); margin-right: 10px; }
.topics-group h3 { font-size: var(--fs-h4); margin: 0 0 var(--space-2); }
.topics-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.site-footer .topics .name { font-size: var(--fs-h4); }
.site-footer .topics a { min-height: var(--target); }

/* ---------- numbered steps (the three doors on a site's front page) ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; max-width: 760px; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); padding: 18px 0; border-top: 1px solid var(--border); }
.steps > li:last-child { border-bottom: 1px solid var(--border); }
.steps > li::before {
  content: counter(s); width: 44px; height: 44px; border-radius: var(--radius-round); border: 3px solid var(--site);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800;
  font-size: var(--fs-h4); color: var(--ink); background: var(--bg);
}
.steps h2, .steps h3 { font-size: 1.375rem; line-height: 1.3; font-weight: 700; margin-bottom: var(--space-1); }
.steps p + p, .steps p + a, .steps .go { margin-top: var(--space-2); }
.steps .go { display: inline-flex; align-items: center; min-height: var(--target); font-weight: 700; }

/* ---------- the situation layout (v1.1 preview: home + Understand) ----------
   h1 · numbered steps · Start now · the not-advice panel, in that order. */
.situation { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.situation > .display + .steps, .situation > .lede + .doors-wrap { margin-top: var(--space-5); }
.situation .doors-wrap { padding-bottom: 0; }
.situation .steps h2 a { display: inline-flex; align-items: center; min-height: var(--target); }
.start-row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.btn-start svg { flex: none; }
.situation > .disclosure { margin-top: var(--space-5); max-width: 760px; }

/* ---------- previous / next ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); border-top: 1px solid var(--border); padding-top: 20px; margin-top: var(--space-8); }
.pager a, .pager a:visited { display: flex; flex-direction: column; gap: 2px; min-height: 80px; padding: var(--space-3) 0; text-decoration: none; }
.pager .dir { font-weight: 700; font-size: var(--fs-button); color: var(--ink); }
.pager .to { font-size: var(--fs-body); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.pager a:hover .to { text-decoration-thickness: 4px; }
.pager .prev { align-items: flex-start; }
.pager .next { text-align: right; align-items: flex-end; grid-column: 2; }

/* ---------- T1 Home ---------- */
.hero { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.hero .lede { margin-top: 20px; }
.hero .cta-row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: 28px; }
.promise-wrap { padding-bottom: var(--space-8); }
.promise { padding: var(--space-6); }
.promise-head { margin-bottom: 20px; }
.promise-head h2 { font-size: var(--fs-h2); line-height: 1.15; }
.promise-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.promise-col + .promise-col { border-left: 1px solid var(--border); padding-left: var(--space-6); }
.promise-col h3 { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-h3); line-height: 1.25; margin-bottom: 14px; }
.promise-list { list-style: none; padding: 0; }
.promise-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-2) 0; color: var(--ink); font-size: var(--fs-secondary); }
.promise-list li svg { flex: 0 0 auto; margin-top: 5px; }
.list-do li svg { color: var(--site); }
.list-never li svg { color: var(--ink-secondary); }
.promise-note { margin-top: 18px; padding-top: var(--space-4); border-top: 1px solid var(--border); color: var(--ink-secondary); font-size: var(--fs-secondary); }
.doors-wrap { padding-bottom: var(--space-8); }
.doors-head { margin-bottom: var(--space-5); }
.doors-head h2 { font-size: var(--fs-h2); line-height: 1.15; }
.doors-head p { color: var(--ink-secondary); margin-top: 6px; }
.door { display: flex; flex-direction: column; gap: 14px; }
.door p { color: var(--ink); font-size: var(--fs-secondary); flex: 1 1 auto; }
.go { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-height: var(--target); }
.checklists-wrap { padding-top: var(--space-6); padding-bottom: var(--space-8); }
.checklists { list-style: none; margin: 0; padding: 0; }
.checklists .door h2 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; }
.checklists .door h2 a { display: inline-flex; min-height: var(--target); align-items: center; }
.checklists .door .hint { display: flex; align-items: center; gap: var(--space-2); color: var(--ink-secondary); font-size: var(--fs-meta); flex: 0 0 auto; }
.reassure-wrap { padding-bottom: var(--space-5); }
.reassure-band { display: flex; align-items: center; gap: 14px; background: var(--bg-grey); padding: 20px var(--space-5); color: var(--ink); font-size: var(--fs-secondary); }

/* ---------- T2 Find ---------- */
.intro { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.intro .lede { margin-top: var(--space-4); }
.section { padding-bottom: var(--space-8); }
.section > h2 { margin-bottom: var(--space-4); }
.uq-wrap { padding-bottom: var(--space-8); }
.resource-card { display: flex; flex-direction: column; gap: 10px; }
.resource-card h3 { font-size: var(--fs-h4); line-height: 1.3; }
.resource-card h3 a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--target); }
.resource-card p { color: var(--ink); font-size: var(--fs-secondary); }
.finder-controls .hint { color: var(--ink-secondary); font-size: var(--fs-meta); margin-top: var(--space-3); }
.finder-controls .label { display: block; font-weight: 700; margin-bottom: 10px; color: var(--ink); font-size: var(--fs-body); }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin: var(--space-2) 0 var(--space-3); color: var(--ink-secondary); font-size: var(--fs-meta); }
.table-wrap { overflow-x: auto; background: var(--bg); }
.records, .facts-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.records caption, .facts-table caption {
  caption-side: top; text-align: left; padding: 0 0 var(--space-3); color: var(--ink-secondary); font-size: var(--fs-meta);
}
.records th, .facts-table th {
  text-align: left; vertical-align: bottom; font-size: var(--fs-meta); font-weight: 700; color: var(--ink);
  padding: 14px 20px 14px 0; border-bottom: 2px solid var(--ink);
}
.records td, .facts-table td { text-align: left; vertical-align: top; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--border); color: var(--ink); }
.records .who { font-weight: 700; color: var(--ink); }
.records .id { font-variant-numeric: tabular-nums; white-space: nowrap; }
.records .src { color: var(--ink-secondary); font-size: var(--fs-meta); white-space: nowrap; }
.empty-state { border: 2px dashed var(--border-strong); padding: var(--space-5); color: var(--ink); }
.results-section { padding-bottom: 40px; }
.results-section h2 { font-size: var(--fs-h2); line-height: 1.15; margin-bottom: var(--space-3); }
.source-note { padding-bottom: var(--space-5); }

/* ---------- T3 Understand ---------- */
.title-band { padding: var(--space-6) 0 var(--space-6); }
.title-band .lede { margin-top: 14px; }
.title-band .callout { margin-top: 22px; max-width: 78ch; }
.topic-picker { margin-top: var(--space-5); }
.topic-picker .label { display: block; font-weight: 700; font-size: var(--fs-body); color: var(--ink); margin-bottom: 10px; }
.topic-picker .hint { color: var(--ink-secondary); font-size: var(--fs-meta); margin-top: 10px; }
.guide-body { display: grid; grid-template-columns: 260px minmax(0, 680px); gap: var(--space-8); padding-top: var(--space-6); align-items: start; }
.toc h2 { font-family: var(--font-heading); font-size: var(--fs-h4); color: var(--ink); font-weight: 700; margin-bottom: var(--space-3); }
.toc ol { list-style: none; padding: 0; border-top: 1px solid var(--border); }
.toc li { border-bottom: 1px solid var(--border); }
.toc a { display: flex; gap: 10px; align-items: center; min-height: var(--target); padding: var(--space-1) 0; font-size: var(--fs-body); }
.toc .n { font-variant-numeric: tabular-nums; color: var(--ink-secondary); font-size: var(--fs-meta); font-weight: 600; }
.toc .shortcut { margin-top: var(--space-4); }
.toc .shortcut a { font-weight: 700; }
.article { max-width: 680px; }
.article .section { padding: 0 0 var(--space-8); }
.article .section h2 { display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; }
.article .section h2 .n { font-family: var(--font-body); font-size: var(--fs-meta); font-weight: 600; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.article p, .article li, .article dd { color: var(--ink); }
.article .note { color: var(--ink-secondary); font-size: var(--fs-meta); margin-top: var(--space-4); }
.fact-cards { margin-top: 20px; }
.callout-reassure { display: flex; gap: var(--space-3); align-items: flex-start; margin-top: 20px; }
.callout-reassure svg { display: none; }
.glossary { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 20px; }
.glossary dt, .glossary dd { padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.glossary dt { font-weight: 700; color: var(--ink); }
.glossary dd { margin: 0; }
/* ADV-20: a long unbroken value (an e-mail address, a URL) wraps instead of widening the column. */
.glossary dt, .glossary dd { min-width: 0; overflow-wrap: anywhere; }
.options-strip { margin: 18px 0 20px; font-size: var(--fs-secondary); font-weight: 700; padding: var(--space-4) 20px; }
.option-card { display: flex; flex-direction: column; gap: 10px; padding: 0; }
.option-card .in { padding: 20px 22px 6px; }
.option-tag { display: block; font-size: var(--fs-meta); font-weight: 600; color: var(--ink-secondary); margin-bottom: var(--space-2); }
.option-card h3 { font-size: var(--fs-h4); line-height: 1.3; margin-bottom: var(--space-2); }
.option-card p { color: var(--ink); font-size: var(--fs-secondary); }
.option-foot { margin-top: auto; background: var(--site-tint); border-top: 1px solid var(--border); color: var(--ink); font-weight: 700; font-size: var(--fs-meta); padding: var(--space-3) 22px; }
.spec-card { margin-top: 18px; }
.spec-card h3 { font-size: var(--fs-h4); line-height: 1.3; margin-bottom: var(--space-3); }
.spec-card ul { list-style: none; padding: 0; }
.spec-card li { position: relative; padding-left: 20px; margin: 10px 0; }
.spec-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--site); }
.article .cta { margin-top: 22px; }
.expect-list { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.expect-card { display: flex; gap: 14px; align-items: flex-start; }
.expect-card h3 { margin-bottom: var(--space-1); }
.sources-list { padding-left: 1.4em; font-size: var(--fs-meta); }
.sources-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sources-list li::marker { color: var(--ink-secondary); font-variant-numeric: tabular-nums; }

/* ---------- Article (resource page) ---------- */
.article-page { padding-top: var(--space-6); }
.article-page .article .section h2 { display: block; }

/* ---------- A to Z page (the per-site "Search" link) ---------- */
.az-pages { padding-top: var(--space-5); padding-bottom: var(--space-8); max-width: 760px; }
.az-pages .topics a { grid-template-columns: 1fr auto; min-height: var(--target); }

/* ---------- T4 Questions (print-first) ---------- */
.q-header { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); padding-top: var(--space-6); padding-bottom: var(--space-5); flex-wrap: wrap; }
.q-header .lede { margin-top: 14px; }
.print-hint { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.print-hint .btn { pointer-events: none; }
.print-hint .hint { color: var(--ink-secondary); font-size: var(--fs-meta); max-width: 34ch; }
.print-only { display: none; }
.tip-strip { padding-bottom: 28px; }
.tip-strip .callout { display: flex; gap: var(--space-3); align-items: flex-start; }
.tip-strip svg { display: none; }
.q-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); padding-bottom: var(--space-5); }
.q-group h2, .q-group h3 { display: flex; gap: var(--space-3); align-items: baseline; font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; padding-bottom: var(--space-3); border-bottom: 2px solid var(--ink); margin-bottom: var(--space-3); }
.q-group h2 .n, .q-group h3 .n { font-family: var(--font-body); font-size: var(--fs-meta); font-weight: 600; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.q-list { list-style: none; padding: 0; }
.q-item { display: flex; gap: 14px; align-items: flex-start; padding: var(--space-2) 0; color: var(--ink); font-size: var(--fs-secondary); }
.q-item input[type="checkbox"] { width: var(--checkbox); height: var(--checkbox); margin: 0; accent-color: var(--ink); flex: 0 0 auto; }
.q-item label { cursor: pointer; padding-top: 2px; }
.writein { list-style: none; padding: 0; }
.writein li { height: 48px; border-bottom: 2px solid var(--border-strong); }
.q-foot { padding-top: var(--space-2); }

/* ---------- the email-only house-help offer (ADV-36; core/shell/offer.py) — home's front page AND www ---------- */
.hero-help { margin-top: 18px; font-size: var(--fs-secondary); color: var(--ink-secondary); }
.hero-help a { font-weight: 700; color: var(--ink); }
.offer-handoff { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); font-size: var(--fs-secondary); color: var(--ink); }
.offer-handoff a { font-weight: 700; color: var(--ink); }
.help-band-wrap { margin-top: 40px; }
.help-band { background: var(--site-tint); border-left: 6px solid var(--site); padding: 24px 28px; }
.help-band .eyebrow { color: var(--ink); }
.help-band h2 { margin-top: 4px; }
.help-band-list { margin: 12px 0 0; padding-left: 24px; font-size: var(--fs-lede); color: var(--ink); }
.help-band-list li { margin-top: 6px; }
.help-band p { margin-top: 14px; font-size: var(--fs-secondary); color: var(--ink); max-width: 70ch; }
.help-band .go { font-weight: 700; color: var(--ink); }
.help-band-sign { font-weight: 700; }
.offer { margin-top: 56px; background: var(--site-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px 0; }
.offer .lead-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.offer .eyebrow { color: var(--ink); }
.offer h2 { font-family: var(--font-heading); font-size: var(--fs-h2); line-height: 1.18; color: var(--ink); margin-top: 6px; }
.offer h3 { font-family: var(--font-heading); font-size: var(--fs-h3); line-height: 1.25; color: var(--ink); margin-top: 24px; }
.offer .pitch { margin-top: 12px; font-size: var(--fs-lede); color: var(--ink); line-height: 1.5; }
.offer-list { margin: 10px 0 0; padding-left: 24px; font-size: var(--fs-secondary); color: var(--ink); }
.offer-list li { margin-top: 6px; }
.offer-note, .offer-parent { margin-top: 14px; font-size: var(--fs-secondary); color: var(--ink); max-width: 70ch; }
.offer .lead-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.offer .lead-facts > li { background: var(--bg); border: 1px solid var(--border); border-radius: 0; padding: 14px 16px; font-size: var(--fs-secondary); color: var(--ink); }
.offer .lead-facts > li > strong { display: block; color: var(--ink); }
.offer .coi { margin-top: 18px; font-size: var(--fs-meta); color: var(--ink-secondary); max-width: 70ch; }
@media (max-width: 900px) { .offer .lead-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- forms (microsite capture form; the www lead form styles live in network.css) ---------- */
.field label, .field legend { font-weight: 700; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  font: inherit; font-size: var(--fs-body); color: var(--ink); background: #fff; border: 2px solid var(--border-input);
  border-radius: var(--radius-none); min-height: var(--target); padding: 0 14px;
}
textarea { padding: 10px 14px; }

/* ---------- phones (shell spec §6.2) ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3, .promise-cols, .q-grid { grid-template-columns: 1fr; }
  .promise-col + .promise-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: var(--space-5); }
  .guide-body { grid-template-columns: 1fr; gap: var(--space-5); }
  .glossary { grid-template-columns: minmax(0, 1fr); }
  .glossary dt { border-bottom: 0; padding-bottom: 2px; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 var(--space-4); }
  .display { font-size: 2.125rem; }
  .site-title { font-size: 1.625rem; }
  .tabs { flex-direction: column; gap: 0; }
  .tabs a { width: 100%; border-top: 1px solid rgba(255,255,255,.35); }
  .btn { display: flex; width: 100%; justify-content: center; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .safety .escape { margin-left: 0; }
}

/* ---------- print (brand book "Print is a feature"; shell spec §3.4, §6.4) ---------- */
@media print {
  @page { margin: 18mm 16mm; }
  html { font-size: 12.5pt; }
  /* 1. The tabs, search and buttons go; the network bar keeps only "Your Advocate"; the not-advice
        panel and the footer disclaimer stay. */
  body { background: #fff !important; color: #000 !important; font-size: 12.5pt; line-height: 1.45; }
  .no-print, .skip, .safety, .escape-float, .network-bar nav, .tabs, .crumbs, .btn, .service-cta, .pager,
  .foot-grid, .foot-family, .tip-strip, .print-hint, .toc, .topic-picker, .reassure-wrap, .cta, .cta-row, .near-you
    { display: none !important; }
  .network-bar { background: #fff !important; color: #000 !important; }
  .network-bar .brand { color: #000 !important; font-size: 11pt; min-height: 0; }
  .network-bar .ya-mark, .ya-pattern { display: none !important; }   /* print uses the mono mark */
  /* 2. The site band becomes a black rule with the site name. */
  .site-band { background: #fff !important; color: #000 !important; border-bottom: 3px solid #000; }
  .site-band .wrap { padding-top: 0; }
  .site-title { color: #000 !important; font-size: 18pt; min-height: 0; }
  /* 3. Black ink only, so a mono printer and a photocopy cope. */
  h1, h2, h3, p, li, dt, dd, td, th, .eyebrow, .micro, .meta, .legal, .lede, .callout, .option-foot, .chip,
  .chip-accent, .chip-never, .band-dark, .band-dark .micro, .band-dark .pull, .band-dark .foot, .foot-legal .emergency,
  .article .section h2 .n, .q-group h2 .n, .q-group h3 .n, .toc .n, .option-tag, .disclosure
    { color: #000 !important; background: #fff !important; }
  .card, .option-card, .callout, .band-dark, .table-wrap, .chip, .chip-accent, .chip-never, .disclosure
    { border: 1px solid #000 !important; box-shadow: none !important; }
  .disclosure .mark { background: #000 !important; color: #fff !important; }
  .records th, .facts-table th { background: #fff !important; border-bottom: 1px solid #000; }
  .icon-chip { display: none !important; }
  /* 4. Links: underlined, and the address printed after any link that leaves the site. */
  a { color: #000 !important; text-decoration: underline; }
  .article a[href^="http"]::after, .sources-list a[href^="http"]::after, .go[href^="http"]::after, .steps a[href^="http"]::after
    { content: " (" attr(href) ")"; font-size: 10pt; word-break: break-all; }
  /* 5. Page breaks: headings stay with their text; cards and question groups never split. */
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  .card, .option-card, .q-group, .callout, .band-dark, .fact-cards > *, .expect-card, .steps > li
    { break-inside: avoid; page-break-inside: avoid; margin-bottom: 12pt; }
  .article .section { page-break-inside: auto; }
  /* 6. Type in points, one column, full measure. */
  .display { font-size: 24pt; line-height: 1.15; }
  .section-h2 { font-size: 17pt; }
  h3, .card h3 { font-size: 13.5pt; }
  .lede { font-size: 13.5pt; }
  .meta, .legal, .foot-legal .meta, .records, .facts-table { font-size: 10.5pt; }
  .q-grid, .guide-body, .grid-2, .grid-3, .promise-cols, .glossary { display: block; }
  .article, .lede, .measure, .foot-legal p, .display { max-width: none; }
  .wrap { padding: 0; }
  .title-band, .article-page, .hero, .intro, .section, .results-section
    { padding-left: 0; padding-right: 0; background: #fff; border: 0; }
  .site-footer { margin-top: 18pt; border-top: 1pt solid #000; background: #fff !important; }
  .foot-legal { padding: 8pt 0 0; }
  /* The print masthead (.print-only) wherever a template emits one (T4 today). */
  .print-only { display: flex; justify-content: space-between; align-items: baseline; gap: 12pt; flex-wrap: wrap;
                border-bottom: 2px solid #000; padding-bottom: 6pt; margin: 0 0 14pt; font-size: 10.5pt; }
  .print-only .name { font-family: var(--font-heading); font-weight: 800; font-size: 14pt; display: inline-flex; align-items: center; gap: 8pt; }
  .print-only .blank { float: none; margin-left: auto; }
  /* 7. Checklists survive as paper forms. */
  .q-item input[type="checkbox"] { -webkit-appearance: none; appearance: none; border: 1.5pt solid #000; width: 12pt; height: 12pt; }
  .writein li { border-bottom: 1pt solid #000; height: 28pt; }
}

/* Every Advocate site's colour, for the colour keys in topic lists (network/advocs.yaml). */
:root { --site-home: #00703C; --site-downsizing: #8A1F6B; --site-health: #005B5C; --site-eldercare: #1D4F91; --site-estate: #4C2C92; --site-probate: #33475B; }
.key-home { background: var(--site-home); }
.key-downsizing { background: var(--site-downsizing); }
.key-health { background: var(--site-health); }
.key-eldercare { background: var(--site-eldercare); }
.key-estate { background: var(--site-estate); }
.key-probate { background: var(--site-probate); }
