/* ClearWorth visual language: crisp paper, ink, and a blue thread through each decision. */
:root {
  --paper: #f5f7fb;
  --surface: #fff;
  --surface-subtle: #edf2f8;
  --ink: #142b43;
  --muted: #526479;
  --line: #d7e1ec;
  --blue: #075acb;
  --cyan: #008fae;
  --product-switcher-height: 34px;
  --shell-height: 106px;
  --shadow-soft: 0 8px 28px #142b4309;
}
:root[data-theme="dark"] {
  --paper: #0b1421;
  --surface: #122237;
  --surface-subtle: #1b3048;
  --ink: #edf4fd;
  --muted: #aec1d6;
  --line: #314861;
  --blue: #80baff;
  --cyan: #61d6e7;
}
html, body, :root[data-theme="dark"], :root[data-theme="dark"] body { background: var(--paper); }
body { font-weight: 400; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 650; }
button, input, select { font-family: inherit; }
button, a, summary, input, select { -webkit-tap-highlight-color: transparent; }
button, summary, select, input[type="range"] { cursor: pointer; }
:where(a, button, summary, input, select):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
:where(a, button, summary) { touch-action: manipulation; }
.button { border-radius: 10px; font-weight: 650; min-height: 46px; box-shadow: none; }
.button.primary { background: var(--blue); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .button.primary { color: #09233f; }
.button:hover { transform: translateY(-2px); box-shadow: 0 5px 14px #075acb18; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.product-switcher { min-height: 34px; padding-block: 0; background: #102c46; box-shadow: none; }
.product-switcher .product-tab { min-height: 30px; border-radius: 4px 4px 0 0; font-size: 11px; font-weight: 650; padding-inline: 9px; }
.product-switcher .product-tab span { width: 17px; height: 17px; }
.product-switcher-label { font-size: 9px; }
.topbar, :root[data-theme="dark"] .topbar { min-height: 72px; padding-block: 10px; background: var(--surface); gap: 12px; border-bottom: 1px solid var(--line); backdrop-filter: none; }
.topbar .brand, :root[data-theme="dark"] .topbar .brand { border: 0; background: transparent; box-shadow: none; padding: 0; min-height: 40px; gap: 8px; font-size: 18px; font-weight: 750; letter-spacing: -.04em; }
.topbar .brand-mark { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; box-shadow: none; }
.topbar > nav { margin-left: auto; gap: 2px; }
.topbar nav > a, :root[data-theme="dark"] .topbar nav > a { background: transparent; font-weight: 600; font-size: 12px; padding-inline: 9px; color: var(--muted); }
.topbar nav > a:hover, .topbar nav > a[aria-current="page"], :root[data-theme="dark"] .topbar nav > a:hover, :root[data-theme="dark"] .topbar nav > a[aria-current="page"] { color: var(--blue); background: var(--surface-subtle); border-color: transparent; box-shadow: none; transform: none; }
.nav-calculator-trigger, :root[data-theme="dark"] .nav-calculator-trigger { background: var(--surface-subtle); color: var(--ink); border-color: transparent; font-size: 12px; font-weight: 650; }
.nav-calculator-toggle { background: var(--surface-subtle); border-color: transparent; width: 28px; }
.nav-calculator-panel, :root[data-theme="dark"] .nav-calculator-panel { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 60px #091b3430; }
.topbar nav .nav-calculator-panel a { background: var(--surface); border-radius: 8px; min-height: 72px; box-shadow: none; }
.topbar nav .nav-calculator-panel a:hover { background: var(--surface-subtle); border-color: var(--blue); }
.topbar nav .nav-calculator-panel a strong { font-weight: 650; }
.theme-toggle { min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: 12px; background: var(--surface-subtle); color: var(--ink); border: 1px solid var(--line); }
.tool-search-trigger { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 550; }
.tool-search-trigger:hover { border-color: var(--blue); color: var(--blue); }
kbd { font-family: inherit; font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; }
.search-is-open { overflow: hidden; }
.tool-search-dialog { padding: 24px; width: min(640px,calc(100% - 28px)); max-height: min(760px,85dvh); margin: 8dvh auto auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 100px #00152e40; overflow-y: auto; }
.tool-search-dialog::backdrop { background: #06162bc2; backdrop-filter: blur(5px); }
.search-dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.search-dialog-head .eyebrow { margin: 0 0 8px; }
.search-dialog-head h2 { font-size: 23px; letter-spacing: -.025em; margin: 0; }
.search-close { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--surface-subtle); border: 1px solid var(--line); color: var(--ink); }
.search-dialog-input { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding-left: 16px; }
.search-dialog-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb,var(--blue) 12%,transparent); }
.search-dialog-input input { border: 0; background: transparent; min-height: 54px; padding-left: 0; font-size: 16px; font-weight: 500; box-shadow: none; outline: none; }
#toolSearchCount { color: var(--muted); font-size: 12px; margin: 20px 0 8px; }
.tool-search-results a { display: flex; gap: 18px; justify-content: space-between; align-items: center; padding: 14px 10px; border-radius: 8px; border-bottom: 1px solid var(--line); }
.tool-search-results a:hover, .tool-search-results a:focus-visible { background: var(--surface-subtle); color: var(--blue); }
.tool-search-results strong, .tool-search-results small { display: block; }
.tool-search-results strong { font-size: 16px; font-weight: 650; }
.tool-search-results small { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 5px; }
.search-dialog-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 20px; font-size: 11px; color: var(--muted); }
.search-dialog-footer a { font-size: 12px; font-weight: 650; color: var(--blue); }
.search-no-results { padding-block: 24px; color: var(--muted); line-height: 1.6; }

/* An actual working example takes the place of a decorative hero graphic. */
.calculator-first-hero { max-width: 1320px; margin: auto; padding: 42px 32px 44px; }
.home-intro { grid-template-columns: minmax(0,1.2fr) minmax(360px,.85fr); gap: 66px; }
.home-intro .answer-hero-copy h1 { font-size: clamp(42px,4.7vw,66px); font-weight: 650; letter-spacing: -.06em; line-height: 1.07; margin: 18px 0; }
.home-intro h1 em { font-style: normal; color: var(--blue); }
.home-intro .lede { max-width: 530px; font-size: 17px; line-height: 1.65; font-weight: 400; }
.home-intro .home-search { margin: 26px 0 0; }
.home-search label { font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.home-search > div { gap: 8px; }
.home-search input { background: var(--surface); min-height: 50px; border-radius: 10px; font-weight: 450; font-size: 14px; }
.home-search .button { min-height: 50px; font-size: 13px; padding-inline: 16px; white-space: nowrap; gap: 8px; }
.home-shortcuts { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.home-shortcuts a { font-size: 11px; color: var(--blue); border-bottom: 1px solid var(--line); padding: 10px 7px; min-height: 38px; font-weight: 600; }
.home-shortcuts a:hover { border-color: var(--blue); background: var(--surface-subtle); }
.home-intro .answer-promise { margin-top: 16px; color: var(--muted); }
.home-intro .answer-promise span { font-weight: 500; font-size: 11px; }
.growth-playground { background: #112f4d; border: 1px solid #31506c; border-radius: 20px; color: #f3f9ff; padding: 26px; box-shadow: 0 14px 36px #102b4512; }
.playground-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.playground-top .eyebrow { color: #b2cce3; margin: 0; font-size: 9px; }
.live-tag { border: 1px solid #497591; border-radius: 20px; padding: 4px 8px; color: #95e4e7; font-size: 10px; white-space: nowrap; }
.growth-playground h2 { font-size: 21px; font-weight: 500; line-height: 1.35; letter-spacing: -.025em; margin: 18px 0; max-width: 260px; }
.playground-result { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.playground-result strong { font-size: clamp(34px,3.5vw,48px); line-height: 1.1; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.playground-result span { font-size: 11px; color: #bfd1e3; }
.playground-result b { font-weight: 500; }
.playground-chart { width: 100%; height: 84px; margin-top: 12px; overflow: visible; }
.demo-grid { fill: none; stroke: #37516b; stroke-width: .5; }
.demo-line { stroke: #67dce8; stroke-width: 3; fill: none; stroke-linecap: round; }
.demo-area { fill: #58d1e91a; }
.demo-deposits { stroke: #d9e7fa; stroke-width: 2; stroke-dasharray: 5 5; fill: none; }
.playground-legend { display: flex; gap: 18px; color: #d1e0f0; font-size: 10px; margin: 5px 0 16px; }
.playground-slider { color: #e5f2ff; font-size: 12px; font-weight: 500; gap: 4px; }
.playground-slider > span { display: flex; justify-content: space-between; align-items: baseline; }
.playground-slider output { color: #fff; font-size: 18px; font-weight: 600; }
.playground-slider input[type="range"] { padding: 0; margin: 0; min-height: 30px; accent-color: #67dce8; background: transparent; border: 0; width: 100%; }
.playground-years { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 4px 0 14px; }
.playground-years button { min-height: 36px; background: #1c3c5c; border: 1px solid #4a6480; border-radius: 6px; color: #dce9f8; font-size: 11px; }
.playground-years button:hover { background: #294d6e; }
.playground-years button[aria-pressed="true"] { background: #d9f6fa; border-color: #d9f6fa; color: #13354b; font-weight: 700; }
.playground-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; min-height: 38px; border-top: 1px solid #49647d; color: #b9ecff; font-weight: 600; }
.playground-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.playground-note { font-size: 10px; color: #b9cee1; line-height: 1.5; margin: 8px 0 0; }
.home-tools-heading { margin-top: 40px; align-items: center; }
.home-tools-heading h2 { font-size: 27px; font-weight: 600; letter-spacing: -.035em; }
.home-tools-heading .eyebrow { margin-bottom: 10px; }
.home-tools-heading > a { color: var(--blue); font-size: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.calculator-first-hero .home-tool-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.calculator-first-hero .home-tool-grid a { position: relative; background: var(--surface); min-height: 180px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; transition: transform 160ms ease,border-color 160ms ease,box-shadow 160ms ease; }
.calculator-first-hero .home-tool-grid a::after { content: '↗'; position: absolute; right: 20px; top: 17px; font-size: 22px; color: var(--blue); }
.calculator-first-hero .home-tool-grid a:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 10px 24px #102b450a; }
.calculator-first-hero .home-tool-grid strong { margin-top: 18px; font-size: 21px; font-weight: 600; }
.calculator-first-hero .home-tool-grid small { font-size: 13px; font-weight: 400; }
.calculator-first-hero .home-tool-grid b { font-size: 12px; font-weight: 650; color: var(--blue); }
.home-tool-grid a > span { font-size: 10px; }
.home-decisions, .answer-principles, .home-guide-band { max-width: 1320px; margin-inline: auto; padding: 44px 32px; }
.section-heading h2 { font-weight: 600; letter-spacing: -.035em; }
.question-card, .tool-card, .home-guide-grid a, .trust-proof-grid article { background: var(--surface); border: 1px solid var(--line); box-shadow: none; border-radius: 12px; }
.question-card strong, .tool-card h2, .home-guide-grid h3 { font-weight: 600; }
.question-card small, .tool-card p, .home-guide-grid p { font-weight: 400; }
.home-trust-callout { border-radius: 12px; box-shadow: none; }

/* Focused calculator desks, with directions that stay within reach. */
.compact-calculator-page { display: flex; flex-direction: column; }
.compact-calculator-page > .calculator-section { order: 0; width: 100%; padding-top: 24px; }
.compact-calculator-page > .context-panel { order: 1; }
.compact-calculator-page .section-heading h1 { font-size: clamp(27px,3vw,38px); font-weight: 650; letter-spacing: -.04em; }
.compact-calculator-page .section-heading > p:not(.eyebrow) { font-weight: 400; font-size: 14px; }
.compact-calculator-page .section-heading { margin-bottom: 14px; }
.compact-calculator-page .trust-strip span { border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 500; }
.compact-calculator-page .trust-strip span + span::before { content: '·'; margin-right: 10px; }
.calculator-wayfinding { display: flex; justify-content: flex-start; gap: 4px; position: sticky; top: var(--shell-height); z-index: 9; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 0; margin: 0 0 18px; }
.calculator-wayfinding a, :root[data-theme="dark"] .calculator-wayfinding a { min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 12px; color: var(--muted); font-weight: 550; box-shadow: none; }
.calculator-wayfinding a:hover, .calculator-wayfinding a:focus-visible { background: var(--surface); color: var(--blue); border-color: var(--line); transform: none; }
.calculator-wayfinding .wayfinding-all { margin-left: auto; color: var(--blue); }
.calculator-anchor, .seo-panel, .mortgage-amortization { scroll-margin-top: calc(var(--shell-height) + 78px); }
.compact-calculator-page .control-panel, .compact-calculator-page .results-panel, :root[data-theme="dark"] .compact-calculator-page .control-panel, :root[data-theme="dark"] .compact-calculator-page .results-panel { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 3px 14px #102b4504; border-radius: 14px; padding: 22px; }
.compact-calculator-page .control-panel { border-top: 3px solid var(--blue); }
.compact-calculator-page label { color: var(--ink); font-weight: 600; font-size: 13px; gap: 8px; }
.compact-calculator-page input, .compact-calculator-page select { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-subtle); min-height: 48px; color: var(--ink); font-size: 16px; font-weight: 550; }
.compact-calculator-page input:hover, .compact-calculator-page select:hover { border-color: var(--muted); }
.compact-calculator-page input:focus, .compact-calculator-page select:focus { border-color: var(--blue); outline: 2px solid color-mix(in srgb,var(--blue) 30%,transparent); outline-offset: 2px; }
.compact-calculator-page .result-hero > strong { font-size: clamp(36px,4.7vw,62px); font-weight: 600; letter-spacing: -.045em; }
.compact-calculator-page .result-hero > span { font-weight: 500; font-size: 13px; color: var(--muted); }
.compact-calculator-page .result-hero > small { font-weight: 400; }
.compact-calculator-page .metric-row > div { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); padding: 16px; box-shadow: none; }
.compact-calculator-page .metric-row strong { font-size: 19px; font-weight: 600; }
.compact-calculator-page .metric-row span { font-size: 11px; font-weight: 500; }
.compact-calculator-page .advanced-options { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-subtle); box-shadow: none; }
.compact-calculator-page summary { font-weight: 600; font-size: 13px; min-height: 32px; }
.compact-calculator-page summary:hover { color: var(--blue); }
.compact-calculator-page .field-hint { font-weight: 400; }
.compact-calculator-page .chart-wrap canvas { border-radius: 10px; }
.next-tools { padding-block: 22px; border-top: 1px solid var(--line); margin-top: 28px; }
.next-tools h2 { font-size: 20px; letter-spacing: -.025em; margin: 0 0 14px; }
.next-tools > div { display: flex; flex-wrap: wrap; gap: 10px; }
.next-tools a { display: inline-flex; align-items: center; padding: 12px 16px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--blue); font-size: 13px; font-weight: 550; }
.next-tools a:hover { border-color: var(--blue); background: var(--surface-subtle); }
.seo-panel, :root[data-theme="dark"] .seo-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }

/* Directory reads as a library: topic, title, purpose, clear action. */
.calculators-hero { padding: 32px 32px 12px; max-width: 1320px; margin-inline: auto; min-height: 0; }
.calculators-hero h1 { font-size: clamp(32px,4vw,46px); font-weight: 600; letter-spacing: -.045em; }
.calculators-hero .lede { font-size: 16px; max-width: 720px; font-weight: 400; }
.calculator-finder { max-width: 1256px; margin: 16px auto 24px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; padding: 24px; }
.calculator-finder h2 { font-size: 21px; }
.calculator-search input { border-radius: 8px; background: var(--surface-subtle); font-weight: 450; }
.calculator-filters button { min-height: 40px; border-radius: 7px; font-weight: 550; }
.calculator-filters button[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
:root[data-theme="dark"] .calculator-filters button[aria-pressed="true"] { color: #09233f; }
.popular-calculators { max-width: 1256px; margin-inline: auto; border-radius: 12px; }
.popular-calculator-grid a { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.popular-calculator-grid strong { font-weight: 600; }
.landing-grid { max-width: 1320px; margin-inline: auto; padding-inline: 32px; gap: 16px; }
.tool-card { padding: 22px; }
.tool-card .tool-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--surface-subtle); color: var(--blue); font-size: 17px; box-shadow: none; }
.tool-card h2 { font-size: 22px; letter-spacing: -.025em; }
.tool-card p { font-size: 13px; }
.tool-link { font-size: 12px; font-weight: 600; color: var(--blue); }
.tool-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 8px 20px #142b430a; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .brand { background: transparent; border: 0; box-shadow: none; }
.site-footer p, .site-footer a { font-weight: 450; }

@media (max-width: 1200px) {
  .tool-search-trigger kbd { display: none; }
  .topbar { padding-inline: 24px; }
  .topbar > nav { gap: 0; }
  .topbar nav > a { padding-inline: 7px; }
  .home-intro { gap: 32px; }
}
@media (max-width: 1080px) {
  .topbar.discovery-ready > nav > a:is([href="/investment"],[href="/paycheck"],[href="/mortgage"],[href="/auto-loan"]) { display: none; }
  .home-intro { grid-template-columns: minmax(0,1fr) minmax(320px,.85fr); }
  .home-search > div { flex-wrap: wrap; }
  .home-search input { min-width: 0; }
  .growth-playground { padding: 22px; }
}
@media (max-width: 780px) {
  .topbar.discovery-ready { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; padding: 10px 16px 8px; }
  .topbar.discovery-ready .brand { grid-row: 1; grid-column: 1; font-size: 17px; }
  .topbar.discovery-ready > nav { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; margin: 0; gap: 4px; }
  .tool-search-trigger { grid-row: 1; grid-column: 2; width: 40px; justify-content: center; padding: 0; }
  .tool-search-trigger span, .tool-search-trigger kbd { display: none; }
  .topbar.discovery-ready .theme-toggle { grid-row: 1; grid-column: 3; padding-inline: 10px; }
  .nav-calculator-panel { left: 0; width: min(560px,calc(100vw - 32px)); max-height: calc(100dvh - var(--shell-height) - 20px); }
  .calculator-first-hero { padding: 30px 20px; }
  .home-intro { grid-template-columns: 1fr; gap: 28px; }
  .home-intro .answer-hero-copy h1 { font-size: 45px; margin-block: 15px; }
  .home-intro .lede { font-size: 15px; line-height: 1.65; }
  .home-intro .home-search { margin-top: 20px; }
  .home-search > div { flex-wrap: nowrap; }
  .home-search input { font-size: 16px; }
  .home-search .button { padding-inline: 13px; }
  .growth-playground { padding: 24px; }
  .growth-playground h2 { max-width: none; font-size: 20px; margin-block: 14px; }
  .playground-result strong { font-size: 40px; }
  .playground-chart { height: 75px; }
  .home-tools-heading { margin-top: 30px; }
  .home-tools-heading h2 { font-size: 23px; }
  .calculator-first-hero .home-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .calculator-first-hero .home-tool-grid a { padding: 18px; min-height: 170px; }
  .calculator-first-hero .home-tool-grid strong { font-size: 18px; padding-right: 4px; line-height: 1.2; }
  .calculator-first-hero .home-tool-grid small { font-size: 12px; }
  .home-decisions, .answer-principles, .home-guide-band { padding: 30px 20px; }
  .compact-calculator-page > .calculator-section { padding: 22px 18px 32px; }
  .compact-calculator-page .control-panel, .compact-calculator-page .results-panel { padding: 18px; }
  .compact-calculator-page .section-heading > p:not(.eyebrow) { font-size: 13px; }
  .compact-calculator-page input, .compact-calculator-page select { font-size: 16px; }
  .calculator-wayfinding { gap: 0; flex-wrap: nowrap; padding-block: 7px; margin-bottom: 16px; }
  .calculator-wayfinding a { padding-inline: 10px; font-size: 11px; white-space: nowrap; }
  .calculator-wayfinding .wayfinding-all { padding-right: 0; }
  .compact-calculator-page .result-hero > strong { font-size: 40px; overflow-wrap: anywhere; }
  .calculation-section { min-width: 0; }
  .calculator-finder, .popular-calculators { margin-inline: 20px; padding: 20px; }
  .calculators-hero { padding: 28px 20px 8px; }
  .landing-grid { padding-inline: 20px; }
  .tool-search-dialog { padding: 20px; margin-top: 3dvh; max-height: 90dvh; }
  .search-dialog-head h2 { font-size: 21px; }
  .search-dialog-footer > span { display: none; }
}
@media (max-width: 400px) {
  .home-intro .answer-hero-copy h1 { font-size: 39px; }
  .home-search > div { flex-direction: column; }
  .home-search .button { width: 100%; justify-content: center; }
  .calculator-first-hero .home-tool-grid { grid-template-columns: 1fr; }
  .calculator-first-hero .home-tool-grid a { min-height: 0; }
  .playground-top .eyebrow { font-size: 8px; }
  .growth-playground { padding: 20px; }
  .playground-legend { font-size: 9px; gap: 12px; }
  .calculator-wayfinding a { padding-inline: 7px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .button:hover, .tool-card:hover, .calculator-first-hero .home-tool-grid a:hover { transform: none; }
}

/* Refinements after desktop and small-screen review. */
.home-tools-heading { padding-top: 0; }
.home-intro { align-items: start; }
.home-intro .answer-hero-copy { padding-top: 20px; }
.compact-calculator-page .trust-strip span, :root[data-theme="dark"] .compact-calculator-page .trust-strip span { background: transparent; padding: 0; }
@media (max-width: 780px) {
  .calculator-first-hero { display: grid; }
  .home-intro { display: contents; }
  .home-intro .answer-hero-copy { order: 0; padding-top: 0; }
  .home-tools-heading { order: 1; }
  .calculator-first-hero .home-tool-grid { order: 2; }
  .home-section-action { order: 3; margin-top: 20px; }
  .growth-playground { order: 4; margin-top: 28px; }
  .home-search > div { flex-direction: row; }
  .home-shortcuts { column-gap: 5px; }
  .home-shortcuts a { font-size: 10px; padding-inline: 4px; }
}
@media (max-width: 400px) {
  .home-search > div { flex-direction: column; }
}
.compact-calculator-page > .calculator-section { background: transparent; }
.compact-calculator-page .money-field input { padding-left: 33px; }
.compact-calculator-page .frequency-tabs button, .compact-calculator-page .segmented button { border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--surface-subtle); color: var(--muted); }
.compact-calculator-page .frequency-tabs button.selected, .compact-calculator-page .segmented button.selected { background: var(--blue); color: #fff; border-color: var(--blue); }
:root[data-theme="dark"] .compact-calculator-page .frequency-tabs button.selected, :root[data-theme="dark"] .compact-calculator-page .segmented button.selected { color: #09233f; }
.calculators-hero .eyebrow { font-size: 11px; }
.popular-calculator-grid a { min-height: 150px; padding: 20px; }
.popular-calculator-grid strong { margin-top: 18px; }
@media (max-width: 780px) {
  .home-shortcuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .home-shortcuts a { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 10px; font-size: 11px; }
}
/* Clip sideways overflow without creating scroll containers that break sticky navigation. */
html, body { overflow-x: clip; }
.compact-calculator-page > .calculator-section { overflow: visible; }
.money-map-page { max-width: 1320px; padding-top: 28px; }
.map-heading { max-width: 900px; }
.map-heading h1 { font-size: clamp(30px,3.3vw,42px); font-weight: 650; margin: 10px 0 12px; }
.map-heading .lede { font-size: 15px; max-width: 780px; font-weight: 400; }
.map-heading .answer-promise { margin-top: 12px; gap: 12px; }
.map-heading .answer-promise span { border: 0; padding: 0; font-size: 11px; font-weight: 450; color: var(--muted); }
.map-toolbar { margin-block: 20px 16px; }
.map-inputs, .map-results { border-radius: 14px; padding: 22px; }
.map-inputs { border-top: 3px solid var(--blue); }
.map-workspace h2 { font-size: 19px; font-weight: 600; }
.map-income-console { border-radius: 10px; }
.map-income-field input { font-weight: 600; }
.map-income-console label, .play-tabs button { font-weight: 600; }
#mapResults { scroll-margin-top: calc(var(--shell-height) + 20px); }
@media (min-width: 1000px) { .money-map-page .map-results { top: calc(var(--shell-height) + 16px); } }
