/* Visual identity: "MS Financial Literacy — Brand Studio" concept (Deep Forest / Fresh Lime / Warm Paper,
   Manrope + DM Sans, 24px radii, 8px grid). Light by design. Fonts self-hosted, latin subset. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/manrope-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/dm-sans-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/dm-sans-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f7f8f2;
  --white: #ffffff;
  --ink: #163b32;
  --muted: #55675f;
  --line: #dde3d9;
  --lime: #d8f27a;
  --sage: #e9efe3;
  --forest: #235747;
  --highlight: #f1f9cf;
  --radius: 24px;
  --radius-sm: 12px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --heading: "Manrope", system-ui, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --wrap: 1320px;
  --measure: 44rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); color: var(--ink); }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 0.2s, background 0.2s, transform 0.2s, border-color 0.2s; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 4px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 56px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* header */
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; min-height: 96px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 700 1rem/1.2 var(--heading); letter-spacing: -0.01em; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand__tld { font-weight: 500; color: var(--muted); }
.brand small { display: block; font: 500 0.6875rem/1.2 var(--font); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; color: var(--muted); }
.mark { width: 43px; height: 43px; flex: none; color: var(--ink); }
/* mega menu */
.masthead { position: relative; z-index: 20; }
.mega__bar { display: flex; gap: 4px; list-style: none; margin: 0; padding: 5px; background: #e9ede3; border-radius: 99px; }
.mega__item { position: static; }
.mega__top { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 99px; color: var(--muted); font-size: 0.875rem; text-decoration: none; white-space: nowrap; }
.mega__top:hover, .mega__item:hover .mega__top, .mega__item:focus-within .mega__top { color: var(--ink); background: var(--white); }
.mega__top[aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 2px 5px #163b3210; }
.mega__chev { opacity: 0.6; transition: transform 0.2s; }
.mega__item:hover .mega__chev, .mega__item:focus-within .mega__chev { transform: rotate(180deg); }
.mega__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px #163b3214; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s, transform 0.18s, visibility 0s 0.18s; }
.mega__item:hover .mega__panel, .mega__item:focus-within .mega__panel { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s, transform 0.18s; }
.mega__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mega__grid { display: grid; grid-template-columns: minmax(16rem, 1fr) 3fr; gap: 40px; padding-top: 32px; padding-bottom: 36px; }
.mega__intro { background: var(--sage); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mega__title { font: 600 1.375rem/1.2 var(--heading); letter-spacing: -0.03em; }
.mega__blurb { color: var(--muted); font-size: 0.9375rem; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.875rem; margin-top: auto; }
.mega__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 28px 32px; align-content: start; }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__col a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 0.9375rem; line-height: 1.35; border-bottom: 1px solid transparent; }
.mega__col a:hover, .mega__col a[aria-current] { color: var(--forest); text-decoration: underline; }
.mnav { display: none; }

/* shared bits */
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; color: var(--ink); }
.eyebrow--center { justify-content: center; margin-bottom: 20px; }
.dot { width: 7px; height: 7px; background: var(--forest); border-radius: 50%; display: inline-block; }
.num { display: block; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pill { display: inline-block; border: 1px solid var(--line); padding: 4px 12px; border-radius: 30px; font-size: 0.75rem; background: var(--white); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 24px; border: 1px solid var(--ink); border-radius: 99px; background: var(--ink); color: var(--white); font-size: 0.9375rem; text-decoration: none; }
.btn:hover { transform: translateY(-2px); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--ink); background: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* home hero */
.site-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; padding: 72px 0; }
.site-hero h1 { font-size: clamp(2.75rem, 1.8rem + 3.4vw, 4.25rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.035em; margin: 22px 0; }
.site-hero h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.lede { color: var(--muted); max-width: 30rem; font-size: 1.0625rem; }
.illustration { margin: 0; background: var(--sage); border-radius: 32px; padding: 38px; position: relative; overflow: hidden; }
.illustration::before, .illustration::after { content: ""; position: absolute; border: 1px solid #c4d2bc; border-radius: 50%; width: 420px; height: 420px; right: -150px; top: -230px; }
.illustration::after { width: 650px; height: 650px; right: -265px; top: -345px; }
.money-card { position: relative; z-index: 1; background: var(--white); border-radius: 20px; padding: 24px; box-shadow: 0 20px 40px #163b3210; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.875rem; }
.money-card__value { font: 500 2.25rem/1.1 var(--heading); letter-spacing: -0.04em; margin: 16px 0 8px; }
.bars { list-style: none; padding: 0; margin: 12px 0 8px; height: 170px; display: flex; align-items: flex-end; gap: 12px; }
.bars li { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.bars__bar { display: block; width: 100%; height: calc(var(--h) * 0.72); background: var(--lime); border-radius: 9px 9px 0 0; order: 1; }
.bars li:nth-child(even) .bars__bar { background: var(--forest); }
.bars b { font: 600 0.875rem/1 var(--heading); order: 0; }
.bars small { font-size: 0.75rem; color: var(--muted); order: 2; }
.money-card figcaption { font-size: 0.8125rem; color: var(--muted); }
.floating { position: relative; z-index: 1; background: var(--ink); color: var(--white); padding: 22px; border-radius: 18px; width: 85%; margin: 20px 0 0 auto; }
.floating strong { display: block; }
.floating small { color: #c9d9cd; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; padding-bottom: 22px; font-size: 0.875rem; }
.band a { color: var(--ink); }

/* home sections */
.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 28px; }
.section-title > span { font-size: 0.8125rem; color: var(--muted); }
.home h2, .cta h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.12; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.path { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.path:hover { transform: translateY(-4px); color: var(--ink); border-color: #c4d2bc; }
.path--sage { background: var(--sage); border-color: transparent; }
.path small { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.path strong { font: 600 1.375rem/1.2 var(--heading); letter-spacing: -0.03em; }
.path span { font-size: 0.9375rem; color: var(--muted); }
.path .arrow { margin-top: auto; padding-top: 14px; font-style: normal; font-size: 0.875rem; color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.rule { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rule b { font: 500 1.875rem/1 var(--heading); min-width: 64px; }
.rule p { color: var(--muted); }
.rule strong { display: block; color: var(--ink); }
.note { background: var(--sage); padding: 16px 20px; border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--muted); margin: 28px 0 0; }
.cta { margin: 56px 0 72px; padding: 56px; text-align: center; border-radius: var(--radius); background: var(--lime); }
.cta h2 { margin-bottom: 24px; }

/* article, hub, page */
.article { padding-top: 32px; padding-bottom: 72px; }
.article > * { max-width: var(--measure); }
.article > .related, .article > .sources { max-width: 60rem; }
.article--narrow { max-width: calc(var(--measure) + 112px); }
.crumbs { font-size: 0.8125rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.kicker { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; color: var(--forest); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--forest); }
.article h1 { font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 16px; hyphens: auto; overflow-wrap: break-word; }
.dek { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); margin: 0 0 16px; }
.byline { font-size: 0.875rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 20px; margin: 0 0 32px; }
.prose h2 { font-size: 1.75rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; margin: 48px 0 14px; }
.prose h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--forest); }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 24px 0; padding: 16px 20px; background: var(--sage); border-radius: var(--radius-sm); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; margin: 24px 0 32px; font-size: 0.9375rem; font-variant-numeric: tabular-nums; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--sage); font-weight: 700; font-size: 0.875rem; }
.prose code { font-size: 0.9em; background: var(--sage); padding: 0.1em 0.35em; border-radius: 6px; }
sup.ref { font-size: 0.72em; line-height: 0; font-variant-numeric: tabular-nums; }
sup.ref a { text-decoration: none; font-weight: 700; padding: 0 0.15em; }
.article .note { margin: 48px 0 32px; }
.sources { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.sources h2, .related h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 16px; }
.sources ol { padding-left: 24px; }
.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }
.sources li:target { background: var(--highlight); border-radius: 6px; }
.asof { color: var(--muted); }
.related { margin-top: 56px; }
.related .cards a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.related .cards a:hover { transform: translateY(-4px); border-color: #c4d2bc; }
.related .cards strong { font: 600 1.125rem/1.25 var(--heading); letter-spacing: -0.02em; }
.related .cards span { font-size: 0.875rem; color: var(--muted); }

/* charts and figures inside articles */
.prose figure.chart { margin: 28px 0 32px; }
.prose figure.chart img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.prose figure.chart figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 10px; }

/* footer */
.colophon { border-top: 1px solid var(--line); padding: 48px 0 0; font-size: 0.875rem; color: var(--muted); }
.colophon__grid { display: grid; gap: 24px; grid-template-columns: 2fr 1fr; padding-bottom: 32px; }
.colophon__grid p { max-width: 34rem; margin-top: 14px; }
.colophon nav { display: flex; flex-direction: column; }
.colophon nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; }
.colophon nav a:hover { text-decoration: underline; }
.fine { font-size: 0.8125rem; }
.colophon__base { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 0.75rem; }

@media (max-width: 1080px) {
  .mega__bar { display: none; }
  .mnav { display: block; position: static; }
  .mnav > summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 99px; background: #e9ede3; cursor: pointer; font-size: 0.9375rem; }
  .mnav > summary::-webkit-details-marker, .mnav__hub > summary::-webkit-details-marker { display: none; }
  .mnav[open] > summary { background: var(--ink); color: var(--white); }
  .mnav__body { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px #163b3214; padding: 8px 24px 20px; max-height: calc(100vh - 90px); overflow-y: auto; }
  .mnav__hub { border-bottom: 1px solid var(--line); }
  .mnav__hub > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; font: 600 1.0625rem/1.2 var(--heading); cursor: pointer; }
  .mnav__hub > summary::after { content: "+"; font-weight: 400; color: var(--muted); }
  .mnav__hub[open] > summary::after { content: "−"; }
  .mnav__hub ul { list-style: none; margin: 0 0 12px; padding: 0; }
  .mnav__hub a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; border-top: 1px solid var(--sage); }
  .mnav__hub a[aria-current] { color: var(--forest); font-weight: 700; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .site-hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .rules { grid-template-columns: 1fr; }
  .colophon__grid { grid-template-columns: 1fr; }
  .colophon nav { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
  .colophon nav a { min-height: 44px; }
}
@media (max-width: 560px) {
  .masthead__row { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .section-title { flex-direction: column; gap: 8px; }
  .illustration { padding: 20px; }
  .floating { width: 100%; }
  .cta { padding: 32px 22px; }
  .path { padding: 22px; }
  .colophon__base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .path:hover, .btn:hover, .related .cards a:hover { transform: none; }
  .mega__panel { transition: none; }
}

/* calculators (savings-rate guide). Mobile first; 16px+ inputs so iOS does not zoom. */
.calc { margin: 32px 0 40px; background: var(--sage); border-radius: var(--radius); padding: 22px 18px; max-width: 60rem; scroll-margin-top: 16px; }
.article > .prose .calc, .prose .calc { max-width: none; }
.calc__head { margin-bottom: 14px; }
.calc__title { font: 600 1.5rem/1.2 var(--heading); letter-spacing: -0.03em; margin: 10px 0 8px !important; }
.calc__lede { font-size: 0.875rem; color: var(--muted); margin: 0 !important; }
.calc__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.calc__hintline { font-size: 0.8125rem; color: var(--muted); }
.calc__link { background: none; border: 0; padding: 10px 0; min-height: 44px; font: 600 0.9375rem var(--font); color: var(--forest); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.seg { display: inline-flex; background: #dfe7d8; border-radius: 99px; padding: 4px; gap: 4px; }
.seg button, .seg label span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 99px; background: transparent; font: 600 0.875rem var(--font); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--white); color: var(--ink); box-shadow: 0 2px 6px #163b3214; }
.seg--radio { display: flex; width: 100%; }
.seg--radio label { flex: 1; display: flex; }
.seg--radio label span { flex: 1; padding: 0 6px; font-size: 0.8125rem; white-space: nowrap; }
.seg--radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg--radio input:focus-visible + span { outline: 3px solid var(--forest); outline-offset: 2px; }
.calc__grid { display: grid; gap: 16px; }
.calc__fields { display: grid; gap: 14px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; padding: 0; }
.field__hint { font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.field__val { margin-left: auto; font: 700 1rem var(--heading); }
.field__warn { color: #9a3412; font-size: 0.8125rem; margin: 6px 0 0 !important; }
.field--optional label::after { content: ""; }
.money { display: flex; align-items: center; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px; min-height: 54px; transition: border-color 0.15s; }
.money:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px #23574722; }
.money > span:first-child { color: var(--muted); font-weight: 600; margin-right: 6px; }
.money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 1.125rem var(--font); color: var(--ink); padding: 14px 0; font-variant-numeric: tabular-nums; }
.money__unit { color: var(--muted); font-size: 0.875rem; margin-left: 6px; }
.stepper { display: grid; grid-template-columns: 54px 1fr 54px; gap: 8px; }
.stepper button { min-height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font: 600 1.5rem var(--heading); color: var(--ink); cursor: pointer; }
.stepper button:active { background: var(--lime); }
.stepper__val { display: flex; align-items: center; justify-content: center; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; }
.stepper__val:focus-within { border-color: var(--forest); }
.stepper__val input { width: 4.5ch; border: 0; outline: 0; background: transparent; text-align: right; font: 700 1.5rem var(--heading); color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper__val input::-webkit-outer-spin-button, .stepper__val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__val span { font: 700 1.25rem var(--heading); color: var(--muted); margin-left: 2px; }
.range { width: 100%; margin: 14px 0 4px; accent-color: var(--forest); height: 28px; }
.calc__result { background: var(--white); border-radius: 20px; padding: 18px; box-shadow: 0 12px 30px #163b3212; scroll-margin-top: 16px; }
.calc__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--muted); margin: 0 !important; }
.calc__big { font: 700 clamp(2.5rem, 2rem + 3vw, 3.5rem)/1 var(--heading); letter-spacing: -0.04em; margin: 6px 0 4px !important; font-variant-numeric: tabular-nums; }
.calc__sub { font-size: 0.875rem; color: var(--muted); margin: 0 0 8px !important; }
.meter { height: 10px; background: var(--sage); border-radius: 99px; overflow: hidden; margin: 10px 0 14px; }
.meter span { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--forest), var(--lime)); border-radius: 99px; transition: width 0.3s; }
.calc__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0 0 14px; }
.calc__facts div { background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.calc__facts dt { font-size: 0.75rem; color: var(--muted); }
.calc__facts dd { margin: 2px 0 0; font: 700 1.0625rem var(--heading); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__go { width: 100%; }
.calc__go:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.calc__reset { display: block; margin: 4px auto 0; color: var(--muted); }
.calc__chart svg { display: block; width: 100%; height: auto; margin: 4px 0 8px; font-family: var(--font); }
.calc__tips { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 6px; }
.calc__tips li { font-size: 0.875rem; background: var(--paper); border-radius: 10px; padding: 8px 12px; margin: 0 !important; }
.calc__tips li::marker { content: ""; }
.calc__fine { font-size: 0.8125rem; color: var(--muted); margin: 14px 0 0 !important; }
.calc__noscript { font-size: 0.875rem; }
/* Without JS the calculators cannot answer: keep the explanations, hide the empty result card. */
html:not(.calc-ready) .calc__result, html:not(.calc-ready) .calc__bar .calc__link { display: none; }
/* Phones: the result card stays in place; a slim bar with the answer follows the fields. */
.calc__peek { display: none; }
@media (max-width: 719px) {
  .calc__result { position: static; padding: 16px; }
  .calc__peek { position: sticky; bottom: 10px; z-index: 3; display: flex; align-items: center; gap: 10px; margin-top: -56px; margin-bottom: 0; padding: 10px 16px; min-height: 56px; border-radius: 16px; background: var(--ink); color: var(--white); text-decoration: none; box-shadow: 0 10px 24px #163b3240; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
  .calc.in-view:not(.result-visible) .calc__peek { opacity: 1; transform: none; pointer-events: auto; }
  .calc__peek span { font-size: 0.8125rem; color: #c9d9cd; }
  .calc__peek b { font: 700 1.375rem var(--heading); font-variant-numeric: tabular-nums; }
  .calc__peek em { margin-left: auto; font-style: normal; font-size: 0.8125rem; color: var(--lime); }
  .calc__grid { display: flex; flex-direction: column; }
}
@media (min-width: 720px) {
  .calc { padding: 32px; margin-left: -32px; margin-right: -32px; }
  .calc__grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .calc__result { position: sticky; top: 16px; bottom: auto; }
}
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px !important; }
.jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.jump a::after { content: "↓"; }
.jump a:hover { color: var(--ink); transform: translateY(-1px); }
