/* Report view — screen + print. Loaded after the shared theme. */
.toolbar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1 1 200px; }
.toolbar input[type="text"], .toolbar input[type="tel"], .toolbar input[type="number"] { font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); width: 100%; max-width: 320px; }
.toolbar .id { font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; }
.toolbar .btn { min-height: 40px; padding: 8px 16px; }
.test-mode { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--pill); padding: 3px 10px; }

.sheet { max-width: 800px; margin: 24px auto 60px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 34px 28px 30px; }
.r-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.r-brand .h { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-size: 13px; }
.r-title { font-family: var(--font-display); font-size: clamp(26px, 6vw, 34px); font-weight: 800; letter-spacing: -.02em; margin-top: 18px; }
.r-meta { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.r-note { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--ink); background: var(--surface-muted); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--ink-soft); }
.part { border-top: 1px solid var(--line-strong); margin-top: 30px; padding-top: 22px; display: grid; gap: 16px; }
.part-num { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.part h3 { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.lede { font-size: 15px; color: var(--ink-soft); max-width: 62ch; line-height: 1.55; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis.two { grid-template-columns: repeat(2, 1fr); }
.kpis.one { grid-template-columns: 1fr; }
/* Section 1's two donuts: the income split, and the term. Labels always beside the colour. */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chart { background: var(--surface-muted); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.chart svg { display: block; }
.chart .dn-big { font-family: var(--font-display); font-weight: 800; font-size: 26px; fill: var(--ink); }
.chart .dn-small { font-size: 11px; fill: var(--muted); letter-spacing: .04em; }
.chart-title { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: baseline; font-size: 13px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.legend .lg-label { color: var(--muted); }
.legend .lg-value { font-weight: 700; font-variant-numeric: tabular-nums; }
/* the loan carried from Section 1 into Section 2, so the prices have something to hang on */
.ref { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); background: var(--surface-muted); border-radius: 12px; padding: 10px 14px; }
.kpi { background: var(--surface-muted); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; align-content: start; }
.kpi .k { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.kpi.hero { grid-column: 1 / -1; background: var(--good-bg); border: 1px solid var(--good-line); }
.kpi.hero .v { font-size: 28px; color: var(--good); }
.kpi.hero .s { color: var(--ink-soft); font-size: 14px; }
.scroll { overflow-x: auto; }
/* Section 4 tables are prose, not figures: undo the numeric right-align the shared head() applies. */
#freedom table.t th.r, #freedom table.t td.r, #whyprop table.t th.r, #whyprop table.t td.r { text-align: left; white-space: normal; padding-left: 0; padding-right: 12px; }
/* These sections argue in paragraphs, so they use the whole sheet instead of the 64ch reading cap. */
.r-verdict.wide { max-width: none; }
#freedom .lede, #whyprop .lede { max-width: none; }
.track { width: 100%; margin: 2px 0 4px; }
.track svg { width: 100%; height: auto; display: block; overflow: visible; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.t th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 6px 6px 8px 0; border-bottom: 1px solid var(--line-strong); font-weight: 700; }
table.t td { padding: 8px 6px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th.r, table.t td.r { text-align: right; padding-right: 0; padding-left: 6px; white-space: nowrap; }
table.t td.wrap { white-space: normal; min-width: 140px; }
table.t td.neg { color: var(--bad); }
table.t td.pos { color: var(--good); }
table.t tr.total td { font-weight: 700; border-bottom: 2px solid var(--ink); }
table.t tr.waived td { color: var(--muted); }
.src { font-size: 12.5px; line-height: 1.5; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--line-strong); }
.src b { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.callout { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.callout.good { background: var(--good-bg); border: 1px solid var(--good-line); color: var(--ink-soft); }
.callout.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--ink-soft); }
/* the cover line and the verdict sentence that opens Section 1 */
.r-for { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; margin-top: 12px; }
.r-verdict { font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 64ch; }
.sub-h { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .02em; margin-top: 2px; }
/* at a glance: three ceilings side by side, the comfortable one leading */
.sum-ceils { grid-template-columns: 1.35fr 1fr 1fr; }
.kpi.lead { background: var(--good-bg); border: 1px solid var(--good-line); }
.kpi.lead .v { font-size: 27px; color: var(--good); }
.kpi.lead .s { color: var(--ink-soft); }
.summary table.t td:first-child { color: var(--ink-soft); }
/* the ending: three short lines from the person's own figures */
.short { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.short li::marker { color: var(--muted); }
.assume { font-size: 14.5px; gap: 4px; }
.r-close { border-top: 1px solid var(--line-strong); margin-top: 30px; padding-top: 22px; display: grid; gap: 14px; }
.r-close .cta { font-size: 16px; color: var(--ink); max-width: 60ch; line-height: 1.55; }
.r-foot { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.loader { max-width: 560px; margin: 40px auto; display: grid; gap: 14px; }
.loader input[type="text"], .loader input[type="tel"], .loader input[type="number"], .loader textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); width: 100%; }
/* the three prices on one bar (Section 2): colour groups the stretches, the words are the report's own */
.pbar { display: grid; gap: 6px; margin-top: 2px; }
.pbar-svg { display: block; width: 100%; height: 26px; border-radius: 7px; overflow: hidden; }
.pbar-labels { position: relative; }
.pbar-lab { position: absolute; transform: translateX(-50%); display: grid; justify-items: center; text-align: center; white-space: nowrap; line-height: 1.25; padding-top: 4px; }
.pbar-lab::before { content: ""; position: absolute; top: -4px; left: 50%; width: 2px; height: 8px; background: var(--ink); }
.pbar-lab.left { transform: none; justify-items: start; text-align: left; }
.pbar-lab.left::before { left: 0; }
.pbar-lab.right { transform: translateX(-100%); justify-items: end; text-align: right; }
.pbar-lab.right::before { left: auto; right: 0; }
.pbar-above { position: relative; height: 54px; }
.pbar-lab.up { top: auto; bottom: 0; padding-top: 0; padding-bottom: 4px; }
.pbar-lab.up::before { top: auto; bottom: -4px; }
.pbar-lab .n { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pbar-lab b { font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.pbar-lab .m { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pbar-note { font-size: 13px; color: var(--ink-soft); line-height: 1.45; margin: 0; }
.pbar-cliff { display: flex; gap: 8px; align-items: baseline; }
.pbar-cliff .dash { flex: none; width: 0; height: 12px; border-left: 2px dotted var(--ink); transform: translateY(2px); }
/* What moves your number: three price columns, each rise under its price; numbers never break, and on a phone the row labels stay readable and
   pinned while the prices scroll sideways inside the table's own box */
#sumLevers td.r, #sumLevers th.r { white-space: nowrap; }
#sumLevers .lev-price { display: block; font-variant-numeric: tabular-nums; }
#sumLevers .lev-up { display: block; font-size: 12px; line-height: 1.3; color: var(--good); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  #sumLevers th:first-child, #sumLevers td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 9.5em; box-shadow: 1px 0 0 var(--line); }
}
/* Section 3: headings on two lines (name, then price); row labels get room, with the scheme note on a smaller line */
#p2Table th .th-price { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
#p2Table td:first-child { min-width: 10.5em; }
#p2Table th { vertical-align: bottom; }
#p2Table th.r, #p2Table td.r { padding-left: 16px; }
#p2Table td .sub { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); }
@media (max-width: 640px) {
  #p2Table th:first-child, #p2Table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
}
/* Section 3 price slider (screen only): the first column follows it */
.pslide { display: grid; gap: 6px; background: var(--surface-muted); border-radius: 12px; padding: 12px 14px; }
.pslide-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pslide-row { display: flex; align-items: center; gap: 14px; }
.pslide-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--ink); height: 28px; }
.pslide-row output { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; min-width: 7.5em; text-align: right; }
.pslide-hint { margin: 0; font-size: 13px; color: var(--good); }
.pslide-hint:empty { display: none; }
@media (max-width: 420px) { .pslide-row { flex-direction: column; align-items: stretch; gap: 4px; } .pslide-row output { text-align: left; } }
.hidden { display: none !important; }
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .charts { grid-template-columns: 1fr; }
  .sum-ceils { grid-template-columns: 1fr; }
  .sheet { padding-inline: 18px; }
}
@media (max-width: 420px) {
  .kpis, .kpis.two { grid-template-columns: 1fr; }
  .chart { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
  .chart svg { width: 128px; height: 128px; }
}
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; }
  .toolbar, .screen-only, .loader, footer, .topbar { display: none !important; }
  .sheet { box-shadow: none; border: 0; margin: 0; padding: 0; max-width: none; }
  table.t { font-size: 11.5px; }
  #p2Table th .th-price { font-size: 10.5px; } #p2Table td .sub { font-size: 9.5px; } #p2Table td:first-child { min-width: 9em; }
  #sumLevers .lev-up { font-size: 9.5px; }
  .pbar-lab .n { font-size: 9px; } .pbar-lab b { font-size: 12.5px; } .pbar-lab .m { font-size: 10.5px; } .pbar-note { font-size: 11px; }
  .scroll { overflow: visible; }
  .part { break-inside: avoid; }
  /* Section 1 is the cover: header + the glance on page 1, then a page break. Compacted so it fits A4;
     break-inside auto as the fallback, so a long glance flows on rather than jumping whole to page 2. */
  .r-title { font-size: 24px; margin-top: 10px; }
  .r-meta { font-size: 11.5px; margin-top: 6px; }
  .r-note { font-size: 11.5px; margin-top: 10px; padding: 8px 10px; }
  /* Section 1 owns page 1; the glance starts fresh rather than hanging two lines at the foot */
  .summary { break-inside: auto; break-before: page; page-break-before: always; margin-top: 16px; padding-top: 12px; gap: 9px; }
  .summary h3 { font-size: 18px; }
  .summary .lede { font-size: 12px; }
  .r-for { font-size: 15px; margin-top: 8px; }
  .charts { gap: 8px; }
  .chart { padding: 9px 11px; gap: 11px; break-inside: avoid; }
  .chart svg { width: 106px; height: 106px; }
  .chart .dn-big { font-size: 20px; }
  .chart .dn-small { font-size: 9px; }
  .chart-title { font-size: 9.5px; margin-bottom: 5px; }
  .legend { gap: 4px; }
  .legend li { font-size: 10.5px; }
  .ref { font-size: 11.5px; padding: 7px 10px; line-height: 1.4; }
  .summary .r-verdict { font-size: 12.5px; line-height: 1.45; }
  .summary .sub-h { font-size: 11.5px; margin-top: 0; }
  .summary .kpis { gap: 8px; }
  .summary .kpi { padding: 8px 10px; gap: 2px; break-inside: avoid; }
  .summary .kpi .k { font-size: 10px; }
  .summary .kpi .v { font-size: 17px; }
  .summary .kpi.lead .v { font-size: 22px; }
  .summary .kpi .s { font-size: 10.5px; line-height: 1.3; }
  .summary table.t { font-size: 10.5px; }
  .summary table.t th { padding: 3px 4px 4px 0; }
  .summary table.t td { padding: 4px 4px 4px 0; }
  .summary .src { font-size: 10.5px; }
  .summary .callout { font-size: 11px; padding: 8px 10px; }
  /* Section 4 carries the freedom number and is presented from, so it starts on a fresh page */
  #freedom { break-inside: avoid; break-before: page; page-break-before: always; margin-top: 16px; padding-top: 12px; gap: 10px; }
  /* Section 4 explains as well as states, so it is compacted for print the way Section 2 is,
     leaving room for the ending to ride on the same page instead of taking one of its own. */
  #freedom .kpi { padding: 8px 11px; gap: 2px; }
  #freedom .kpi .v { font-size: 18px; }
  #freedom .kpi .s { font-size: 12px; }
  #freedom .r-verdict { font-size: 13px; line-height: 1.45; }
  #freedom .sub-h { font-size: 12.5px; }
  #freedom table.t { font-size: 11px; }
  #freedom .kpi.lead .v { font-size: 24px; }
  #freedom .assume { font-size: 12px; gap: 2px; }
  #whyprop { break-inside: avoid; break-before: page; page-break-before: always; margin-top: 16px; padding-top: 12px; gap: 10px; }
  #whyprop .r-verdict { font-size: 13px; line-height: 1.5; }
  #whyprop table.t { font-size: 11.5px; }
  #whyprop .src { font-size: 11px; }
  #freedom .track svg { max-height: 150px; }
  /* the closing note rides on the last page rather than taking one of its own */
  .r-close { break-inside: avoid; break-before: avoid; page-break-before: avoid; margin-top: 16px; padding-top: 12px; gap: 8px; }
  #conclusion { break-inside: avoid; break-after: avoid; page-break-after: avoid; margin-top: 20px; padding-top: 14px; }
  .short { font-size: 12px; gap: 5px; }
  .r-close .cta { font-size: 12.5px; line-height: 1.45; }
  .r-close .r-foot { font-size: 10px; line-height: 1.4; }
  #part2 .src { font-size: 9.5px; line-height: 1.35; }
  #part2 .callout { font-size: 11px; padding: 8px 10px; }
  a { color: inherit; text-decoration: none; }
}
