/* Homepage colours and surfaces, with the form before its calculated result. */
.calculator-page { --calculator-ink: #081c64; --calculator-muted: #526995; --calculator-teal: #007f83; --calculator-border: #dce8f2; padding-bottom: 52px; background: linear-gradient(180deg, #edf7fd 0, #f6fbfe 520px, #f8fbfe 100%); color: #24395f; }
.inner-page .calculator-page .container { width: min(1100px, calc(100% - 64px)); }
.calculator-page :is(h1, h2, h3) { color: var(--calculator-ink); }
.calculator-page :is(a, button, input, select, summary):focus-visible { outline: 3px solid var(--calculator-teal); outline-offset: 3px; }
.calculator-page :is(section[id], aside[id], details[id], #cost-calculator) { scroll-margin-top: 24px; }
.calculator-page .calculator-hero { position: relative; overflow: hidden; padding: 22px 0 30px; }
.calculator-page .calculator-hero::after { position: absolute; top: -180px; right: -170px; width: 540px; height: 400px; transform: rotate(-25deg); border-radius: 100px; background: #e1f3fb; opacity: .65; content: ""; pointer-events: none; }
.calculator-page .calculator-hero > .container { position: relative; z-index: 1; }
.calculator-page .calculator-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 22px; color: var(--calculator-muted); font-size: 12px; line-height: 1.6; }
.calculator-page .calculator-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.calculator-page .calculator-breadcrumb li + li::before { margin-right: 9px; color: #98abc5; content: "/"; }
.calculator-page .calculator-breadcrumb a:hover { color: var(--calculator-teal); text-decoration: underline; text-underline-offset: 3px; }
.calculator-page .calculator-hero :is(.eyebrow, .calculator-kicker, .legal-kicker) { margin: 0 0 8px; color: var(--calculator-teal); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.calculator-page .calculator-hero h1 { max-width: 780px; margin: 0; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.22; letter-spacing: -.045em; }
.calculator-page .calculator-hero :is(.calculator-subtitle, h1 + p) { max-width: 800px; margin: 12px 0 0; color: var(--calculator-muted); font-size: 17px; line-height: 1.65; }
.calculator-page .calculator-page-content { position: relative; }
.calculator-page .calculator-hero-art { position: absolute; top: 56px; right: 3px; width: 155px; height: 136px; color: #8db8e0; pointer-events: none; }
.calculator-page .calculator-hero-art svg:first-child { position: absolute; top: 0; left: 0; width: 116px; height: 130px; transform: rotate(-8deg); stroke-width: 1; }
.calculator-page .calculator-hero-art svg:last-child { position: absolute; right: 0; bottom: 0; width: 75px; height: 88px; padding: 6px; border-radius: 8px; background: #e1f4f7; color: #199ca6; stroke-width: 1.5; }

/* Each card opens a separate tool; the active card jumps to the current form. */
.calculator-page .calculator-task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.calculator-page .calculator-hero .calculator-task-grid { margin: 28px 0 0; }
.calculator-page .calculator-task { display: grid; grid-template-columns: 35px minmax(0, 1fr) 12px; align-items: center; gap: 12px; min-height: 88px; padding: 15px; border: 1px solid var(--calculator-border); border-radius: 8px; background: #fff; color: var(--calculator-ink); box-shadow: 0 3px 12px #52699505; transition: border-color 150ms ease, background-color 150ms ease; }
.calculator-page .calculator-task.is-active { border-color: var(--calculator-teal); background: #effafa; box-shadow: inset 0 0 0 1px var(--calculator-teal); }
.calculator-page .calculator-task:hover { border-color: var(--calculator-teal); background: #f1fbfb; }
.calculator-page .calculator-task > :not(.calculator-task-icon, .task-arrow) { min-width: 0; }
.calculator-page .calculator-task strong { display: block; font-size: 15px; font-weight: 650; line-height: 1.4; }
.calculator-page .calculator-task :is(strong + span, small) { display: block; margin-top: 4px; color: var(--calculator-muted); font-size: 11px; line-height: 1.5; }
.calculator-page .calculator-task-icon { display: grid; place-items: center; width: 35px; height: 38px; color: var(--calculator-ink); }
.calculator-page .calculator-task.is-active .calculator-task-icon { color: var(--calculator-teal); }
.calculator-page .calculator-task-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.calculator-page .task-arrow { color: #8094b2; font-size: 17px; }
.calculator-page .calculator-task.is-active .task-arrow { color: var(--calculator-teal); }
.calculator-page .calculator-workspace { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.calculator-page .calculator-workspace > * { min-width: 0; }
.inner-page .calculator-page .standalone-calculator { margin: 0; padding: 22px; border: 1px solid var(--calculator-border); border-radius: 10px; background: #fff; box-shadow: 0 5px 20px #52699505; }
.calculator-page .calculator-form-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.calculator-page .calculator-form-heading h2 { margin: 0; font-size: 23px; font-weight: 650; line-height: 1.35; letter-spacing: -.035em; }
.calculator-page :is(.calculator-form-heading > p, .calculator-form-status) { margin: 0; padding: 4px 8px; border-radius: 5px; background: #edf7fd; color: var(--calculator-muted); font-size: 10px; line-height: 1.5; }
.inner-page .calculator-page .required-note { margin: 0 0 18px; color: var(--calculator-muted); font-size: 12px; line-height: 1.65; }
.calculator-page .calculator-journey { margin: 0; scroll-margin-block: 24px; }
.calculator-page .calculator-journey > [data-journey-step] { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 74px; margin: 12px 0 0; padding: 14px 16px; border: 1px solid var(--calculator-border); border-radius: 8px; background: #fff; color: var(--calculator-ink); font: inherit; font-size: 15px; font-weight: 650; line-height: 1.4; text-align: left; cursor: pointer; transition: border-color 150ms ease; }
.calculator-page .calculator-journey > [data-journey-step]:first-child { margin-top: 0; }
.calculator-page .calculator-journey > [data-journey-step] > span:not(.journey-number, .journey-chevron) { flex: 1; min-width: 0; }
.calculator-page .calculator-journey > [data-journey-step] small { display: block; margin-top: 5px; color: var(--calculator-muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.calculator-page .journey-number { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e5f4fd; color: #087bba; font-size: 16px; font-weight: 650; }
.calculator-page .journey-chevron { flex: 0 0 8px; width: 8px; height: 8px; margin: -5px 3px 0 5px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: rotate(45deg); font-size: 0; }
.calculator-page .journey-chevron svg { display: none; }
.calculator-page .calculator-journey > [data-journey-step][aria-expanded="true"] { border-bottom-color: transparent; border-radius: 8px 8px 0 0; background: #fcfefe; }
.calculator-page .calculator-journey > [data-journey-step][aria-expanded="true"] .journey-number { background: var(--calculator-teal); color: #fff; }
.calculator-page .calculator-journey > [data-journey-step][aria-expanded="true"] .journey-chevron { margin-top: 3px; transform: rotate(225deg); }
.calculator-page .calculator-journey > [data-journey-step][data-complete="true"] .journey-number { background: #def3ee; color: #006e70; }
.calculator-page .calculator-journey > [data-journey-step][data-has-error="true"] { border-color: #b91c1c; }
.calculator-page .calculator-journey > [data-journey-step]:hover { border-color: #7cbfc4; }
.calculator-page .journey-enhanced .calculator-step,
.calculator-page .journey-enhanced .calculator-step + .calculator-step { margin: 0; padding: 4px 16px 18px; border: 1px solid var(--calculator-border); border-top: 0; border-radius: 0 0 8px 8px; background: #fcfefe; }
.calculator-page .journey-enhanced .calculator-step-heading { display: none; }
.calculator-page .calculator-step:focus { outline: 0; }
.calculator-page .form-grid { gap: 18px 16px; }
.calculator-page #calculator-panel-amount .form-grid > .field-wide { grid-column: auto; }
.calculator-page #calculator-panel-amount .field > label { min-height: 40px; }
.calculator-page .field { min-width: 0; gap: 7px; }
.inner-page .calculator-page .field label,
.calculator-page .calculator-choice-field > legend { color: var(--calculator-ink); font-size: 13px; font-weight: 550; line-height: 1.55; }
.inner-page .calculator-page :is(.field input:not([type="radio"], [type="checkbox"]), .field select) { min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #cbdfea; border-radius: 6px; background: #fff; color: var(--calculator-ink); font-size: 14px; line-height: 1.5; }
.calculator-page .field input::placeholder { color: #7f96b4; opacity: 1; }
.inner-page .calculator-page :is(.field input, .field select)[aria-invalid="true"] { border-color: #b91c1c; }
.inner-page .calculator-page .field small:not(.field-error) { color: var(--calculator-muted); font-size: 11px; font-weight: 400; line-height: 1.6; }
.calculator-page .optional-label { display: block; color: #7588a2; font-size: 10px; font-weight: 400; }
.calculator-page .field-error { margin: 0; font-size: 12px; line-height: 1.5; }
.calculator-page .calculator-choice-field > legend { margin-bottom: 10px; font-weight: 600; }
.calculator-page .calculator-choice-grid { gap: 8px; }
.calculator-page .calculator-choice-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calculator-page .calculator-choice-grid-fees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calculator-page .calculator-choice-grid-fees > :last-child { grid-column: 1 / -1; }
.inner-page .calculator-page .calculator-choice-card { min-height: 90px; align-content: center; padding: 11px 10px 11px 35px; border-color: #cbdfea; border-radius: 6px; background: #fff; }
.inner-page .calculator-page .calculator-choice-card input { left: 11px; width: 16px; min-width: 16px; height: 16px; min-height: 16px; margin-top: -8px; accent-color: var(--calculator-teal); }
.inner-page .calculator-page .calculator-choice-card span { color: var(--calculator-ink); font-size: 12px; font-weight: 550; line-height: 1.5; }
.inner-page .calculator-page .calculator-choice-card small { font-size: 10px; line-height: 1.5; }
.inner-page .calculator-page .calculator-choice-card:has(input:checked) { border-color: var(--calculator-teal); background: #effafa; box-shadow: inset 0 0 0 1px var(--calculator-teal); }
.inner-page .calculator-page .calculator-choice-card:has(input[aria-invalid="true"]) { border-color: #b91c1c; }
.calculator-page .conditional-panel { margin-top: 16px; }
.calculator-page .input-note { padding: 12px; border-left-width: 3px; font-size: 12px; font-weight: 500; line-height: 1.65; }
.inner-page .calculator-page .term-help { margin: 16px 0 0; padding: 0 12px; border: 1px solid #e0eaf3; border-radius: 6px; background: #f5f9fc; }
.inner-page .calculator-page .term-help summary { min-height: 42px; padding-block: 11px; font-size: 11px; font-weight: 550; line-height: 1.65; }
.inner-page .calculator-page .term-help p { margin: 0 0 12px; color: var(--calculator-muted); font-size: 11px; line-height: 1.7; }
.calculator-page .calculator-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 20px; }
.inner-page .calculator-page .calculator-actions > .button { min-height: 46px; padding: 11px 16px; font-size: 13px; }
.calculator-page .calculator-actions > .button-primary { flex: 1; }
.inner-page .calculator-page .calculator-actions > button[type="reset"] { flex: 0 0 auto; min-height: 44px; padding-inline: 8px; border-color: transparent; background: transparent; box-shadow: none; color: var(--calculator-muted); font-size: 11px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.calculator-page .calculator-actions-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--calculator-muted); font-size: 11px; line-height: 1.6; }
.calculator-page .calculator-local-note { margin: 12px 0 0; color: var(--calculator-muted); font-size: 11px; line-height: 1.6; }
.calculator-page .calculator-local-note > span { margin-right: 5px; color: var(--calculator-teal); }
.calculator-page .calculator-actions-note svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; fill: none; stroke: var(--calculator-teal); }
.calculator-page .form-error { border-radius: 4px; font-size: 12px; }

/* Explain the outputs until a calculation is available. */
.calculator-page .calculator-side { min-width: 0; }
.calculator-page .calculator-preview { overflow: hidden; border: 1px solid #d8ecee; border-radius: 9px; background: linear-gradient(135deg, #effbfb, #e8f8f9); }
.calculator-page .calculator-preview-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 21px 20px; background: var(--calculator-ink); color: #fff; }
.calculator-page .calculator-preview-heading > :is(svg, span),
.calculator-page .calculator-preview-heading svg { width: 32px; height: 37px; color: #fff; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.calculator-page .calculator-preview-heading h2 { margin: 0; color: #fff; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.calculator-page .calculator-preview-heading p { margin: 6px 0 0; color: #e1eaf9; font-size: 11px; line-height: 1.65; }
.calculator-page .calculator-preview > h2 { margin: 0; padding: 20px; background: var(--calculator-ink); color: #fff; font-size: 20px; line-height: 1.4; }
.calculator-page .calculator-preview > p { margin: 0; padding: 14px 20px 0; color: var(--calculator-muted); font-size: 12px; line-height: 1.7; }
.calculator-page .preview-items { display: grid; gap: 22px; margin: 0; padding: 24px 20px; list-style: none; }
.calculator-page .preview-items li { display: grid; grid-template-columns: 49px minmax(0, 1fr); align-items: start; gap: 14px; margin: 0; }
.calculator-page .preview-items li > span { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; background: #d9f1f3; color: var(--calculator-teal); }
.calculator-page .preview-items svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.calculator-page .preview-items strong { display: block; margin-top: 2px; color: var(--calculator-ink); font-size: 14px; font-weight: 600; line-height: 1.45; }
.calculator-page .preview-items p { margin: 5px 0 0; color: var(--calculator-muted); font-size: 12px; line-height: 1.65; }
.calculator-page .calculator-preview > .calculator-preview-tip { display: flex; align-items: flex-start; gap: 10px; margin: 0 18px 18px; padding: 13px; border-radius: 6px; background: #dbf2f4; color: var(--calculator-muted); font-size: 11px; line-height: 1.7; }
.calculator-page .calculator-preview-tip svg { flex: 0 0 21px; width: 21px; height: 25px; fill: none; stroke: var(--calculator-teal); stroke-width: 1.6; }
.calculator-page .calculator-preview-tip p { margin: 0; }

/* A valid submission replaces the educational aside with the actual result. */
.inner-page .calculator-page .calculator-result { margin: 0; padding: 22px 20px; border: 1px solid #c2e4e5; border-radius: 9px; background: #eaf8f8; box-shadow: 0 5px 20px #52699505; }
.calculator-page .calculator-result[data-state="empty"] { display: none; }
.calculator-page .calculator-result .result-heading { display: block; padding-bottom: 18px; border-bottom: 1px solid #c8e5e7; }
.calculator-page .calculator-result .result-heading span { color: var(--calculator-teal); font-size: 10px; font-weight: 650; letter-spacing: .08em; }
.inner-page .calculator-page .calculator-result .result-heading h3 { margin: 7px 0 14px; color: var(--calculator-ink); font-size: 18px; font-weight: 600; line-height: 1.5; }
.calculator-page .calculator-result .result-heading strong { display: block; max-width: 100%; color: var(--calculator-teal); font-size: clamp(23px, 2.25vw, 30px); font-weight: 650; line-height: 1.35; text-align: left; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calculator-page .calculator-result .result-list { gap: 0; margin-top: 8px; }
.calculator-page .calculator-result .result-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 12px; padding: 13px 0; border-bottom: 1px solid #d0e8e9; }
.calculator-page .calculator-result .result-list dt { color: var(--calculator-muted); font-size: 12px; line-height: 1.65; }
.calculator-page .calculator-result .result-list dd { max-width: 100%; color: var(--calculator-ink); font-size: 13px; font-weight: 600; line-height: 1.65; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calculator-page .calculator-result :is(p, .text-link) { color: var(--calculator-muted); font-size: 11px; line-height: 1.7; }
.calculator-page .calculator-result .text-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 10px; color: var(--calculator-teal); text-decoration: underline; text-underline-offset: 3px; }
.inner-page .calculator-page .calculator-result-compare { width: 100%; margin-top: 18px; min-height: 44px; border-color: var(--calculator-teal); background: transparent; color: var(--calculator-teal); font-size: 12px; }
.inner-page .calculator-page .calculator-result .term-help { background: #f6fdfd; }
.calculator-page .calculator-result .term-help .result-list > div { grid-template-columns: 1fr; gap: 3px; }
.calculator-page .calculator-result .term-help .result-list dd { text-align: left; }
.calculator-page .calculator-result :is(.result-completeness, .result-warning) { margin-top: 16px !important; padding: 11px 12px; font-size: 11px !important; font-weight: 500; }
.inner-page .calculator-page .calculator-result:is([data-state="partial"], [data-state="review"]) { border-color: #efd5a5; background: #fffaf0; }
.calculator-page .calculator-result:is([data-state="partial"], [data-state="review"]) .result-heading strong { color: #8b5b1d; font-size: 21px; }
.calculator-page .calculator-result:is([data-state="partial"], [data-state="review"]) .result-list > div { border-color: #f0dfc3; }
.inner-page .calculator-page .calculator-result[data-state="stale"] { border-color: #dce8f2; background: #f2f7fb; }
.calculator-page .calculator-result[data-state="stale"] .result-heading strong { color: var(--calculator-muted); font-size: 18px; }

/* Supporting information follows the working area. */
.calculator-page .calculator-checklist { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 22px; padding: 20px 24px; border: 1px solid #d8edef; border-radius: 9px; background: #e9f8f8; }
.calculator-page .calculator-checklist > :is(svg, .calculator-checklist-icon),
.calculator-page .calculator-checklist svg { width: 40px; height: 42px; color: var(--calculator-teal); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.calculator-page .calculator-checklist h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.calculator-page .calculator-checklist p { margin: 5px 0 0; color: var(--calculator-muted); font-size: 12px; line-height: 1.65; }
.inner-page .calculator-page .calculator-checklist .button { min-height: 44px; border-color: var(--calculator-teal); background: transparent; color: #006e74; font-size: 13px; white-space: nowrap; }
.calculator-page .calculator-utilities { margin-top: 28px; }
.calculator-page .calculator-utilities > h2,
.calculator-page .calculator-faq > h2 { margin: 0 0 12px; font-size: 22px; font-weight: 650; line-height: 1.4; }
.calculator-page .calculator-utilities > .content-disclosure,
.calculator-page .calculator-faq-item { border: 1px solid var(--calculator-border); border-radius: 7px; background: #fff; }
.calculator-page .calculator-utilities > .content-disclosure > summary,
.calculator-page .calculator-faq-item > summary { position: relative; display: block; min-height: 54px; padding: 15px 46px 15px 18px; color: var(--calculator-ink); font-size: 14px; font-weight: 550; line-height: 1.65; list-style: none; cursor: pointer; }
.calculator-page .calculator-utilities > .content-disclosure > summary::-webkit-details-marker,
.calculator-page .calculator-faq-item > summary::-webkit-details-marker { display: none; }
.calculator-page .calculator-utilities > .content-disclosure > summary::after,
.calculator-page .calculator-faq-item > summary::after { position: absolute; top: 22px; right: 20px; width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); content: ""; }
.calculator-page .calculator-utilities > .content-disclosure[open] > summary::after,
.calculator-page .calculator-faq-item[open] > summary::after { top: 25px; transform: rotate(225deg); }
.calculator-page .calculator-utilities > .content-disclosure > summary h2 { font-size: 16px; font-weight: 600; }
.calculator-page .calculator-utilities > .content-disclosure > summary span { margin-top: 3px; font-size: 11px; }
.calculator-page .calculator-utilities .calculator-advanced-body { padding: 6px 22px 22px; }
.calculator-page .calculator-advanced-section h3 { margin-top: 8px; font-size: 21px; line-height: 1.4; }
.calculator-page .calculator-advanced-section :is(p, li) { font-size: 14px; line-height: 1.75; }
.calculator-page .calculator-faq { margin-top: 28px; }
.calculator-page .calculator-faq-item + .calculator-faq-item { margin-top: 8px; }
.calculator-page .calculator-faq-item > summary h3 { display: inline; margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: 0; }
.calculator-page .calculator-faq-item > summary > span { display: none; }
.calculator-page .calculator-faq-item > :not(summary) { margin: 0; padding: 0 18px 18px; color: #344b73; font-size: 13px; line-height: 1.8; }
.calculator-page .calculator-faq-item > :not(summary) h3 { margin-top: 14px; font-size: 16px; line-height: 1.5; }
.calculator-page .calculator-faq-item :is(ul, ol) { padding-left: 22px; }
.calculator-page .calculator-faq-item a:not(.button) { color: var(--calculator-teal); text-decoration: underline; text-underline-offset: 3px; }
.calculator-page .calculator-partner { margin-top: 28px; }
.inner-page .calculator-page .calculator-partner .calculator-next-step { margin: 0; padding: 22px 24px; border-color: var(--calculator-border); border-radius: 9px; background: #fff; }
.calculator-page .calculator-partner h3 { margin: 5px 0 10px; font-size: 20px; line-height: 1.45; }
.calculator-page .calculator-partner :is(p, li) { font-size: 13px; line-height: 1.75; }
.calculator-page .calculator-partner .eyebrow { margin: 0; color: var(--calculator-teal); font-size: 10px; }
.calculator-page .calculator-partner .button { font-size: 13px; }
.calculator-page .calculator-editorial { margin-top: 24px; border-top: 1px solid var(--calculator-border); color: var(--calculator-muted); font-size: 12px; }
.calculator-page .calculator-editorial > summary { min-height: 44px; padding-block: 12px; cursor: pointer; color: var(--calculator-ink); font-weight: 500; }
.calculator-page .calculator-editorial .article-editorial { margin-top: 6px; }

@media (max-width: 1000px) {
  .inner-page .calculator-page .container { width: calc(100% - 48px); }
  .calculator-page .calculator-task { grid-template-columns: 29px minmax(0, 1fr); gap: 10px; padding: 13px; }
  .calculator-page .calculator-task-icon,
  .calculator-page .calculator-task-icon svg { width: 28px; height: 30px; }
  .calculator-page .task-arrow { display: none; }
  .calculator-page .calculator-hero-art { display: none; }
  .calculator-page .calculator-task strong { font-size: 13px; }
  .calculator-page .calculator-task strong + span { font-size: 10px; }
  .calculator-page .calculator-workspace { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }
  .inner-page .calculator-page .standalone-calculator { padding: 18px; }
  .calculator-page .calculator-form-heading h2 { font-size: 21px; }
  .calculator-page .calculator-choice-grid-3 { grid-template-columns: 1fr; }
  .inner-page .calculator-page .calculator-choice-card { min-height: 64px; }
  .calculator-page .preview-items { gap: 19px; padding: 20px 16px; }
  .calculator-page .preview-items li { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .calculator-page .preview-items li > span { width: 40px; height: 40px; }
  .calculator-page .preview-items svg { width: 25px; height: 25px; }
  .calculator-page .preview-items strong { font-size: 13px; }
  .calculator-page .preview-items p { font-size: 11px; }
  .calculator-page .calculator-preview-heading { padding: 18px 16px; }
  .calculator-page .calculator-preview-heading h2 { font-size: 18px; }
  .calculator-page .calculator-result .result-list > div { grid-template-columns: 1fr; gap: 4px; }
  .calculator-page .calculator-result .result-list dd { text-align: left; }
}
@media (max-width: 760px) {
  .calculator-page { padding-bottom: 32px; background: linear-gradient(180deg, #edf7fd 0, #f8fbfe 100%); }
  .inner-page .calculator-page .container { width: calc(100% - 36px); }
  .calculator-page .calculator-hero { padding: 16px 0 22px; }
  .calculator-page .calculator-hero::after { width: 320px; right: -230px; }
  .calculator-page .calculator-breadcrumb { margin-bottom: 14px; font-size: 10px; }
  .calculator-page .calculator-hero :is(.eyebrow, .calculator-kicker, .legal-kicker) { font-size: 10px; }
  .calculator-page .calculator-hero h1 { font-size: 30px; line-height: 1.23; }
  .calculator-page .calculator-hero :is(.calculator-subtitle, h1 + p) { margin-top: 10px; font-size: 14px; line-height: 1.65; }
  .calculator-page .calculator-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .calculator-page .calculator-hero .calculator-task-grid { margin-top: 20px; }
  .calculator-page .calculator-task { min-height: 76px; padding: 12px; border-radius: 6px; }
  .calculator-page .calculator-task strong { font-size: 13px; }
  .calculator-page .calculator-task strong + span { font-size: 10px; }
  .calculator-page .calculator-workspace { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .inner-page .calculator-page .standalone-calculator { padding: 18px; border-radius: 8px; }
  .calculator-page .calculator-form-heading { gap: 8px; margin-bottom: 10px; }
  .calculator-page .calculator-form-heading h2 { font-size: 21px; }
  .inner-page .calculator-page .required-note { margin-bottom: 16px; font-size: 11px; }
  .calculator-page .calculator-journey > [data-journey-step] { min-height: 68px; margin-top: 10px; padding: 12px; gap: 10px; font-size: 14px; }
  .calculator-page .calculator-journey > [data-journey-step] small { font-size: 10px; }
  .calculator-page .journey-number { flex-basis: 28px; width: 28px; height: 28px; font-size: 14px; }
  .calculator-page .journey-enhanced .calculator-step,
  .calculator-page .journey-enhanced .calculator-step + .calculator-step { padding: 3px 12px 14px; }
  .calculator-page #calculator-panel-amount .form-grid,
  .calculator-page .form-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .calculator-page .field-wide { grid-column: auto; }
  .calculator-page #calculator-panel-amount .field > label { min-height: 0; }
  .inner-page .calculator-page .field label { font-size: 12px; }
  .inner-page .calculator-page :is(.field input:not([type="radio"], [type="checkbox"]), .field select) { min-height: 46px; font-size: 16px; }
  .calculator-page .optional-label { display: inline; margin-left: 3px; font-size: 10px; }
  .calculator-page .calculator-choice-grid,
  .calculator-page .calculator-choice-grid-3,
  .calculator-page .calculator-choice-grid-fees { grid-template-columns: minmax(0, 1fr); }
  .calculator-page .calculator-choice-grid-fees > :last-child { grid-column: auto; }
  .inner-page .calculator-page .calculator-choice-card { min-height: 64px; padding: 11px 12px 11px 38px; }
  .calculator-page .calculator-actions { gap: 8px; margin-top: 17px; }
  .calculator-page .calculator-actions > [data-journey-prev] { flex: 0 1 auto; }
  .inner-page .calculator-page .calculator-actions > .button { width: auto; padding: 11px 12px; font-size: 12px; }
  .inner-page .calculator-page .calculator-actions > button[type="reset"] { flex: 1 0 100%; margin: 0; padding-block: 5px; min-height: 32px; text-align: center; }
  .calculator-page .calculator-actions-note { margin-top: 7px; font-size: 10px; }
  .calculator-page .calculator-preview-heading { grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 10px; padding: 14px 17px; }
  .calculator-page .calculator-preview-heading > :is(svg, span),
  .calculator-page .calculator-preview-heading svg { width: 26px; height: 30px; }
  .calculator-page .calculator-preview-heading h2 { font-size: 18px; }
  .calculator-page .calculator-preview-heading p { margin-top: 3px; font-size: 10px; }
  .calculator-page .preview-items { gap: 18px; padding: 20px 18px; }
  .calculator-page .preview-items li { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .calculator-page .preview-items li > span { width: 42px; height: 42px; }
  .calculator-page .preview-items strong { font-size: 14px; }
  .calculator-page .preview-items p { font-size: 11px; }
  .calculator-page .calculator-preview > .calculator-preview-tip { margin: 0 16px 16px; font-size: 10px; }
  .inner-page .calculator-page .calculator-result { padding: 20px 18px; }
  .calculator-page .calculator-result .result-heading strong { font-size: 28px; }
  .calculator-page .calculator-result .result-list > div { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .calculator-page .calculator-result .result-list dd { text-align: right; }
  .calculator-page .calculator-checklist { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; margin-top: 18px; padding: 18px; }
  .calculator-page .calculator-checklist > :is(svg, .calculator-checklist-icon),
  .calculator-page .calculator-checklist svg { width: 32px; height: 36px; }
  .calculator-page .calculator-checklist h2 { font-size: 18px; }
  .calculator-page .calculator-checklist p { font-size: 11px; }
  .calculator-page .calculator-checklist .button { grid-column: 1 / -1; width: 100%; margin-top: 2px; }
  .calculator-page :is(.calculator-utilities, .calculator-faq, .calculator-partner) { margin-top: 23px; }
  .calculator-page .calculator-utilities > h2,
  .calculator-page .calculator-faq > h2 { font-size: 21px; }
  .calculator-page .calculator-utilities .calculator-advanced-body { padding: 3px 14px 18px; }
  .calculator-page .calculator-advanced-section h3 { font-size: 19px; }
  .calculator-page .calculator-advanced-section :is(p, li) { font-size: 13px; }
  .calculator-page .calculator-faq-item > summary { padding: 13px 42px 13px 15px; font-size: 12px; }
  .calculator-page .calculator-faq-item > :not(summary) { padding-inline: 15px; font-size: 12px; }
  .inner-page .calculator-page .calculator-partner .calculator-next-step { padding: 18px; }
}
@media (max-width: 370px) {
  .inner-page .calculator-page .container { width: calc(100% - 24px); }
  .calculator-page .calculator-hero h1 { font-size: 27px; }
  .calculator-page .calculator-task { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 10px; }
  .calculator-page .calculator-task-icon,
  .calculator-page .calculator-task-icon svg { width: 24px; height: 26px; }
  .calculator-page .calculator-task strong { font-size: 12px; }
  .inner-page .calculator-page .standalone-calculator { padding: 14px; }
  .calculator-page .calculator-result .result-list > div { grid-template-columns: 1fr; }
  .calculator-page .calculator-result .result-list dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .calculator-page .calculator-task,
  .calculator-page .calculator-journey > [data-journey-step] { transition: none; }
}
@media print {
  .calculator-page { padding: 0; background: #fff; }
  .inner-page .calculator-page .container { width: 100%; }
  .calculator-page .calculator-hero::after,
  .calculator-page .calculator-task-grid,
  .calculator-page .calculator-journey > [data-journey-step],
  .calculator-page .calculator-actions,
  .calculator-page .calculator-actions-note,
  .calculator-page .calculator-preview,
  .calculator-page .calculator-checklist { display: none !important; }
  .calculator-page .calculator-workspace { display: block; }
  .inner-page .calculator-page .standalone-calculator { padding: 0; border: 0; box-shadow: none; }
  .calculator-page .journey-enhanced [data-calculator-step][hidden] { display: block !important; }
  .calculator-page .journey-enhanced .calculator-step-heading { display: block; }
  .calculator-page .journey-enhanced .calculator-step-heading > span { display: none; }
  .calculator-page .journey-enhanced .calculator-step { margin-bottom: 20px; padding: 0; border: 0; }
  .inner-page .calculator-page .calculator-result { margin-top: 24px; break-inside: avoid; box-shadow: none; }
}

/* Independent tools keep the same surfaces and field styles as the cost form. */
.inner-page .calculator-page :is(.calculator-standalone, .calculator-comparison) { margin: 0; padding: 28px; border: 1px solid var(--calculator-border); border-radius: 10px; background: #fff; box-shadow: 0 5px 20px #52699505; }
.inner-page .calculator-page .calculator-standalone { max-width: 900px; margin-inline: auto; }
.calculator-page .standalone-form-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.calculator-page .standalone-tool-form .form-grid { align-items: start; }
.calculator-page .standalone-tool-form .tool-actions { margin-top: 24px; }
.calculator-page .standalone-tool-result { margin-top: 28px; padding: 24px; border: 1px solid #b6dfe0; border-radius: 8px; background: #effafa; scroll-margin-top: 24px; }
.calculator-page .standalone-tool-result:focus { outline: 2px solid var(--calculator-teal); outline-offset: 4px; }
.calculator-page .standalone-tool-result .result-heading { align-items: start; gap: 16px; }
.calculator-page .standalone-tool-result .result-heading span { color: var(--calculator-teal); font-size: 10px; letter-spacing: .07em; }
.calculator-page .standalone-tool-result h3 { margin: 6px 0 0; font-size: 19px; }
.calculator-page .standalone-tool-result .result-heading strong { color: var(--calculator-ink); font-size: 28px; overflow-wrap: anywhere; }
.calculator-page .standalone-tool-result .result-list { padding-top: 18px; border-top: 1px solid #d2e9e9; }
.calculator-page .standalone-tool-result .result-list > div { gap: 8px 20px; }
.calculator-page .standalone-tool-result .result-list dt { color: var(--calculator-muted); }
.calculator-page .standalone-tool-result :is(p, dt, dd) { font-size: 13px; line-height: 1.65; }
.calculator-page .standalone-tool-result .budget-deficit { color: #a12a2a; }
.calculator-page .calculator-standalone > .term-help { margin-top: 24px; }
.calculator-page .calculator-comparison { margin-top: 28px !important; }
.calculator-page .calculator-comparison > h2 { margin: 0 0 20px; font-size: 24px; }
.calculator-page .calculator-cross-tool-note { margin: 16px 0 0; color: var(--calculator-muted); font-size: 13px; }
.calculator-page .calculator-cross-tool-note a { color: var(--calculator-teal); font-weight: 600; }
.calculator-page .calculator-seo-content { display: grid; gap: 16px; margin-top: 28px; }
.calculator-page .calculator-seo-section { min-width: 0; padding: 24px; border: 1px solid var(--calculator-border); border-radius: 9px; background: #fff; }
.calculator-page .calculator-seo-section h2 { margin: 0 0 14px; font-size: 23px; line-height: 1.4; letter-spacing: -.025em; }
.calculator-page .calculator-seo-section h3 { margin-top: 20px; font-size: 17px; line-height: 1.5; }
.calculator-page .calculator-seo-section :is(p, li, dt, dd) { font-size: 14px; line-height: 1.8; }
.calculator-page .calculator-seo-section > :last-child { margin-bottom: 0; }
.calculator-page .calculator-seo-section :is(ol, ul) { padding-left: 22px; }
.calculator-page .calculator-seo-section a { color: var(--calculator-teal); text-decoration: underline; text-underline-offset: 3px; }
.calculator-page .calculator-seo-content .calculator-faq { margin-top: 0; }
.calculator-page .calculator-seo-example { padding: 16px 18px; border-left: 3px solid var(--calculator-teal); border-radius: 4px; background: #effafa; }
@media (max-width: 640px) {
  .inner-page .calculator-page :is(.calculator-standalone, .calculator-comparison) { padding: 18px; }
  .calculator-page .standalone-tool-result { padding: 18px; }
  .calculator-page .standalone-tool-result .result-heading { flex-direction: column; gap: 8px; }
  .calculator-page .standalone-tool-result .result-heading strong { font-size: 26px; text-align: left; }
  .calculator-page .standalone-tool-result .result-list > div { flex-direction: column; gap: 3px; }
  .calculator-page .standalone-tool-result .result-list dd { text-align: left; }
  .calculator-page .standalone-tool-form .tool-actions { display: grid; }
  .calculator-page .standalone-tool-form .tool-actions > .button { width: 100%; }
  .calculator-page .calculator-comparison > h2 { font-size: 21px; }
  .calculator-page .calculator-seo-section { padding: 18px; }
  .calculator-page .calculator-seo-section h2 { font-size: 21px; }
  .calculator-page .calculator-seo-section :is(p, li, dt, dd) { font-size: 13px; }
}
@media print {
  .inner-page .calculator-page :is(.calculator-standalone, .calculator-comparison) { padding: 0; border: 0; box-shadow: none; }
  .calculator-page .standalone-tool-form .tool-actions { display: none; }
  .calculator-page .standalone-tool-result { break-inside: avoid; }
}
