/* Family Financial Plan Simulator: page styles (builds on ../styles.css) */
.plan-page { --good: #2e7458; --ok: #9a7432; --low: var(--orange-ink); --card: #fff; }
.plan-page .nav-links a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--orange); }

/* ---------- Hero ---------- */
.plan-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: radial-gradient(1200px 500px at 85% -10%, rgba(221,85,12,.07), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(176,141,87,.12), transparent 60%); border-bottom: 1px solid var(--line); }
.plan-hero-inner { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.plan-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.015em; margin-bottom: .3em; }
.plan-lede { font-size: 1.1rem; max-width: 40em; color: var(--charcoal); }
.plan-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.plan-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .86rem; }
.disclaimer-card { background: var(--navy); color: #e9ecf3; border-radius: 18px; padding: 28px 30px; position: relative; box-shadow: 0 24px 50px rgba(15,31,58,.18); }
.disclaimer-card::before { content: ""; position: absolute; left: 30px; top: 0; width: 56px; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--orange), var(--gold)); }
.disclaimer-card strong { color: #fff; font-size: 1.05rem; line-height: 1.5; display: block; }
.disclaimer-card p:last-child { margin: 0; font-size: .9rem; color: #c5cbd8; }
.disclaimer-title { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin-bottom: .7em; }

/* ---------- Sticky step bar ---------- */
.sim { padding-bottom: 56px; }
.sim-bar { position: sticky; top: 64px; z-index: 40; background: rgba(250,248,243,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sim-bar-inner { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.stepper { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.stepper::-webkit-scrollbar { display: none; }
.step { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; background: none; padding: 8px 12px 8px 8px; border-radius: 999px; font: 500 .82rem/1 var(--sans); color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.step:hover { background: var(--ivory-2); color: var(--navy); }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory-2); color: var(--navy); font-weight: 600; font-size: .78rem; }
.step.is-done .step-n { background: var(--gold-soft); }
.step.is-on { background: var(--navy); color: #fff; }
.step.is-on .step-n { background: var(--orange); color: #fff; }
.step-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.step-dot.good { background: var(--good); } .step-dot.ok { background: #c69a4a; } .step-dot.low { background: var(--orange); }
.sim-tools { display: flex; gap: 8px; flex-shrink: 0; }
.tool-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font: 500 .82rem/1 var(--sans); color: var(--navy); cursor: pointer; white-space: nowrap; }
.tool-btn:hover { border-color: var(--navy); }

.mode-banner { margin: 22px 0 0; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px dashed var(--gold); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
.link-btn:hover { color: var(--navy); }

/* ---------- Panel ---------- */
.panel { padding-top: 34px; animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-head { max-width: 760px; margin-bottom: 26px; }
.panel-head h2 { margin-bottom: .25em; }
.panel-ico { font-size: .8em; }
.panel-intro { color: var(--muted); font-size: 1.05rem; margin: 0; }
.panel-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.inputs { position: sticky; top: 140px; }
.inputs-title, .chart-card h3, .card h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 16px; }

/* Fields */
.field { margin-bottom: 18px; }
.field label, .list-field legend { display: block; font-weight: 600; font-size: .86rem; color: var(--navy); margin-bottom: 6px; }
.field input[type=text], .field select, .f-affix input, .list-row input, .list-row select, .a-item input { width: 100%; font: 500 .95rem var(--sans); color: var(--charcoal); background: var(--ivory); border: 1px solid #d9d1c1; border-radius: 10px; padding: 10px 12px; font-variant-numeric: lining-nums tabular-nums; }
.field input:focus, .field select:focus, .list-row input:focus, .list-row select:focus, .a-item input:focus { outline: 2px solid var(--orange); outline-offset: 1px; background: #fff; }
.f-affix { display: flex; align-items: center; position: relative; }
.f-pre { position: absolute; left: 12px; color: var(--muted); font-weight: 500; pointer-events: none; }
.f-pre + input { padding-left: 26px; }
.f-suf { margin-left: 8px; color: var(--muted); font-size: .85rem; }
.f-help { font-size: .8rem; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.f-note { font-size: .86rem; background: var(--ivory); border-left: 3px solid var(--gold); padding: 8px 12px; border-radius: 0 8px 8px 0; margin-bottom: 18px; }
.f-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.f-row label { margin: 0; }
.f-row output { font: 600 1rem var(--sans); color: var(--orange-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.field-range input[type=range] { width: 100%; margin: 14px 0 8px; background: linear-gradient(90deg, var(--orange) 0%, var(--gold) var(--fill, 50%), var(--ivory-2) var(--fill, 50%)); box-shadow: inset 0 0 0 1px #e2d9c7; }
.field-check label { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.field-check input { width: 18px; height: 18px; accent-color: var(--orange); }
.list-field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.list-head { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.list-row { margin-bottom: 8px; }
.kid-grid, .debt-grid { display: grid; gap: 6px; align-items: center; }
.kid-grid { grid-template-columns: 1fr 76px 30px; }
.kid-grid select { grid-column: 1 / 4; }
.kid-grid > .row-x { grid-column: 3; grid-row: 1; }
.list-head.kid-grid span:nth-child(3) { display: none; }
.debt-grid { grid-template-columns: 1.25fr .8fr .95fr 30px; }
.debt-grid > input:first-child { grid-column: 1 / 4; font-weight: 600; }
.debt-grid > .row-x { grid-column: 4; grid-row: 1; }
.list-head.debt-grid span:first-child { display: none; }
.list-row { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.list-row input, .list-row select { padding: 8px 8px; font-size: .86rem; }
.row-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.row-x:hover { color: var(--orange-ink); border-color: var(--orange-ink); }
.add-row { margin-top: 2px; }

/* ---------- Charts ---------- */
.chart-card { margin-bottom: 20px; }
.chart { width: 100%; min-height: 120px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: #ece6da; stroke-width: 1; }
.chart .yt, .chart .xt { font: 500 12px var(--sans); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .yt { text-anchor: end; } .chart .xt { text-anchor: middle; }
.chart .ln { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; transition: d .45s ease; }
.chart .area { transition: d .45s ease; }
.ln-navy { stroke: var(--navy); } .ln-orange { stroke: var(--orange); } .ln-gold { stroke: var(--gold); } .ln-muted { stroke: #9aa1ad; }
.area-navy { fill: rgba(15,31,58,.08); }
.chart .hline { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.chart .hlabel { font: 600 12px var(--sans); fill: #8a6a33; text-anchor: end; }
.dot { stroke: #fff; stroke-width: 2; } .dot-navy { fill: var(--navy); } .dot-orange { fill: var(--orange); }
.legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 16px; height: 4px; border-radius: 2px; display: inline-block; }
.lg-navy { background: var(--navy); } .lg-orange { background: var(--orange); } .lg-gold { background: var(--gold); } .lg-muted { background: #9aa1ad; }
.lg-target { background: repeating-linear-gradient(90deg, var(--gold) 0 3px, transparent 3px 7px); }
.legend .lg[class*="seg-"] { height: 10px; width: 10px; border-radius: 3px; }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hbars li { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; }
.hb-label { font-weight: 600; color: var(--navy); font-size: .9rem; line-height: 1.25; }
.hb-label small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.hb-track { position: relative; display: flex; height: 26px; background: var(--ivory-2); border-radius: 8px; overflow: hidden; }
.hb-seg { height: 100%; transition: width .45s ease; }
.hb-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--navy); }
.hb-val { font: 600 .9rem var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 4.5em; text-align: right; }
.seg-navy { background: var(--navy); } .seg-gold { background: var(--gold); }
.seg-gap { background: repeating-linear-gradient(135deg, rgba(221,85,12,.22) 0 6px, rgba(221,85,12,.08) 6px 12px); }
.seg-d { background: #3d5480; } .seg-i { background: var(--navy); } .seg-m { background: #6c7fa3; } .seg-e { background: var(--gold); }
.seg-a { background: #8fb3a2; } .seg-c { background: var(--good); }
.meter { position: relative; height: 34px; background: var(--ivory-2); border-radius: 10px; margin-top: 30px; }
.meter-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--navy), var(--navy-2)); border-radius: 10px; transition: width .45s ease; }
.meter-band { position: absolute; top: 0; bottom: 0; background: rgba(176,141,87,.25); border-left: 1px dashed var(--gold); border-right: 1px dashed var(--gold); }
.meter-tgt { position: absolute; top: -8px; bottom: -8px; width: 3px; background: var(--orange); border-radius: 2px; }
.meter-tgt b { position: absolute; bottom: 100%; transform: translateX(-50%); white-space: nowrap; font-size: .76rem; color: var(--orange-ink); margin-bottom: 3px; }
.meter-scale { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: 6px; }
.meter-cap { margin: 12px 0 0; font-size: .92rem; }
.ftl { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.ftl::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--orange), var(--gold)); }
.ftl li { position: relative; display: grid; grid-template-columns: 70px 1fr; column-gap: 12px; padding: 0 0 16px 32px; }
.ftl li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.ftl-y { font: 600 1rem var(--sans); color: var(--orange-ink); font-variant-numeric: tabular-nums; grid-row: span 2; }
.ftl-t { font-weight: 600; color: var(--navy); }
.ftl-s { font-size: .82rem; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; margin: 0; }

/* ---------- Results + why panels ---------- */
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.res { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 14px; padding: 18px 20px; min-width: 0; align-self: start; }
.res-big { grid-column: 1 / -1; border-left-color: var(--navy); }
.res.good { border-left-color: var(--good); } .res.ok { border-left-color: #c69a4a; } .res.low { border-left-color: var(--orange); }
.r-label { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 4px; }
.r-value { font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--sans); color: var(--navy); margin: 0 0 6px; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.res-big .r-value { font-size: clamp(2.2rem, 4vw, 3rem); }
.res.low .r-value { color: var(--orange-ink); } .res.good .r-value { color: var(--good); }
.res-big.good .r-value { color: var(--navy); }
.r-sub { font-size: .9rem; color: var(--charcoal); margin: 0; }
.why { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.why summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 600 .84rem var(--sans); color: var(--orange-ink); padding: 4px 0; border-radius: 6px; }
.why summary::-webkit-details-marker { display: none; }
.why-chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.why[open] .why-chev { transform: rotate(-135deg) translateY(-2px); }
.why summary:hover .why-q { text-decoration: underline; text-underline-offset: 3px; }
.why-body { padding: 10px 0 2px; font-size: .9rem; animation: panelIn .25s ease; }
.why-sec { margin-bottom: 14px; }
.why-sec h4 { font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin: 0 0 8px; }
.math { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.math li { line-height: 1.6; }
.math li::marker { color: var(--gold); font-weight: 600; }
.eq { font-variant-numeric: lining-nums tabular-nums; background: var(--ivory-2); border-radius: 6px; padding: 1px 6px; color: var(--navy); font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.eq sup { font-size: .7em; }
.assume-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--ivory); border-radius: 999px; padding: 5px 12px; font: 400 .8rem var(--sans); color: var(--charcoal); cursor: pointer; text-align: left; }
.chip strong { color: var(--navy); }
.chip-edit { color: var(--orange-ink); font-weight: 600; margin-left: 4px; }
.chip:hover { border-color: var(--orange-ink); }
.src-list, .source-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.src-list a, .source-list a { font-weight: 600; }
.src-meta { display: block; font-size: .8rem; color: var(--muted); }
.src-fig { display: block; font-size: .82rem; color: var(--charcoal); }
.why-inputs { font-size: .84rem; color: var(--muted); margin: 0 0 12px; }
.why-note { font-size: .84rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 10px; margin: 0; }

/* ---------- Summary ---------- */
.results-summary { display: block; }
.summary-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 22px; }
.score { display: flex; gap: 22px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.score svg { flex-shrink: 0; }
.ring-bg { fill: none; stroke: var(--ivory-2); stroke-width: 12; }
.ring-fg { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ring-fg.good { stroke: var(--good); } .ring-fg.ok { stroke: #c69a4a; } .ring-fg.low { stroke: var(--orange); }
.ring-num { font: 600 34px var(--sans); fill: var(--navy); text-anchor: middle; }
.score > div { min-width: 0; flex: 1; }
.score-word { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--navy); margin: 0; line-height: 1.1; }
.summary-who { padding: 6px 0; }
.summary-who p:not(.eyebrow) { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { text-align: left; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 14px; padding: 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font: inherit; color: inherit; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile.good { border-top-color: var(--good); } .tile.ok { border-top-color: #c69a4a; } .tile.low { border-top-color: var(--orange); }
.tile-top { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.tile-v { font: 600 1.45rem/1.2 var(--sans); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.tile-d { font-size: .86rem; color: var(--charcoal); }
.tile-go { font-size: .78rem; font-weight: 600; color: var(--orange-ink); margin-top: 4px; }
.summary-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.next-steps ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.next-steps li::marker { color: var(--orange-ink); font-weight: 700; }
.plan-table { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.plan-table caption { text-align: left; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.plan-table th, .plan-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: right; font-size: .9rem; }
.plan-table th[scope=row], .plan-table thead th:first-child { text-align: left; font-weight: 500; }
.plan-table thead th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.plan-table tfoot th, .plan-table tfoot td { font-weight: 700; color: var(--navy); border-bottom: 0; }
.up { color: var(--orange-ink); font-size: .8rem; font-weight: 600; }
.print-disclaimer { margin: 22px 0 0; font-size: .86rem; color: var(--muted); border-left: 3px solid var(--orange); padding-left: 12px; }

/* ---------- Step nav + sources ---------- */
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-nav .btn[disabled] { opacity: .35; pointer-events: none; }
.step-count { font-size: .86rem; color: var(--muted); text-align: center; }
.sources-block { background: #fff; border-top: 1px solid var(--line); padding: 64px 0; }
.source-list { max-width: 900px; gap: 14px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--ivory); z-index: 90; box-shadow: -20px 0 50px rgba(15,31,58,.18); transform: translateX(105%); transition: transform .3s ease; overflow-y: auto; padding: 0 24px 32px; visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(15,31,58,.35); z-index: 85; }
.drawer-head { position: sticky; top: 0; background: var(--ivory); display: flex; justify-content: space-between; align-items: center; padding: 20px 0 10px; border-bottom: 1px solid var(--line); z-index: 1; }
.drawer-head h2 { font-size: 1.9rem; margin: 0; }
.drawer-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.4rem; cursor: pointer; color: var(--navy); }
.drawer-sub { font-size: .88rem; color: var(--muted); margin: 14px 0 6px; }
.a-group { border: 0; padding: 0; margin: 18px 0 0; }
.a-group legend { font: 600 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 8px; }
.a-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; transition: box-shadow .3s; }
.a-item label { display: block; font-weight: 600; font-size: .86rem; color: var(--navy); margin-bottom: 6px; }
.a-item.is-changed { border-color: var(--orange); }
.a-item.flash { box-shadow: 0 0 0 3px rgba(221,85,12,.35); }
.a-meta { font-size: .76rem; color: var(--muted); margin: 6px 0 0; }
.a-note { font-size: .76rem; color: var(--muted); margin: 2px 0 0; font-style: italic; }
body.drawer-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .plan-hero-inner { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .inputs { position: static; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-top, .summary-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sim-bar { top: 64px; }
  .sim-bar-inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 16px; }
  .sim-tools { justify-content: flex-end; }
  .step-t { display: none; }
  .step.is-on .step-t { display: inline; }
  .step { padding: 6px; }
  .step.is-on { padding-right: 12px; }
  .results { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .hbars li { grid-template-columns: 1fr auto; }
  .hb-track { grid-column: 1 / -1; grid-row: 2; }
  .tiles { grid-template-columns: 1fr; }
  .score { flex-direction: column; align-items: center; text-align: center; }
  .score .why { text-align: left; }
  .plan-hero-actions .btn { width: 100%; }
  .step-nav .btn { padding: 12px 16px; }
  .step-count { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .panel, .why-body { animation: none; }
  .chart .ln, .chart .area, .hb-seg, .meter-fill, .ring-fg, .drawer { transition: none; }
}

/* ---------- Print: the summary as a clean one-pager ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  #draft-note, .site-header, .skip-link, .sim-bar, .mode-banner, .step-nav, .drawer, .drawer-scrim, .plan-hero-actions, .plan-trust, .site-footer, .summary-who .btn, .tile-go, .why { display: none !important; }
  .plan-hero { padding: 0 0 10px; background: none; border: 0; }
  .plan-hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .plan-hero h1 { font-size: 26pt; }
  .plan-lede { display: none; }
  .disclaimer-card { background: #fff; color: #000; box-shadow: none; border: 1px solid #999; padding: 10px 14px; }
  .disclaimer-card strong, .disclaimer-card p:last-child { color: #000; }
  .panel { padding-top: 6px; animation: none; }
  .card, .score, .tile, .res { box-shadow: none; break-inside: avoid; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .summary-top, .summary-cols { grid-template-columns: 1fr 1fr; }
  .sources-block { padding: 16px 0; break-before: page; }
  a { color: #000; }
  body { font-size: 9.5pt; }
  .panel-head .eyebrow, .panel-intro, .disclaimer-card::before { display: none; }
  .panel-head { margin-bottom: 10px; }
  .disclaimer-title { color: #444; }
  .tiles { gap: 8px; margin-bottom: 12px; }
  .tile { padding: 10px 12px; }
  .tile-v { font-size: 1.15rem; }
  .score { padding: 12px; }
  .score svg { width: 100px; height: 100px; }
  .summary-top { margin-bottom: 12px; }
  .card { padding: 14px; }
  .source-list { gap: 6px; font-size: 8.5pt; }
}
