/* skin-mydev.css — MyDev's own production CSS (tokens+components+site, fetched 2026-11-24) under the estate layer order, plus the Wave 2 stepper additions. Vendored by the Visual Elevation desk. */
@layer skin {
/* ============================================================
   MyDev Codes — design tokens (consolidated /css/ system)
   Site 10 visual elevation (Two Streams): the legacy CSS layer
   (style.css, brand-refresh.css, fonts.css + the dormant css/
   trio) consolidated into /css/tokens.css, /css/components.css,
   /css/site.css. Structure mirrors the Site 8 sibling contract:
   this file's skeleton is the shared base; the parameters are
   this property's own (Space Grotesk display, Inter body, the
   paper/ink/brand palette the pages already carry).
   @font-face folded in from the retired /fonts.css, with the
   font cure applied: Space Grotesk ships as a subset .woff2
   (variable 300–700), Inter as the restored latin .woff2.
   OFL licences: /fonts/OFL-Inter.txt, /fonts/OFL-SpaceGrotesk.txt.
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  /* ---- Brand: the property's own blue (pages' --brand) ---- */
  --brand-600: #385f83;   /* primary actions, links */
  --brand-700: #2c4a68;   /* hover states, strong */
  --brand-50:  #eef3f8;   /* tinted surfaces */
  --brand-100: #d8e4f0;
  --accent-500: #678dcb;  /* stream-out blue (incumbent split) */
  --stream-in: #355e9b;   /* input stream (incumbent split) */
  --stream-out: #678dcb;  /* output stream (incumbent split) */
  --error: #b91c1c;

  /* ---- Neutrals: warm slate anchored on the property ink ---- */
  --ink-950: #101d20;
  --ink-900: #172f33;
  --ink-700: #33484d;
  --ink-500: #526568;
  --ink-400: #7d8b8e;
  --paper:   #f7f5ed;
  --paper-2: #efece1;   /* alt section background */
  --line:    #ccd3ca;   /* hairlines */

  /* ---- Front-End Standard aliases (the ported base rules) ---- */
  --brand: var(--brand-600);
  --brand-strong: var(--brand-700);
  --focus: var(--brand-700);
  --surface: #ffffff;
  --ink: var(--ink-900);
  --muted: var(--ink-500);
  --wrap: var(--container);
  --radius-s: var(--radius-sm);
  --radius-m: var(--radius-md);
  --radius-l: var(--radius-lg);
  --shadow-1: var(--shadow-sm);
  --shadow-2: var(--shadow-md);
  --dur-1: 120ms;
  --dur-2: var(--dur);
  --dur-3: 320ms;

  /* ---- Type ---- */
  --font-display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Fluid scale — display shrinks gracefully on mobile */
  --text-hero:    clamp(2.5rem, 1.4rem + 5vw, 4.5rem);
  --text-h1:      clamp(2rem, 1.3rem + 3.2vw, 3.25rem);
  --text-h2:      clamp(1.5rem, 1.15rem + 1.8vw, 2.25rem);
  --text-h3:      1.25rem;
  --text-lead:    clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --text-body:    1rem;
  --text-small:   0.875rem;
  --text-caption: 0.75rem;

  --leading-tight: 1.05;
  --leading-snug:  1.25;
  --leading-body:  1.65;

  --tracking-display: -0.02em;

  /* ---- Spacing (8pt) ---- */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s6: 1.5rem;  --s8: 2rem;   --s12: 3rem;  --s16: 4rem;
  --s24: 6rem;   --s32: 8rem;

  --section-pad: clamp(3.5rem, 2rem + 6vw, 7rem);
  --container: 72rem;          /* 1152px */
  --container-narrow: 44rem;

  /* ---- Shape & depth ---- */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(23 47 51 / 0.06);
  --shadow-md: 0 6px 24px -8px rgb(23 47 51 / 0.14);
  --shadow-lg: 0 24px 64px -24px rgb(23 47 51 / 0.22);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   MyDev Codes — components (the standard page system)
   Ported from the property's shipped base rules (/style.css),
   with the consolidation changes recorded for Site 10:
   - the template-placeholder tokens resolve to real values
     via tokens.css aliases (--brand-strong, --focus);
   - body text renders in Inter (the file the pages already
     load), headings and the brand in Space Grotesk (D5);
   - the blue re-skin layer (/brand-refresh.css) is retired:
     its component behaviour (hero rhythm, card hover lift)
     is re-expressed here in the property palette; its colour
     overrides are dropped.
   Pairs with /css/tokens.css + /css/site.css. Article-only
   rules live in site.css under body.article scope.
   ============================================================ */

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

[hidden] { display: none !important; }

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

button, input, select, textarea { font: inherit; }

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); line-height: var(--leading-snug); }
h1, h2 { text-wrap: balance; letter-spacing: var(--tracking-display); }
h1 { font-weight: 700; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
p { text-wrap: pretty; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  background: var(--ink-900); color: #fff;
  padding: 10px 14px; border-radius: 999px;
}
.skip:focus { top: 12px; color: #fff; }

/* ---- Layout ---- */
main { display: block; }
.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}
main article { margin-top: 28px; }

/* ---- Standard page components ---- */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem); }
.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-600);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.02; margin: 0 0 18px; max-width: 12ch; }
h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); margin: 42px 0 12px; }
h3 { font-size: 1.05rem; margin: 24px 0 7px; }
p, li { max-width: 72ch; }
.lead { color: var(--muted); font-size: var(--text-lead); max-width: 62ch; }

.button, button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 18px;
  border: 1px solid var(--brand-600); border-radius: 999px;
  background: var(--brand-600); color: #fff;
  font-weight: 750; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-1) ease, background var(--dur-1) ease, border-color var(--dur-1) ease;
}
.button:hover, button:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.button.secondary, button.secondary { background: transparent; color: var(--brand-700); }
.button.secondary:hover, button.secondary:hover { background: var(--brand-50); color: var(--brand-700); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 26px 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 20px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.prose { max-width: var(--container-narrow); }
.tool {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow-2);
}
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
label { display: grid; gap: 7px; font-weight: 700; }
input, select, textarea {
  width: 100%; border: 1px solid #aeb9ae; border-radius: 12px;
  background: #fff; color: var(--ink-900);
  padding: 11px 12px; min-height: 46px;
}
output {
  display: block; white-space: pre-wrap;
  margin-top: 18px; padding: 16px;
  border: 1px dashed var(--brand-600); border-radius: var(--radius-m);
  background: var(--brand-50);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.note { color: var(--muted); font-size: var(--text-small); }
.breadcrumbs { color: var(--muted); font-size: var(--text-small); }
.sources { font-size: var(--text-small); color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 24px 0; }
.facts div { border-top: 3px solid var(--brand-600); padding-top: 10px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 800; }
.check-item { display: flex; gap: 10px; align-items: flex-start; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; }
legend { font-weight: 800; padding: 0 6px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.print-note { display: none; }
.to-top { font-size: var(--text-small); }
.mono { font-family: var(--font-mono); }

/* ---- Chrome (standard header / footer) ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 14px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink-900); text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -.02em; font-size: 1.1rem;
}
.brand:hover { color: var(--ink-900); text-decoration: underline; text-underline-offset: 4px; }
.brand .brand-glyph { flex: none; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-900); text-decoration: none; font-weight: 650; padding: 8px 10px; border-radius: 999px; }
.site-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--surface); color: var(--ink-900);
}
.nav-toggle:hover { background: var(--brand-50); color: var(--ink-900); }
.nav-toggle svg { width: 22px; height: 22px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding-block: 30px 42px; color: var(--muted); }
.site-footer p { max-width: none; }
.site-footer a { color: var(--ink-900); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 20px; right: 20px; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
    box-shadow: var(--shadow-2); padding: 10px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .header-in { position: relative; }
}

/* ---- Utilities ---- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-3) ease, transform var(--dur-3) ease;
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* A9-C5 (estate audit 2026-11-11): the footer nav had no rule at all —
   its links rendered as 20px inline targets, and the adjacent
   Contact/Privacy pair failed WCAG 2.5.8 even under the spacing
   exception. Give the nav a flex row and 24px-minimum targets. */
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 28px; padding-block: 2px; }

/* ============================================================
   MyDev Codes — site layer (Two Streams components + articles)
   The design components of the Site 10 adoption live here,
   isolated under their component selectors per the sibling
   contract: .stream-diagram, .estimate-card, .announce.
   The article system (the four guide articles' class set) is
   ported from the property's dormant foundation files and
   scoped under body.article so its class collisions with the
   standard system resolve locally.
   ============================================================ */

/* ---- Homepage quick calculator panel ---- */
.quick-calc {
  margin-block: 30px 10px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
}
.quick-calc h2 { margin-top: 0; }
.quick-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.quick-fields label { font-size: var(--text-small); }
.new-guides { margin-top: clamp(3rem, 8vw, 5.5rem); }
.new-guides .cards { margin-top: 18px; }

/* ============================================================
   Stream diagram — the hero figure (Condition 2).
   Two flows join at an explicit + ; each stream line prints
   its full equation with the ÷ 1,000,000 factor. Texture —
   solid vs dashed rules — distinguishes the streams, never
   colour alone.
   ============================================================ */
.stream-diagram {
  margin: 26px 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.stream-diagram-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.stream-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-left: 14px; }
.stream-row-in { border-left: 4px solid var(--stream-in); }
.stream-row-out { border-left: 4px dashed var(--stream-out); }
.stream-chip {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.stream-eq { font-family: var(--font-mono); font-size: 0.9375rem; color: var(--ink-700); }
.stream-join {
  margin: 2px 0 2px 16px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-700);
}
.stream-total {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-900);
}

/* ============================================================
   Estimate card — the self-contained printable record
   (Conditions 1, 3, 5). State gate: pre-run shows the labelled
   invented example as an equal-weight ledger with NO bar;
   post-run shows the proportional bar of the visitor's own
   values with $ and % labels. The exclusions list and the
   printed formula live INSIDE the card border.
   ============================================================ */
.estimate-card {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-600);
  border-radius: var(--radius-l);
}
.estimate-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.estimate-card-head h3 { margin: 0; font-size: 1.15rem; }
.estimate-badge {
  flex: none;
  padding: 4px 10px;
  border: 1.5px dashed var(--brand-600);
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: .02em;
}
.estimate-params {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 18px;
  margin: 14px 0 4px;
}
.estimate-params div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding-bottom: 4px; }
.estimate-params dt { color: var(--ink-500); font-size: var(--text-small); }
.estimate-params dd { margin: 0; font-family: var(--font-mono); font-size: var(--text-small); font-weight: 700; }
.estimate-streams { margin: 12px 0 0; }
.stream-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0 8px 14px; }
.stream-line + .stream-line { margin-top: 2px; }
.stream-line-in { border-left: 4px solid var(--stream-in); }
.stream-line-out { border-left: 4px dashed var(--stream-out); }
.stream-line-name { font-weight: 700; }
.stream-line-formula { display: block; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-500); font-weight: 400; }
.stream-line-amount { font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.stream-bar { display: flex; height: 14px; margin-top: 12px; border-radius: var(--radius-pill); overflow: hidden; background: var(--paper-2); }
.stream-seg-in { background: var(--stream-in); }
.stream-seg-out { background: var(--stream-out); }
.stream-bar-labels { display: flex; justify-content: space-between; gap: 14px; margin-top: 6px; font-size: var(--text-small); }
.stream-bar-labels .lbl-in::before,
.stream-bar-labels .lbl-out::before {
  content: ""; display: inline-block; width: 10px; height: 10px;
  border-radius: 2px; margin-right: 6px;
}
.stream-bar-labels .lbl-in::before { background: var(--stream-in); }
.stream-bar-labels .lbl-out::before { background: var(--stream-out); }
.estimate-totals { margin-top: 14px; border-top: 1px solid var(--line); }
.estimate-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 7px 0; border-bottom: 1px dotted var(--line); }
.estimate-total-row:last-child { border-bottom: 0; }
.estimate-total-row dt { color: var(--ink-700); font-size: var(--text-small); }
.estimate-total-row dd { margin: 0; font-family: var(--font-mono); font-weight: 700; }
.estimate-total-main dd { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-900); }
.estimate-formula { margin: 12px 0 0; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-700); }
.estimate-exclusions { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.estimate-exclusions h4 { margin: 0 0 6px; font-size: var(--text-small); font-family: var(--font-body); }
.estimate-exclusions ul { margin: 0; padding-left: 18px; columns: 2; column-gap: 28px; font-size: var(--text-small); color: var(--ink-700); }
.estimate-exclusions li { break-inside: avoid; }
@media (max-width: 560px) { .estimate-exclusions ul { columns: 1; } }

/* ============================================================
   Announce — the tool-announcement capture (D3; Site 8 pattern,
   this property's chrome). Announcements only; no SLA.
   ============================================================ */
.announce {
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.announce h3 { margin: 0 0 4px; font-size: 1.1rem; }
.announce .note { margin: 0 0 12px; }
.announce-badge {
  display: inline-block; padding: 3px 9px; margin-bottom: 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-50); color: var(--brand-700);
  font-size: var(--text-caption); font-weight: 700;
}
.announce-form { display: grid; gap: 12px; max-width: 34rem; }
.announce-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: var(--text-small); }
.announce-form .consent input { width: auto; min-height: 0; margin-top: 3px; }
.field-error { color: var(--error); font-size: var(--text-small); font-weight: 700; }
.announce .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ref-line { font-size: 1.05rem; }

/* ============================================================
   Article system — ported from the property's dormant
   foundation (bundle css/components.css + css/site.css),
   re-parameterized on the consolidated tokens. Classes used
   only by the four articles are unscoped; the colliding ones
   (.site-header, .site-nav, .nav-toggle, .breadcrumbs,
   .eyebrow, .footer-base) are scoped to body.article.
   ============================================================ */
.container { width: min(var(--container), 100% - 3rem); margin-inline: auto; }

body.article .site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s6); min-height: 4.25rem;
}
.brandmark { display: inline-flex; align-items: center; gap: var(--s3); font-family: var(--font-display); font-weight: 700; color: var(--ink-950); text-decoration: none; }
.brandmark-mark {
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  background: var(--brand-600); color: #fff;
  border-radius: var(--radius-sm);
}
.brandmark-mark svg { width: 22px; height: 22px; display: block; }
.brandmark-text { font-size: 1.0625rem; letter-spacing: -0.01em; }
.brandmark-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--text-caption); color: var(--ink-500); letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: var(--s6); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-700); text-decoration: none; font-weight: 550; font-size: 0.9375rem; }
.nav-links a:hover { color: var(--brand-700); }
.nav-links a[aria-current="page"] { color: var(--brand-700); font-weight: 700; }
.nav-cta { margin-left: var(--s2); }
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 650; font-size: 0.9375rem; line-height: 1;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
body.article .nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--ink-900);
}
body.article .nav-toggle svg { width: 1.3rem; height: 1.3rem; }
@media (max-width: 55.99rem) {
  body.article .nav-toggle { display: inline-flex; }
  body.article .site-nav { display: none; width: 100%; }
  body.article .site-nav.open { display: block; }
  .nav-inner { flex-wrap: wrap; min-width: 0; padding-block: var(--s2); }
  body.article .site-nav .nav-links { flex-direction: column; align-items: flex-start; gap: var(--s3); padding-block: var(--s3); }
  .nav-cta { margin-left: 0; }
}

.footer { border-top: 1px solid var(--line); margin-top: var(--s24); padding-block: var(--s12) var(--s8); }
.footer-grid { display: grid; gap: var(--s8); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h3 { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); margin: 0 0 var(--s3); font-family: var(--font-body); }
.footer p { color: var(--ink-500); font-size: var(--text-small); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer a { color: var(--ink-700); text-decoration: none; font-size: var(--text-small); }
.footer a:hover { color: var(--brand-700); text-decoration: underline; }
body.article .footer-base {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6);
  justify-content: space-between;
  margin-top: var(--s8); padding-top: var(--s4);
  border-top: 1px solid var(--line);
  color: var(--ink-500); font-size: var(--text-small);
}
body.article .to-top { margin-top: var(--s8); font-size: var(--text-small); }
.small { font-size: var(--text-small); }
.muted { color: var(--ink-500); }

.article-wrap { max-width: 46rem; margin-inline: auto; }
.article-hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 4.5rem) var(--s8); }
.article-hero h1 { font-size: var(--text-h1); margin: 0 0 var(--s4); max-width: none; }
.article-hero .lede { margin: 0; }
.lede { font-size: var(--text-lead); line-height: var(--leading-body); color: var(--ink-700); max-width: 62ch; }
.article-body { padding-bottom: var(--s4); }
.article-body h2 { font-size: var(--text-h2); margin-top: var(--s12); }
.article-body h3 { margin-top: var(--s8); }
.article-body p, .article-body ul, .article-body ol { color: var(--ink-700); }
.article-body strong { color: var(--ink-950); }
body.article .breadcrumbs { font-size: var(--text-small); color: var(--ink-500); margin-bottom: var(--s4); }
body.article .breadcrumbs a { color: var(--ink-500); }
body.article .breadcrumbs a:hover { color: var(--brand-700); }
body.article .eyebrow {
  font-family: var(--font-mono); font-size: var(--text-caption); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-700);
  margin: 0 0 var(--s3);
}
.formula, .example {
  background: var(--ink-950); color: #eef3f1;
  border: 1px solid var(--ink-900);
  border-left: 4px solid var(--accent-500);
  border-radius: var(--radius-md);
  padding: var(--s4) var(--s6); margin: var(--s6) 0;
  font-family: var(--font-mono);
  font-size: 0.9375rem; line-height: 1.7;
  overflow-x: auto;
}
.formula code, .example code { font-family: inherit; }
.example p { color: #c9d6d2; font-family: var(--font-body); font-size: var(--text-small); margin: 0 0 var(--s2); }
.example p:last-child { margin-bottom: 0; }
.example p strong { color: #fff; }
.article-body code {
  font-family: var(--font-mono); font-size: 0.875em;
  background: var(--brand-50); color: var(--brand-700);
  padding: 0.1em 0.4em; border-radius: 4px;
}
.panel {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s6) var(--s8);
  margin-top: var(--s12);
}
.panel h2 { margin-top: 0; font-size: var(--text-h3); }
.panel ul { color: var(--ink-700); font-size: var(--text-small); }
.faq-item { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.faq-item h3 { margin: 0 0 var(--s2); }
.faq-item p { margin: 0; color: var(--ink-700); font-size: var(--text-small); }
.prepared { font-size: var(--text-small); color: var(--ink-500); margin-top: var(--s12); }
.data-table { border-collapse: collapse; width: 100%; margin: var(--s6) 0; font-size: var(--text-small); }
.data-table th, .data-table td { border: 1px solid var(--line); padding: var(--s2) var(--s3); text-align: left; }
.data-table th { background: var(--paper-2); font-weight: 650; }
.data-table td { color: var(--ink-700); }

/* ---- Print: the estimate card is the printable record ---- */
@media print {
  .site-header, .site-footer, .actions, .announce, .nav-toggle, .to-top { display: none !important; }
  body { background: #fff; }
  .tool, .card, .quick-calc { box-shadow: none; break-inside: avoid; }
  output { background: #fff; }
  .estimate-card { border: 1.5px solid #000; border-top: 3px solid #000; break-inside: avoid; }
  .estimate-badge { border-color: #000; color: #000; background: #fff; }
  .stream-bar, .stream-seg-in, .stream-seg-out {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .stream-row-in, .stream-line-in { border-left-color: #000; }
  .print-note { display: block; }
}

/* A9-C6 (estate audit 2026-11-11): .estimate-badge is `flex: none` with a
   one-line label ~320px wide at min-content — it pushed the home and
   calculator pages 4px past a 360px viewport and 44px past 320px
   (document-level horizontal overflow). Let it shrink and wrap. */
.estimate-badge { flex: 0 1 auto; min-width: 0; }

}
/* Wave 2 signature: diff-highlight steppers on the hero stream diagram. Steps rest fully visible; the motion layer (estate-motion-mydev.js) replays them FROM a stepped state only under no-preference, highlighting each step as it lands. */
html[data-motion="armed"] .stream-row, html[data-motion="armed"] .stream-total, html[data-motion="armed"] .stream-join { opacity: 0; transform: translateY(6px); }
html[data-motion="armed"] .stream-row.is-in, html[data-motion="armed"] .stream-total.is-in, html[data-motion="armed"] .stream-join.is-in { opacity: 1; transform: none; transition: opacity var(--e-dur-2) var(--e-ease), transform var(--e-dur-2) var(--e-ease), background-color var(--e-dur-3) var(--e-ease); }
.stream-row.is-flash { background: color-mix(in srgb, var(--brand, #385f83) 14%, transparent); }
.estimate-card.is-wash { transition: background-color var(--e-dur-3) var(--e-ease); background: color-mix(in srgb, var(--brand, #385f83) 7%, transparent); }
@media (prefers-reduced-motion: reduce) { .stream-row, .stream-total, .stream-join { opacity: 1 !important; transform: none !important; } }
