/* Gainly — passbook-inspired finance calculators.
   Palette: cheque ink, cheque paper, ledger rules, marigold stamp. */

@font-face {
  font-family: "Anek Latin";
  src: url("../fonts/anek-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 110%;
  font-display: swap;
}
/* Gujarati and Hindi glyphs: only downloaded on pages that contain those scripts (unicode-range). */
@font-face { font-family: "Anek Gujarati"; src: url("../fonts/anek-gujarati-400.woff2") format("woff2"); font-weight: 400 500; font-display: swap; unicode-range: U+0A80-0AFF, U+200C-200D, U+25CC; }
@font-face { font-family: "Anek Gujarati"; src: url("../fonts/anek-gujarati-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0A80-0AFF, U+200C-200D, U+25CC; }
@font-face { font-family: "Anek Devanagari"; src: url("../fonts/anek-devanagari-400.woff2") format("woff2"); font-weight: 400 500; font-display: swap; unicode-range: U+0900-097F, U+200C-200D, U+25CC; }
@font-face { font-family: "Anek Devanagari"; src: url("../fonts/anek-devanagari-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0900-097F, U+200C-200D, U+25CC; }

:root {
  color-scheme: light;
  --ink: #13294b;
  --ink-soft: #46597a;
  --ink-faint: #5c6c86;
  --paper: #f3f7f5;
  --sheet: #ffffff;
  --rule: #d5e1db;
  --rule-strong: #b7c9c0;
  --gain: #0e7a5c;
  --gain-tint: #e3f2ec;
  --marigold: #e39b12;
  --marigold-tint: #fdf1d8;
  --principal: #8fa6c1;
  --cost: #b23a48;
  --tax: #6a55a4;
  --focus: #a86a00;
  --control-border: #7f948a;
  --brand: #13294b;          /* header, hero and footer background */
  --on-brand: #ffffff;
  --on-brand-soft: #c9d4e4;
  --accent-fill: #13294b;    /* buttons, selected options, slider */
  --on-accent: #ffffff;
  --track: #e8efeb;
  --cost-tint: #fbe9eb;
  --marigold-border: #f0d49a;

  --font: "Anek Latin", "Anek Gujarati", "Anek Devanagari", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
  --radius-sm: 6px;
  --radius: 12px;
  --gutter: 16px;
  --max: 1180px;
}

/* Dark theme: follows the device setting unless the visitor picked one with the toggle. */
@media screen { /* print always uses the light colours */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7eef7;
  --ink-soft: #b4c2d4;
  --ink-faint: #93a4bb;
  --paper: #0d1726;
  --sheet: #142235;
  --rule: #26374f;
  --rule-strong: #3a4d69;
  --gain: #46c39a;
  --gain-tint: #12352b;
  --marigold: #f0b23a;
  --marigold-tint: #33290f;
  --principal: #7f9bc0;
  --cost: #ef7d89;
  --tax: #a996e0;
  --focus: #f0b23a;
  --control-border: #5f7491;
  --brand: #0a1220;
  --on-brand-soft: #b4c2d4;
  --accent-fill: #e7eef7;
  --on-accent: #0d1726;
  --track: #22324a;
  --cost-tint: #3a1d24;
  --marigold-border: #5a4719;
}
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #e7eef7;
    --ink-soft: #b4c2d4;
    --ink-faint: #93a4bb;
    --paper: #0d1726;
    --sheet: #142235;
    --rule: #26374f;
    --rule-strong: #3a4d69;
    --gain: #46c39a;
    --gain-tint: #12352b;
    --marigold: #f0b23a;
    --marigold-tint: #33290f;
    --principal: #7f9bc0;
    --cost: #ef7d89;
    --tax: #a996e0;
    --focus: #f0b23a;
    --control-border: #5f7491;
    --brand: #0a1220;
    --on-brand-soft: #b4c2d4;
    --accent-fill: #e7eef7;
    --on-accent: #0d1726;
    --track: #22324a;
    --cost-tint: #3a1d24;
    --marigold-border: #5a4719;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gain); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); font-stretch: 82%; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 1.85rem); font-stretch: 88%; margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--brand); color: var(--on-brand); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.55rem; font-stretch: 75%; letter-spacing: .01em; }
.brand:hover { color: #fff; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand { flex: none; }
.nav-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid rgba(255,255,255,.35); color: var(--on-brand); font: inherit; font-size: .95rem; padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { display: flex; gap: 2px; font-size: .9rem; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; } /* system font: no Indic web-font download on English pages */
.lang a { color: var(--on-brand-soft); text-decoration: none; padding: 6px 7px; border-radius: var(--radius-sm); }
.lang a[aria-current="true"] { color: var(--on-brand); background: rgba(255,255,255,.12); }
.lang a:hover { color: var(--marigold); }
.theme-toggle { display: none; place-items: center; width: 36px; height: 36px; background: none; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-sm); color: var(--on-brand); cursor: pointer; }
.js .theme-toggle { display: inline-grid; } /* needs JavaScript */
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.theme-toggle[aria-pressed="true"] { color: var(--marigold); }
@media (max-width: 460px) { .lang a { padding: 6px 4px; font-size: .85rem; } .brand span { display: none; } }
/* Phones: short language codes (EN / ગુ / हि) on screen; the full name stays for screen readers. */
.lang__short { display: none; }
@media (max-width: 460px) {
  .header-tools { gap: 6px; }
  .lang a { min-width: 30px; text-align: center; padding: 6px 4px; }
  .lang__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang__short { display: inline; }
  .nav-toggle { padding: 6px 8px; }
  .theme-toggle { width: 32px; height: 32px; }
}
.site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 60px; background: var(--brand); padding: 8px var(--gutter) 20px; z-index: 20; box-shadow: 0 12px 24px rgba(19, 41, 75, .25); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; color: var(--on-brand); text-decoration: none; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--marigold); }
@media (min-width: 900px) {
  .header-tools { order: 3; margin-left: 0; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; gap: 22px; }
  .site-nav a { border: 0; padding: 4px 0; font-size: .98rem; }
}

/* ---------- Breadcrumbs & page head ---------- */
.crumbs { font-size: .9rem; color: var(--ink-faint); padding-top: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule-strong); }
.crumbs a { color: var(--ink-soft); text-decoration: none; display: inline-block; padding: 4px 0; }
.page-head { padding: 10px 0 6px; max-width: 46rem; }
.page-head p { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Ads ---------- */
.ad { margin: 32px auto; text-align: center; }
/* Hide slots Google could not fill, so no empty gap is left behind. */
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad ins { display: block; }
.ad--top, .ad--bottom { min-height: 100px; }
@media (max-width: 899px) { .ad--top, .ad--bottom { min-height: 280px; } }
.ad--sidebar { min-height: 600px; }
@media (max-width: 999px) { .ad--sidebar { display: none; } }
.ad--in_content, .ad--in_article { min-height: 280px; }
.ad__label { display: block; font-size: .72rem; color: var(--ink-faint); margin-bottom: 4px; letter-spacing: .02em; }
.ad--placeholder .ad__box { display: grid; place-items: center; min-height: inherit; height: 100%; border: 1px dashed var(--rule-strong); border-radius: var(--radius-sm); color: var(--ink-faint); font-size: .9rem; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(19,41,75,.03) 10px 20px); }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
}
/* Sticky result only on screens tall enough to show it whole (no scroll box inside the page). */
@media (min-width: 900px) and (min-height: 820px) {
  .calc__result { position: sticky; top: 16px; }
}

.form-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 20px 10px; }
.field { margin-bottom: 22px; }
.field__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.field label, .field legend { font-weight: 600; font-size: 1rem; }
.field__box { display: flex; align-items: center; border: 1.5px solid var(--control-border); border-radius: var(--radius-sm); background: var(--paper); padding: 0 10px; min-width: 9.5rem; max-width: 12rem; }
.field__box:focus-within { border-color: var(--ink); background: var(--sheet); }
.field__box input { border: 0; background: transparent; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); width: 100%; padding: 7px 4px; text-align: right; font-size: 1.05rem; min-width: 0; }
.field__box input:focus { outline: none; }
.affix { color: var(--ink-faint); font-size: .95rem; white-space: nowrap; }
.field__hint { font-size: .88rem; color: var(--gain); margin: 4px 0 0; text-align: right; min-height: 1.3em; font-variant-numeric: tabular-nums; }
.field__help { font-size: .88rem; color: var(--ink-faint); margin: 6px 0 0; line-height: 1.45; }
.field.has-error .field__box { border-color: var(--cost); }
.field__hint.is-error { color: var(--cost); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 6px 0 0; background: transparent; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent-fill) var(--fill), var(--rule) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--rule); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent-fill); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--sheet); border: 3px solid var(--ink); box-shadow: 0 1px 3px rgba(19,41,75,.25); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--sheet); border: 3px solid var(--ink); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--focus); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--focus); }
.range-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.field select { width: 100%; font: inherit; color: var(--ink); padding: 9px 10px; border: 1.5px solid var(--control-border); border-radius: var(--radius-sm); background: var(--paper); margin-top: 6px; }
fieldset.field { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 8px 12px; border: 1.5px solid var(--control-border); border-radius: var(--radius-sm); font-weight: 500; font-size: .95rem; background: var(--paper); }
.seg input:checked + span { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.form-actions { padding: 4px 0 14px; }
.js .form-actions { display: none; }
.js .form-card.show-actions .form-actions { display: block; }
.stale-msg { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--cost-tint); color: var(--cost); font-size: .92rem; }
.is-stale .passbook__figure { opacity: .45; }
.btn { display: inline-block; font: inherit; font-weight: 600; background: var(--accent-fill); color: var(--on-accent); border: 0; border-radius: var(--radius-sm); padding: 10px 20px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--gain); color: var(--on-accent); }

/* Result: the passbook page */
.passbook { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 20px 18px; transition: opacity .15s; }
[aria-busy="true"] .passbook { opacity: .55; }
.passbook__label { margin: 0; color: var(--ink-soft); font-weight: 500; }
.passbook__figure { margin: 2px 0 0; font-size: clamp(2.6rem, 9vw, 3.9rem); line-height: 1.05; font-weight: 700; font-stretch: 78%; font-variant-numeric: tabular-nums; letter-spacing: -.01em; display: inline-block; padding-bottom: 6px; background: linear-gradient(var(--marigold), var(--marigold)) left bottom / 100% 6px no-repeat; word-break: break-word; }
.passbook__short { margin: 6px 0 0; color: var(--ink-faint); font-size: .95rem; }

.chart { display: flex; align-items: center; gap: 20px; margin: 20px 0 6px; flex-wrap: wrap; }
.donut { width: 128px; height: 128px; flex: none; transform: rotate(0deg); }
.donut circle { fill: none; stroke-width: 5.2; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; flex: 1 1 160px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { font-weight: 600; margin-left: auto; font-variant-numeric: tabular-nums; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.c-principal { --c: var(--principal); }
.c-gain { --c: var(--gain); }
.c-cost { --c: var(--cost); }
.c-loss { --c: var(--cost); }
.c-tax { --c: var(--tax); }
.c-neutral { --c: var(--ink-faint); }
.swatch { background: var(--c); }
.donut circle.seg-arc { stroke: var(--c); }

.bars { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; gap: 12px; width: 100%; }
.bars__row { display: grid; grid-template-columns: 6.5rem 1fr auto; align-items: center; gap: 10px; font-size: .95rem; }
@media (max-width: 479px) {
  .bars__row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .bars__track { grid-column: 1 / -1; grid-row: 2; }
}
.bars__track { position: relative; height: 30px; background: var(--paper); border-radius: 4px; }
.bars__fill { position: absolute; inset: 0 auto 0 0; background: var(--c); border-radius: 4px; min-width: 3px; }
.bars__value { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 6.5em; text-align: right; }

.ledger { margin: 14px 0 0; padding: 0; }
.ledger div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.ledger div:last-child { border-bottom: 0; }
.ledger dt { color: var(--ink-soft); }
.ledger dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.ledger .is-highlight dd { color: var(--gain); }
.notes { margin: 14px 0 0; padding: 12px 0 0; border-top: 1.5px solid var(--ink); font-size: .88rem; color: var(--ink-soft); list-style: none; }
.notes li + li { margin-top: 4px; }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: .92rem; }
.share button { font: inherit; font-size: .92rem; background: none; border: 1.5px solid var(--ink); color: var(--ink); border-radius: var(--radius-sm); padding: 6px 12px; cursor: pointer; }
.share button:hover { background: var(--accent-fill); color: var(--on-accent); }
.share__pdf { font-size: .92rem; font-weight: 600; }
.share output { color: var(--gain); }

/* Schedule table: printed passbook rows */
.schedule { margin-top: 8px; }
.schedule h2 { margin-top: 1.2em; }
.table-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
table.ledger-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .97rem; }
.ledger-table th { text-align: right; font-weight: 600; color: var(--ink-soft); background: var(--paper); padding: 10px 14px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; font-size: .9rem; }
.ledger-table td { text-align: right; padding: 9px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ledger-table th:first-child, .ledger-table td:first-child { text-align: left; }
.ledger-table tr:last-child td { border-bottom: 0; font-weight: 600; }
.ledger-table tbody tr:nth-child(5n) td { border-bottom-color: var(--rule-strong); }

/* ---------- Article + sidebar ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 12px; }
.prose { min-width: 0; }
@media (min-width: 1000px) {
  .article-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  /* Only the ad sticks, so it stays fully in view while the article scrolls. */
  .sidebar .ad--sidebar { position: sticky; top: 16px; margin-top: 8px; }
}
.prose { max-width: 44rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.formula { font-variant-numeric: tabular-nums; background: var(--sheet); border-left: 4px solid var(--marigold); padding: 14px 16px; margin: 0 0 1.2em; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; overflow-x: auto; font-size: 1.05rem; }
.formula code { font-family: inherit; font-weight: 600; white-space: nowrap; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-variant-numeric: tabular-nums; background: var(--sheet); }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.prose th { border-bottom: 1.5px solid var(--ink); }
@media (max-width: 420px) { .prose th, .prose td { padding: 7px 5px; overflow-wrap: anywhere; } }

.faq details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 10px 28px 10px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 6px; font-size: 1.4rem; color: var(--ink-faint); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 12px; color: var(--ink-soft); }

.sidebar h2 { font-size: 1.2rem; margin-top: 0; }
.related { list-style: none; margin: 0 0 20px; padding: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
.related li + li { border-top: 1px solid var(--rule); }
.related a { display: block; padding: 12px 16px; text-decoration: none; }
.related a span { display: block; font-size: .9rem; color: var(--ink-faint); }
.related a:hover strong { color: var(--gain); }
.updated { font-size: .88rem; color: var(--ink-faint); }

/* ---------- Home ---------- */
.hero { background: var(--brand); color: var(--on-brand); padding: 34px 0 40px; }
.hero__grid { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.hero h1 { color: var(--on-brand); font-size: clamp(2.2rem, 6vw, 3.6rem); }
.hero__intro { color: var(--on-brand-soft); font-size: 1.15rem; max-width: 34rem; }
.hero .passbook { color: var(--ink); }
.hero-form { display: grid; gap: 4px; margin-top: 14px; }
.hero-form .field { margin-bottom: 12px; }
.hero__more { margin-top: 10px; font-size: .95rem; }
.hero__more a { color: var(--ink); }

.directory { padding: 10px 0 20px; }
.directory__group { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1.5px solid var(--ink); }
.directory__group:last-child { border-bottom: 0; }
@media (min-width: 900px) { .directory__group { grid-template-columns: 220px 1fr; gap: 28px; } }
.directory__group h2 { margin: 0; font-size: 1.35rem; }
.calc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px; }
@media (min-width: 640px) { .calc-list { grid-template-columns: 1fr 1fr; } }
.calc-list li { border-bottom: 1px solid var(--rule); }
.calc-list a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; text-decoration: none; }
.calc-list svg { width: 28px; height: 28px; flex: none; color: var(--gain); margin-top: 2px; }
.calc-list strong { display: block; font-size: 1.08rem; }
.calc-list span { display: block; color: var(--ink-soft); font-size: .95rem; }
.calc-list a:hover strong { color: var(--gain); }

.promise { display: grid; gap: 20px; padding: 26px 0 8px; }
@media (min-width: 800px) { .promise { grid-template-columns: repeat(3, 1fr); } }
.promise h3 { margin-top: 0; }
.promise p { color: var(--ink-soft); margin: 0; }

.app-cta { background: var(--marigold-tint); border: 1px solid var(--marigold-border); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.app-cta p { margin: 0; }

/* ---------- Plain pages ---------- */
.plain { padding: 8px 0 30px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: var(--brand); color: var(--on-brand-soft); padding: 34px 0 24px; font-size: .95rem; }
.site-footer a { color: var(--on-brand); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--marigold); }
.footer-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.site-footer h2 { color: var(--on-brand); font-size: 1.05rem; margin: 0 0 8px; font-stretch: 100%; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-note { border-top: 1px solid rgba(255,255,255,.15); margin-top: 26px; padding-top: 16px; font-size: .86rem; color: var(--on-brand-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  /* Always print in light colours, even when the page is shown dark. */
  :root, :root[data-theme] {
  color-scheme: light;
  --ink: #13294b;
  --ink-soft: #46597a;
  --ink-faint: #5c6c86;
  --paper: #f3f7f5;
  --sheet: #ffffff;
  --rule: #d5e1db;
  --rule-strong: #b7c9c0;
  --gain: #0e7a5c;
  --gain-tint: #e3f2ec;
  --marigold: #e39b12;
  --marigold-tint: #fdf1d8;
  --principal: #8fa6c1;
  --cost: #b23a48;
  --tax: #6a55a4;
  --focus: #a86a00;
  --control-border: #7f948a;
  --brand: #13294b;          /* header, hero and footer background */
  --on-brand: #ffffff;
  --on-brand-soft: #c9d4e4;
  --accent-fill: #13294b;    /* buttons, selected options, slider */
  --on-accent: #ffffff;
  --track: #e8efeb;
  --cost-tint: #fbe9eb;
  --marigold-border: #f0d49a;

  --font: "Anek Latin", "Anek Gujarati", "Anek Devanagari", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
  --radius-sm: 6px;
  --radius: 12px;
  --gutter: 16px;
  --max: 1180px;
}
  input[type="range"], .range-scale, .field__help { display: none !important; }
  .site-header, .site-footer, .ad, .sidebar, .share, .form-actions { display: none !important; }
  body { background: #fff; }
}
.donut .donut-track { stroke: var(--track); }
@media (min-width: 900px) {
  .site-nav { margin-left: auto; }
}
