/* CheckPeek website. Colors are the app's "Navy & Sun" (light) and "Night Navy" (dark) themes, with the same
   names and values as TakeHomePay/Resources/Themes/LightTheme.xaml and DarkTheme.xaml. A test
   (WebThemeTests) checks they stay identical; change a color in the XAML file and here together. */

:root {
    --PageBackground: #FFFFFF;
    --TextPrimary: #13263A;
    --TextHeading: #0D2B45;
    --TextMuted: #4F5F71;
    --NavBarBackground: #0D2B45;
    --NavBarText: #FFFFFF;
    --ButtonBackground: #0D2B45;
    --ButtonText: #FFFFFF;
    --ButtonDisabledBackground: #9AA8B6;
    --OutlineColor: #0D2B45;
    --OutlineBackground: #FFFFFF;
    --StepColor: #0D2B45;
    --TrackColor: #FFF1C7;
    --CardBackground: #FFFFFF;
    --CardBorderBrush: #C9D2DC;
    --SelectedBackground: #FFF6DB;
    --SelectedBorderBrush: #0D2B45;
    --SelectedMark: #0D2B45;
    --SelectedMarkText: #FFC93C;
    --MarkIdleBrush: #C9D2DC;
    --MarkSelectedBrush: #0D2B45;
    --InputBackground: #F2F5F9;
    --InputText: #13263A;
    --PlaceholderText: #6B7B8C;
    --HeroBackground: #0D2B45;
    --HeroBorderBrush: #0D2B45;
    --HeroText: #FFC93C;
    --HeroLabel: #DCE6F0;
    --PanelBackground: #FFFFFF;
    --PanelBorderBrush: #D5DDE6;
    --PanelHighlightBackground: #FFF6DB;
    --PanelHighlightBorderBrush: #FFC93C;
    --BannerBackground: #FFF8E1;
    --BannerBorderBrush: #F9A825;
    --BannerText: #5D4037;
    --InfoButtonText: #0D2B45;
    --SliderActive: #0D2B45;
    --SliderTrack: #CFD8E3;
    --ChartTakeHome: #2A78D6;
    --ChartFederal: #EB6834;
    --ChartState: #1BAF7A;
    --ChartFica: #EDA100;
    --ChartDeductions: #E87BA4;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --PageBackground: #0F1E2E;
    --TextPrimary: #E6EDF5;
    --TextHeading: #FFFFFF;
    --TextMuted: #A9B8C8;
    --NavBarBackground: #0A1622;
    --NavBarText: #FFFFFF;
    --ButtonBackground: #FFC93C;
    --ButtonText: #0D2B45;
    --ButtonDisabledBackground: #5F6B4A;
    --OutlineColor: #FFC93C;
    --OutlineBackground: #0F1E2E;
    --StepColor: #FFC93C;
    --TrackColor: #1E3247;
    --CardBackground: #162A3E;
    --CardBorderBrush: #2C4560;
    --SelectedBackground: #22384F;
    --SelectedBorderBrush: #FFC93C;
    --SelectedMark: #FFC93C;
    --SelectedMarkText: #0D2B45;
    --MarkIdleBrush: #3A5573;
    --MarkSelectedBrush: #FFC93C;
    --InputBackground: #162A3E;
    --InputText: #E6EDF5;
    --PlaceholderText: #8A9BAE;
    --HeroBackground: #162A3E;
    --HeroBorderBrush: #FFC93C;
    --HeroText: #FFC93C;
    --HeroLabel: #A9B8C8;
    --PanelBackground: #162A3E;
    --PanelBorderBrush: #2C4560;
    --PanelHighlightBackground: #22384F;
    --PanelHighlightBorderBrush: #FFC93C;
    --BannerBackground: #3A3220;
    --BannerBorderBrush: #C9A227;
    --BannerText: #FFE08A;
    --InfoButtonText: #FFC93C;
    --SliderActive: #FFC93C;
    --SliderTrack: #2C4560;
    --ChartTakeHome: #3987E5;
    --ChartFederal: #D95926;
    --ChartState: #199E70;
    --ChartFica: #C98500;
    --ChartDeductions: #D55181;
    color-scheme: dark;
}

/* ---------- Base ---------- */
@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--PageBackground);
    color: var(--TextPrimary);
    font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
}

h1:focus { outline: none; }

.test-banner {
    background: var(--NavBarBackground);
    color: var(--NavBarText);
    font-size: 14px;
    text-align: center;
    padding: 8px 16px;
}
.test-banner a { color: var(--NavBarText); font-weight: 700; }

.new-banner {
    background: var(--PanelHighlightBackground);
    border-bottom: 1px solid var(--PanelHighlightBorderBrush);
    color: var(--TextPrimary);
    font-size: 14px;
    text-align: center;
    padding: 8px 16px;
}
.new-banner a { color: var(--TextHeading); font-weight: 700; }

.loading { text-align: center; padding-top: 30vh; color: var(--TextHeading); font-weight: 700; font-size: 22px; }

/* ---------- Website layout: header, page column, footer ---------- */
#app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main { flex: 1; }
.page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 20px 48px; display: flex; flex-direction: column; }
.narrow { width: 100%; max-width: 720px; }
h1, h2 { text-wrap: balance; }

.site-header { border-bottom: 1px solid var(--PanelBorderBrush); background: var(--PageBackground); }
.site-header .inner { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--TextHeading); text-decoration: none; }
.logo img { width: 40px; height: 40px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { padding: 10px 0; color: var(--TextHeading); font-size: 16px; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--PanelHighlightBorderBrush); }
.site-tools { display: flex; align-items: center; position: relative; }
.tool { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--TextHeading); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.tool:hover { background: var(--InputBackground); }
.tool.round { width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.tool.menu { display: none; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ic.moon { fill: currentColor; stroke: none; }
.ic.sun, :root[data-theme="dark"] .ic.moon { display: none; }
:root[data-theme="dark"] .ic.sun { display: block; }
.chev { width: 11px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lang-backdrop { position: fixed; inset: 0; z-index: 9; }
.lang-menu { position: absolute; top: 52px; right: 0; z-index: 10; width: 190px; padding: 6px; border: 1px solid var(--CardBorderBrush); border-radius: 12px; background: var(--CardBackground); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.lang-menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--TextPrimary); font: inherit; font-weight: 600; cursor: pointer; }
.lang-menu button:hover { background: var(--InputBackground); }
a:focus-visible, .tool:focus-visible, .lang-menu button:focus-visible, .periods button:focus-visible { outline: 3px solid var(--PanelHighlightBorderBrush); outline-offset: 2px; }

.footer { background: var(--NavBarBackground); color: var(--HeroLabel); font-size: 15px; }
.footer .inner { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.footer strong { display: block; margin-bottom: 6px; color: var(--NavBarText); }
.footer p { margin: 0 0 6px; }
.footer nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer a { padding: 6px 0; color: inherit; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Home ---------- */
.home-hero { background: var(--NavBarBackground); color: var(--HeroLabel); }
.home-hero .inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.home-hero h1 { margin: 0; color: var(--HeroText); font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.home-hero h1 span { display: block; color: var(--NavBarText); }
.home-hero .lead { margin: 18px 0 0; max-width: 34em; font-size: 19px; line-height: 1.45; }
.home-hero .small { margin: 18px 0 0; font-size: 13px; }
.home-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-buttons .btn { width: auto; padding-left: 32px; padding-right: 32px; }
.btn.sunny { background: var(--HeroText); border-color: var(--HeroText); color: var(--ButtonBackground); }
:root[data-theme="dark"] .btn.sunny { color: var(--ButtonText); }
.btn.ghost { background: transparent; border-color: var(--HeroLabel); color: var(--NavBarText); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; padding: 0; color: var(--NavBarText); font-size: 16px; font-weight: 600; }
.trust span { color: var(--HeroText); font-weight: 800; }

.band { padding: 56px 0; }
.band.soft { background: var(--InputBackground); }
.band h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--TextHeading); }
.how { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 22px 0 0; padding: 0; }
.how li { counter-increment: step; display: flex; gap: 14px; }
.how li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--SelectedMark); color: var(--SelectedMarkText); font-weight: 700; }
.link-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 0 40px; margin: 16px 0 0; padding: 0; }
.link-grid.states { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 0 24px; }
.link-grid a { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 100%; padding: 13px 0; border-bottom: 1px solid var(--PanelBorderBrush); color: var(--TextPrimary); font-weight: 600; text-decoration: none; }
.link-grid a::after { content: "›"; color: var(--TextMuted); font-size: 20px; line-height: 1; }
.link-grid a:hover { border-bottom-color: var(--PanelHighlightBorderBrush); color: var(--TextHeading); }
.more-link { display: inline-block; margin-top: 20px; padding: 6px 0; color: var(--TextHeading); font-weight: 700; text-underline-offset: 4px; }

/* ---------- Pay stub: the example on Home and "Your answers so far" next to the questions ---------- */
.stub { min-width: 0; padding: 22px 24px; border: 1px solid var(--PanelBorderBrush); border-radius: 14px; background: var(--PanelBackground); color: var(--TextPrimary); }
.stub.torn { padding-bottom: 34px; border: 0; border-radius: 14px 14px 0 0; -webkit-mask: radial-gradient(circle 8px at 12px 100%, transparent 98%, black) 0 0 / 24px 100%; mask: radial-gradient(circle 8px at 12px 100%, transparent 98%, black) 0 0 / 24px 100%; }
.stub-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding-bottom: 12px; border-bottom: 2px dashed var(--CardBorderBrush); font-size: 14px; color: var(--TextMuted); }
.stub-top strong { color: var(--TextHeading); }
.stub-rows { display: grid; gap: 10px; padding: 16px 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.stub-rows > div { display: flex; justify-content: space-between; gap: 16px; }
.stub-rows > div > span:first-child { display: flex; align-items: center; }
.stub-rows > div > span:last-child { text-align: right; }
.stub.torn .stub-rows > div > span:last-child { white-space: nowrap; }
.stub .swatch { flex: none; width: 12px; height: 12px; margin-right: 10px; border-radius: 3px; }
.stub-net { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding-top: 14px; border-top: 2px dashed var(--CardBorderBrush); font-weight: 700; line-height: 1.25; color: var(--TextHeading); }
.stub-net small { font-weight: 400; font-size: 14px; color: var(--TextMuted); }
.stub-net strong { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Question screens ---------- */
.step-answers { display: none; }

/* ---------- Text ---------- */
.step-label { font-size: 14px; font-weight: 700; color: var(--StepColor); margin: 16px 0 8px; }
.question { font-size: 24px; font-weight: 700; color: var(--TextHeading); margin: 0; line-height: 1.25; }
.help { font-size: 17px; line-height: 1.3; color: var(--TextMuted); margin: 0; }
.field-label { font-size: 17px; font-weight: 700; color: var(--TextHeading); margin: 0; display: block; }
.muted { color: var(--TextMuted); }
.small { font-size: 12px; line-height: 1.4; }

.progress { height: 6px; border-radius: 3px; background: var(--TrackColor); overflow: hidden; }
.progress > div { height: 100%; background: var(--StepColor); }

.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.content { flex: 1; padding-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: block;
    width: 100%;
    min-height: 56px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1.5px solid var(--ButtonBackground);
    background: var(--ButtonBackground);
    color: var(--ButtonText);
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.btn.secondary { background: var(--OutlineBackground); color: var(--OutlineColor); border-color: var(--OutlineColor); }
.btn:focus-visible, .card-head:focus-visible, .pill:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--PanelHighlightBorderBrush);
    outline-offset: 2px;
}

.nav-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.toggle-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.toggle-row .btn { min-height: 48px; padding: 4px; font-size: 15px; }
.toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle-grid .btn { min-height: 48px; padding: 4px; font-size: 15px; }
/* Three choices ("Just me", "Just my spouse", "Both of us"): the last one spans the full width */
.who-grid .btn:last-child { grid-column: 1 / -1; }

/* ---------- Choice cards ---------- */
.card {
    border: 1px solid var(--CardBorderBrush);
    background: var(--CardBackground);
    border-radius: 12px;
}
.card.selected { border: 2px solid var(--SelectedBorderBrush); background: var(--SelectedBackground); }
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 60px;
    padding: 16px 18px;
    background: none;
    border: 0;
    color: var(--TextPrimary);
    font: inherit;
    font-size: 17px;
    text-align: left;
    cursor: pointer;
}
.mark {
    flex: none;
    width: 26px;
    height: 26px;
    border: 2px solid var(--MarkIdleBrush);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: transparent;
}
.mark.square { border-radius: 6px; }
.card.selected .mark { background: var(--SelectedMark); border-color: var(--MarkSelectedBrush); color: var(--SelectedMarkText); }
.card-detail { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Inputs ---------- */
input[type="text"], select {
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid var(--CardBorderBrush);
    border-radius: 10px;
    background: var(--InputBackground);
    color: var(--InputText);
    font: inherit;
    font-size: 18px;
}
input[type="email"], textarea {
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid var(--CardBorderBrush);
    border-radius: 10px;
    background: var(--InputBackground);
    color: var(--InputText);
    font: inherit;
    font-size: 18px;
}
textarea { resize: vertical; line-height: 1.4; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { background: var(--ButtonDisabledBackground); border-color: var(--ButtonDisabledBackground); cursor: default; }
.card-detail input[type="text"] { background: var(--PageBackground); font-size: 20px; }
input::placeholder { color: var(--PlaceholderText); }
select:disabled { opacity: 0.55; }

/* ---------- Notices ---------- */
.banner {
    border: 1px solid var(--BannerBorderBrush);
    background: var(--BannerBackground);
    color: var(--BannerText);
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
}
.banner strong { display: block; margin-bottom: 2px; }

/* ---------- Pills (names for saved estimates) ---------- */
.pill {
    height: 44px;
    min-width: 44px;
    padding: 0 14px;
    border-radius: 22px;
    border: 1px solid var(--CardBorderBrush);
    background: var(--CardBackground);
    color: var(--TextHeading);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* ---------- Results ---------- */
.results { display: flex; flex-direction: column; gap: 24px; padding-top: 20px; }
/* Results in sections with room between them: the answer, good to know, your answers, what's next, small links. */
.results-section { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.results-section .summary-title { margin: 0; }
.raise-tip { display: flex; gap: 10px; align-items: flex-start; }
.section-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--TextHeading); }
.section-divider::before, .section-divider::after { content: ""; flex: 1; border-top: 1px solid var(--PanelBorderBrush); }
.action-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
/* Save · Share · Print side by side: tighter padding so "Compartir" and "Imprimir" stay on one line on phones */
.action-row .btn { padding: 12px 4px; white-space: nowrap; font-size: 16px; }
.results-links { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 15px; color: var(--TextMuted); margin-top: 8px; }
.results-links a, .link-button {
    color: var(--TextHeading);
    font: inherit;
    font-weight: 700;
    background: none;
    border: 0;
    padding: 10px 4px;
    cursor: pointer;
    text-decoration: underline;
}
.link-button:focus-visible, .results-links a:focus-visible { outline: 3px solid var(--PanelHighlightBorderBrush); outline-offset: 2px; }
.hero {
    border: 1px solid var(--HeroBorderBrush);
    background: var(--HeroBackground);
    border-radius: 14px;
    padding: 26px 18px;
    text-align: center;
    color: var(--HeroLabel);
    font-size: 14px;
}
.hero .amount { font-size: clamp(44px, 6vw, 64px); font-weight: 800; letter-spacing: -0.02em; color: var(--HeroText); line-height: 1.2; margin: 8px 0; }
.hero .brand { font-size: 11px; opacity: 0.8; margin-top: 14px; }
.periods { display: flex; gap: 8px; max-width: 440px; margin: 18px auto 0; }
.periods button { flex: 1; min-height: 46px; padding: 4px; border: 1px solid color-mix(in srgb, var(--HeroLabel) 45%, transparent); border-radius: 10px; background: transparent; color: var(--NavBarText); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.periods button[aria-pressed="true"] { border-color: var(--HeroText); background: var(--HeroText); color: var(--ButtonBackground); }
:root[data-theme="dark"] .periods button[aria-pressed="true"] { color: var(--ButtonText); }
/* Phones: one column in the "order" of the parts. Computers: two columns (below). */
.res-col { display: contents; }
.res-part { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.breakdown:not(.open) { display: none; }
/* Married couples: "Your spouse" and "Together" under the big amount */
.household { margin: 14px auto 0; max-width: 320px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--HeroLabel) 35%, transparent); display: grid; gap: 6px; text-align: left; }
.household-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.household-row strong { color: var(--HeroText); font-size: 18px; }
.household-row small { font-size: 12px; opacity: 0.85; }
.panel { border: 1px solid var(--PanelBorderBrush); background: var(--PanelBackground); border-radius: 8px; padding: 16px; }
.panel.highlight { border-color: var(--PanelHighlightBorderBrush); background: var(--PanelHighlightBackground); border-radius: 10px; padding: 14px; font-size: 15px; }
.summary-title { font-size: 14px; font-weight: 700; color: var(--TextHeading); margin: 0 0 8px; }
.summary { font-size: 14px; line-height: 1.6; color: var(--TextMuted); margin: 0; }

.bar { display: flex; gap: 2px; height: 20px; margin: 4px 0; }
.bar > div:first-child { border-radius: 4px 0 0 4px; }
.bar > div:last-child { border-radius: 0 4px 4px 0; }

.lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.lines td { padding: 3px 4px; vertical-align: middle; }
.lines td.amount { text-align: right; white-space: nowrap; }
.lines tr.bold td { font-weight: 700; color: var(--TextHeading); }
.lines .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.lines .info {
    width: 40px;
    height: 40px;
    background: none;
    border: 0;
    color: var(--InfoButtonText);
    font-size: 16px;
    cursor: pointer;
}
.lines td.explain { color: var(--TextMuted); font-size: 13px; line-height: 1.4; padding: 0 4px 10px 24px; }

/* ---------- Privacy page ---------- */
.legal { padding-top: 20px; line-height: 1.5; }
.legal h1 { margin-bottom: 6px; }
.legal .small { margin-bottom: 16px; }
.legal h2 { font-size: 18px; color: var(--TextHeading); margin: 24px 0 6px; }
.legal p { margin: 0 0 8px; }
.legal .btn { margin-top: 24px; }

/* ---------- State pages ---------- */
.back-link { align-self: flex-start; color: var(--TextHeading); font-weight: 700; font-size: 16px; text-decoration: none; padding: 8px 0; margin-bottom: -12px; }
.back-link:focus-visible { outline: 3px solid var(--PanelHighlightBorderBrush); outline-offset: 2px; }
.results-state-link { display: inline-block; margin-top: 10px; padding: 4px 0; color: var(--TextHeading); font-weight: 700; font-size: 15px; }
.facts { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--TextPrimary); }
.examples th { text-align: left; font-size: 13px; font-weight: 700; color: var(--TextMuted); padding: 3px 4px 6px; }
.examples th.amount { text-align: right; }
.examples td { font-size: 16px; padding: 6px 4px; border-top: 1px solid var(--PanelBorderBrush); }

/* ---------- Help pages ---------- */
.help-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.help-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--CardBorderBrush);
    background: var(--CardBackground);
    border-radius: 12px;
    color: var(--TextPrimary);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.35;
}
.help-list .arrow { margin-left: auto; font-size: 22px; color: var(--TextHeading); }
.help-list a:focus-visible { outline: 3px solid var(--PanelHighlightBorderBrush); outline-offset: 2px; }
.help-group { font-size: 18px; font-weight: 700; color: var(--TextHeading); margin: 8px 0 0; }
.short-answer { font-size: 17px; line-height: 1.45; }
/* pre-line keeps single line breaks inside a paragraph, e.g. the "$15 an hour = …" table. */
.help-body p { margin: 0 0 14px; font-size: 16px; line-height: 1.55; color: var(--TextPrimary); white-space: pre-line; }
/* ---------- Saved estimates ---------- */
.name-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.name-chips .pill { height: 40px; font-weight: 600; }
.name-chips .pill.chosen { background: var(--SelectedMark); color: var(--SelectedMarkText); border-color: var(--SelectedMark); }
.saved-card { display: flex; align-items: stretch; border: 1px solid var(--CardBorderBrush); background: var(--CardBackground); border-radius: 12px; }
.saved-open {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 14px 16px;
    background: none;
    border: 0;
    color: var(--TextPrimary);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.saved-open .name { font-size: 17px; font-weight: 700; color: var(--TextHeading); }
.saved-open .amount { font-size: 17px; font-weight: 700; color: var(--TextHeading); text-align: right; }
.saved-open .detail { font-size: 14px; color: var(--TextMuted); grid-column: 1 / -1; }
.saved-delete { width: 52px; background: none; border: 0; border-left: 1px solid var(--CardBorderBrush); font-size: 20px; cursor: pointer; color: var(--TextMuted); }
.saved-open:focus-visible, .saved-delete:focus-visible { outline: 3px solid var(--PanelHighlightBorderBrush); outline-offset: -3px; }
.saved-confirm { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.share-note { text-align: center; font-size: 14px; margin: -12px 0 0; }

/* ---------- What if ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare .panel { border-radius: 12px; padding: 14px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.compare .panel.highlight { border-width: 1.5px; }
.compare-label { font-size: 14px; font-weight: 700; color: var(--TextMuted); }
.compare-amount { font-size: 26px; font-weight: 700; }
.heading { color: var(--TextHeading); }
input[type="range"] { width: 100%; height: 44px; accent-color: var(--SliderActive); }

.whatif { display: flex; flex-direction: column; gap: 20px; padding-top: 20px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }

/* ---------- Computers and big tablets ---------- */
@media (min-width: 960px) {
    .page { padding-top: 28px; padding-bottom: 72px; }
    .question { font-size: 34px; font-weight: 800; }
    .step-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 64px; align-items: start; }
    .step-answers { display: block; margin-top: 46px; }
    .step-main .nav-buttons { display: flex; margin-top: 32px; }
    .step-main .nav-buttons .btn { width: auto; min-width: 180px; }
    .step-main .progress { height: 8px; border-radius: 4px; }
    .choices { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .choices:has(.card-detail) { grid-template-columns: minmax(0, 1fr); }
    .results p:not(.share-note), .content > p { text-align: left !important; }
    .link-grid.states { grid-template-columns: repeat(6, 1fr); }
    .content > .btn, .legal > .btn, .topic-main > .btn { align-self: flex-start; width: auto; min-width: 240px; }
    .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
    .topic { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 64px; align-items: start; }
    .topic-main { max-width: 720px; }
    .topic aside { padding-top: 44px; }
    .results { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 56px; align-items: start; }
    .results > .print-only, .results > .banner { grid-column: 1 / -1; }
    .res-col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
    .results .hero { padding: 36px; text-align: left; }
    .results .periods, .results .household { max-width: 480px; margin-left: 0; margin-right: 0; }
    .results .summary { font-size: 16px; }
    .results .summary-title { font-size: 18px; }
    .expand { display: none; }
    .breakdown:not(.open) { display: flex; }
    .breakdown { padding: 24px; border-radius: 14px; }
    .whatif { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 64px; align-items: start; }
    .whatif-head, .whatif-fields { grid-column: 1; }
    .whatif .compare { grid-column: 2; grid-row: 1 / 3; position: sticky; top: 24px; }
    .whatif .compare-amount { font-size: 34px; }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 959px) {
    .site-header .inner { flex-wrap: wrap; gap: 0; }
    .site-tools { margin-left: auto; }
    .tool.menu { display: flex; }
    .site-nav { display: none; }
    .site-nav.open { order: 3; display: flex; flex-direction: column; gap: 0; width: 100%; margin: 8px 0 0; }
    .site-nav.open a { padding: 13px 0; border-top: 1px solid var(--PanelBorderBrush); border-bottom: 0; }
    .site-nav.open a.active { color: var(--TextHeading); font-weight: 800; }
    .home-hero .inner { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 40px; }
    .how { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .band { padding: 40px 0; }
    .page > * , .step-main, .whatif > * { max-width: 640px; width: 100%; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
    .footer .inner { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer .inner > :first-child { grid-column: 1 / -1; }
    .home-buttons .btn { width: 100%; }
}
@media (max-width: 400px) {
    .logo { gap: 7px; font-size: 18px; }
    .logo img { width: 32px; height: 32px; }
    .tool { padding: 0 6px; gap: 6px; }
    .tool.round { width: 40px; }
}

/* ---------- Errors from Blazor ---------- */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: var(--BannerBackground);
    color: var(--BannerText);
    border-top: 1px solid var(--BannerBorderBrush);
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; top: 10px; }

/* ---------- Print (Results "🖨️ Print") ---------- */
/* One clean page: the estimate, the full breakdown, the answers and the fine print. No buttons, strips or footer. */
.print-only { display: none; }
@media print {
    @page { margin: 14mm; }
    html, body { background: #FFFFFF !important; }
    .test-banner, .new-banner, .site-header, .footer, .no-print, button, .results-links, .results-state-link { display: none !important; }
    .print-only { display: block; }
    .print-header { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 4px; }
    .print-header img { width: 32px; height: 32px; }
    .page { display: block; max-width: none; padding-top: 0; }
    .page > * { max-width: none !important; }
    .results { display: flex; flex-direction: column; gap: 16px; padding-top: 0; }
    .res-col { display: contents; }
    .breakdown:not(.open) { display: block; }
    .results .hero { padding: 20px; }
    .hero, .panel, .bar, .swatch { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .hero, .panel, table { break-inside: avoid; }
}
/* Step 5 for couples: "You" and "Your spouse (…)" above the two amount boxes in each card */
.benefit-who { font-size: 15px; margin-top: 4px; }
