/* The planner's step pages. Every value here is a decision recorded in DESIGN.md: the home page's
   tokens (display face, hairline, tint, type scale) carried over so step 2 reads as the same object
   as step 1, plus the few components a step needs that the home page does not (the stepper, a range
   control, a select, the ranged ledger and the timeline strip). No literal values in the components
   below that are not declared in :root here or in /blog.css. */
:root {
    --display: "Bricolage Grotesque", var(--font-sans, Manrope, system-ui, sans-serif);
    --rule: #E8E1D9;                 /* the one separator: a hairline */
    --tint: #FFF6E5;                 /* the accent's hue at 95% lightness: hover highlight, the range band */
    --accent-dark: #5E3C00;          /* the accent pressed */
    --t-1: 14px; --t0: 18px; --t1: 22px; --t2: 28px; --t3: 35px; --t4: 44px; --t5: 55px; --t6: 68px;
    --stripe: 56px;                  /* the vertical rhythm between sections, same as the home page */
    --press: .18s;                   /* the one motion duration on these pages */
    --reveal: .35s;                  /* a result fading back in after the pause, as the home page's payoff does */
    /* The odds scale, decided 11 Nov 2026 for the report's verdict and nothing else: below 85 red,
       85 to 90 orange, 91 to 95 a faint green, above 95 a dark green. Red is the site's earlier
       oxblood accent; orange sits at hue 33, outside the banned 10 to 30 band; the greens are from
       the foliage in the cover photography. All clear AA on the cream ground at the sizes used. */
    --kind-ess: #1C1714;             /* essential costs: the ink */
    --kind-ess-2: #6B5F57;           /* the second tone, for neighbouring essential costs */
    --kind-disc: #7A4E00;            /* discretionary costs: the accent */
    --kind-disc-2: #B5852F;
    --kind-fixed: #9C8F84;           /* the fixed loan instalment */
    --kind-rest: #D5CBC0;            /* the smallest costs, grouped */
    --odds-red: #8B1E2D;
    --odds-orange: #9A5400;
    --odds-green-faint: #4F7F57;
    --odds-green: #1F5A2B;
    --odds-red-tint: #F6E7E8;
    --odds-orange-tint: #F7ECDC;
    --odds-green-faint-tint: #E9F0E9;
    --odds-green-tint: #DCEADF;
}
.plan { font-size: var(--t0); line-height: 1.6; font-variant-numeric: tabular-nums; }
.plan h1, .plan h2, .plan h3, .plan .display { font-family: var(--display); font-optical-sizing: auto; margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.plan a { color: var(--accent-color); }
.plan a:hover { color: var(--accent-dark); }

/* Where you are in the six steps: six equal columns across the page, each a short bar with the
   step's name under it. The step you are on is the accent, bar and name; the ones behind you are
   the accent at half strength with the name in ink, and link back; the ones ahead are the hairline
   with the name muted. On a phone the names will not fit six across, so the bar stays and one line
   under it says where you are and what comes next. */
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.progress li { display: flex; flex-direction: column; gap: 10px; min-width: 0; font-size: var(--t-1); line-height: 1.3; color: var(--text-muted); }
.progress i { display: block; height: 4px; border-radius: 2px; background: var(--rule); }
.progress li.done i { background: var(--accent-color); opacity: .5; }
.progress li.now i { background: var(--accent-color); }
.progress li.done a { color: var(--text-primary); text-decoration: none; }
.progress li.done a:hover { color: var(--accent-color); }
.progress li.now span { color: var(--accent-color); font-weight: 600; }
.progress-line { display: none; }

/* One section per step: the step heading, a lede, then the sheet. The first sits straight under the header. */
.section { padding: var(--stripe) 0 0; margin-top: var(--stripe); border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 20px; }
main > .section:first-child { margin-top: 0; border-top: 0; }
.section h1 { font-size: clamp(32px, 3.6vw, var(--t4)); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; max-width: 46rem; }
.section p { margin: 0; color: var(--text-secondary); max-width: 46rem; }
.section .lede { font-size: var(--t1); line-height: 1.4; color: var(--text-primary); margin-top: -4px; }
.section .lede.next { margin-top: 28px; }

/* The sheet: inputs on the left, what they mean on the right, as on step 1. The one raised surface. */
.sheet { background: var(--card-background); border-radius: var(--radius-surface, 12px); display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.sheet form { padding: 32px; display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--rule); margin: 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sheet-head strong { font-size: var(--t0); font-weight: 600; }
.sheet-head strong span { font-weight: 400; color: var(--text-muted); font-size: var(--t-1); }
.cur { display: flex; border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); overflow: hidden; }
.cur button { border: 0; padding: 6px 12px; font-weight: 600; font-size: var(--t-1); background: transparent; color: var(--text-secondary); cursor: pointer; font-family: inherit; }
.cur button[aria-pressed="true"] { background: var(--accent-color); color: #fff; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--t-1); color: var(--text-secondary); }
.field input, .field select { height: 48px; box-sizing: border-box; border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); padding: 0 14px; font-size: var(--t1); font-weight: 500; color: var(--text-primary); font-family: inherit; background: #fff; width: 100%; }
.field select { font-size: var(--t0); appearance: none; -webkit-appearance: none; padding-right: 44px; }
/* The select's chevron, drawn from two borders so it wears the text token. */
.sel { position: relative; }
.sel::after { content: ""; position: absolute; right: 18px; bottom: 20px; width: 8px; height: 8px; border-right: 1.5px solid var(--text-secondary); border-bottom: 1.5px solid var(--text-secondary); transform: rotate(45deg); pointer-events: none; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 122, 78, 0), 0.1); }
.field input::placeholder { color: var(--text-muted); opacity: .55; font-weight: 400; }
/* A number with its unit sitting inside the box. */
.unit { position: relative; }
.unit input { padding-right: 44px; }
.unit::after { content: attr(data-unit); position: absolute; right: 14px; bottom: 12px; font-size: var(--t0); color: var(--text-muted); pointer-events: none; }
.assume { margin: 0; font-size: var(--t-1); color: var(--text-muted); line-height: 1.5; }
.group { font-size: var(--t0); font-weight: 600; margin: 10px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }
#grow-group { display: flex; flex-direction: column; gap: 18px; }

/* The five numbers from step 1, folded into one line with a Change control. */
.carried { border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); padding: 0; }
.carried summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 14px; font-size: var(--t0); line-height: 1.45; }
.carried summary::-webkit-details-marker { display: none; }
.carried summary .change { color: var(--accent-color); font-weight: 600; font-size: var(--t-1); white-space: nowrap; }
.carried[open] summary .change { visibility: hidden; }
.carried .fields { display: flex; flex-direction: column; gap: 14px; padding: 2px 14px 14px; border-top: 1px solid var(--rule); margin-top: 0; padding-top: 14px; }
.carried.missing summary { color: var(--text-secondary); }

/* A yes/no with its figure in the same sentence. */
.check { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: var(--t0); color: var(--text-primary); }
.check input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent-color); }
.check .inline { width: 72px; height: 40px; box-sizing: border-box; border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); padding: 0 10px; font-size: var(--t0); font-weight: 500; font-family: inherit; color: var(--text-primary); background: #fff; }
.check .inline:disabled { color: var(--text-muted); background: var(--background); }
.check .inline:focus { outline: none; border-color: var(--accent-color); }

/* The split: two labels, one bar, one slider. The bar is the accent for equity and the hairline for
   the rest. Browsers draw the slider in the accent. */
.split { display: flex; flex-direction: column; gap: 10px; }
.split-labels { display: flex; justify-content: space-between; font-size: var(--t0); font-weight: 600; }
.split-labels span:last-child { color: var(--text-secondary); font-weight: 500; }
.split .bar { height: 8px; border-radius: var(--radius-control, 4px); background: var(--rule); overflow: hidden; }
.split .bar i { display: block; height: 100%; background: var(--accent-color); transition: width var(--press) ease-out; }
.split input[type="range"] { width: 100%; margin: 0; accent-color: var(--accent-color); cursor: pointer; }

/* The right half: the verdict, the ledger of three numbers with their ranges, the strip, the words. */
.results { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px 0; }
.empty strong { font-family: var(--display); font-optical-sizing: auto; font-size: var(--t2); font-weight: 500; line-height: 1.2; max-width: 24ch; text-wrap: balance; }
.empty .note { max-width: 30rem; }
.verdict { font-size: var(--t2); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 12px; }
.fwd { margin: 10px 0 0; font-size: var(--t0); line-height: 1.5; color: var(--text-primary); max-width: none; }
.panel-h { font-family: var(--display); font-optical-sizing: auto; font-size: var(--t1); font-weight: 600; line-height: 1.25; margin: 30px 0 14px; }
.panel-h.first { margin-top: 18px; }
.note { margin: 0; font-size: var(--t-1); color: var(--text-secondary); line-height: 1.5; }
.ledger { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: baseline; }
.ledger .n { font-size: var(--t2); font-weight: 500; line-height: 1.25; white-space: nowrap; }
.ledger .why { color: var(--text-secondary); }
.ledger .age { text-align: right; white-space: nowrap; }
.ledger .range { grid-column: 1 / -1; font-size: var(--t-1); color: var(--text-secondary); line-height: 1.5; margin-top: -2px; }
.ledger hr { grid-column: 1 / -1; border: 0; border-top: 1px solid var(--rule); margin: 8px 0 4px; }

/* The strip: one row per number, the typical age as a dot, the lucky-to-unlucky stretch as a band
   in the tint, and where you want to stop as a dashed ink line. Text wears text tokens only. */

/* Back and onward. */
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-row .btn:only-child { margin-left: auto; }    /* step 1 has no Back: Continue sits where it does on every other step */
.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: var(--radius-surface, 12px); background: var(--accent-color); color: #fff !important; font-weight: 600; font-size: var(--t0); text-decoration: none; border: 0; font-family: inherit; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }
.btn.quiet { background: transparent; color: var(--text-primary) !important; border: 1px solid var(--rule); }
.btn.quiet:hover { background: var(--tint); color: var(--text-primary); }

/* The waitlist, as on the home page. */
.waitlist { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 0; max-width: 46rem; }
.waitlist-row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist input[type="email"] { flex: 1 1 220px; height: 52px; box-sizing: border-box; border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); padding: 0 14px; font-size: var(--t0); font-family: inherit; background: #fff; }
.waitlist input[type="email"]:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 122, 78, 0), 0.1); }
.waitlist button[disabled] { opacity: .6; cursor: default; }
.waitlist .ok { color: var(--accent-color); font-weight: 600; }
.plan .blog-footer { margin-top: 72px; }

@media (max-width: 1228px) { .section { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 720px) {
    .section { padding-top: 40px; padding-left: 20px; padding-right: 20px; }
    .progress { gap: 5px; }
    .progress li a, .progress li span { display: none; }
    .progress-line { display: flex; justify-content: space-between; gap: 16px; margin: -10px 0 0; font-size: var(--t-1); color: var(--text-muted); max-width: none; }
    .progress-line strong { color: var(--accent-color); font-weight: 600; }
    .sheet { grid-template-columns: minmax(0, 1fr); }
    .sheet form { border-right: 0; border-bottom: 1px solid var(--rule); }
    .sheet form, .results { padding: 22px; }
    .three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .three .field input { padding: 0 10px; font-size: var(--t0); }
    .unit::after { right: 10px; }
    .ledger .n { font-size: var(--t1); }
    .ledger { grid-template-columns: 1fr auto; grid-auto-flow: row dense; gap: 4px 14px; }
    .ledger .why { grid-column: 1 / -1; }
    .ledger hr { margin: 10px 0; }
}
/* ---- The step panels, and what step 2 adds: the lines. */
.step { display: flex; flex-direction: column; gap: 20px; }
.carried-line { font-size: var(--t0); color: var(--text-secondary); max-width: none !important; margin-top: -8px !important; }
.carried-line a { font-weight: 600; text-decoration: none; }

/* Three ways to live somewhere: the same segmented control as the currency switch, larger. */
.modes { display: flex; border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); overflow: hidden; width: fit-content; max-width: 100%; }
.modes button { border: 0; padding: 10px 16px; font-weight: 600; font-size: var(--t-1); background: transparent; color: var(--text-secondary); cursor: pointer; font-family: inherit; }
.modes button + button { border-left: 1px solid var(--rule); }
.modes button[aria-pressed="true"] { background: var(--accent-color); color: #fff; }

/* A line: its name and a hint on the left, then the amount, how fast it rises, and when it ends.
   The column heads sit once above the list; each cell also carries its own small word under the
   box, which is what a phone shows when the heads are hidden. */
.sheet form { container-type: inline-size; }
.lines { display: flex; flex-direction: column; gap: 14px; }
.line-head { display: grid; grid-template-columns: minmax(0, 1fr) 118px 80px 80px; gap: 10px; font-size: var(--t-1); color: var(--text-muted); padding-bottom: 2px; }
.line-head span:not(:first-child) { text-align: left; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 118px 80px; gap: 10px; align-items: start; }
.line.ends { grid-template-columns: minmax(0, 1fr) 118px 80px 80px; }
.line.fixed.ends { grid-template-columns: minmax(0, 1fr) 118px 80px 80px; }
.line-label { display: flex; flex-direction: column; gap: 2px; padding-top: 11px; min-width: 0; }
.line-label label { font-size: var(--t0); font-weight: 500; color: var(--text-primary); }
.line-label small { font-size: var(--t-1); color: var(--text-muted); line-height: 1.35; }
.cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cell input { height: 44px; box-sizing: border-box; border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); padding: 0 10px; font-size: var(--t0); font-weight: 500; color: var(--text-primary); font-family: inherit; background: #fff; width: 100%; }
.cell input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 122, 78, 0), 0.1); }
.cell input::placeholder { color: var(--text-muted); opacity: .55; font-weight: 400; }
.cell small { display: none; font-size: 12px; color: var(--text-muted); }
.cell.unit { position: relative; }
.cell.unit input { padding-right: 30px; }
.cell.unit::after { content: attr(data-unit); position: absolute; right: 10px; top: 11px; font-size: var(--t-1); color: var(--text-muted); pointer-events: none; }
.fixed-note { display: inline-flex; align-items: center; height: 44px; font-size: var(--t-1); color: var(--text-muted); }

/* One-time costs: what, how much, when, and how fast it rises until then. */
/* Essential or discretionary: a tick under each cost's name. Unticked, a cost is discretionary, the
   part the guardrails on step 5 cut first. */
.line-label .ess { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--t-1); font-weight: 500; color: var(--text-secondary); cursor: pointer; width: max-content; }
.line-label .ess input { width: 16px; height: 16px; margin: 0; accent-color: var(--text-primary); }
/* The people who depend on you: one block each, their name on top, their costs under it, a hairline between people. */
.deps { display: flex; flex-direction: column; }
.dep { padding: 16px 0 18px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.dep:first-child { margin-top: 14px; }
/* Their name, then their age now in the column their costs end in, so "their age now" sits over "until they are". */
.dep-head { display: grid; grid-template-columns: minmax(0, 1fr) 80px 32px; gap: 10px; align-items: start; }
.dep-head .cell.what input { font-weight: 600; }
.dep-head .cell small { display: block; }
.deps:not(:empty) + .chips { margin-top: 14px; }
.lines.once:not(:empty) { margin-bottom: 14px; }
/* A cost row, yours or a dependent's: what it is, picked from a short list, then the same cells as any
   cost, and a remove. */
.line.cost-row.ends { grid-template-columns: minmax(0, 1fr) 118px 80px 80px 32px; }
.line-head { grid-template-columns: minmax(0, 1fr) 118px 80px 80px 32px; }
.dep .line-head { margin-bottom: -6px; }
/* Costs are told apart the way the page divides everything: a hairline above each, with room on both
   sides of it. Under the picker, what the cost covers sits on the left and the essential tick on the
   right, one line instead of two. */
.lines .cost-row + .cost-row { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 4px; }
.cost-row .line-label { padding-top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 6px; align-items: center; }
.cost-row .line-label .pick { grid-column: 1 / -1; }
.cost-row .line-label small { grid-column: 1; margin: 0; }
.cost-row .line-label .ess { grid-column: 2; margin: 0; }
#lines + .chips, .dep .lines + div { margin-top: 18px; }
/* The picker: a field-shaped button with a chevron, and under it a list in the same white, hairline and
   radius as the fields. The open list is the one thing on the form that floats over other content, so it
   gets the page's one accent-tinted shadow; nothing else on the form has elevation. The option under the
   pointer or the keyboard takes the tint; the chosen one is marked with a check in the accent. */
.pick { position: relative; }
.pick-btn { width: 100%; height: 44px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); background: #fff; font-family: inherit; font-size: var(--t0); font-weight: 500; color: var(--text-primary); text-align: left; cursor: pointer; }
.pick-btn .pick-now { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-btn::after { content: ""; flex: none; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid var(--text-secondary); border-bottom: 1.5px solid var(--text-secondary); transform: rotate(45deg); }
.pick.open .pick-btn::after { transform: rotate(-135deg); margin-top: 4px; }
.pick-btn:hover, .pick.open .pick-btn { border-color: var(--accent-color); }
.pick-btn:focus-visible { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 122, 78, 0), 0.1); }
.pick-list { position: absolute; z-index: 30; left: 0; top: calc(100% + 4px); min-width: 100%; width: max-content; max-width: min(420px, 86vw); box-sizing: border-box; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); box-shadow: 0 12px 28px -10px rgba(var(--accent-rgb, 122, 78, 0), .28); max-height: 400px; overflow-y: auto; }
.pick-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 8px; padding: 8px 10px 9px 8px; border-radius: 3px; cursor: pointer; }
.pick-list li::before { content: ""; grid-row: 1 / span 2; align-self: start; margin-top: 7px; width: 9px; height: 5px; border-left: 1.5px solid transparent; border-bottom: 1.5px solid transparent; transform: rotate(-45deg); }
.pick-list li[aria-selected="true"]::before { border-color: var(--accent-color); }
.pick-list li.active, .pick-list li:hover { background: var(--tint); }
.pick-label { font-size: var(--t0); font-weight: 500; color: var(--text-primary); line-height: 1.3; }
.pick-list li[aria-selected="true"] .pick-label { font-weight: 600; }
.pick-meta { grid-column: 2; font-size: var(--t-1); color: var(--text-secondary); line-height: 1.35; }

/* What the year is made of, one bar: essential in ink, discretionary in the accent, the fixed loan
   instalment in the hairline grey. Text beside it stays in text tokens. */
.mix { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--tint); gap: 2px; }
.mix .seg { display: block; height: 100%; min-width: 0; flex: none; }
.mix .seg.ess, .mix-key i.ess { background: var(--text-primary); }
.mix .seg.disc, .mix-key i.disc { background: var(--accent-color); }
.mix .seg.fixed, .mix-key i.fixed { background: var(--text-muted); }
.mix-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: var(--t-1); color: var(--text-secondary); }
.mix-key span { display: inline-flex; align-items: center; gap: 8px; }
.mix-key i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--rule); background: #fff; border-radius: var(--radius-control, 4px); padding: 7px 12px; font-size: var(--t-1); font-weight: 600; color: var(--text-primary); cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--accent-color); color: var(--accent-color); }
.once .line { grid-template-columns: minmax(0, 1.4fr) 118px 80px 32px; align-items: start; }
.once .cell.what input { font-weight: 500; }
.remove { border: 0; background: transparent; color: var(--text-muted); font-size: var(--t-1); height: 44px; cursor: pointer; font-family: inherit; padding: 0; }
.remove:hover { color: var(--accent-color); }

/* The one big figure on the step: your inflation. */
.big { font-family: var(--display); font-optical-sizing: auto; font-size: var(--t4); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; }

/* The chart: a year's cost by age. Ink line, tint under it, a dashed line where you stop, accent dots
   for one-time costs, hairline dots where a line ends. Text wears text tokens only. */
.chart { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font-sans, Manrope, system-ui, sans-serif); }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .axis { stroke: var(--text-muted); stroke-width: 1; }
.chart .tick { fill: var(--text-muted); font-size: 12px; }
.chart .area { fill: var(--tint); }
/* A range, unlucky to lucky: the accent at a fifth of its strength with both edges drawn at half, so the
   range reads against the cream page as well as on white. */
.chart .band { fill: rgba(var(--accent-rgb, 122, 78, 0), .17); }
.chart .band-edge { fill: none; stroke: rgba(var(--accent-rgb, 122, 78, 0), .5); stroke-width: 1; }
/* The report's pies: what a year is made of. Kinds of cost wear the same colours as step 2's bar; a
   kind's second tone tells neighbouring costs of one kind apart. Every slice is named in a key beside it,
   in text tokens, so colour never carries a meaning alone. */
.rp-pies { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 44px; margin: 22px 0 18px; }
.rp-pie { display: flex; flex-direction: column; gap: 14px; }
.rp-pie h3 { margin: 0; font-size: var(--t0); font-weight: 600; }
.rp-pie svg { width: 176px; height: 176px; overflow: visible; }
.rp-pie .slice { stroke: var(--background, #FAF7F3); stroke-width: 2; }
.rp-pie .c1 { font-family: var(--display); font-size: 21px; font-weight: 600; fill: var(--text-primary); }
.rp-pie .c2 { font-size: 12px; fill: var(--text-secondary); }
.rp-pie-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: var(--t-1); max-width: 380px; }
.rp-pie-key li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 9px; align-items: baseline; color: var(--text-primary); }
.rp-pie-key i { width: 12px; height: 12px; border-radius: 2px; align-self: center; }
.rp-pie-key .v { color: var(--text-secondary); text-align: right; white-space: nowrap; }
/* The cost-by-cost pie, wide: labels round it, drawn to the width; the list under it only on a phone. */
.rp-pie-wide { margin-top: 26px !important; }
.rp-pie-wide svg { width: 100%; height: auto; }
.rp-pie-wide.narrow svg { width: 220px; height: 220px; }
.rp-pie-wide:not(.narrow) .rp-pie-key { display: none; }
.rp-pie-key .sub { display: block; font-size: 12px; color: var(--text-muted); }
.rp-pie-wide .pl-name { font-size: 13.5px; font-weight: 600; fill: var(--text-primary); }
.rp-pie-wide .pl-amt { font-size: 12.5px; fill: var(--text-secondary); }
.rp-pie-wide .pl-meta { font-size: 12px; fill: var(--text-muted); }
.rp-pie-wide .pl-lead { fill: none; stroke: var(--text-muted); stroke-width: 1; }
.rp-pies > p { margin: 0; align-self: center; }
.rp-facts dd .sub { display: block; margin-top: 1px; font-size: var(--t-1); font-weight: 500; color: var(--text-secondary); }
.chart .line { fill: none; stroke: var(--text-primary); stroke-width: 2; stroke-linejoin: round; }
.chart .stop { stroke: var(--text-primary); stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart .stop-label { fill: var(--text-primary); font-size: 12px; font-weight: 600; }
.chart .end { fill: #fff; stroke: var(--text-primary); stroke-width: 1.5; }
.chart .mark { fill: var(--accent-color); stroke: #fff; stroke-width: 2; }
.chart .label { fill: var(--text-secondary); font-size: 12px; }
/* A name where a cost ends can cross the line it labels; a halo in the panel's white keeps it readable. */
.chart .label.end-label { paint-order: stroke; stroke: var(--card-background); stroke-width: 4px; stroke-linejoin: round; }
.chart .hover line { stroke: var(--accent-color); stroke-width: 1; }
.chart .hover text { fill: var(--text-primary); font-size: 12px; font-weight: 600; }
.chart .hit { cursor: crosshair; }

/* When the form itself is narrow (a phone, or a tablet showing both halves of the sheet), each line
   stacks: its name on one row, the three boxes under it with their own small words. */
@container (max-width: 540px) {
    .line-head { display: none; }
    .line, .line.ends, .line.fixed.ends { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .once .line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 8px; }
    .line-label { grid-column: 1 / -1; padding-top: 0; }
    .cell small { display: block; }
    .once .cell.what { grid-column: 1 / -1; }
    .remove { height: 44px; text-align: left; }
}
/* A cost row in a narrow form: the picker on top with its remove beside it, then the three cells across
   the full width. */
@container (max-width: 540px) {
    .line.cost-row.ends { grid-template-columns: repeat(3, minmax(0, 1fr)) 32px; }
    .cost-row .line-label { grid-column: 1 / 4; grid-row: 1; }
    .cost-row > .remove { grid-column: 4; grid-row: 1; }
    .cost-row > .cell:nth-child(4) { grid-column: 3 / 5; }
}
@media (max-width: 720px) {
    .line.cost-row.ends { grid-template-columns: repeat(3, minmax(0, 1fr)) 32px; }
    .cost-row .line-label { grid-column: 1 / 4; grid-row: 1; }
    .cost-row > .remove { grid-column: 4; grid-row: 1; }
    .cost-row > .cell:nth-child(4) { grid-column: 3 / 5; }
}
@media (max-width: 720px) {
    .line-head { display: none; }
    .line, .line.ends, .line.fixed.ends { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .once .line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 8px; }
    .line-label { grid-column: 1 / -1; padding-top: 0; }
    .cell small { display: block; }
    .once .cell.what { grid-column: 1 / -1; }
    .remove { height: 44px; text-align: left; }
    .modes button { padding: 10px 12px; }
}
/* ---- A field the step cannot run with: the box takes the pressed accent, the message sits in the
   results panel in words. One mechanism for every step. */
.plan input[aria-invalid="true"], .plan select[aria-invalid="true"] { border-color: var(--accent-dark) !important; box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 122, 78, 0), 0.14) !important; }

/* ---- Step 4: the levels, a vertical radio list of five rows. The chosen one is the accent at left. */
.levels { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); overflow: hidden; }
.levels button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: baseline; text-align: left; border: 0; background: #fff; padding: 12px 14px; font-family: inherit; cursor: pointer; color: var(--text-primary); }
.levels button + button { border-top: 1px solid var(--rule); }
.levels button:hover { background: var(--tint); }
.levels button[aria-checked="true"] { background: var(--tint); }
.levels button[aria-checked="true"] .name { color: var(--accent-color); }
.levels .name { font-size: var(--t0); font-weight: 600; }
.levels .pct { font-size: var(--t-1); color: var(--text-muted); grid-row: 2; }
.levels .amt { font-size: var(--t0); font-weight: 500; grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }
.field.own { max-width: 260px; }

/* ---- Step 5: the rules, greyed when the guardrails are off. */
.rule { display: flex; flex-direction: column; gap: 14px; }
.rule.off { opacity: .45; }
.g-note { color: var(--accent-color); font-weight: 600; }
.g-warn { color: var(--odds-orange); font-weight: 600; }   /* a caution, in the odds scale's orange */
.play { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.play li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: var(--t0); line-height: 1.5; }
.play li span:first-child { font-family: var(--display); font-weight: 600; color: var(--accent-color); }

/* ---- Step 6: a stream is a line with five boxes: what, a month, from, until, how it behaves. */
.streams-head { grid-template-columns: minmax(0, 1.3fr) 118px 72px 72px 150px 32px; }
.streams .line { grid-template-columns: minmax(0, 1.3fr) 118px 72px 72px 150px 32px; align-items: start; }
.streams .cell.sel { position: relative; }
.streams .cell.sel select { height: 44px; box-sizing: border-box; border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); padding: 0 30px 0 10px; font-size: var(--t-1); font-weight: 500; color: var(--text-primary); font-family: inherit; background: #fff; width: 100%; appearance: none; -webkit-appearance: none; }
.streams .cell.sel::after { content: ""; position: absolute; right: 12px; top: 16px; width: 7px; height: 7px; border-right: 1.5px solid var(--text-secondary); border-bottom: 1.5px solid var(--text-secondary); transform: rotate(45deg); pointer-events: none; }
.streams .cell.sel select:focus { outline: none; border-color: var(--accent-color); }

/* ---- The bars and rows drawings: the one that is yours in the accent, the rest in the tint with a
   hairline edge. Text wears text tokens only. */
.chart .bar rect { fill: var(--tint); stroke: rgba(var(--accent-rgb, 122, 78, 0), .35); stroke-width: 1; }
.chart .bar.pick rect { fill: var(--accent-color); stroke: none; }
.chart .bar .val { fill: var(--text-secondary); font-size: 12px; font-weight: 600; }
.chart .bar.pick .val { fill: var(--text-primary); }
.chart .bar .sub { font-size: 11px; }
.chart .row-label { fill: var(--text-secondary); font-size: 13px; }
.chart .bar.pick .row-label { fill: var(--text-primary); font-weight: 600; }
.chart .line.muted { stroke: var(--text-muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
/* The four futures on one chart, told apart by their dash and named at the end, never by a second hue. */
.chart .line.crash { stroke: var(--accent-color); stroke-width: 2; stroke-dasharray: 7 4; }
.chart .line.flat { stroke: var(--accent-color); stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; }
.chart .ref { stroke: var(--accent-color); stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart .cut { fill: var(--accent-color); stroke: #fff; stroke-width: 1.5; }
.chart .raise { fill: #fff; stroke: var(--accent-color); stroke-width: 2; }

/* ---- The odds, coloured by the scale above: on the big figure, on a table cell, on a word. */
.odds-red { color: var(--odds-red); } .odds-orange { color: var(--odds-orange); } .odds-green-faint { color: var(--odds-green-faint); } .odds-green { color: var(--odds-green); }
.rtable td.odds-red { background: var(--odds-red-tint); } .rtable td.odds-orange { background: var(--odds-orange-tint); } .rtable td.odds-green-faint { background: var(--odds-green-faint-tint); } .rtable td.odds-green { background: var(--odds-green-tint); }
.rtable td.odds-red, .rtable td.odds-orange, .rtable td.odds-green-faint, .rtable td.odds-green { font-weight: 600; padding-left: 10px; }
.scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.scale div { padding: 10px 12px; border-radius: var(--radius-control, 4px); font-size: var(--t-1); line-height: 1.4; }
.scale strong { display: block; font-size: var(--t0); }
.scale .odds-red { background: var(--odds-red-tint); } .scale .odds-orange { background: var(--odds-orange-tint); } .scale .odds-green-faint { background: var(--odds-green-faint-tint); } .scale .odds-green { background: var(--odds-green-tint); }
/* The report's numbered sections. */
.rsec .section-h { font-family: var(--display); font-optical-sizing: auto; font-size: var(--t3); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 14px; max-width: 46rem; }

.verdict-line { font-size: var(--t1); line-height: 1.4; font-weight: 500; }

/* ---- Step 7: the report is one column of hairline-separated sections, two up where two things
   are compared. No sheet: there is nothing to type. */
.report .print-row { margin-top: 4px; }
.report .mix { margin: 16px 0 12px; max-width: 620px; }
.rsec { border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 12px; }
.rsec .panel-h.first { margin-top: 0; }
.rsec .fwd { max-width: 46rem; }
.rsec .fwd + .fwd { margin-top: 14px; }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.scroll { overflow-x: auto; }
.rtable { width: 100%; border-collapse: collapse; font-size: var(--t0); }
.rtable th { text-align: left; font-size: var(--t-1); font-weight: 500; color: var(--text-muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.rtable td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; white-space: nowrap; }
.rtable td.note { white-space: normal; font-size: var(--t-1); }
.rtable tr.yours td { background: var(--tint); }
.rtable tr.yours td:first-child { padding-left: 10px; font-weight: 600; color: var(--accent-color); }
.rtable tr.cut td:first-child, .rtable tr.raise td:first-child { font-weight: 600; }
.rtable .note { color: var(--text-secondary); }
/* The history ledger: the outcome as the figure, the stretch of history beside it, and what happened
   under both on its own line, since three columns of prose do not fit half a page. */
.ledger.history { grid-template-columns: auto minmax(0, 1fr); }
.ledger.history .n { white-space: normal; font-size: var(--t1); max-width: 11em; }
.ledger.history .age { grid-column: 1 / -1; text-align: left; white-space: normal; margin-top: -2px; }
.top, .breaks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.top li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.top .num, .breaks .num { font-family: var(--display); font-size: var(--t2); font-weight: 500; line-height: 1; color: var(--accent-color); }
.top .lift { font-size: var(--t-1); color: var(--text-secondary); margin-bottom: 2px; }
.top strong { font-size: var(--t1); font-weight: 600; line-height: 1.3; }
.top p { margin-top: 4px; }
.breaks li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.breaks strong { font-size: var(--t1); font-weight: 500; }
.entered { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; font-size: var(--t-1); line-height: 1.5; }
.entered .k { color: var(--text-muted); white-space: nowrap; }
.report .empty { min-height: 40vh; }
/* The report being built: the heading in the display face, then the ten things it works out, one at a time.
   Done lines are checked in the accent, the one in hand is ink with a dot that breathes (the only motion, and
   it stops under reduced motion), the rest wait in muted ink. Every line is there from the start, so nothing
   moves while it runs. */
.r-build { min-height: 40vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 0; }
.r-build strong { font-family: var(--display); font-optical-sizing: auto; font-size: var(--t2); font-weight: 500; line-height: 1.2; }
.r-build ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: min(100%, 31rem); }
.r-build li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline; font-size: var(--t0); line-height: 1.45; color: var(--text-muted); }
.r-build li::before { content: ''; justify-self: center; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--text-muted); transform: translateY(-2px); }
.r-build li.now { color: var(--text-primary); }
.r-build li.now::before { background: var(--accent-color); border-color: var(--accent-color); animation: rb-breathe 1s ease-in-out infinite; }
.r-build li.done { color: var(--text-secondary); }
.r-build li.done::before { content: '✓'; width: auto; height: auto; border: 0; border-radius: 0; color: var(--accent-color); font-weight: 700; transform: none; }
@keyframes rb-breathe { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .r-build li.now::before { animation: none; } }
/* The gate before the report: the same email row as the waitlist, with the step heading above it. */
.gate { gap: 16px; margin: 0; max-width: 46rem; }
.gate h1 { font-size: clamp(32px, 3.6vw, var(--t4)); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; }
.gate .lede { margin-top: -4px; }
.gate .waitlist-row { margin-top: 6px; }
.gate input[aria-invalid="true"] { border-color: var(--accent-dark); }
/* The two ways to help, at the end. */
.report .thanks { max-width: 760px; }
.thanks .links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; max-width: none; }

@media (max-width: 860px) {
    .two-up { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 540px) {
    .streams-head { display: none; }
    .streams .line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .streams .cell.what, .streams .cell.sel { grid-column: 1 / -1; }
    .levels .amt { grid-column: 1; grid-row: 3; font-size: var(--t-1); }
}
@media (max-width: 720px) {
    .streams-head { display: none; }
    .streams .line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .streams .cell.what, .streams .cell.sel { grid-column: 1 / -1; }
    .levels .amt { grid-column: 1; grid-row: 3; font-size: var(--t-1); }
    .rtable { font-size: var(--t-1); }
}

/* ---- Printing the report is the PDF: the page chrome goes, the sections stay. */
@media print {
    .plan .blog-header, .plan .blog-footer, .progress, .progress-line, .nav-row, .step:not(.report) { display: none !important; }
    .plan { font-size: 12px; }
    .section { padding: 0; margin: 0; border: 0; }
    .rsec { break-inside: avoid; padding-top: 16px; margin-top: 8px; }
    .two-up { gap: 24px; }
    .report .empty, .r-build, .gate, .thanks { display: none !important; }
    #r-rows-all-wrap[hidden] { display: block !important; }
    #r-rows-toggle { display: none; }
    .chart { max-height: 220px; }
}

@media (prefers-reduced-motion: reduce) { .split .bar i { transition: none; } }

/* ---- The report, Ninad's layout of 11 Nov 2026: one reading column, the verdict against the target
   first, the working in order, then the plans that reach 90. Structure and copy from his sample;
   colours, type and radius are ours: the turmeric accent for the working, the odds scale for the
   verdict and for good and bad, the display face for headings, light only. Classes are prefixed rp-
   so nothing here touches the steps. */
.rp { max-width: 760px; display: flex; flex-direction: column; gap: 48px; }
.rp h1, .rp h2, .rp h3 { font-family: var(--display); font-optical-sizing: auto; text-wrap: balance; margin: 0; line-height: 1.15; color: var(--text-primary); }
.rp h1 { font-size: clamp(34px, 7vw, var(--t5)); font-weight: 600; letter-spacing: -0.01em; }
.rp h2 { font-size: var(--t2); font-weight: 600; }
.rp h3 { font-size: var(--t1); font-weight: 600; }
.rp p { margin: 0; max-width: 66ch; color: var(--text-primary); }
.rp section { display: flex; flex-direction: column; gap: 16px; }
.rp .rp-muted { color: var(--text-secondary); }
.rp .rp-small { font-size: var(--t-1); }
.rp-eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.rp-top { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
.rp-brand { font-family: var(--display); font-weight: 600; color: var(--accent-color); font-size: var(--t0); }
.rp-top .rp-small { color: var(--text-muted); }
.rp-lede { font-size: var(--t0); }
/* The meter: a track, a fill, and a mark at the target. */
.rp-track { position: relative; height: 12px; background: var(--tint); border-radius: 3px; flex: 1; min-width: 0; }
.rp-track.big { height: 20px; }
.rp-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent-color); border-radius: 3px; }
.rp-track::after { content: ""; position: absolute; left: 90%; top: -5px; bottom: -5px; width: 2px; background: var(--text-primary); }
.rp-meter { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.rp-meter .rp-track { flex: none; }    /* stacked, so the track keeps its own height */
.rp-scale { position: relative; height: 1.4em; font-size: var(--t-1); font-weight: 600; }
.rp-scale span { position: absolute; transform: translateX(-100%); white-space: nowrap; padding-right: 4px; }
.rp-scale .tgt { transform: none; color: var(--text-primary); padding: 0 0 0 4px; }
.rp-scale .tgt.left { transform: translateX(-100%); padding: 0 4px 0 0; }
@media (max-width: 480px) { .rp-scale .tgt:not(.left) { transform: translateX(-30%); } }
.rp-facts { margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; }
/* Each fact is the label over its value, both left-aligned: a label never has to share a line with a long
   value, and the eye reads down a column instead of across a gap to a right-aligned figure. */
.rp-facts div { display: flex; flex-direction: column; gap: 3px; padding: 10px 0 14px; border-top: 1px solid var(--rule); }
.rp-facts dt { font-size: var(--t-1); color: var(--text-secondary); line-height: 1.3; }
.rp-facts dd { margin: 0; font-size: var(--t0); font-weight: 600; color: var(--text-primary); line-height: 1.35; }
/* The two outcomes, edged in the odds scale's green and red. */
.rp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rp-outcome { background: var(--card-background); border: 1px solid var(--rule); border-top: 3px solid var(--state); border-radius: var(--radius-surface, 12px); padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rp-outcome.good { --state: var(--odds-green); } .rp-outcome.bad { --state: var(--odds-red); }
.rp-outcome .rp-eyebrow { color: var(--state); }
.rp-terms { margin: 0; display: grid; grid-template-columns: minmax(7.5rem, auto) 1fr; gap: 10px 20px; }
.rp-terms dt { font-weight: 600; } .rp-terms dd { margin: 0; }
@media (max-width: 480px) { .rp-terms { grid-template-columns: 1fr; gap: 2px; } .rp-terms dd { margin-bottom: 10px; } }
/* The steps to the final figure. */
.rp-chain { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; }
.rp-chain > li { counter-increment: s; display: flex; flex-direction: column; gap: 12px; padding: 22px 0 22px 44px; border-top: 1px solid var(--rule); position: relative; min-width: 0; }
.rp-chain > li::before { content: counter(s); position: absolute; left: 0; top: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--accent-color); font-family: var(--display); font-weight: 600; display: flex; align-items: center; justify-content: center; }
@media (max-width: 480px) { .rp-chain > li { padding-left: 0; } .rp-chain > li::before { position: static; } }
.rp-res { display: flex; align-items: center; gap: 14px; }
.rp-res span { font-family: var(--display); font-weight: 600; font-size: var(--t2); min-width: 3.6rem; }
.rp-res .rp-fill { opacity: .5; } .rp-res.final .rp-fill { opacity: 1; }
.rp-key { font-size: 13px; color: var(--text-muted); }
.rp-key b { display: inline-block; width: 2px; height: 12px; background: var(--text-primary); vertical-align: -1px; margin-right: 6px; }
.rp table { border-collapse: collapse; width: 100%; font-size: var(--t-1); }
.rp th, .rp td { text-align: right; padding: 9px 10px; border-top: 1px solid var(--rule); white-space: nowrap; }
.rp th:first-child, .rp td:first-child { text-align: left; padding-left: 0; }
.rp thead th { border-top: 0; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; white-space: normal; vertical-align: bottom; }
.rp tr.me td { font-weight: 600; background: var(--tint); } .rp tr.me td:first-child { padding-left: 8px; }
.rp details summary { cursor: pointer; color: var(--accent-color); font-size: var(--t-1); font-weight: 600; }
.rp details .scroll { padding-top: 10px; }
/* The backtest, set apart. */
.rp-aside { background: var(--card-background); border: 1px solid var(--rule); border-radius: var(--radius-surface, 12px); padding: 22px; }
/* The plans that reach 90, edged in the odds scale's green. */
.rp-reach { background: var(--card-background); border: 1px solid var(--rule); border-top: 4px solid var(--odds-green); border-radius: var(--radius-surface, 12px); padding: 28px 22px; gap: 20px !important; scroll-margin-top: 16px; }
.rp-reach h2 { font-size: clamp(28px, 5vw, var(--t3)); }
.rp-reach .rp-eyebrow { color: var(--odds-green); }
.rp-route { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.rp-route.lead { border: 2px solid var(--odds-green); border-radius: var(--radius-surface, 12px); padding: 20px; background: var(--background); }
.rp-tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--odds-green); }
.rp-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; padding-top: 6px; }
.rp-opts > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rp-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 32px; }
.rp-jump { font-family: var(--display); font-size: var(--t2); font-weight: 600; line-height: 1.1; display: flex; align-items: baseline; gap: 10px; }
.rp-jump span, .rp-jump i { color: var(--text-muted); font-weight: 500; font-size: var(--t1); font-style: normal; }
.rp-jump strong { color: var(--odds-green); }
.rp-note { padding-top: 16px; border-top: 1px solid var(--rule); }
.rp-fine p { color: var(--text-secondary); font-size: var(--t-1); }
@media print { .rp-reach, .rp-aside, .rp-outcome { break-inside: avoid; } .rp details { display: block; } .rp details > *:not(summary) { display: block; } }

/* ---- The report's bar lists: one row per case, the figure in the odds scale, a bar with the target
   mark at 90. Used for the bad sequences and the single risks. */
.rp-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rp-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 3.4rem minmax(120px, 34%); gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); font-size: var(--t-1); }
.rp-bars li.me { background: var(--tint); font-weight: 600; padding-left: 8px; }
.rp-bars .v { font-family: var(--display); font-weight: 600; font-size: var(--t0); text-align: right; }
.rp-bars .rp-fill { opacity: .55; }
.rp-bars li.under .rp-fill { opacity: 1; }
.rp-group { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-top: 10px; }
.rp-chart { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 480px) { .rp-bars li { grid-template-columns: minmax(0, 1fr) 3.4rem; } .rp-bars li .rp-track { grid-column: 1 / -1; } }

/* ---- Sections, kept apart: each opens with a one or two word title under a full-width rule. */
.rp > section { padding-top: 28px; border-top: 1px solid var(--rule); }
.rp > section.rp-verdict { border-top: 0; padding-top: 0; }
.rp > section.rp-reach { border-top: 4px solid var(--odds-green); padding-top: 28px; }
.rp > section > h2 { font-size: clamp(32px, 5vw, var(--t4)); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }
.rp-figure { font-family: var(--display); font-optical-sizing: auto; font-size: var(--t3); font-weight: 500; line-height: 1.1; color: var(--text-secondary); max-width: none !important; }
.rp-figure span { font-size: clamp(56px, 9vw, var(--t6)); font-weight: 600; margin-right: 10px; letter-spacing: -0.02em; }
.rp-step { display: flex; flex-direction: column; gap: 12px; padding: 18px 0; border-top: 1px solid var(--rule); }
.rp-step:first-of-type { border-top: 0; padding-top: 0; }
.rp-step h3 { font-size: var(--t0); font-weight: 600; color: var(--text-secondary); }
.rp-route h3, .rp-route.lead h3 { font-size: var(--t0); }

/* The report page is the end of the planner: no progress row, no back buttons, one way out. */
.on-report .progress, .on-report .progress-line { display: none !important; }
.rp-end { max-width: 760px; padding-top: 28px; border-top: 1px solid var(--rule); }
.rp-tools { font-size: var(--t-1); }
.rp-tools a { font-weight: 600; }
.rp-top a { color: var(--accent-color); font-weight: 600; }
/* Monte Carlo: thin lines for single histories, red for the ones that run out, ink for the typical. */
.chart .mc { fill: none; stroke: var(--accent-color); stroke-width: 1; opacity: .16; }
.chart .mc.fail { stroke: var(--odds-red); opacity: .45; }
@media print { .rp-end, .rp-tools { display: none !important; } }

/* Axis titles on every report chart, and a halo so a label can sit over bars and lines. */
.chart .axis-title { fill: var(--text-secondary); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.chart .label.halo { paint-order: stroke; stroke: var(--background); stroke-width: 4px; stroke-linejoin: round; fill: var(--text-primary); font-weight: 600; }

/* The sequence chart: three paths told apart by our own colours and by dash, named in a legend above
   the chart so no label sits on a line. Crash first in the odds red, solid; crash later in the
   turmeric, dashed; no crash in the odds green, dotted. */
.chart .seq-early, .rp-legend .seq-early { fill: none; stroke: var(--odds-red); stroke-width: 3; }
.chart .seq-late, .rp-legend .seq-late { fill: none; stroke: var(--accent-color); stroke-width: 3; stroke-dasharray: 8 5; }
.chart .seq-none, .rp-legend .seq-none { fill: none; stroke: var(--odds-green); stroke-width: 3; stroke-dasharray: 2 5; stroke-linecap: round; }
.rp-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--t-1); font-weight: 600; color: var(--text-primary); }
.rp-legend span { display: inline-flex; align-items: center; gap: 8px; }

/* The pause before a result, steps 3 to 6 (shell.js). The pane's contents fade out and a line says the
   futures are running; the success rate stays and counts down from 100%, drawn from data-count so the
   real figure is in the page throughout. Then everything fades back in. The one transition here names
   that change: the result arriving. */
.results [id$="-filled"] { position: relative; }
.results [id$="-filled"] > * { transition: opacity var(--reveal) ease-out; }
.results.running [id$="-filled"] > *:not(.payoff-keep) { opacity: 0; }
.results.running [id$="-filled"]::before { content: attr(data-running); position: absolute; top: 0; left: 0; right: 0; font-size: var(--t0); color: var(--text-secondary); }
[data-payoff].counting { position: relative; visibility: hidden; }
[data-payoff].counting::after { content: attr(data-count); visibility: visible; position: absolute; left: 0; top: 0; }
@media (prefers-reduced-motion: reduce) { .results [id$="-filled"] > * { transition: none; } }

/* What the report holds that the step does not show: a line each, hairlines between, the figure blurred.
   The figure is a placeholder, never a result. */
.tease-rows { list-style: none; margin: 0; padding: 0; }
.tease-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule); }
.tease-rows li:last-child { border-bottom: 1px solid var(--rule); }
.tease-what { line-height: 1.4; }
.tease-q { font-family: var(--display); font-optical-sizing: auto; font-size: var(--t1); font-weight: 600; color: var(--text-primary); filter: blur(3.5px); user-select: none; pointer-events: none; white-space: nowrap; }


/* A plan below 75%, before the report: what the reader could change. The cards are the form's fields made
   into choices (white, the hairline, the control radius); one that falls short on its own says so in
   muted ink. The sliders are the planner's own, and the result is the report's bar with its 90% mark. */
.rfix { display: flex; flex-direction: column; gap: 16px; max-width: 46rem; }
.rfix h1 { font-size: clamp(32px, 3.6vw, var(--t4)); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; }
.rfix .lede { font-size: var(--t1); line-height: 1.4; margin: -4px 0 0; color: var(--text-primary); }
.rf-why summary { cursor: pointer; color: var(--accent-color); font-weight: 600; width: max-content; }
.rf-why p { margin: 8px 0 0; color: var(--text-secondary); }
.rf-q { font-family: var(--display); font-size: var(--t2); font-weight: 600; line-height: 1.2; margin: 16px 0 0; }
.rf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rf-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px 18px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); cursor: pointer; font: inherit; color: var(--text-primary); }
.rf-card:hover, .rf-card:focus-visible { border-color: var(--accent-color); outline: none; }
.rf-card-h { font-family: var(--display); font-optical-sizing: auto; font-size: var(--t1); font-weight: 600; line-height: 1.25; }
.rf-card-sub { font-size: var(--t-1); color: var(--text-secondary); line-height: 1.4; }
.rf-card-res { font-size: var(--t-1); font-weight: 600; color: var(--odds-green); margin-top: 6px; }
.rf-card.short .rf-card-res { color: var(--text-muted); }
/* The card picked as the starting point: on the tint, its name in the accent, as step 4's chosen level. */
.rf-card.on { background: var(--tint); border-color: var(--accent-color); }
.rf-card.on .rf-card-h { color: var(--accent-color); }
#rf-mix-open, #rf-build { width: max-content; align-self: flex-start; }
.rf-mix { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.rf-row { display: flex; flex-direction: column; gap: 8px; }
.rf-row-h { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.rf-row label { font-weight: 600; }
.rf-val { font-weight: 600; color: var(--accent-color); }
.rf-ends { display: flex; justify-content: space-between; gap: 16px; font-size: var(--t-1); color: var(--text-muted); }
.rf-row input[type="range"] { width: 100%; margin: 0; accent-color: var(--accent-color); cursor: pointer; }
.rf-result { display: flex; flex-direction: column; gap: 8px; }
#rf-mix-n { font-family: var(--display); font-optical-sizing: auto; font-size: var(--t4); font-weight: 500; line-height: 1; }
.rf-result .rp-track { flex: none; }
.rf-skip { margin: 8px 0 0; font-size: var(--t-1); }
.rf-skip a { color: var(--text-secondary); }
/* On a report built on a chosen change: what was changed, in secondary ink, above the verdict's words. */
.rp-changes { margin: 0; color: var(--text-secondary); }
@media print { .rfix { display: none !important; } #r-change { display: none; } }
/* What the 1,500 runs show: plain sentences, one finding each, a little air between them. */
.rp-insights { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }

/* Printing the report (Ninad, 14 Nov: "is the pdf actually working?"). Browsers leave out background colours
   unless asked, and the report's bars, meter and highlighted rows are background colours, so its colours
   are printed exactly. A chart stays with its legend and note, a row of figures or a bar with its label,
   and a heading with what follows it. The print link itself is not printed. */
@media print {
    .rp, .rp * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    html, body, .plan, main, .report { background: #fff !important; }     /* white paper: the screen's cream is not printed */
    .rp-chart, .rp-route, .rp-meter, .rp-facts > div, .rp-bars li, .rp-pies > *, .rp-legend, .chart, .rp-res, .tease-rows li { break-inside: avoid; }
    .rp > section > h2, .rp h3, .rp-group, .rp-figure { break-after: avoid; }
    .rp-noprint { display: none !important; }
    /* Ninad, 14 Nov: each section opens a new page; the verdict shares the first with the report's heading. */
    .rp > section + section { break-before: page; }
    /* Fewer half-empty pages: a closing key stays with what it explains, and bar rows sit closer on paper. */
    .rp-key, .rp-small.rp-muted { break-before: avoid; }
    .rp-bars li { padding: 5px 0; }
    .rp-step:not(#r-step-rails) { break-inside: avoid; }      /* a short rung in one piece; the guardrails rung carries a chart and may break */
    #r-spend { max-height: 160px; }
    #r-mc, #r-fails { max-height: 170px; }
}

/* ---- Year by year (17 Nov 2026): one future, every year, on one age axis. The money is the tint area
   under an accent line. Lanes run on the same ages under it: money coming in wears the accent (the
   working years as a tinted bar with an accent edge, each stream solid), costs wear the ink family (a
   person who depends on you in the light grey with an ink edge, a loan in the loan grey). One-time costs
   are ink triangles pointing down, money coming in accent triangles pointing up, each with a dotted
   guide up to the line. Guardrails reuse step 5's dots. Running out is the odds red, as everywhere. */
.chart .life-area { fill: var(--tint); }
.chart .life-line { fill: none; stroke: var(--accent-color); stroke-width: 2.5; stroke-linejoin: round; }
.chart .phase { fill: var(--text-muted); font-size: 12px; font-weight: 600; }
.chart .lane-label { fill: var(--text-secondary); font-size: 12.5px; paint-order: stroke; stroke: var(--background); stroke-width: 5px; stroke-linejoin: round; }
.chart.life .label.end-label, .chart.life .stop-label { paint-order: stroke; stroke: var(--background); stroke-width: 4px; stroke-linejoin: round; }
.chart .lane { stroke-width: 1; }
.chart .lane.lane-work { fill: rgba(var(--accent-rgb, 122, 78, 0), .16); stroke: rgba(var(--accent-rgb, 122, 78, 0), .55); }
.chart .lane.lane-income { fill: var(--accent-color); stroke: none; }
.chart .lane.lane-dependent { fill: var(--kind-rest); stroke: var(--kind-ess-2); }
.chart .lane.lane-loan { fill: var(--kind-fixed); stroke: none; }
.chart .life-cost { fill: var(--text-primary); }
.chart .life-ev circle { fill: var(--card-background); stroke: var(--rule); stroke-width: 1; }
.chart .life-ev.out path { fill: var(--text-primary); }
.chart .life-ev.in circle { stroke: rgba(var(--accent-rgb, 122, 78, 0), .45); }
.chart .life-ev.in path { fill: var(--accent-color); }
.chart .life-ev-amt { fill: var(--text-secondary); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--background); stroke-width: 4px; stroke-linejoin: round; }
.chart .life-ev-amt.in { fill: var(--accent-color); }
.chart .life-lump { fill: var(--accent-color); }
.chart .life-guide { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: .6; }
.chart .life-leader { stroke: var(--text-muted); stroke-width: 1; opacity: .55; }
.chart .life-leader.fail { stroke: var(--odds-red); opacity: .7; }
.chart .life-fail { fill: var(--odds-red); stroke: #fff; stroke-width: 2; }
.chart .label.fail { fill: var(--odds-red); font-weight: 600; }
.chart .life-hover circle { fill: var(--accent-color); stroke: #fff; stroke-width: 2; }
.chart.life .raise { stroke-width: 1.5; }
.rp-legend .cut { fill: var(--accent-color); }
.rp-legend .raise { fill: #fff; stroke: var(--accent-color); stroke-width: 1.5; }
.life-wrap { position: relative; }
.life-wrap:focus { outline: none; }
.life-wrap:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 6px; border-radius: var(--radius-control, 4px); }
.life-tip { position: absolute; top: 40px; z-index: 2; background: var(--card-background); border: 1px solid var(--rule); border-radius: var(--radius-control, 4px); padding: 10px 12px; font-size: 13px; line-height: 1.45; width: max-content; max-width: min(300px, 72%); pointer-events: none; }
.life-tip-h { margin: 0 0 6px; font-weight: 700; color: var(--text-primary); }
.life-tip dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 14px; }
.life-tip dt { color: var(--text-secondary); }
.life-tip dd { margin: 0; text-align: right; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.life-tip .fail { color: var(--odds-red); font-weight: 600; }
#r-life-table td { font-variant-numeric: tabular-nums; }
#r-life-table tr.saving td { color: var(--text-secondary); }
@media print {
    .chart.life { max-height: none; }
    .life-tip, .chart .life-hover { display: none !important; }
    /* Paper does not scroll: the year table fits the page width, every column in. */
    #r-life-table .scroll { overflow: visible; }
    #r-life-table table { font-size: 9.5px; }
    #r-life-table th, #r-life-table td { padding: 4px 5px; }
    #r-life-table thead th { font-size: 8.5px; letter-spacing: .03em; }
    #r-life-table tr { break-inside: avoid; }
}
