:root { color-scheme: light; --bg: #F4F8FB; --surface: #FFFFFF; --surface-2: #EAF1F7; --ink: #0F1D28; --ink-2: #435568; --muted: #435568; --line: #D2DEE8; --field: #6A7F92; --brand: #0A679A; --brand-strong: #074E76; --brand-soft: #E4F0F7; --brand-ink: #FFFFFF; --panel: #EEF5FA; --accent: #037253; --good-soft: #E3F3EC; --good: #037253; --warn: #8A4600; --warn-soft: #FBF0DF; --focus: #0A679A; --foot-bg: #0B1D2A; --foot-ink: #FFFFFF; --foot-muted: #C0C4C8; }
/* Annual Income Calculator. Light only, phone first. Tokens are prepended by build.mjs from brand/tokens.json. No em or en dashes. */
@font-face { font-family: "Figtree"; src: url(/fonts/figtree-latin.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 5.5vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3.6vw, 1.7rem); font-weight: 700; margin-top: 1.8em; }
h3 { font-size: 1.12rem; font-weight: 700; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-head .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; padding: 8px 0; text-decoration: none; flex-shrink: 0; }
.brand picture, .brand img { display: block; height: 32px; width: auto; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface-2); }
.menu-panel { position: absolute; right: 0; top: 50px; width: min(330px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(18,26,38,.14); padding: 10px 14px 14px; max-height: 75vh; overflow: auto; }
.menu-panel p { margin: 10px 0 4px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.menu-panel a { display: block; padding: 8px 6px; text-decoration: none; color: var(--ink); border-radius: 8px; font-weight: 600; }
.menu-panel a:hover { background: var(--brand-soft); color: var(--brand); }
@media (min-width: 980px) { .nav { display: flex; } .menu { margin-left: 4px; } }

/* Hero and tool */
.hero { padding: 26px 0 8px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 64ch; }
.byline { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.byline b { color: var(--ink-2); font-weight: 700; }
.tool { display: grid; gap: 16px; margin: 18px 0 8px; }
@media (min-width: 900px) { .tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 1px 2px rgba(18,26,38,.04), 0 8px 24px rgba(18,26,38,.05); }
form.calc { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field legend { font-weight: 500; font-size: .92rem; color: var(--ink); }
.field small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
input, select { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--field); border-radius: 10px; min-height: 46px; padding: 8px 12px; width: 100%; }
input:focus, select:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.money { position: relative; }
.money input { padding-left: 26px; }
.money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.seg legend { margin-bottom: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; border: 1.5px solid var(--field); border-radius: 999px; font-weight: 650; font-size: .92rem; cursor: pointer; background: var(--surface); }
.seg input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
details.more { border-top: 1px solid var(--line); padding-top: 10px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--brand); min-height: 44px; display: flex; align-items: center; }
details.more[open] summary { margin-bottom: 10px; }
.more-body { display: grid; gap: 14px; }

/* Results */
.result { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.result h2 { margin: 0 0 4px; font-size: 1rem; color: var(--ink-2); font-weight: 700; }
.big { font-size: clamp(2rem, 8vw, 2.7rem); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); line-height: 1.1; margin: 2px 0 6px; letter-spacing: -0.02em; }
.big small { font-size: .45em; color: var(--ink-2); font-weight: 700; letter-spacing: 0; }
.sub { color: var(--ink-2); font-size: .95rem; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.n, th.n { text-align: right; white-space: nowrap; }
thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: var(--surface-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.result table th { font-weight: 600; color: var(--ink-2); }
.result table td { font-weight: 700; }
tr.total th, tr.total td { border-top: 2px solid var(--ink); font-weight: 800; color: var(--ink); }
.tbl { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 1.2em; }
.tbl table { min-width: 100%; }
.tbl caption { text-align: left; padding: 10px 12px 0; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.note { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: .93rem; margin: 12px 0 0; }
.note.warn { border-color: var(--warn); background: var(--warn-soft); }
.note.good { border-color: var(--good); background: var(--good-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 650; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; border: 0; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-strong); color: var(--brand-ink); }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Content */
.content { padding: 8px 0 24px; }
.content > section { margin-bottom: 8px; }
.checked { font-size: .86rem; color: var(--muted); margin: 18px 0 0; }
.sources { font-size: .9rem; color: var(--ink-2); }
.sources li { margin-bottom: .5em; }
.grid-links { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 12px 0 18px; padding: 0; list-style: none; }
.grid-links li { margin: 0; }
.grid-links a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.grid-links a:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(30,78,140,.10); }
.grid-links b { display: block; color: var(--brand); margin-bottom: 2px; }
.grid-links span { font-size: .9rem; color: var(--ink-2); }
.band { background: var(--surface-2); border-radius: 18px; padding: 18px; margin: 18px 0; }
.band h2 { margin-top: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kpi span { display: block; font-size: .82rem; color: var(--muted); font-weight: 650; }
.kpi b { font-size: 1.3rem; }
.dl { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }

/* Footer */
.site-foot { background: var(--foot-bg); color: var(--foot-ink); margin-top: 40px; padding: 32px 0 26px; font-size: .92rem; }
.site-foot a { color: var(--foot-ink); }
.foot-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--foot-muted); margin: 0 0 8px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 820px) { .foot-brand { grid-column: auto; } }
.foot-brand p { color: var(--foot-muted); }
.foot-logo { display: block; height: 28px; width: auto; margin: 0 0 14px; }
.fine { border-top: 1px solid rgba(255,255,255,.14); margin-top: 22px; padding-top: 16px; color: var(--foot-muted); font-size: .85rem; }
.fine p { margin: 0 0 8px; }

/* Ads: the third unit on calculator pages is hidden on phones */
@media (max-width: 699px) { .ad-desk { display: none !important; } }

/* Embed */
body.embed { background: var(--surface); }
body.embed .tool { margin: 8px 0; }
.credit { font-size: .82rem; color: var(--muted); margin: 8px 0; text-align: center; }

/* Print: charts print cleanly */
@media print {
  .site-head, .site-foot, .ad-slot, .actions, .no-print, form.calc, details.more { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .tbl { border: 0; overflow: visible; }
  th, td { padding: 3px 6px; }
  a { color: inherit; text-decoration: none; }
  .print-head { display: block !important; }
}
.print-head { display: none; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }


/* AdSense units (adsense-unit.mjs): space reserved, labelled, collapsed when unfilled or off */
.ad-slot { display: block; position: relative; clear: both; min-height: 280px; margin: 40px auto 32px; padding-top: 4px; box-sizing: border-box; grid-column: 1 / -1; flex-basis: 100%; max-width: 100%; contain: layout; }
.ad-slot::before { content: "Advertisement"; position: absolute; top: -20px; left: 0; font-size: .72rem; line-height: 1.4; color: #6b6b6b; letter-spacing: .02em; }
main > .ad-slot { width: min(1100px, calc(100% - 32px)); }
@media (min-width: 900px) { .ad-slot { min-height: 250px; } }
.ads-off .ad-slot, .ad-slot:has(> ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }
@media print { .ad-slot { display: none !important; } }
