/* DoctorLoanDirect — "Fintech Precision" design system
   Shared by every page. Page-only rules live in assets/css/pages/<slug>.css.
   Documented in SYSTEM.md. Motion rule: animate transform and opacity only. */


/* =========================================================================
   1. Tokens
   ========================================================================= */
:root {
  /* dark surface ladder (pine-tinted, never #000) */
  --c0: #050F0C;
  --c1: #0A1A16;
  --c2: #0F231E;
  --c3: #143029;
  --c-foot: #030A08;
  /* brand */
  --ink: #0F2A24;
  --pine: #0E5E4E;
  --pine-bright: #14876F;
  --pine-deep: #0B4D40;
  --pine-soft: #DCEBE5;
  --mint: #8AD9C7;
  --mint-hi: #B8F0E2;
  --brass: #B0812F;
  --brass-hi: #E2B661;
  --brass-deep: #8A6422;
  --paper: #F3F5F2;
  --soft: #E8EEEA;
  --white: #FFFFFF;
  --line: #D7DED8;
  --slate: #47564F;
  /* chart series: both ≥4:1 on the dark panel and 2.1:1 apart in lightness (not hue alone) */
  --chart-p: #5CCFB2;
  --chart-i: #A87424;
  /* text on dark */
  --d-text: #EEF4F1;
  --d-lede: #C7D7D1;
  --d-muted: #A9BDB6;
  --d-faint: #8FA59C;
  --d-line: rgba(138, 217, 199, .13);
  --d-line-2: rgba(138, 217, 199, .24);
  /* text on light */
  --l-text: #0F2A24;
  --l-muted: #3B4F48;
  --l-faint: #55665F;
  /* focus ring: brass on dark, deep brass on light (both ≥3:1 against their surface) */
  --focus: var(--brass-hi);

  /* type */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-micro: 13px;
  --t-small: 15px;
  --t-text: 16px;
  --t-body: 17px;
  --t-lead: clamp(17px, 1.3vw, 19px);
  --t-h4: clamp(19px, 1.5vw, 21px);
  --t-h3: clamp(26px, 2.35vw, 34px);
  --t-h2: clamp(30px, 3.9vw, 56px);
  --t-h1: clamp(40px, 5.3vw, 78px);
  --t-figure: clamp(60px, 7.2vw, 104px);
  --track-display: -.04em;

  /* space (8px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(20px, 4.45vw, 64px);
  --wrap: 1312px;
  --section: clamp(80px, 10vw, 152px);
  --head-gap: clamp(36px, 4.5vw, 64px);
  --split-gap: clamp(40px, 5vw, 72px);
  --nav-h: 72px;

  /* shape + motion */
  --r-sm: 10px;
  --r-md: 12px;
  --r-panel: 16px;
  --r-lg: 20px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: .2s;
  --dur: .35s;
  --dur-slow: .6s;
}

/* =========================================================================
   2. Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); scrollbar-color: #2b4a41 var(--c0); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--l-text);
  background: var(--c0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--mint); color: var(--c0); }
::placeholder { color: var(--l-faint); opacity: 1; }
.dark ::placeholder, .on-dark ::placeholder, .glass ::placeholder, .panel-dark ::placeholder { color: var(--d-faint); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 14px; z-index: 100; transform: translateY(-140%); background: var(--mint); color: var(--c0); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; transition: transform var(--dur) var(--ease-out); }
.skip-link:focus { transform: none; }
.num, .tnum, table, dd, output { font-variant-numeric: tabular-nums; }

/* icons: one authored stroke family (1.6px, round caps) */
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }

/* =========================================================================
   3. Surfaces + layout
   ========================================================================= */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .66) 0; }

.dark, .on-dark { --focus: var(--brass-hi); color: var(--d-text); }
.dark { background: var(--c0); }
/* surface defaults use :where() so any component colour wins over them */
:where(.dark, .on-dark) p { color: var(--d-muted); }
.light, .soft, .on-light { --focus: var(--brass-deep); color: var(--l-text); }
.light { background: var(--paper); }
.soft { background: var(--soft); }
:where(.dark) :where(h1, h2), :where(.on-dark) :where(h2, h3) { color: #fff; }

.section-head { margin-bottom: var(--head-gap); }
.section-head > p { margin-top: 20px; font-size: var(--t-lead); max-width: 52ch; }
.split-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px var(--split-gap); align-items: end; }
.split-head h2 { max-width: 21ch; }
.split-head > p { margin-top: 0; max-width: 46ch; }
.light .section-head > p, .soft .section-head > p { color: var(--l-muted); }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--split-gap); align-items: start; }
.cols-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cols-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cols-4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.cols.center { align-items: center; }
.sticky-head { position: sticky; top: calc(var(--nav-h) + 48px); }

/* =========================================================================
   4. Type
   ========================================================================= */
h1, h2, .h1, .h2 { font-weight: 300; letter-spacing: var(--track-display); text-wrap: balance; }
h1, .h1 { font-size: var(--t-h1); line-height: .98; }
h2, .h2 { font-size: var(--t-h2); line-height: 1.04; }
h3, .h3 { font-size: var(--t-h4); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.h3-display { font-size: var(--t-h3); font-weight: 300; letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
h4 { font-size: var(--t-small); font-weight: 500; line-height: 1.4; }
.lede { font-size: var(--t-lead); line-height: 1.55; max-width: 56ch; }
:is(h1, h2, .h2) + .lede { margin-top: 24px; }
.light .lede, .soft .lede { color: var(--l-muted); }
.dark .lede, .on-dark .lede, .panel-dark .lede { color: var(--d-lede); }
.on-light .lede { color: var(--l-muted); }
.fine { font-size: var(--t-small); line-height: 1.55; max-width: 62ch; }
.light .fine, .soft .fine { color: var(--l-muted); }
.dark .fine { color: var(--d-faint); }
.meta { font-size: var(--t-micro); color: var(--l-faint); }
.dark .meta, .on-dark .meta { color: var(--d-faint); }

/* long-form reading: one measure, real list styling, real links */
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.035em; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: var(--l-muted); }
.dark .prose p, .dark .prose li { color: var(--d-muted); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .5em; }
.prose a { color: var(--pine); text-decoration: underline; }
.prose a:hover { color: var(--pine-deep); }
.dark .prose a { color: var(--mint); }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--pine); text-decoration: none; }
.text-link:hover { text-decoration: underline; color: var(--pine-deep); }
/* links on dark default to mint wherever the surface is dark, even without .on-dark on the panel */
:is(.dark, .on-dark, .page-hero, .panel-dark, .callout, .glass, .estimate, .cta-band) .text-link { color: var(--mint); }
:is(.dark, .on-dark, .page-hero, .panel-dark, .callout, .glass, .estimate, .cta-band) .text-link:hover { color: var(--mint-hi); }
:is(.on-light, .glass-light) .text-link { color: var(--pine); }
:is(.on-light, .glass-light) .text-link:hover { color: var(--pine-deep); }
.text-link .i { transition: transform var(--dur) var(--ease-out); }
.text-link:hover .i { transform: translateX(3px); }

/* =========================================================================
   5. Buttons + tags
   ========================================================================= */
.btn {
  --bg: var(--mint); --fg: var(--c0); --lift: 0 10px 30px -8px rgba(138, 217, 199, .55);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 0;
  background: var(--bg); color: var(--fg); font-size: 15px; font-weight: 500; letter-spacing: -.005em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; isolation: isolate;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: var(--lift); opacity: 0; transition: opacity var(--dur) var(--ease-out); pointer-events: none; }
.btn:hover { transform: translateY(-1px); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .i { transition: transform var(--dur) var(--ease-out); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn:hover .i-down { transform: translateY(2px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-mint:hover { --bg: var(--mint-hi); }
.btn-pine { --bg: var(--pine); --fg: #fff; --lift: 0 10px 26px -10px rgba(14, 94, 78, .7); }
.btn-pine:hover { --bg: var(--pine-deep); }
.btn-ghost { --bg: rgba(255, 255, 255, .06); --fg: var(--d-text); --lift: inset 0 0 0 1px rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { --bg: rgba(255, 255, 255, .12); }
.btn-line { --bg: transparent; --fg: var(--d-text); --lift: inset 0 0 0 1px var(--mint); box-shadow: inset 0 0 0 1px var(--d-line-2); }
.btn-line:hover { --fg: var(--mint-hi); }
.btn-outline { --bg: transparent; --fg: var(--ink); --lift: inset 0 0 0 1px var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-outline:hover { --bg: #fff; }

.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--t-micro); font-weight: 500; line-height: 1.2; white-space: nowrap; vertical-align: middle; }
.tag-brass { background: rgba(226, 182, 97, .14); color: var(--brass-hi); box-shadow: inset 0 0 0 1px rgba(226, 182, 97, .35); }
.tag-line { color: var(--d-muted); box-shadow: inset 0 0 0 1px var(--d-line-2); }
.tag-light { color: var(--brass-deep); background: rgba(176, 129, 47, .1); box-shadow: inset 0 0 0 1px rgba(176, 129, 47, .3); }
.tag-placeholder { color: #7A5718; background: rgba(176, 129, 47, .12); }
:is(.dark, .on-dark, .page-hero, .panel-dark, .callout, .glass, .estimate, .cta-band) .tag-placeholder { color: var(--brass-hi); background: rgba(226, 182, 97, .12); box-shadow: inset 0 0 0 1px rgba(226, 182, 97, .3); }
:is(.on-light, .glass-light) .tag-placeholder { color: #7A5718; background: rgba(176, 129, 47, .12); box-shadow: none; }

/* =========================================================================
   6. Glass + glowing ring
   ========================================================================= */
.glass {
  background: linear-gradient(180deg, rgba(16, 38, 32, .62), rgba(8, 22, 18, .54));
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 80px -30px rgba(0, 0, 0, .65);
}
.glass-static { background: rgba(10, 26, 22, .82); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.glass-light { background: rgba(243, 245, 242, .7); border: 1px solid rgba(255, 255, 255, .6); color: var(--l-text); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 20px 40px -20px rgba(15, 42, 36, .5); }

/* .glow-ring / .btn-glow: system.js injects <span class="glow">. The ring is a masked 1px band;
   inside it a conic field ROTATES (compositor transform), so the idle page never repaints. */
.glow-ring { position: relative; }
.glow { position: absolute; inset: -1px; z-index: 4; border-radius: inherit; padding: 1px; pointer-events: none; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.glow::before { content: ""; position: absolute; left: 50%; top: 50%; width: var(--d, 150%); aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(transparent 0deg 230deg, rgba(138, 217, 199, .25) 260deg, var(--mint-hi) 305deg, var(--brass-hi) 335deg, transparent 360deg);
  transform: rotate(100deg); }
/* only the centerpiece (and the hero's primary action) keep a perpetual sweep */
.is-live > .glow::before { animation: glow-spin 7s linear infinite; will-change: transform; }
.btn-glow .glow { inset: -2px; padding: 2px; z-index: -1; }
.btn-glow .glow::before { background: conic-gradient(transparent 0 216deg, var(--mint-hi) 270deg, var(--brass-hi) 317deg, transparent 360deg); }
.btn-glow.is-live > .glow::before { animation-duration: 3.2s; }
@keyframes glow-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* static rings sweep once when their panel is revealed (system.js adds .glow-sweep) */
.glow-sweep > .glow::before { animation: glow-once 2.4s var(--ease-out) 1; }
@keyframes glow-once { from { transform: rotate(-260deg); } to { transform: rotate(100deg); } }

/* spotlight hover: system.js injects <span class="spot-light">; the light follows the pointer by transform */
.spot { position: relative; }
.spot-light { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; }
.spot-light::before { content: ""; position: absolute; left: -380px; top: -380px; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--spot, rgba(138, 217, 199, .1)), transparent);
  transform: translate3d(var(--mx, 50%), var(--my, 50%), 0); opacity: 0; transition: opacity .4s; }
.spot:hover .spot-light::before { opacity: 1; }
.spot > *:not(.spot-light):not(.glow) { position: relative; z-index: 1; }

/* paused when the section is off screen (system.js) or the tab is hidden */
.is-offscreen .glow::before, .is-offscreen .blob, .is-offscreen .pulse-line, .is-offscreen .live-dot::after { animation-play-state: paused; }

/* =========================================================================
   7. Header + mobile menu
   ========================================================================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--d-text); --focus: var(--brass-hi); transition: background-color .4s; }
.nav::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--d-line-2) 20%, var(--d-line-2) 80%, transparent); opacity: 0; transition: opacity .4s; }
.nav.is-scrolled { background: rgba(5, 15, 12, .9); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.nav.is-scrolled::after { opacity: 1; }
.nav-inner { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; font-weight: 500; letter-spacing: -.03em; color: var(--d-text); }
.brand b { font-weight: 500; color: var(--mint); }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(160deg, var(--pine-bright), var(--pine)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px -6px rgba(20, 135, 111, .8); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); font-size: 15px; color: var(--d-muted); text-decoration: none; transition: color var(--dur-fast), background-color var(--dur-fast); }
.nav-links a:hover { color: var(--d-text); background: rgba(255, 255, 255, .06); }
/* "page" = this page; "true" = the section a sub-page belongs to (guide → Learn, officer → Find a specialist) */
.nav-links a:is([aria-current="page"], [aria-current="true"]) { color: #fff; background: rgba(138, 217, 199, .1); box-shadow: inset 0 0 0 1px var(--d-line-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; top: 21.5px; height: 1.5px; background: var(--d-text); border-radius: 2px; transition: transform var(--dur) var(--ease-out); }
.nav-toggle span:first-child { transform: translateY(-3.5px); }
.nav-toggle span:last-child { transform: translateY(3.5px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.mobile-menu { display: grid; padding: 8px var(--gutter) 28px; background: rgba(5, 15, 12, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu a { display: flex; align-items: center; min-height: 52px; font-size: 20px; letter-spacing: -.02em; color: var(--d-text); text-decoration: none; border-bottom: 1px solid var(--d-line); }
.mobile-menu a:is([aria-current="page"], [aria-current="true"]) { color: var(--mint); }
.mobile-menu:not([hidden]) a { animation: menu-in .5s var(--ease-out) both; }
.mobile-menu a:nth-child(2) { animation-delay: .02s; } .mobile-menu a:nth-child(3) { animation-delay: .04s; } .mobile-menu a:nth-child(4) { animation-delay: .06s; } .mobile-menu a:nth-child(5) { animation-delay: .08s; } .mobile-menu a:nth-child(n+6) { animation-delay: .1s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* =========================================================================
   8. Backdrop (gradient mesh + grid lines + grain) — used by both hero variants
   ========================================================================= */
.backdrop { position: absolute; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; opacity: .6; will-change: transform; }
.b1 { width: 44vw; height: 44vw; max-width: 640px; max-height: 640px; left: -12vw; top: -14vw; background: radial-gradient(closest-side, rgba(20, 135, 111, .85), rgba(20, 135, 111, .25) 55%, transparent); animation: drift1 22s ease-in-out infinite alternate; }
.b2 { width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; left: 18vw; bottom: -16vw; background: radial-gradient(closest-side, rgba(14, 94, 78, .9), rgba(14, 94, 78, .25) 55%, transparent); animation: drift2 26s ease-in-out infinite alternate; }
.b3 { width: 22vw; height: 22vw; max-width: 340px; max-height: 340px; left: 30vw; top: 8vw; background: radial-gradient(closest-side, rgba(176, 129, 47, .45), transparent); opacity: .4; animation: drift3 30s ease-in-out infinite alternate; }
.b4 { width: 26vw; height: 26vw; max-width: 380px; max-height: 380px; left: 2vw; bottom: -6vw; background: radial-gradient(closest-side, rgba(138, 217, 199, .4), transparent); opacity: .32; animation: drift1 34s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(8vw, 6vw, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-6vw, -5vw, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(5vw, 7vw, 0) scale(1.25); } }
.grid-lines { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(138, 217, 199, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 217, 199, .075) 1px, transparent 1px);
  background-size: 80px 80px; background-position: calc(50% - 40px) 0;
  -webkit-mask-image: radial-gradient(120% 90% at 12% 60%, #000 0%, rgba(0, 0, 0, .6) 35%, transparent 62%);
  mask-image: radial-gradient(120% 90% at 12% 60%, #000 0%, rgba(0, 0, 0, .6) 35%, transparent 62%); }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* quiet mesh for dark content sections (calculator, CTA band, connect) */
.mesh-quiet { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 75% 62%, rgba(20, 135, 111, .3), transparent 70%), radial-gradient(40% 35% at 18% 80%, rgba(14, 94, 78, .34), transparent 70%), radial-gradient(30% 30% at 92% 20%, rgba(176, 129, 47, .13), transparent 70%); }
.mesh-quiet::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(138, 217, 199, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 217, 199, .05) 1px, transparent 1px);
  background-size: 80px 80px; background-position: calc(50% - 40px) 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }

/* =========================================================================
   9. Page hero (inner pages) + breadcrumb
   ========================================================================= */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--c0); color: var(--d-text); padding: calc(var(--nav-h) + clamp(28px, 4vw, 56px)) 0 clamp(64px, 8vw, 112px); }
.page-hero .grid-lines { -webkit-mask-image: radial-gradient(100% 90% at 20% 40%, #000, rgba(0, 0, 0, .5) 40%, transparent 70%); mask-image: radial-gradient(100% 90% at 20% 40%, #000, rgba(0, 0, 0, .5) 40%, transparent 70%); }
.page-hero .blob { opacity: .45; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--split-gap); align-items: center; margin-top: clamp(32px, 5vw, 64px); }
.page-hero-copy { min-width: 0; }
.page-hero h1 { color: #fff; max-width: 13em; font-size: clamp(38px, 4.2vw, 60px); }
.page-hero .lede { margin-top: 24px; color: var(--d-lede); max-width: 44ch; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.page-hero-note { margin-top: 18px; font-size: var(--t-small); color: var(--d-faint) !important; max-width: 48ch; }
.page-hero-media { position: relative; margin: 0; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 5 / 4; background: var(--c2); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* wide variant for tool pages, so the first screen also shows what follows the hero */
.page-hero-media--wide { aspect-ratio: 16 / 11; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); background: linear-gradient(180deg, transparent 55%, rgba(5, 15, 12, .45)); pointer-events: none; }
.page-hero-media figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; max-width: 340px; padding: 12px 14px; border-radius: var(--r-md); font-size: var(--t-small); line-height: 1.4; }
/* hero aside: a glass panel, form or tool in place of the photo (system.js animates it in) */
.page-hero-aside { min-width: 0; }
.page-hero--plain .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero--plain h1 { max-width: 16em; }

.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--d-faint); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--d-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--mint-hi); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--d-text); }

/* =========================================================================
   10. Panels, cards, lists
   ========================================================================= */
.panel { position: relative; border-radius: var(--r-panel); background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: clamp(24px, 2.6vw, 36px); }
.panel-dark { position: relative; border-radius: var(--r-panel); background: linear-gradient(180deg, var(--c2), #08160F); color: var(--d-text); padding: clamp(24px, 2.6vw, 36px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 90px -40px rgba(5, 15, 12, .7); --focus: var(--brass-hi); }
:where(.panel-dark) p { color: var(--d-muted); }
:where(.panel-dark) :where(h2, h3) { color: #fff; }
.panel-grid::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: linear-gradient(rgba(138, 217, 199, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 217, 199, .06) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(80% 80% at 80% 20%, #000, transparent 70%); mask-image: radial-gradient(80% 80% at 80% 20%, #000, transparent 70%); }
.panel-grid > * { position: relative; }

/* card-link: a whole-card link on glass or white (guides, related reading) */
.card-link { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-panel); text-decoration: none; color: inherit; transition: transform .5s var(--ease-out); }
.card-link:hover { transform: translateY(-4px); }
.card-link .card-title { font-size: var(--t-h4); font-weight: 400; letter-spacing: -.03em; line-height: 1.2; }
.card-link .card-text { font-size: var(--t-text); line-height: 1.5; }
.card-link .card-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.card-link .card-foot .i { transition: transform var(--dur) var(--ease-out); }
.card-link:hover .card-foot .i { transform: translateX(4px); }
.card-link.glass { color: var(--d-text); }
.card-link.glass .card-title { color: #fff; }
.card-link.glass .card-text { color: #C1D2CC; }
.card-link.glass .card-foot { color: var(--mint); }
.card-link.on-light { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.card-link.on-light .card-text { color: var(--l-muted); }
.card-link.on-light .card-foot { color: var(--pine); }
.card-link.on-light::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(20, 135, 111, .45), 0 18px 40px -24px rgba(15, 42, 36, .45); opacity: 0; transition: opacity var(--dur); pointer-events: none; }
.card-link.on-light:hover::after { opacity: 1; }
.card-link.is-dark { background: linear-gradient(180deg, var(--c2), #08160F); color: var(--d-text); --focus: var(--brass-hi); box-shadow: inset 0 0 0 1px var(--d-line); }
.card-link.is-dark .card-title { color: #fff; }
.card-link.is-dark .card-text { color: var(--d-muted); }
.card-link.is-dark .card-foot { color: var(--mint); }

/* tick list: questions to ask, assurances */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 1.5px solid var(--pine-bright); border-bottom: 1.5px solid var(--pine-bright); transform: rotate(-45deg); }
.on-dark .ticks li, .dark .ticks li { border-color: var(--d-line); color: var(--d-text); }
.on-dark .ticks li::before, .dark .ticks li::before { border-color: var(--mint); }
.assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.assure li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--d-text); }
.assure li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: rgba(138, 217, 199, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.4L13 6.4' fill='none' stroke='%238AD9C7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; box-shadow: inset 0 0 0 1px rgba(138, 217, 199, .4); }

/* checklist (generated or ticked by the visitor) */
.check-list { list-style: none; margin: 22px 0 0; padding: 0; }
.check-list li { position: relative; padding: 14px 0 14px 40px; border-top: 1px solid var(--d-line); font-size: 16px; line-height: 1.45; color: var(--d-text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--d-line-2); background: rgba(138, 217, 199, .08); }
.check-list li::after { content: ""; position: absolute; left: 7px; top: 20px; width: 8px; height: 5px; border-left: 1.5px solid var(--mint); border-bottom: 1.5px solid var(--mint); transform: rotate(-45deg); }
.check-list li small { display: block; margin-top: 4px; font-size: var(--t-micro); color: var(--d-faint); }

/* step progress (multi-step forms) */
.step-progress { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 360px; }
.step-progress li { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 16px; font-size: var(--t-small); color: var(--l-muted); transition: color .3s; }
.step-progress .bar { order: 2; height: 4px; border-radius: 4px; background: rgba(15, 42, 36, .1); overflow: hidden; }
.step-progress .bar i { display: block; height: 100%; width: 100%; background: var(--pine-bright); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.step-progress li.is-current { color: var(--l-text); font-weight: 500; }
.step-progress li.is-current .bar i { transform: scaleX(.5); }
.step-progress li.is-done .bar i { transform: scaleX(1); }

/* officer card (directory, specialist pages) */
.officers { display: grid; gap: 12px; }
.officer { position: relative; padding: 22px 24px; border-radius: var(--r-panel); background: #fff; box-shadow: inset 0 0 0 1px var(--line); --spot: rgba(20, 135, 111, .08); }
.officer::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(20, 135, 111, .45), 0 18px 40px -24px rgba(15, 42, 36, .45); opacity: 0; transition: opacity var(--dur); pointer-events: none; }
.officer:hover::before { opacity: 1; }
.officer-id { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: start; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--soft); color: var(--slate); font-size: var(--t-micro); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.officer h3 { font-size: 17px; }
.officer-id p { font-size: 14px; color: var(--l-muted); }
.officer-meta { display: grid; gap: 2px; margin-top: 14px; font-size: 14px; color: var(--l-muted); }
.officer-meta dt { display: inline; font-weight: 500; color: var(--l-text); }
.officer-meta dd { display: inline; margin: 0; }
.officer-meta div { display: block; }
.officer-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-top: 16px; }
.officer:has(details[open]) { z-index: 5; }
.contact-menu { position: relative; }
.contact-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; transition: box-shadow var(--dur-fast); }
.contact-menu summary::-webkit-details-marker { display: none; }
.contact-menu summary:hover { box-shadow: inset 0 0 0 1px var(--pine-bright); }
.contact-menu summary .i { transition: transform var(--dur) var(--ease-out); }
.contact-menu[open] summary .i { transform: rotate(180deg); }
.contact-options { position: absolute; z-index: 10; top: calc(100% + 8px); left: 0; width: 260px; padding: 6px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -16px rgba(15, 42, 36, .35); animation: pop-in .35s var(--ease-out); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }
.contact-options span { display: block; padding: 10px 12px; font-size: 14px; color: var(--l-faint); border-radius: 8px; }
.contact-options small { display: block; font-size: var(--t-micro); color: var(--l-faint); }
.contact-options a,
.contact-options button {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--l-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.contact-options a:hover,
.contact-options button:hover { background: var(--soft); }
.contact-options a small,
.contact-options button small {
  display: block;
  margin-top: 2px;
  font-size: var(--t-micro);
  font-weight: 400;
  color: var(--l-faint);
}

/* media frame: a real photo beside section copy (set object-position per page for the crop) */
.media-frame { position: relative; margin: 0; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
:is(.dark, .on-dark) .media-frame { background: var(--c2); }
/* actions under section copy: buttons and text links on one wrapping line */
.stack-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

/* link rows: a full-width list of destinations (title, one line, labelled arrow) instead of a card grid.
   ul.link-rows > li > a.link-row > .lr-title + .lr-text + .lr-go. Light by default; follows dark surfaces.
   --split puts title and line side by side; --compact is the small version for panels (arrow only). */
.link-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-rows > li { border-bottom: 1px solid var(--line); }
.link-row { --spot: rgba(20, 135, 111, .08); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; margin: 0 -20px; padding: 28px 20px; border-radius: var(--r-md); color: var(--l-text); text-decoration: none; transition: background-color var(--dur-fast); }
.link-row:hover { background: rgba(255, 255, 255, .7); }
.lr-title { grid-column: 1; font-size: var(--t-h3); font-weight: 300; letter-spacing: -.035em; line-height: 1.1; transition: color var(--dur-fast); }
.lr-text { grid-column: 1; max-width: 52ch; font-size: var(--t-text); line-height: 1.5; color: var(--l-muted); }
.lr-go { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--pine); white-space: nowrap; }
.lr-go .i { transition: transform var(--dur) var(--ease-out); }
.link-row:hover .lr-title, .link-row:hover .lr-go { color: var(--pine-deep); }
.link-row:hover .lr-go .i { transform: translateX(4px); }
.link-rows--split .link-row { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) 13.5rem; }
.link-rows--split .lr-text { grid-column: 2; max-width: 44ch; }
.link-rows--split .lr-go { grid-column: 3; grid-row: 1; justify-self: end; }
.link-rows--compact { border-top: 0; }
.link-rows--compact > li { border-bottom: 0; border-top: 1px solid var(--line); }
.link-rows--compact .link-row { gap: 3px 16px; margin: 0 -12px; padding: 14px 12px; }
.link-rows--compact .lr-title { font-size: var(--t-text); font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.link-rows--compact .lr-text { font-size: 14px; line-height: 1.45; }
:is(.dark, .on-dark, .panel-dark, .glass) .link-rows, :is(.dark, .on-dark, .panel-dark, .glass) .link-rows > li { border-color: var(--d-line); }
:is(.dark, .on-dark, .panel-dark, .glass) .link-row { --spot: rgba(138, 217, 199, .08); color: var(--d-text); }
:is(.dark, .on-dark, .panel-dark, .glass) .link-row:hover { background: rgba(138, 217, 199, .06); }
:is(.dark, .on-dark, .panel-dark, .glass) .lr-title { color: #fff; }
:is(.dark, .on-dark, .panel-dark, .glass) .lr-text { color: var(--d-muted); }
:is(.dark, .on-dark, .panel-dark, .glass) .lr-go, :is(.dark, .on-dark, .panel-dark, .glass) .link-row:hover .lr-go { color: var(--mint); }
:is(.dark, .on-dark, .panel-dark, .glass) .link-row:hover .lr-title { color: var(--mint-hi); }

/* library rows: topic, stretched title link, description, minutes, arrow (Learning Center index, related reading) */
.lib-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lib-item { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr) auto 18px; gap: 6px 24px; align-items: baseline; padding: 22px 14px; border-bottom: 1px solid var(--line); transition: background-color var(--dur-fast); }
.lib-item:hover, .lib-item.is-active { background: rgba(255, 255, 255, .72); }
.lib-topic { font-size: var(--t-micro); font-weight: 500; color: var(--pine); }
.lib-title { font-size: var(--t-h4); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.lib-title a { color: var(--l-text); text-decoration: none; transition: color var(--dur-fast); }
.lib-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 2px; }
.lib-title a:focus-visible { outline: 0; }
.lib-title a:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; }
.lib-item:hover .lib-title a, .lib-item.is-active .lib-title a { color: var(--pine); }
.lib-desc { margin-top: 6px; font-size: var(--t-text); line-height: 1.5; color: var(--l-muted); max-width: 54ch; }
.lib-time { font-size: var(--t-micro); color: var(--l-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lib-arrow { color: var(--pine); align-self: center; transition: transform var(--dur) var(--ease-out); }
.lib-item:hover .lib-arrow, .lib-item.is-active .lib-arrow { transform: translateX(4px); }

.empty { padding: 20px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--l-muted); }
.empty h3 { color: var(--l-text); margin-bottom: 6px; }

/* =========================================================================
   11. Forms
   ========================================================================= */
.field { display: grid; gap: 8px; font-size: 14px; color: var(--l-muted); }
.field > span:first-child, .field-label { font-size: 14px; color: inherit; }
.on-dark .field, .dark .field, .glass .field { color: var(--d-muted); }
.input, .select-wrap select {
  --in-bg: #fff; --in-line: var(--line); --in-text: var(--l-text); --in-focus: var(--pine-bright); --in-ring: rgba(20, 135, 111, .16);
  display: block; width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r-md); border: 0; appearance: none; -webkit-appearance: none;
  background: var(--in-bg); box-shadow: inset 0 0 0 1px var(--in-line); color: var(--in-text); font-size: 16px; outline: none;
  transition: box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.on-dark .input, .dark .input, .glass .input, .on-dark .select-wrap select, .dark .select-wrap select, .glass .select-wrap select {
  --in-bg: rgba(255, 255, 255, .05); --in-line: var(--d-line-2); --in-text: var(--d-text); --in-focus: var(--mint); --in-ring: rgba(138, 217, 199, .16);
}
.input:hover, .select-wrap select:hover { --in-line: var(--l-faint); }
.on-dark .input:hover, .dark .input:hover, .glass .input:hover, .on-dark .select-wrap select:hover, .dark .select-wrap select:hover, .glass .select-wrap select:hover { --in-line: rgba(138, 217, 199, .45); }
.input:focus, .select-wrap select:focus { box-shadow: inset 0 0 0 1px var(--in-focus), 0 0 0 4px var(--in-ring); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--brass), 0 0 0 4px rgba(176, 129, 47, .16); }
textarea.input { height: auto; min-height: 144px; padding: 13px 16px; line-height: 1.5; resize: vertical; }
/* number fields: typed values and arrow keys, no browser spinners (units sit in the affix) */
.input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.input[type="number"]::-webkit-inner-spin-button, .input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* search field: icon + 52px input + clear button (system.js adds the button; it shows once there is text) */
.search-field { position: relative; display: block; }
.search-field > .i { position: absolute; left: 16px; top: 50%; margin-top: -9px; font-size: 18px; color: var(--pine); pointer-events: none; }
.search-field .input { height: 52px; padding-left: 46px; padding-right: 50px; }
.search-field .input::-webkit-search-cancel-button, .search-field .input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--l-muted); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast); }
.search-clear:hover { background: var(--soft); color: var(--ink); }
.search-clear .i { font-size: 16px; }
.search-field .input:placeholder-shown ~ .search-clear { display: none; }
:is(.dark, .on-dark, .glass) .search-field > .i { color: var(--mint); }
:is(.dark, .on-dark, .glass) .search-clear { color: var(--d-muted); }
:is(.dark, .on-dark, .glass) .search-clear:hover { background: rgba(255, 255, 255, .08); color: var(--d-text); }
/* search matches (directory, glossary) */
mark { border-radius: 3px; background: rgba(138, 217, 199, .5); box-shadow: 0 0 0 2px rgba(138, 217, 199, .5); color: inherit; }
.select-wrap { position: relative; display: block; }
.select-wrap select { padding-right: 40px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; opacity: .7; }
.select-wrap select option { color: var(--ink); background: #fff; }
.affix { position: relative; display: block; }
.affix > .pre, .affix > .post { position: absolute; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--l-faint); pointer-events: none; }
.on-dark .affix > .pre, .on-dark .affix > .post, .dark .affix > .pre, .dark .affix > .post { color: var(--d-faint); }
.affix > .pre { left: 14px; }
.affix > .post { right: 14px; }
.affix .input { font-variant-numeric: tabular-nums; }
.affix.has-pre .input { padding-left: 30px; }
.affix.has-post .input { padding-right: 64px; }
.field-help { font-size: var(--t-micro); line-height: 1.45; color: var(--l-faint); }
.on-dark .field-help, .dark .field-help { color: var(--d-faint); }
.form-error { font-size: 14px; color: var(--brass-deep); }
.on-dark .form-error, .dark .form-error, .glass .form-error { color: var(--brass-hi); }
.form-note { font-size: 14px; color: var(--mint); }
.form-note:empty { display: none; }
.hp-field { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-micro); line-height: 1.5; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--mint); }
.on-light .consent input, .light .consent input { accent-color: var(--pine); }

/* choice chips (radio groups) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); font-size: var(--t-small); color: var(--d-text); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--d-line-2); transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur) var(--ease-out); }
.chips label:hover span { background: rgba(255, 255, 255, .08); }
.chips label:active span { transform: scale(.97); }
.chips input:checked + span { background: var(--mint); color: var(--c0); box-shadow: 0 0 0 1px var(--mint); }
.chips input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

/* filter chips (toggle buttons on light) */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips button { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--l-text); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast); }
.filter-chips button:hover { box-shadow: inset 0 0 0 1px var(--pine-bright); }
.filter-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* glass form card (dark CTA areas) */
.form-card { border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 32px); }
.form-card form { display: grid; gap: 16px; }
.form-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card small { font-size: var(--t-micro); line-height: 1.5; color: var(--d-faint); }
.form-card small a { color: var(--mint); }

/* tool layout: inputs on a panel, a live result panel beside them (tools, home-costs, my-plan) */
.tool-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.tool-form { min-width: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: end; }
.field-grid .span-2 { grid-column: 1 / -1; }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset + .fieldset { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.fieldset > legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-size: var(--t-small); font-weight: 500; color: var(--l-text); }
.fieldset > legend + * { clear: both; }
.tool-form-foot { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.tool-result { position: sticky; top: calc(var(--nav-h) + 76px); min-width: 0; }
.tool-notes { margin-top: 28px; max-width: 80ch; }
.tool-notes .prose { margin-top: 8px; }
.tool-notes .prose p { font-size: var(--t-text); }

/* =========================================================================
   12. Tabs (WAI-ARIA, automatic activation)
   ========================================================================= */
.tablist { position: relative; display: inline-flex; padding: 5px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(15, 42, 36, .06); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tablist [role="tab"] { position: relative; z-index: 1; border: 0; background: transparent; padding: 0 20px; height: 44px; border-radius: var(--r-pill); font-size: var(--t-small); font-weight: 500; color: var(--l-muted); cursor: pointer; white-space: nowrap; transition: color .3s; }
.tablist [role="tab"]:hover { color: var(--l-text); }
.tablist [role="tab"] { transition: color .3s, background-color 0s; }
/* the sliding pill (.tab-ind) arrives first; the tab takes the same fill once it lands */
.tablist [role="tab"][aria-selected="true"] { color: #fff; background-color: var(--ink); transition: color .3s, background-color 0s .5s; }
.tablist:not(.is-ready) [role="tab"][aria-selected="true"] { background: var(--ink); }
.tab-ind { position: absolute; z-index: 0; top: 5px; left: 0; height: 44px; width: 100px; border-radius: var(--r-pill); background: var(--ink); box-shadow: 0 6px 18px -6px rgba(15, 42, 36, .55), inset 0 1px 0 rgba(255, 255, 255, .12); transform-origin: 0 50%; opacity: 0; }
.tablist.is-ready .tab-ind { opacity: 1; }
.tab-ind.is-moving { transition: transform .5s var(--ease-out); }
.tabpanel:focus-visible { outline-offset: 12px; }
.tablist.on-dark-tabs { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--d-line-2); }
.on-dark-tabs [role="tab"] { color: var(--d-muted); }
.on-dark-tabs [role="tab"]:hover { color: var(--d-text); }
.on-dark-tabs [role="tab"][aria-selected="true"] { color: var(--c0); }
.on-dark-tabs .tab-ind, .on-dark-tabs [role="tab"][aria-selected="true"] { background-color: var(--mint); }

/* =========================================================================
   13. Accordion (native <details>)
   ========================================================================= */
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { position: relative; list-style: none; cursor: pointer; padding: 26px 56px 26px 0; font-size: var(--t-h4); font-weight: 400; letter-spacing: -.025em; line-height: 1.3; transition: color var(--dur-fast); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--pine); }
.plus { position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: transform .45s var(--ease-out), background-color .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; border-radius: 2px; }
.plus::after { transform: rotate(90deg); transition: transform .45s var(--ease-out); }
.accordion details[open] .plus { background: var(--ink); color: #fff; box-shadow: none; transform: rotate(180deg); }
.accordion details[open] .plus::after { transform: rotate(0deg); }
.accordion .ans { padding: 0 56px 28px 0; }
.accordion details[open] .ans { animation: ans-in .5s var(--ease-out); }
@keyframes ans-in { from { opacity: 0; transform: translateY(-6px); } }
.accordion .ans p { font-size: var(--t-body); color: var(--l-muted); max-width: 62ch; }
.accordion .ans p + p { margin-top: 12px; }
.accordion.on-dark details { border-color: var(--d-line); }
.accordion.on-dark summary:hover { color: var(--mint-hi); }
.accordion.on-dark .plus { box-shadow: inset 0 0 0 1px var(--d-line-2); }
.accordion.on-dark details[open] .plus { background: var(--mint); color: var(--c0); }
.accordion.on-dark .ans p { color: var(--d-muted); }

/* small disclosure ("View yearly figures", "Assumptions") */
.disclosure > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; list-style: none; font-size: var(--t-small); font-weight: 500; color: var(--pine); }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur) var(--ease-out); }
.disclosure[open] > summary::before { transform: rotate(45deg); }
.disclosure > summary:hover { text-decoration: underline; }
.dark .disclosure > summary, .on-dark .disclosure > summary { color: var(--mint); }
.disclosure[open] > :not(summary) { animation: ans-in .45s var(--ease-out); }

/* =========================================================================
   14. Tables
   ========================================================================= */
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.table-scroll:focus-visible { outline-offset: 2px; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.45; }
.table caption { caption-side: bottom; padding-top: 14px; text-align: left; font-size: var(--t-micro); color: var(--l-faint); }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.table thead th { font-size: var(--t-micro); font-weight: 500; color: var(--pine); border-top: 0; padding-top: 0; }
.table tbody th { font-weight: 500; }
.table td { color: var(--l-muted); }
.table .num { text-align: right; }
.table-dark { color: var(--d-muted); }
.table-dark th, .table-dark td { border-color: var(--d-line); }
.table-dark thead th { color: var(--d-faint); }
.table-dark tbody th { color: var(--d-text); }
.table-dark td { color: var(--d-muted); }
.table-dark caption { color: var(--d-faint); }
/* .table-stack: on phones each row becomes a block; cells carry data-label */
@media (max-width: 760px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack tr { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
  .table-stack tbody th, .table-stack td { display: block; border: 0; padding: 2px 0; width: auto !important; }
  .table-stack tbody th { font-size: var(--t-small); margin-bottom: 6px; color: var(--l-text); }
  .table-stack td::before { content: attr(data-label); display: block; font-size: var(--t-micro); font-weight: 500; color: var(--pine); }
  .table-stack td + td { margin-top: 8px; }
  .table-stack.single td::before { display: none; }
  .table-dark.table-stack tr { border-color: var(--d-line); }
  .table-dark.table-stack td::before { color: var(--d-faint); }
}

/* =========================================================================
   15. Callouts, notes, source panel
   ========================================================================= */
.callout { position: relative; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-panel); background: linear-gradient(180deg, var(--c2), #08160F); color: var(--d-text); --focus: var(--brass-hi); overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: linear-gradient(180deg, transparent, var(--mint), transparent); }
.callout-title { font-size: var(--t-small); font-weight: 500; color: var(--mint); }
.callout-body { margin: 12px 0 0; font-size: clamp(20px, 1.9vw, 26px); font-weight: 300; letter-spacing: -.025em; line-height: 1.3; color: #fff; }
.callout p:not(.callout-body):not(.callout-title) { margin-top: 12px; font-size: var(--t-small); color: var(--d-muted); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); background: rgba(176, 129, 47, .08); box-shadow: inset 0 0 0 1px rgba(176, 129, 47, .25); font-size: var(--t-small); line-height: 1.5; color: var(--l-muted); }
.note .i { margin-top: 3px; color: var(--brass-deep); font-size: 16px; }
.dark .note, .on-dark .note { background: rgba(226, 182, 97, .07); box-shadow: inset 0 0 0 1px rgba(226, 182, 97, .22); color: var(--d-muted); }
.dark .note .i, .on-dark .note .i { color: var(--brass-hi); }
.source-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px var(--split-gap); padding: clamp(24px, 3vw, 40px); border-radius: var(--r-panel); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.source-panel h2 { font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.035em; }
.source-panel p { color: var(--l-muted); font-size: var(--t-text); }
.source-panel h2 + p { margin-top: 16px; }
.source-panel p + p { margin-top: 12px; }
.source-list { list-style: none; margin: 0; padding: 0; }
.source-list li { border-top: 1px solid var(--line); }
.source-list li:last-child { border-bottom: 1px solid var(--line); }
.source-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; font-size: 16px; color: var(--l-text); text-decoration: none; }
.source-list a:hover { color: var(--pine); }
.source-list a .i { color: var(--pine); transition: transform var(--dur) var(--ease-out); }
.source-list a:hover .i { transform: translate(2px, -2px); }

/* =========================================================================
   16. CTA band
   ========================================================================= */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 9vw, 128px) 0; background: var(--c0); color: var(--d-text); --focus: var(--brass-hi); border-top: 1px solid var(--d-line); }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px var(--split-gap); align-items: end; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: var(--d-lede); font-size: var(--t-lead); max-width: 44ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* plain variant (no photo): .cta-band-inner > h2 + div(p + .cta-band-actions); heading left, the ask right, bottom-aligned */
.cta-band:not(.cta-band--media) .cta-band-inner > div > p { margin-top: 0; }
/* media variant: a real photograph beside the ask */
.cta-band--media .cta-band-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.cta-band--media h2 { max-width: 16ch; }
.cta-band--media p { margin-top: 20px; }
.cta-band-media { position: relative; margin: 0; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 16 / 11; background: var(--c2); }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta-band-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }

/* =========================================================================
   17. Process timeline
   ========================================================================= */
.timeline { position: relative; }
.tl-rail { position: absolute; left: 7px; right: calc((100% - (var(--steps, 5) - 1) * 24px) / var(--steps, 5) - 8px); top: 7px; height: 1px; background: var(--d-line-2); }
.tl-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--pine-bright), var(--mint-hi)); box-shadow: 0 0 14px rgba(138, 217, 199, .7); transform-origin: left; }
.tl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 24px; }
.tl-steps li { position: relative; padding-top: 44px; }
.node { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--c0); box-shadow: inset 0 0 0 1.5px var(--mint); }
.node::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); transform: scale(.2); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
.node::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(138, 217, 199, .16), 0 0 18px rgba(138, 217, 199, .8); opacity: 0; transition: opacity .45s; }
.tl-steps li.is-lit .node::before { transform: scale(1); opacity: 1; }
.tl-steps li.is-lit .node::after { opacity: 1; }
.tl-steps strong { display: block; font-size: var(--t-h4); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; color: #fff; }
.tl-steps span:not(.node) { display: block; margin-top: 10px; font-size: var(--t-text); line-height: 1.5; color: var(--d-muted); }

/* =========================================================================
   18. Stat / estimate panel
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); }
.stats > div { display: flex; flex-direction: column; justify-content: space-between; padding: 18px 16px 18px 0; min-width: 0; }
.stats > div + div { padding-left: 18px; border-left: 1px solid var(--d-line); }
.stats dt { font-size: var(--t-micro); color: var(--d-faint); }
.stats dd { margin: 6px 0 0; font-size: var(--t-h4); font-weight: 400; letter-spacing: -.03em; color: #fff; }

.estimate { position: relative; border-radius: var(--r-panel); background: linear-gradient(180deg, rgba(15, 35, 30, .96), rgba(8, 22, 18, .98)); color: var(--d-text); padding: clamp(22px, 2.4vw, 32px); box-shadow: inset 0 0 0 1px var(--d-line), 0 40px 90px -50px rgba(20, 135, 111, .6); --focus: var(--brass-hi); }
.estimate-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.estimate-title { font-size: var(--t-small); font-weight: 500; color: var(--d-text); }
.estimate-figure { margin-top: 14px; font-size: clamp(40px, 4vw, 56px); font-weight: 300; letter-spacing: -.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.estimate-figure small { font-size: 17px; letter-spacing: -.01em; color: var(--d-muted); margin-left: 4px; }
.estimate-caption { margin-top: 8px; font-size: var(--t-micro); color: var(--d-faint) !important; }
.estimate-rows { margin-top: 18px; display: grid; }
.estimate-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--d-line); font-size: var(--t-small); }
.estimate-rows dt { color: var(--d-muted); }
.estimate-rows dd { color: #fff; font-weight: 500; text-align: right; white-space: nowrap; }
.estimate-rows > div.is-key dd { font-size: 19px; color: var(--mint-hi); }
.estimate-empty { display: grid; place-items: start; gap: 8px; padding: 8px 0 4px; }
.estimate-empty p { font-size: var(--t-small); }
.estimate-error { color: var(--brass-hi) !important; font-size: var(--t-small); }

/* =========================================================================
   19. Payment calculator (shared component: index + tools)
   ========================================================================= */
.calc { position: relative; display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); border-radius: var(--r-panel); background: linear-gradient(180deg, rgba(15, 35, 30, .92), rgba(8, 22, 18, .94)); border: 1px solid var(--d-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 50px 120px -50px rgba(20, 135, 111, .55); color: var(--d-text); --focus: var(--brass-hi); }
.tick { position: absolute; width: 11px; height: 11px; z-index: 5; pointer-events: none; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--mint); opacity: .7; }
.tick::before { left: 5px; top: 0; width: 1px; height: 11px; }
.tick::after { top: 5px; left: 0; height: 1px; width: 11px; }
.tick.tl { left: -6px; top: -6px; } .tick.tr { right: -6px; top: -6px; } .tick.bl { left: -6px; bottom: -6px; } .tick.br { right: -6px; bottom: -6px; }

.calc-inputs { padding: 32px; border-right: 1px solid var(--d-line); display: flex; flex-direction: column; gap: 30px; }
.calc-inputs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calc-inputs-head h3 { color: #fff; font-size: var(--t-body); }
.calc .field-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.calc .field-top label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--t-small); color: var(--d-text); }
.num-wrap { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--d-line); color: var(--d-muted); font-size: 16px; transition: box-shadow var(--dur-fast), background-color var(--dur-fast); }
.num-wrap:hover { box-shadow: inset 0 0 0 1px rgba(138, 217, 199, .4); }
.num-wrap { position: relative; }
.num-wrap::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--brass-hi), 0 0 0 4px rgba(226, 182, 97, .18); opacity: 0; pointer-events: none; }
.num-wrap.is-clamped::after { animation: clamp-flash 1.8s var(--ease-out); }
@keyframes clamp-flash { 0%, 45% { opacity: 1; } 100% { opacity: 0; } }
.num-wrap:focus-within { box-shadow: inset 0 0 0 1px var(--mint), 0 0 0 4px rgba(138, 217, 199, .14); background: rgba(255, 255, 255, .07); }
.calc .num { width: 5.4ch; height: 100%; border: 0; background: transparent; color: #fff; font-size: 16px; font-weight: 500; text-align: right; outline: none; padding: 0; }
.num-wrap { cursor: text; }
.calc .num-price { width: 8.4ch; }
.num-out { font-size: 16px; font-weight: 500; color: #fff; }
.range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; --p: 50%; --fill: var(--mint); touch-action: pan-y; }
.range:focus-visible { outline: none; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--fill) 0 var(--p), rgba(255, 255, 255, .14) var(--p) 100%); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--fill); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(138, 217, 199, .28), 0 0 18px 2px rgba(138, 217, 199, .45); transition: transform .25s var(--ease-out); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(138, 217, 199, .28), 0 0 18px 2px rgba(138, 217, 199, .45); }
.range:hover::-webkit-slider-thumb, .range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--c0), 0 0 0 5px var(--brass-hi), 0 0 22px 4px rgba(226, 182, 97, .5); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--c0), 0 0 0 5px var(--brass-hi); }
.range-brass { --fill: var(--brass-hi); }
.range-brass::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(226, 182, 97, .28), 0 0 18px 2px rgba(226, 182, 97, .45); }
.scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--t-micro); color: var(--d-faint); font-variant-numeric: tabular-nums; }
.scale-strong { color: var(--d-text); font-weight: 500; }
.ticks span { width: 2ch; text-align: center; }
.ticks span:first-child { text-align: left; } .ticks span:last-child { text-align: right; }
.calc .help { margin-top: 10px; font-size: var(--t-micro); line-height: 1.45; color: var(--d-faint); }
.calc-form-foot { margin-top: auto; }

.calc-out { padding: 32px 36px 28px; min-width: 0; position: relative; }
.out-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.out-label { font-size: var(--t-small); font-weight: 400; letter-spacing: 0; color: var(--d-muted); }
.out-value { margin-top: 10px; display: flex; align-items: baseline; font-size: var(--t-figure); font-weight: 300; letter-spacing: -.04em; line-height: .95; color: #fff; font-variant-numeric: tabular-nums; }
.out-value .cur { font-size: .5em; letter-spacing: 0; margin-right: .06em; color: var(--mint); align-self: flex-start; margin-top: .14em; }
.out-value .per { font-size: var(--t-h4); letter-spacing: -.01em; color: var(--d-muted); margin-left: 8px; }
.out-sub { margin-top: 16px; font-size: var(--t-small); max-width: 40ch; color: var(--d-muted); }
.out-sub strong { color: var(--d-text); font-weight: 500; }
.donut-fig { margin: 0; position: relative; display: grid; justify-items: center; gap: 14px; }
.donut-box { position: relative; width: 176px; height: 176px; }
.donut { width: 176px; height: 176px; transform: rotate(-90deg); overflow: visible; }
.donut circle { fill: none; stroke-width: 12; }
.donut-track { stroke: rgba(255, 255, 255, .06); }
.donut-p { stroke: var(--chart-p); }
.donut-i { stroke: var(--chart-i); }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dc-label { font-size: var(--t-micro); color: var(--d-faint); }
.dc-value { font-size: 26px; font-weight: 400; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-micro); color: var(--d-muted); }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend b { color: var(--d-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw-p { background: var(--chart-p); } .sw-i { background: var(--chart-i); }
.calc .stats { margin-top: 30px; }

.bars-fig { margin: 26px 0 0; position: relative; }
.bars-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.bars-title { font-size: var(--t-small); color: var(--d-text); }
.bars { display: flex; align-items: stretch; gap: 3px; height: 132px; border-bottom: 1px solid var(--d-line); border-radius: 2px; }
.bars:focus-visible { outline-offset: 6px; }
/* each bar is a full-height column; the two series scale from opposite ends (transform only) */
.bar { position: relative; flex: 1 1 0; min-width: 0; border-radius: 3px 3px 0 0; overflow: hidden; cursor: crosshair; }
.bar .seg { position: absolute; left: 0; right: 0; top: 0; bottom: 0; transition: transform .6s var(--ease-out), opacity .2s; }
.bar .seg-i { background: var(--chart-i); transform-origin: 50% 0; transform: scaleY(.5); }
.bar .seg-p { background: var(--chart-p); transform-origin: 50% 100%; transform: scaleY(.5); }
.bars:hover .bar:not(:hover) .seg, .bars.has-active .bar:not(.is-active) .seg { opacity: .45; }
.bars-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--t-micro); color: var(--d-faint); }
.bar-tip { position: absolute; z-index: 6; top: 22px; left: 0; min-width: 196px; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(5, 15, 12, .94); box-shadow: inset 0 0 0 1px var(--d-line-2), 0 16px 40px -12px rgba(0, 0, 0, .7); font-size: var(--t-micro); color: var(--d-text); pointer-events: none; }
.bar-tip strong { display: block; font-weight: 500; margin-bottom: 4px; }
.bar-tip span { display: flex; justify-content: space-between; gap: 16px; color: var(--d-muted); }
.bar-tip span b { color: var(--d-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.calc .disclosure { margin-top: 16px; }
.calc .table-scroll { max-height: 260px; overflow-y: auto; margin-top: 8px; }
.calc .table th, .calc .table td { padding: 8px 10px; text-align: right; }
.calc .table th:first-child, .calc .table td:first-child { text-align: left; }
.calc-fine { margin-top: 28px; max-width: 62ch; color: var(--d-faint) !important; }

/* live status dot */
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: ping 2.4s var(--ease-out) 4; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

/* principal / interest ratio bar */
.ratio-bar { position: relative; height: 6px; margin: 16px 0 14px; border-radius: 4px; overflow: hidden; }
.ratio-bar span { position: absolute; inset: 0; transition: transform .8s var(--ease-out); }
.ratio-bar .rb-p { background: var(--chart-p); transform-origin: 0 50%; }
.ratio-bar .rb-i { background: var(--chart-i); transform-origin: 100% 50%; }

/* compact readout that stays in view on phones while the sliders move */
.calc-readout { display: none; }

/* missing answer in a multi-step form */
.q.is-missing .chips span, .q.is-missing select { box-shadow: inset 0 0 0 1px var(--brass-hi); }
.q .q-missing-msg { display: none; margin-top: 10px; font-size: var(--t-micro); color: var(--brass-hi); }
.q.is-missing .q-missing-msg { display: block; }
.on-light .q .q-missing-msg, .light .q .q-missing-msg { color: var(--brass-deep); }

/* =========================================================================
   20. Sub-navigation (in-page tool / section rail)
   ========================================================================= */
.subnav { position: sticky; top: var(--nav-h); z-index: 30; background: rgba(5, 15, 12, .9); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); --focus: var(--brass-hi); }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--d-muted); text-decoration: none; white-space: nowrap; transition: color var(--dur-fast), background-color var(--dur-fast); }
.subnav a:hover { color: var(--d-text); background: rgba(255, 255, 255, .06); }
.subnav a[aria-current="true"] { color: var(--c0); background: var(--mint); }
.has-subnav { scroll-padding-top: calc(var(--nav-h) + 74px); }
@media (max-width: 1000px) {
  .subnav { position: static; }
  .subnav-inner { flex-wrap: wrap; overflow: visible; gap: 6px; padding-top: 14px; padding-bottom: 14px; }
  .has-subnav { scroll-padding-top: calc(var(--nav-h) + 16px); }
}

/* =========================================================================
   21. Footer
   ========================================================================= */
.footer { position: relative; overflow: hidden; background: var(--c-foot); color: var(--d-muted); padding: 96px 0 0; border-top: 1px solid var(--d-line); --focus: var(--brass-hi); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand p { margin-top: 16px; max-width: 34ch; font-size: var(--t-small); color: var(--d-muted); }
.footer h2 { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--d-text); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
.footer ul a { display: inline-flex; align-items: center; min-height: 36px; font-size: var(--t-small); color: var(--d-muted); text-decoration: none; transition: color var(--dur-fast); }
.footer ul a:hover { color: var(--mint); text-decoration: underline; }
.footer ul a:is([aria-current="page"], [aria-current="true"]) { color: var(--d-text); }
.disclaimer { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--d-line); display: grid; gap: 14px; font-size: var(--t-small); line-height: 1.6; color: var(--d-faint); }
.disclaimer p { max-width: 64ch; }
.eho { display: inline-flex; align-items: center; gap: 8px; color: var(--d-muted); }
.foot-word { margin: 40px 0 -0.22em; text-align: center; font-size: clamp(40px, 12.4vw, 200px); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: rgba(138, 217, 199, .07); white-space: nowrap; user-select: none; }
.foot-word b { font-weight: 600; color: rgba(138, 217, 199, .12); }

/* =========================================================================
   22. Responsive
   ========================================================================= */
@media (max-width: 1180px) {
  .nav-links a { padding: 0 10px; font-size: 14px; }
  .calc { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
  .out-top { grid-template-columns: 1fr; }
  .donut-fig { grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
  .donut-fig .legend { flex-direction: column; gap: 8px; }
}
@media (max-width: 1000px) {
  :root { --nav-h: 68px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: inline-block; }
  .split-head, .cols, .cols-5-7, .cols-7-5, .cols-4-8, .cta-band-inner, .source-panel, .page-hero-grid, .tool-layout { grid-template-columns: minmax(0, 1fr); }
  .tool-result { position: static; }
  .cta-band h2, .cta-band--media h2 { max-width: none; }
  .cta-band--media .cta-band-inner { grid-template-columns: minmax(0, 1fr); }
  .cta-band-media { aspect-ratio: 16 / 9; }
  .sticky-head { position: static; }
  .page-hero-media { aspect-ratio: 16 / 10; }
  .page-hero-aside { max-width: 560px; }
  .link-rows--split .link-row { grid-template-columns: minmax(0, 1fr); margin: 0; padding: 24px 0; }
  .link-rows--split .lr-text, .link-rows--split .lr-go { grid-column: 1; grid-row: auto; }
  .link-rows--split .lr-go { margin-top: 6px; justify-self: start; }
  .link-rows--split .link-row:hover { background: none; }
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--d-line); }
  .tl-steps { grid-template-columns: 1fr; gap: 0; padding-left: 40px; }
  .tl-rail { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .tl-fill { transform-origin: top; background: linear-gradient(180deg, var(--pine-bright), var(--mint-hi)); }
  .tl-steps li { padding: 0 0 36px; }
  .tl-steps li:last-child { padding-bottom: 0; }
  .node { left: -40px; top: 4px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --t-body: 16px; }
  .nav-cta-btn { display: none; }
  .calc { display: block; }
  .calc-inputs, .calc-out { padding: 24px 20px; }
  .calc-readout { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: calc(var(--nav-h) + 6px); z-index: 7; padding: 10px 20px; border-radius: var(--r-panel) var(--r-panel) 0 0; background: rgba(8, 22, 18, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--d-line); }
  .calc-readout .rd-label { font-size: var(--t-micro); color: var(--d-muted); }
  .calc-readout .rd-value { font-size: 24px; font-weight: 400; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
  .calc-readout .rd-value small { font-size: 14px; color: var(--d-muted); margin-left: 2px; }
  .calc-readout .rd-loan { text-align: right; font-size: var(--t-micro); color: var(--d-faint); }
  .calc-readout .rd-loan b { display: block; font-size: 15px; font-weight: 500; color: var(--d-text); }
  .calc .field-top { flex-wrap: wrap; }
  .out-value { font-size: clamp(56px, 17vw, 72px); }
  .donut-fig { grid-template-columns: 1fr; justify-items: center; }
  .donut-fig .legend { flex-direction: row; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--d-line); }
  .stats dd { font-size: 19px; }
  .bars { gap: 2px; height: 110px; }
  .tablist { display: flex; width: 100%; }
  .tablist [role="tab"] { flex: 1 1 0; padding: 0 12px; font-size: 14px; }
  .tab-x { display: none; }
  .accordion summary { font-size: 18px; padding-right: 48px; }
  .accordion .ans { padding-right: 0; }
  .form-card .two { grid-template-columns: 1fr; }
  .officer-id { grid-template-columns: 44px 1fr; }
  .contact-options { left: auto; right: 0; width: min(260px, calc(100vw - 2 * var(--gutter))); }
  .foot-grid { gap: 36px 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .footer { padding-top: 72px; }
  .page-hero-actions .btn { flex: 1 1 auto; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .media-frame { aspect-ratio: 16 / 10; }
  .link-row { grid-template-columns: minmax(0, 1fr); margin: 0; padding: 24px 0; }
  .link-row:hover, :is(.dark, .on-dark, .panel-dark, .glass) .link-row:hover { background: none; }
  .lr-title { font-size: 24px; }
  .lr-go { grid-column: 1; grid-row: auto; margin-top: 6px; }
  .link-rows--compact .link-row { grid-template-columns: minmax(0, 1fr) auto; margin: 0 -12px; padding: 14px 12px; }
  .link-rows--compact .lr-title { font-size: var(--t-text); }
  .link-rows--compact .lr-go { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .lib-item { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 20px 4px; }
  .lib-topic { grid-column: 1; grid-row: 1; }
  .lib-time { grid-column: 2; grid-row: 1; justify-self: end; }
  .lib-main { grid-column: 1 / -1; }
  .lib-arrow { display: none; }
  .lib-item:hover { background: transparent; }
}

@media (pointer: coarse) {
  .btn-sm, .disclosure > summary, .contact-menu summary { min-height: 44px; }
  .footer ul a, .breadcrumb a, .text-link { min-height: 44px; }
  .range { height: 44px; }
  .range::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -12px; }
  .range::-moz-range-thumb { width: 28px; height: 28px; }
  .num-wrap { height: 44px; }
}
html.menu-open { overflow: hidden; }

/* =========================================================================
   23. Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .glow::before { animation: none !important; transform: rotate(100deg); }
  .blob { animation: none !important; }
  .live-dot::after, .pulse-line { display: none; }
}

/* print: the content, not the chrome */
@media print {
  .nav, .mobile-menu, .backdrop, .glow, .foot-word, .subnav { display: none !important; }
  body { background: #fff; color: #000; }
  .dark, .page-hero, .cta-band, .footer { background: #fff !important; color: #000 !important; }
}

/* 2.0.1 brand wordmark: Gelasio SemiBold (Georgia fallback) */
.brand .wordmark { font-family: Gelasio, Georgia, "Iowan Old Style", "Times New Roman", serif; font-weight: 600; letter-spacing: -.01em; }
.brand .wordmark b { font-weight: 600; }

.results-actions--top { margin: 4px 0 20px; }
