/* ==========================================================================
   loanwolf.ca — SIMPLE CENTERED LAYOUT
   --------------------------------------------------------------------------
   Layout: one centered column. A white header with a horizontal nav and one
   primary button, a hero with a headline plus two clear buttons, then plain
   card grids and a full-width call-to-action band. No sidebar, no rail, no
   sticky toolbar, no bento grid, no numbered-section system.

   Palette: derived from the lime in the loanwolf logo, rebuilt on a light
   ground so body copy stays readable (the logo lime #8FD62A is far too light
   for text on white — it is an accent for rules, marks and small highlights
   only). Text uses ink/body/muted/lime-link; buttons use the darker lime-cta
   with white text, or ink with white text.

   Contract:
     - Colour literals live in :root (plus the print override) and nowhere
       else. Every other rule uses var().
     - Breakpoints: 640px, 900px (calculator grid), 1024px (nav switch).
     - 360px mobile parity; nothing overflows horizontally.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ==========================================================================
   01. TOKENS
   ========================================================================== */
:root {
  /* --- Palette (WCAG AA verified) ---------------------------------------- */
  --ink:            #14160F; /* headings, header bg, primary text — 18.24:1 */
  --body:           #3A4034; /* body copy — 10.70:1 */
  --muted:          #5C6355; /* secondary text — 6.23:1 */
  --line:           #E4E8DE; /* hairline borders */
  --bg:             #FFFFFF; /* page background */
  --surface:        #F6F8F2; /* alternating section band */
  --lime:           #8FD62A; /* BRAND ACCENT only — never text, never a button fill */
  --lime-cta:       #4A7A18; /* primary button fill; white text = 5.14:1 */
  --lime-cta-hover: #3F6A14; /* 6.40:1 */
  --lime-link:      #3F6314; /* link text on white = 6.99:1 */
  --lime-light:     #EEF7E2; /* tinted chip / band background */
  --danger:         #B3261E; /* risk callouts */
  --warn:           #8A5A00; /* attention callouts */

  /* --- Type -------------------------------------------------------------- */
  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* --- Fluid type scale -------------------------------------------------- */
  --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --step-0:  clamp(1.0625rem, 1.04rem + 0.11vw, 1.125rem); /* 17 → 18px body */
  --step-1:  clamp(1.1875rem, 1.14rem + 0.24vw, 1.3125rem);
  --step-2:  clamp(1.375rem, 1.29rem + 0.43vw, 1.625rem);
  --step-3:  clamp(1.625rem, 1.44rem + 0.93vw, 2.125rem);
  --step-4:  clamp(1.9375rem, 1.60rem + 1.70vw, 2.75rem);
  --step-5:  clamp(2.4rem, 1.85rem + 2.9vw, 3.5rem);

  /* --- Spacing ----------------------------------------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;

  /* --- Radii: modern, soft, never pill except where noted ---------------- */
  --r-sm: 8px;
  --r:    10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* --- Layout ------------------------------------------------------------ */
  --container-max: 1120px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 68ch;
  --header-h: 68px;

  /* --- Depth ------------------------------------------------------------- */
  --shadow-1: 0 1px 2px rgba(20, 22, 15, 0.05), 0 10px 24px -18px rgba(20, 22, 15, 0.35);
  --shadow-2: 0 1px 2px rgba(20, 22, 15, 0.06), 0 18px 40px -24px rgba(20, 22, 15, 0.45);

  /* --- Motion ------------------------------------------------------------ */
  --t-fast: 120ms;
  --t-base: 180ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ==========================================================================
   02. RESET / BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-weight: 700; line-height: 1.1; }
h3, h4 { font-weight: 600; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--lime-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--ink); }

strong, b { font-weight: 600; color: var(--ink); }
small { font-size: var(--step--1); color: var(--muted); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.2rem; }
li { margin-bottom: var(--sp-2); }
li::marker { color: var(--muted); }

img, svg, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0 0 var(--sp-5); }
figcaption { font-size: var(--step--1); color: var(--muted); margin-top: var(--sp-2); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--lime-light);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.1em 0.35em;
  color: var(--ink);
}
pre {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-4);
  overflow-x: auto;
  margin: 0 0 var(--sp-5);
}

blockquote {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  border-left: 3px solid var(--lime);
  color: var(--body);
  font-size: var(--step-1);
  line-height: 1.5;
}

::selection { background: var(--lime-light); color: var(--ink); }

/* Anything numeric reads as data: tabular figures, mono. */
:where(.stat__value, .calc-result__value, .calc-breakdown__value, .card__meta,
       .pill, .data-table :where(th, td), .calc-table :where(th, td),
       .offer-card__geo, .toc__list a, time) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ==========================================================================
   03. ACCESSIBILITY PRIMITIVES
   ========================================================================== */
:where(a, button, input, select, textarea, summary, [tabindex],
       [contenteditable]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) {
  outline: none;
}
/* Controls that are already ink- or lime-filled get a ring that stays visible. */
:where(.btn-primary, .btn-dark, .nav-cta, .skip-link):focus-visible {
  outline: 2px solid var(--lime-cta);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--bg);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.print-only { display: none !important; }

.skip-link {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 60;
  transform: translateY(-200%);
  display: inline-block;
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  border-radius: var(--r);
  transition: transform var(--t-base) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); color: var(--bg); }

/* ==========================================================================
   04. CONTAINER
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ==========================================================================
   05. HEADER + HORIZONTAL NAV
   ========================================================================== */
.header {
  position: relative;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* Row 1: logo left, then the CTA + hamburger right. Row 2 (>=1024px): the nav.
   Stacking this way keeps the primary CTA fully inside the viewport at 360px,
   which a single flex row could not do. */
.header-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-width: 0;
}
.header-end {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .header-inner {
    display: block;
    padding-block: var(--sp-3);
    min-height: var(--header-h);
  }
  /* Logo stays hard left; the nav links and then the primary CTA are pushed to
     the right edge of the container by the logo's auto margin. */
  .header-row {
    flex-wrap: nowrap;
    gap: var(--sp-5);
  }
  .logo { margin-right: auto; }
  .header-end {
    flex: 0 0 auto;
    gap: var(--sp-5);
  }
  .nav {
    display: flex;
    order: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .nav-cta-wrap { order: 1; }
  .nav-toggle { display: none !important; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  flex: 0 1 auto;
  margin-right: auto;
  padding-block: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
/* Logo lockup: the supplied PNG already contains the wordmark, so it is shown as
   one image with no adjacent text. Height-constrained with width:auto so the art
   never distorts (the art aspect is 1.523; the old width/height attributes forced
   1.51 and squashed it). */
.logo img {
  display: block;
  height: 50px;
  width: auto;
  max-width: 100%;
}
@media (min-width: 640px) {
  .logo img { height: 65px; }
}
@media (min-width: 1024px) {
  .logo img { height: 77px; }
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
}
@media (min-width: 1024px) {
  .nav { gap: var(--sp-1) var(--sp-5); }
}

.nav-link {
  display: inline-block;
  padding: var(--sp-2) 0;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.nav-link:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--lime);
}

.nav-cta-wrap { display: flex; align-items: center; min-width: 0; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.2;
  color: var(--bg);
  background: var(--lime-cta);
  border: 0;
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}
.nav-cta:hover { background: var(--lime-cta-hover); color: var(--bg); }

.nav-toggle {
  display: none !important; /* hidden above 899px; the <=899px rule turns it on */
  place-items: center;
  gap: 4px;
  width: 46px;
  height: 44px;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle::before { box-shadow: 0 6px 0 currentColor; }
.nav-toggle[aria-expanded="true"] { border-color: var(--ink); }

/* ==========================================================================
   06. HERO
   ========================================================================== */
.hero {
  background: var(--bg);
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 60rem; }
.hero h1 {
  font-size: var(--step-5);
  max-width: 26ch;
  margin-bottom: var(--sp-4);
}
.hero .lede { max-width: 58ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.hero-actions .btn { flex: 0 1 auto; }

.hero-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: 0;
  list-style: none;
}
.hero-stats > li { margin: 0; min-width: 0; }
@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* ==========================================================================
   07. TYPE ROLES
   ========================================================================== */
.eyebrow {
  display: block;
  margin: 0 0 var(--sp-3);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  max-width: 62ch;
  margin: 0 0 var(--sp-4);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

.section-head {
  max-width: 46rem;
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}
.section-head h2 {
  font-size: var(--step-4);
  margin-bottom: var(--sp-3);
}
.section-head p { color: var(--muted); max-width: 58ch; }
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ==========================================================================
   08. SECTIONS
   ========================================================================== */
.section { padding-block: clamp(3rem, 7vw, 4.5rem); }
.section-alt { background: var(--surface); }

/* ==========================================================================
   09. GRIDS + CARDS
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid > li { margin: 0; min-width: 0; }

@media (min-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  height: 100%;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.card:hover { border-color: var(--ink); box-shadow: var(--shadow-2); }

.card__title {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--lime-link); }

.card__meta {
  margin: 0;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__body { margin: 0; color: var(--body); }

/* Whole-card click target: one real link inside, the card catches the click. */
.card-link { text-decoration: none; color: var(--body); isolation: isolate; }
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}
.card-link:hover .card__title { color: var(--lime-link); }
.card-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ==========================================================================
   10. STATS, PILLS
   ========================================================================== */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--lime);
}
.stat__value {
  font-size: var(--step-4);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.stat__label {
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.25em 0.7em;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--ink);
  background: var(--lime-light);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

/* ==========================================================================
   11. CALLOUTS
   ========================================================================== */
.callout {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--r);
  color: var(--body);
}
.callout > :last-child { margin-bottom: 0; }
.callout :where(h2, h3, h4) {
  margin: 0 0 var(--sp-2);
  font-size: var(--step-1);
  color: var(--ink);
}
.callout strong { color: var(--ink); }

.callout--info {
  background: var(--lime-light);
  border-color: var(--line);
  border-left-color: var(--lime);
}
.callout--info :where(h2, h3, h4, strong) { color: var(--ink); }

.callout--warn {
  background: var(--surface);
  border-color: var(--line);
  border-left-color: var(--warn);
}
.callout--warn :where(h2, h3, h4, strong) { color: var(--warn); }

/* ==========================================================================
   12. CTA BAND — one obvious action, centered
   ========================================================================== */
.cta-band {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  text-align: center;
  background: var(--lime-light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band > .container { max-width: 46rem; }
.cta-band h2 {
  font-size: var(--step-4);
  margin-bottom: var(--sp-3);
}
.cta-band p {
  margin: 0 auto var(--sp-5);
  max-width: 52ch;
  color: var(--body);
}
.cta-band .btn { margin-inline: auto; }
.cta-band__note {
  margin: var(--sp-4) auto 0;
  max-width: 60ch;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--muted);
}
/* Ink variant: reads as the loudest band on the page. */
.cta-band.is-dark,
.cta-band--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.cta-band.is-dark h2,
.cta-band--dark h2 { color: var(--bg); }
.cta-band.is-dark p,
.cta-band--dark p { color: var(--line); }
.cta-band.is-dark .cta-band__note,
.cta-band--dark .cta-band__note { color: var(--line); }

/* ==========================================================================
   13. BUTTONS — the loudest thing on the page after the H1
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 46px;
  padding: 13px 22px;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  appearance: none;
  transition: background-color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

/* THE main call to action. */
.btn-primary {
  color: var(--bg);
  background: var(--lime-cta);
  border-color: var(--lime-cta);
  font-weight: 600;
}
.btn-primary:hover { background: var(--lime-cta-hover); border-color: var(--lime-cta-hover); color: var(--bg); }
.btn-primary:active { background: var(--lime-cta-hover); }

.btn-secondary {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); }

.btn-dark {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--body); border-color: var(--body); color: var(--bg); }

.btn-lg {
  min-height: 54px;
  padding: 16px 30px;
  font-size: var(--step-1);
}
.btn-block { display: flex; width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--line);
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

/* ==========================================================================
   14. BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--muted);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  min-width: 0;
}
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.breadcrumbs a:hover { color: var(--lime-link); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   15. PROSE + TABLES
   ========================================================================== */
.prose {
  max-width: var(--measure);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--body);
}
.prose > :first-child { margin-top: 0; }
.prose :where(h2, h3, h4) { color: var(--ink); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h2 { font-size: var(--step-3); }
.prose h3 { font-size: var(--step-2); }
.prose h4 { font-size: var(--step-1); }
.prose a { color: var(--lime-link); text-decoration: underline; }
.prose a:hover { color: var(--ink); }
.prose :where(ul, ol) { padding-left: 1.3rem; }
.prose :where(img, figure) { margin-block: var(--sp-5); }

.table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 0 var(--sp-5);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.table-wrap:focus-within { border-color: var(--ink); }

.data-table {
  width: 100%;
  min-width: 34rem; /* stays legible; scrolls inside .table-wrap only */
  margin: 0;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  color: var(--body);
}
.data-table caption {
  caption-side: top;
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.data-table :where(th, td) {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  white-space: nowrap;
}
.data-table tbody tr:nth-child(even) :where(th, td) { background: var(--surface); }
.data-table tbody tr:last-child :where(th, td) { border-bottom: 0; }
.data-table tbody th { font-weight: 600; color: var(--ink); }
.data-table :where(td.is-num, .is-num) { font-family: var(--font-mono); color: var(--ink); white-space: nowrap; }
.data-table tfoot :where(th, td) {
  background: var(--surface);
  font-size: var(--step--1);
  color: var(--muted);
}

/* ==========================================================================
   16. FAQ
   ========================================================================== */
.faq {
  max-width: var(--measure);
  margin: 0 0 var(--sp-5);
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin: 0;
  padding: var(--sp-4) 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--lime-cta);
}
.faq__item[open] > .faq__q::after { content: "\2212"; }
.faq__q:hover { color: var(--lime-link); }
.faq__q:not(summary) { cursor: default; }
.faq__q:not(summary)::after { content: none; }

.faq__a {
  max-width: var(--measure);
  padding: 0 0 var(--sp-5);
  color: var(--body);
  line-height: 1.65;
}
.faq__a > :last-child { margin-bottom: 0; }

/* ==========================================================================
   17. STEPS + CHECKLIST
   ========================================================================== */
.steps {
  counter-reset: step;
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
  max-width: var(--measure);
}
.step {
  position: relative;
  counter-increment: step;
  margin: 0 0 var(--sp-5);
  padding: 0 0 0 var(--sp-7);
  border-left: 1px solid var(--line);
  margin-left: 15px;
}
.step:last-child { border-left-color: transparent; margin-bottom: 0; padding-bottom: 0; }
.step::before {
  content: counter(step);
  position: absolute;
  left: -15px;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  border-radius: var(--r-pill);
}
.step :where(h2, h3, h4) { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.step p { color: var(--body); margin-bottom: var(--sp-2); }
.step > :last-child { margin-bottom: 0; }

.checklist {
  max-width: var(--measure);
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  margin: 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-6);
  border-bottom: 1px solid var(--line);
  color: var(--body);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.05em;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--lime-cta);
  border-bottom: 2px solid var(--lime-cta);
  transform: rotate(-45deg);
}
.checklist--cross li::before {
  top: 1.1em;
  width: 11px;
  height: 11px;
  border: 0;
  transform: none;
  background:
    linear-gradient(45deg, transparent 44%, var(--danger) 44%, var(--danger) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--danger) 44%, var(--danger) 56%, transparent 56%);
}

/* ==========================================================================
   18. SOURCES + AFFILIATE DISCLOSURE
   ========================================================================== */
.source-list {
  counter-reset: src;
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
  max-width: var(--measure);
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--muted);
}
.source-list li {
  counter-increment: src;
  position: relative;
  margin: 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.source-list li:last-child { border-bottom: 0; }
.source-list li::before {
  content: "[" counter(src) "]";
  position: absolute;
  left: 0;
  top: var(--sp-2);
  font-family: var(--font-mono);
  color: var(--muted);
}
.source-list a { color: var(--lime-link); overflow-wrap: anywhere; }
.source-list a:hover { color: var(--ink); }
.source-list :where(cite, em) { font-style: normal; color: var(--body); }

.affiliate-note {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--muted);
}
.affiliate-note :where(strong, a) { color: var(--body); }
.affiliate-note a { text-decoration: underline; }
.affiliate-note a:hover { color: var(--lime-link); }

/* ==========================================================================
   19. OFFER CARDS — affiliate box, distinct from .cta-band
   ========================================================================== */
.offer-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  height: 100%;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--lime);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.offer-card :where(h2, h3, h4) {
  margin: 0;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.offer-card p { margin: 0; color: var(--body); font-size: var(--step--1); line-height: 1.6; }
.offer-card :where(ul, ol) { font-size: var(--step--1); color: var(--body); margin: 0; padding-left: 1.1rem; }
.offer-card .btn { margin-top: auto; }
.offer-card .btn-primary { align-self: stretch; }

.offer-card__geo {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0;
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.offer-card__geo :where(small, span) {
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   20. CALCULATOR
   ========================================================================== */
.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
  margin: 0 0 var(--sp-6);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.calc-form { min-width: 0; }
@media (min-width: 900px) {
  .calculator { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--sp-7); }
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
  margin: 0 0 var(--sp-4);
}
.calc-field:last-child { margin-bottom: 0; }

.calc-label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
}
.calc-label :where(small, .calc-hint) {
  display: block;
  margin-top: var(--sp-1);
  font-weight: 400;
  color: var(--muted);
}

.calc-input,
.calc-select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px var(--sp-4);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  appearance: none;
  transition: border-color var(--t-fast) var(--ease);
}
.calc-input::placeholder { color: var(--muted); }
.calc-input:hover,
.calc-select:hover { border-color: var(--ink); }
.calc-input:focus,
.calc-select:focus { border-color: var(--lime-cta); }
.calc-input[aria-invalid="true"],
.calc-select[aria-invalid="true"] { border-color: var(--danger); }

.calc-select {
  /* Inline data-URI chevron — no external request. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A7A18' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-7);
}

.calc-range {
  width: 100%;
  min-height: 46px;
  margin: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}
.calc-range::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--line);
  border-radius: var(--r-pill);
}
.calc-range::-moz-range-track {
  height: 4px;
  background: var(--line);
  border-radius: var(--r-pill);
}
.calc-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  background: var(--lime-cta);
  border: 2px solid var(--bg);
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 1px var(--line);
}
.calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--lime-cta);
  border: 2px solid var(--bg);
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 1px var(--line);
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.calc-actions .btn { flex: 1 1 auto; }

.calc-result {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--r);
}
.calc-result__value {
  font-size: var(--step-4);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.calc-result__label {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-result :where(p, small) { font-size: var(--step--1); line-height: 1.6; color: var(--body); }

.calc-breakdown {
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--body);
}
.calc-breakdown li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin: 0;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line);
}
.calc-breakdown li:last-child { border-bottom: 0; }
.calc-breakdown :where(.calc-breakdown__label, dt) { color: var(--muted); overflow-wrap: anywhere; }
/* These hold sentences (assumptions, explanations), not just numbers, so they
   must wrap. `nowrap` here forced 968px of horizontal overflow at 360px. */
.calc-breakdown :where(.calc-breakdown__value, dd, strong) {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
}

.calc-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: var(--step--1);
  color: var(--body);
}
.calc-table caption {
  caption-side: top;
  padding: var(--sp-2) 0;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}
.calc-table :where(th, td) {
  padding: var(--sp-2) var(--sp-3);
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.calc-table :where(th, td):first-child { text-align: left; color: var(--ink); font-weight: 500; }
.calc-table thead th { background: var(--surface); color: var(--ink); }

.calc-repeater-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
  margin: 0 0 var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.calc-repeater-row .calc-field { margin: 0; }
.calc-repeater-body { display: contents; }
@media (min-width: 640px) {
  .calc-repeater-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
}

.calc-add {
  align-self: flex-start;
  margin-top: var(--sp-2);
}

.calc-hint {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--step--1);
  color: var(--muted);
}

/* ==========================================================================
   21. TOC + RELATED
   ========================================================================== */
.toc {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  max-width: var(--measure);
}
.toc > :where(h2, h3, strong) {
  display: block;
  margin: 0 0 var(--sp-3);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  line-height: 1.5;
}
.toc__list li { margin: 0; border-bottom: 1px solid var(--line); }
.toc__list li:last-child { border-bottom: 0; }
.toc__list a {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  color: var(--body);
  text-decoration: none;
}
.toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  color: var(--muted);
}
.toc__list { counter-reset: toc; }
.toc__list li { counter-increment: toc; }
.toc__list a:hover { color: var(--lime-link); text-decoration: underline; }

.related {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.related__item { margin: 0; min-width: 0; }
.related__item a {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  height: 100%;
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.related__item a:hover { border-color: var(--ink); background: var(--lime-light); color: var(--ink); }
.related__item :where(span, small) {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--muted);
}

/* ==========================================================================
   22. ASIDE CTA (in-flow companion box — never fixed, never sticky)
   ========================================================================== */
.aside-cta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--lime);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.aside-cta :where(h2, h3) { margin: 0; font-size: var(--step-2); }
.aside-cta p { margin: 0; font-size: var(--step--1); line-height: 1.6; color: var(--body); }
.aside-cta :where(ul, ol) { margin: 0; font-size: var(--step--1); color: var(--body); }
.aside-cta .btn { margin-top: var(--sp-1); }
.aside-cta + .aside-cta { margin-top: var(--sp-4); }
.aside-cta__note { font-size: var(--step--1); color: var(--muted); }

/* ==========================================================================
   23. FOOTER
   ========================================================================== */
.site-foot {
  margin-top: var(--sp-7);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) var(--sp-6);
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}
.site-foot :where(h2, h3) {
  margin: 0 0 var(--sp-3);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-foot p { line-height: 1.65; }
.site-foot a { color: var(--body); text-decoration: none; }
.site-foot a:hover { color: var(--lime-link); text-decoration: underline; }

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
}
.foot-col { min-width: 0; }
.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col li { margin: 0 0 var(--sp-2); }
.foot-col__title {
  margin: 0 0 var(--sp-3);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.foot-col:first-child :where(p, .foot-note) { max-width: 44ch; color: var(--body); }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .foot-grid { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: var(--sp-7); } }

.foot-legal {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  line-height: 1.65;
  color: var(--muted);
}
.foot-legal :where(p, small) { margin: 0 0 var(--sp-3); max-width: 90ch; }
.foot-legal p:last-child { margin-bottom: 0; }
.foot-legal :where(strong, a) { color: var(--body); }
.foot-legal a { text-decoration: underline; }
.foot-legal a:hover { color: var(--lime-link); }

.foot-note {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   24. MISC UTILITIES + 360px PARITY
   ========================================================================== */
.prose-block { margin: 0 0 var(--sp-5); max-width: var(--measure); }

/* Long unbreakable strings (URLs, lender names) must never cause overflow. */
:where(.card, .offer-card, .faq__a, .callout, .aside-cta, .calc-result,
       .foot-col, .source-list, .lede, .prose, .toc, .related__item,
       .hero-stat, .data-table :where(th, td)) {
  overflow-wrap: break-word;
  word-break: normal;
}

@media (max-width: 1023px) {
  .nav-toggle { display: grid !important; }

  .nav {
    display: none;
    order: 3;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: var(--sp-3);
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav-link {
    padding: var(--sp-3) var(--sp-1);
    font-size: var(--step-0);
    border-bottom: 1px solid var(--line);
  }
  .nav-link:hover { border-bottom-color: var(--line); }
  .nav-link.is-active,
  .nav-link[aria-current="page"] { border-bottom-color: var(--line); color: var(--lime-link); }
  .nav-cta-wrap { flex: 0 0 auto; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none !important; }
  .nav { display: flex; order: 0; }
}

@media (max-width: 639px) {
  :root {
    --container-pad: 1.25rem;
    --header-h: 64px;
  }
  .header-inner { gap: var(--sp-2) var(--sp-3); }
  .logo { font-size: var(--step-0); }
  .lede { font-size: var(--step-0); }
  .nav-cta { padding: 10px 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-band .btn { width: 100%; }
  .calc-actions .btn { flex: 1 1 100%; }
  .step { padding-left: var(--sp-6); margin-left: 14px; }
  .step::before { left: -14px; }
  .data-table { min-width: 28rem; }
}

/* ==========================================================================
   25. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:active { transform: none; }
}

/* ==========================================================================
   26. PRINT — white paper, black ink, chrome removed
   ========================================================================== */
@media print {
  :root {
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --lime-light: #FFFFFF;
    --line: #BBBBBB;
    --ink: #000000;
    --body: #000000;
    --muted: #333333;
    --lime: #000000;
    --lime-cta: #000000;
    --lime-cta-hover: #000000;
    --lime-link: #000000;
    --danger: #000000;
    --warn: #000000;
    --shadow-1: none;
    --shadow-2: none;
    --measure: none;
    --container-max: none;
  }

  @page { margin: 14mm; }

  html, body { background: var(--bg); color: var(--ink); font-size: 10.5pt; line-height: 1.45; }
  body { overflow: visible; }

  /* Strip all chrome and interactive affordances. */
  .header,
  .nav,
  .nav-toggle,
  .nav-cta,
  .nav-cta-wrap,
  .cta-band,
  .aside-cta,
  .skip-link,
  .calc-actions,
  .offer-card .btn,
  .site-foot .foot-col:last-child { display: none !important; }

  .container { max-width: none; padding-inline: 0; }

  .print-only { display: block !important; }

  :where(.card, .offer-card, .callout, .affiliate-note, .calculator, .toc,
         .table-wrap, .hero-stat, .related__item a, .calc-repeater-row) {
    background: var(--bg) !important;
    border-color: var(--line) !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .section, .section-alt, .cta-band, .site-foot, .hero {
    background: var(--bg) !important;
    border-color: var(--line) !important;
  }
  .step::before { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); }
  .checklist li::before { border-color: var(--ink); }
  .callout--warn :where(h2, h3, h4, strong) { color: var(--ink); }

  .table-wrap { overflow: visible; }
  .data-table, .calc-table { min-width: 0; width: 100%; font-size: 9pt; }
  .data-table tbody tr:nth-child(even) :where(th, td) { background: var(--bg); }

  a { color: var(--ink); text-decoration: underline; }
  .prose a[href^="http"]::after,
  .source-list a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-family: var(--font-mono);
    font-size: 8pt;
    color: var(--muted);
    word-break: break-all;
  }

  :where(h1, h2, h3, h4) { color: var(--ink); break-after: avoid; page-break-after: avoid; }
  .faq__item[open] { background: var(--bg); }
  img, svg { max-width: 100% !important; }
}
