/* Accounts and tax uses the shared dark palette.
   Tinted section surfaces and raised panels keep the reading hierarchy clear. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--gn-height, 72px) + 20px); }
body { margin: 0; font: 1rem/1.65 var(--body, Arial, sans-serif); color: var(--ink-body); background: var(--paper); }
button, input, select, textarea { font: inherit; color: var(--ink); }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--door-ask); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .calc-live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.acc {
  --hue: var(--door-ask); --guide-red: var(--door-earnings); --guide-green: var(--door-ask);
  --section-tone: var(--door-ask);
  --section-wash: color-mix(in srgb, var(--section-tone) 6%, var(--paper));
  --example-wash: var(--positive-wash);
  --example-rule: color-mix(in srgb, var(--door-ask) 28%, var(--rule));
  color: var(--ink-body);
  max-width: 1280px; margin: auto; padding: 46px 36px 80px;
}
.acc p { margin: 0 0 14px; }
.acc h1, .acc h2, .acc h3, .acc h4 { font-family: var(--serif, Arial, sans-serif); color: var(--ink); font-weight: 700; }
.acc h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -.045em; line-height: 1.05; margin: 0 0 20px; }
.acc h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -.035em; line-height: 1.15; margin: 0 0 14px; }
.acc h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 8px; }
.acc h4 { font: 600 1rem/1.5 var(--body); margin: 0 0 6px; }
.eyebrow { font: .75rem/1.5 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.small { font-size: .875rem; line-height: 1.6; color: var(--ink-soft); }
.acc-intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 70px; align-items: center; padding-bottom: 30px; }
.intro-deck { font-size: 1.125rem; max-width: 53ch; line-height: 1.6; }
.acc-intro .eyebrow { letter-spacing: .04em; text-transform: none; }
.acc-intro .eyebrow span { padding: 0 10px; color: var(--ink-faint); }
.acc-intro .eyebrow a { text-decoration: none; }
.boundary { border-left: 2px solid var(--rule-strong); padding: 4px 0 4px 24px; }
.acc .boundary h2 { font: 600 1rem/1.5 var(--body); letter-spacing: 0; margin-bottom: 10px; }
.boundary p { font-size: 1rem; line-height: 1.6; margin: 0 0 10px; }
.boundary p:last-child { margin: 0; }
.country-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 20px 0 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 38px; }
.country-label { font-size: .875rem; color: var(--ink-soft); margin-right: auto; }
.country-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.country-tabs button { min-height: 44px; padding: 8px 16px; background: transparent; border: 1px solid transparent; border-radius: 4px; font-size: .9375rem; color: var(--ink-body); }
.country-tabs button:hover { border-color: var(--rule-strong); color: var(--ink); }
.country-tabs button[aria-pressed="true"] { background: var(--paper-raised); border-color: var(--rule-strong); color: var(--ink); font-weight: 600; }
.acc .checked-on { width: 100%; font: .8125rem/1.5 var(--body); color: var(--ink-soft); margin: 0; }
.checked-on b { color: var(--ink-body); font-weight: 500; }
.acc-reading { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 42px; align-items: start; }
.acc-content { min-width: 0; }
.topic-sidebar { position: sticky; top: calc(var(--gn-height, 72px) + 28px); min-width: 0; }
#topic-menu > summary { display: none; }
.acc-toc { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; max-height: calc(100vh - var(--gn-height, 72px) - 50px); overflow-y: auto; }
.acc .toc-title { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.acc-toc a { display: block; min-height: 42px; padding: 9px 12px; border-left: 2px solid transparent; font-size: .875rem; line-height: 1.45; color: var(--ink-soft); text-decoration: none; }
.acc-toc a:hover { background: var(--paper-raised); color: var(--ink); }
.acc-toc a[aria-current="location"] { border-left-color: var(--ink); color: var(--ink); background: var(--paper-raised); }
.toc-tools, .toc-footer { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); }
.account-overview, .family, .calc, .ask-panel { scroll-margin-top: 4px; }
.account-overview { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 10px; padding: 30px; }
.account-overview > p { max-width: 68ch; }
.overview-rows { margin: 24px 0 18px; border-top: 1px solid var(--rule); }
.overview-rows a { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(0, 1.5fr) 14px; gap: 24px; align-items: start; padding: 20px 8px 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.overview-rows a:hover { background: var(--paper-raised); }
.overview-rows strong { font-size: 1rem; line-height: 1.5; color: var(--ink); }
.overview-rows strong span { display: block; font-size: .8125rem; font-weight: 400; color: var(--ink-soft); margin-top: 3px; }
.overview-rows a > span { font-size: .9375rem; line-height: 1.6; }
.overview-rows b { font-weight: 400; color: var(--ink-soft); }
.overview-note { font-size: .875rem; color: var(--ink-soft); }
.family { --section-wash: color-mix(in srgb, var(--section-tone) 6%, var(--paper)); padding: 28px; margin-top: 36px; border: 1px solid var(--rule); border-top: 4px solid var(--section-tone); border-radius: 10px; background: var(--section-wash); }
#uk-pensions, #us-retirement, #australia { --section-tone: var(--door-company); --hue: var(--door-company); }
#uk-tax, #us-brokerage { --section-tone: var(--door-earnings); }
#cgt-exemptions, #canada { --section-tone: var(--teal); }
#coins { --section-tone: var(--cat-shopping); }
#examples { --section-tone: var(--plum); }
#help { --section-tone: var(--ink-soft); }
.family > header { max-width: 70ch; margin-bottom: 24px; }
.family > header p { font-size: 1rem; }
.family-flag { display: block; font: .75rem/1.5 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--section-tone); margin-bottom: 12px; font-weight: 600; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.cards.one { grid-template-columns: minmax(0, 1fr); }
.card { padding: 24px; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 7px; background: var(--paper-raised); }
.card .who { font: .9375rem/1.5 var(--body); color: var(--ink-soft); margin: 0 0 12px; }
.card > p { font-size: 1rem; max-width: 68ch; }
.card > p:last-child { margin-bottom: 0; }
.account-facts { margin: 0; }
.account-facts > div { min-width: 0; padding: 12px 0; border-top: 1px solid var(--rule); }
.account-facts dt { font-size: .875rem; color: var(--ink-soft); margin-bottom: 4px; }
.account-facts dd { margin: 0; font-size: 1rem; line-height: 1.6; max-width: 68ch; overflow-wrap: anywhere; }
.account-facts a { font-size: .875rem; }
.card > .reading-detail { margin-top: 14px; }
.acc .assumption-note { font-size: 1rem; color: var(--ink); margin: 8px 0 0; }
.calc-result > .assumption-note { margin-bottom: 18px; }
.figs { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
.figs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; align-items: baseline; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.fig-what { font-size: .875rem; line-height: 1.45; color: var(--ink-body); }
.fig-val { font: 500 1.2rem/1.3 var(--mono); color: var(--ink); letter-spacing: -.025em; overflow-wrap: anywhere; }
.fig-val.long { font-size: .9375rem; line-height: 1.4; letter-spacing: -.01em; max-width: 19ch; }
.fig-src { grid-column: 1 / -1; font: .8125rem/1.5 var(--body); color: var(--ink-soft); }
.fig-src a { color: var(--ink-soft); text-decoration-color: var(--rule-strong); }
.fig-src a:hover { color: var(--ink); text-decoration-color: currentColor; }
.watch { border-left: 3px solid var(--guide-red); padding: 2px 0 2px 18px; margin: 16px 0 0; }
.watch p { font-size: 1rem; margin: 0; max-width: 68ch; }
.watch p + p { margin-top: 8px; }
.worked { display: grid; gap: 20px 28px; align-items: start; margin: 24px 0; }
.worked > .watch, .worked > .sum { margin: 0; }
@media (min-width: 1000px) { .worked { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.sum { background: var(--paper-raised); border-radius: 4px; padding: 18px 22px; margin: 18px 0; }
.sum .sum-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 18px; flex-wrap: wrap; font-size: .9375rem; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.sum .sum-line:last-of-type { border-bottom: 0; }
.sum .sum-line b { font-family: var(--mono); color: var(--ink); font-weight: 500; white-space: nowrap; }
.sum .sum-line.total { font-weight: 600; }
.sum .sum-line.cost b { color: var(--guide-red); }
.sum > p { font-size: .875rem; color: var(--ink-soft); margin: 12px 0 0; }
.compare-wrap { overflow-x: auto; margin: 12px 0; }
table.compare { border-collapse: collapse; width: 100%; min-width: 600px; font-size: .9375rem; }
table.compare th, table.compare td { text-align: left; padding: 14px 20px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.compare thead th { font-size: .8125rem; font-weight: 500; color: var(--ink-soft); }
table.compare tbody th { font-weight: 600; color: var(--ink); }
.note { margin: 24px 0 0; padding: 20px 22px; background: var(--paper-raised); border-radius: 4px; }
.note h3 { font-size: 1.125rem; }
.note p:last-child { margin-bottom: 0; }
.note p { font-size: 1rem; max-width: 70ch; }
details.sources { margin-top: 12px; }
details.sources > summary, .reading-detail > summary { min-height: 44px; padding: 12px 0; font-size: .9375rem; color: var(--ink-soft); }
details.sources > summary:hover, .reading-detail > summary:hover { color: var(--ink); }
details.sources ul { list-style: none; margin: 8px 0 14px; padding: 0 0 0 18px; border-left: 1px solid var(--rule-strong); }
details.sources li { padding: 7px 0; font-size: .875rem; line-height: 1.5; }
details.sources a { color: var(--ink-soft); overflow-wrap: anywhere; }
.reading-detail { margin: 18px 0 0; border-top: 1px solid var(--rule); }
.reading-detail > p { max-width: 68ch; }
.no-script { padding: 16px 20px; background: var(--paper-raised); border-radius: 4px; }
.calc { background: var(--paper-raised); border: 1px solid var(--rule-strong); border-radius: 8px; padding: 26px; margin: 32px 0 16px; }
.calc-top { max-width: 65ch; margin-bottom: 20px; }
.calc-top h3 { font-size: 1.4rem; margin-bottom: 10px; }
.calc-top p:last-child { margin: 0; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.calc-fields { display: grid; gap: 20px; min-width: 0; }
.field { min-width: 0; }
.field > label, .field legend { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .9375rem; color: var(--ink); margin-bottom: 8px; width: 100%; }
.field output { font: 500 .9375rem var(--mono); color: var(--ink); white-space: nowrap; }
/* The padding lives on the input, not the box, so a tap anywhere in the box lands in the field (audit, 11 Sep 2026). */
.input-money { display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 0 13px; }
.input-money > span { color: var(--ink-soft); font-family: var(--mono); }
.input-money input { width: 100%; min-width: 0; min-height: 44px; background: none; border: 0; padding: 10px 0; font: 500 1.3rem var(--mono); color: var(--ink); }
.calc input[type="range"] { display: block; width: 100%; min-width: 0; height: 30px; margin: 0; accent-color: var(--hue); cursor: pointer; }
.seg-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1 1 auto; min-height: 44px; padding: 8px 10px; font-size: .875rem; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; color: var(--ink-body); }
.seg button:hover { border-color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--hue); border-color: var(--hue); color: var(--accent-on); font-weight: 600; }
.field-error { color: var(--guide-red); font-size: .875rem; margin: 0; }
input[aria-invalid="true"] { outline: 2px solid var(--guide-red); outline-offset: 2px; }
.calc-result { min-width: 0; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.pair-col > span { display: block; font-size: .875rem; color: var(--ink-soft); margin-bottom: 8px; }
.pair-col > strong { display: block; font: 500 clamp(1.5rem, 2.5vw, 2rem)/1.2 var(--mono); letter-spacing: -.04em; overflow-wrap: anywhere; color: var(--ink); }
.pair-col.in > strong { color: var(--hue); }
#wrapper-calc .calc-result { padding: 22px; background: var(--example-wash); border-radius: 7px; border: 1px solid var(--example-rule); }
.pair-bar { height: 6px; border-radius: 2px; background: var(--paper); margin-top: 14px; overflow: hidden; }
.pair-bar i { display: block; height: 100%; background: var(--ink-soft); }
.pair-col.in .pair-bar i { background: var(--hue); }
.acc .calc-line { margin: 22px 0 0; font-size: 1rem; }
.calc-line b { font-family: var(--mono); color: var(--ink); font-weight: 500; }
.calc-assume { margin-top: 24px; border-top: 1px solid var(--rule); padding-top: 4px; }
.calc-assume > summary { min-height: 44px; padding: 11px 0; font-size: .9375rem; color: var(--ink-soft); }
.calc-assume p { font-size: 1rem; max-width: 70ch; }
.calc-guard { font-size: 1rem; line-height: 1.6; color: var(--ink-body); margin: 0 0 22px; max-width: 72ch; }
.calc-guard.end { margin: 20px 0 0; border-top: 1px solid var(--rule); padding-top: 16px; }
.acc .calc-warn { font-size: 1rem; line-height: 1.6; margin: 18px 0 0; }
.acc .calc-note { font-size: .875rem; color: var(--ink-soft); margin: 8px 0 0; }
.acc .help-head { font: 600 1rem/1.5 var(--body); color: var(--ink); margin: 42px 0 14px; }
.acc .help-head:first-of-type { margin-top: 24px; }
.help-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 26px; }
.help-links a { display: block; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.help-links a:hover strong { text-decoration: underline; }
.help-links strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 6px; }
.help-links span { display: block; font-size: .9375rem; line-height: 1.6; color: var(--ink-body); }
.help-links em { display: block; font: .8125rem/1.5 var(--body); font-style: normal; color: var(--ink-soft); margin-top: 10px; }
.acc .foot-note { font-size: .875rem; line-height: 1.6; color: var(--ink-soft); margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 74ch; }
.ask-panel { border-top: 1px solid var(--rule-strong); padding: 34px 0 0; margin: 38px 0 8px; }
.ask-head, .ask-limits { max-width: 68ch; }
.ask-limits { margin: 20px 0 22px; border-left: 2px solid var(--rule-strong); padding-left: 18px; }
.ask-limits p { font-size: 1rem; line-height: 1.6; margin: 0 0 10px; }
.ask-form textarea { width: 100%; min-width: 0; background: var(--paper-raised); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 14px 16px; font: 1rem/1.55 var(--body); color: var(--ink); resize: vertical; }
.ask-form textarea::placeholder { color: var(--ink-soft); }
.ask-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.ask-rule { font-size: .875rem; color: var(--ink-soft); }
#ask-send { min-height: 44px; padding: 10px 24px; border: 0; border-radius: 4px; background: var(--accent); color: var(--accent-on); font-weight: 600; }
#ask-send[disabled] { opacity: .55; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ask-examples button { min-height: 44px; padding: 8px 14px; font-size: .875rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 4px; color: var(--ink-body); }
.ask-examples button:hover { border-color: var(--ink-soft); }
.ask-thread { margin-top: 22px; }
.ask-turn { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 18px; }
.ask-q { font-size: .875rem; color: var(--ink-soft); }
.ask-a { white-space: pre-wrap; }
.ask-a.err { color: var(--guide-red); }
.ask-note, .ask-signed-out { font-size: .875rem; color: var(--ink-soft); margin: 12px 0 0; }
.card.ex .ex-tag { font: .75rem/1.5 var(--body); color: var(--ink-soft); margin: 0 0 10px; }
.card.ex .sum { max-width: 600px; }
@media (max-width: 1000px) {
  .acc-reading { grid-template-columns: 170px minmax(0, 1fr); gap: 30px; }
  .acc-intro { gap: 30px; }
  .calc-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .figs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* The coins table has three prose columns; at phone width it stacks so nothing is clipped. */
  .compare-wrap { overflow-x: visible; }
  table.compare { min-width: 0; }
  table.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.compare tr, table.compare th, table.compare td { display: block; }
  table.compare tbody th { padding: 14px 0 4px; border-bottom: 0; }
  table.compare td { padding: 4px 0 8px; border-bottom: 0; }
  table.compare td::before { content: attr(data-label) ": "; color: var(--ink-soft); }
  table.compare tr { border-bottom: 1px solid var(--rule); }
  html { scroll-padding-top: calc(var(--gn-height, 56px) + 64px); }
  .acc { padding: 26px 20px 48px; }
  .acc-intro { grid-template-columns: 1fr; gap: 18px; padding-bottom: 24px; }
  .acc h1 { font-size: clamp(2.1rem, 8.5vw, 2.8rem); }
  .intro-deck { font-size: 1rem; }
  .boundary { padding-left: 16px; }
  .country-bar { padding: 16px 0; margin-bottom: 24px; gap: 10px; }
  .country-label { width: 100%; }
  .country-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 6px; }
  .country-tabs button { padding: 8px 10px; border-color: var(--rule); text-align: left; }
  .acc-reading { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .topic-sidebar { position: sticky; top: var(--gn-height, 56px); z-index: 12; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  #topic-menu > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 0; font-size: .875rem; color: var(--ink); }
  #topic-menu > summary::after { content: '+'; font-size: 1.25rem; }
  #topic-menu[open] > summary::after { content: '−'; }
  #topic-menu > summary span:first-child { margin-right: auto; color: var(--ink-soft); }
  .acc-toc { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 8px 0 20px; max-height: 65vh; overflow-y: auto; }
  .acc-toc > .toc-title { width: 100%; margin-bottom: 4px; }
  .acc-toc a { border: 1px solid var(--rule); border-radius: 3px; padding: 9px 12px; min-height: 44px; }
  .acc-toc a[aria-current="location"] { border-color: var(--ink-soft); }
  .toc-tools { width: 100%; margin: 12px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc-tools .toc-title { width: 100%; margin: 4px 0; }
  .toc-footer { width: 100%; margin: 12px 0 0; padding: 0; border: 0; display: flex; gap: 4px; flex-wrap: wrap; }
  .overview-rows a { grid-template-columns: minmax(0, 1fr) 16px; gap: 8px; padding: 18px 0; }
  .overview-rows a > span { grid-column: 1; }
  .overview-rows b { grid-column: 2; grid-row: 1; }
  .account-overview { padding: 22px 18px; }
  .family { margin-top: 28px; padding: 22px 14px; }
  .card { padding: 20px 16px; }
  .figs { grid-template-columns: minmax(0, 1fr); }
  .fig-val { font-size: 1.125rem; }
  .fig-val.long { max-width: 17ch; text-align: right; }
  .note, .sum { padding: 18px; }
  .calc { padding: 20px 16px; margin-left: -1px; margin-right: -1px; }
  #wrapper-calc .calc-result { padding: 18px 14px; }
  .pair-col > strong { font-size: clamp(1.25rem, 5vw, 1.8rem); }
  .help-links { grid-template-columns: minmax(0, 1fr); }
}

#cgt-exemptions > .reading-detail { background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 6px; padding: 0 18px; margin-top: 12px; }
#cgt-exemptions > .reading-detail > summary { color: var(--section-tone); font-weight: 600; min-height: 54px; padding: 15px 0; }
#cgt-exemptions > .small { margin-top: 20px; }
.inline-example.allowance-example { margin-bottom: 22px; }
/* Optional examples sit with the rule they explain. */
.inline-example { margin: 18px 0 0; padding: 0 16px; background: var(--example-wash); border: 1px solid var(--example-rule); border-radius: 6px; }
.inline-example > summary { padding: 13px 0; min-height: 48px; color: var(--door-ask); font-size: .9375rem; font-weight: 600; }
.inline-example > p { font-size: .9375rem; line-height: 1.65; }
.inline-example ol { margin: 0 0 16px; padding-left: 22px; }
.inline-example li { padding: 4px 0; }
.example-detail > summary { min-height: 48px; padding: 12px 0; font-size: .9375rem; color: var(--section-tone); font-weight: 600; }
.example-detail .sum { background: var(--section-wash); }
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 24px; }
.result-jump { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; color: var(--hue); font-size: .875rem; font-weight: 600; }
#w-result { scroll-margin-top: 4px; }
#w-amount { scroll-margin-top: 50px; }
.edit-numbers { margin-top: 10px; padding-left: 0; }
.preset-row button { min-height: 44px; border: 1px solid var(--rule-strong); background: var(--paper-raised); border-radius: 5px; padding: 9px 12px; font-size: .875rem; color: var(--ink-body); }
.preset-row button:hover { background: var(--section-wash); border-color: var(--section-tone); }
.preset-row button[aria-pressed="true"] { background: var(--section-wash); border-color: var(--section-tone); color: var(--section-tone); }
.contribution-row { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 8px; }
.contribution-row select { width: 100%; padding: 9px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--paper); font-size: .9375rem; }
.acc .field-help { font-size: .8125rem; color: var(--ink-soft); margin: 7px 0 0; }
.calc-advanced { border: 1px solid var(--rule); border-radius: 5px; padding: 0 14px 14px; }
.calc-advanced > summary { min-height: 44px; padding: 11px 0; font-size: .9375rem; color: var(--ink); }
.calc-advanced .field + .field { margin-top: 20px; }
.acc .result-kicker { font-size: .875rem; font-weight: 600; margin-bottom: 20px; }
.tax-total { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--example-rule); }
.tax-total > span { display: block; font-size: .9375rem; }
.tax-total > strong { display: block; font: 500 1.75rem/1.4 var(--mono); color: var(--guide-red); margin-top: 4px; }
.tax-breakdown { margin: 18px 0 0; }
.tax-breakdown div { display: flex; gap: 12px; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--example-rule); font-size: .875rem; }
.tax-breakdown dt { max-width: 26ch; }
.tax-breakdown dd { margin: 0; font-family: var(--mono); white-space: nowrap; color: var(--ink); }
.acc .calc-result .calc-note { margin-top: 12px; }
.horizon-table { border-collapse: collapse; width: 100%; font-size: .875rem; margin-top: 12px; }
.horizon-table caption { text-align: left; font-weight: 600; color: var(--ink); padding: 24px 0 8px; }
.horizon-table th, .horizon-table td { padding: 12px 6px; border-bottom: 1px solid var(--rule); text-align: right; }
.horizon-table th:first-child { text-align: left; padding-left: 0; }
.horizon-table thead th { color: var(--ink-soft); font-weight: 500; }
.horizon-table tbody td { font-family: var(--mono); font-size: .8125rem; }
.exemption-grid { display: grid; gap: 16px; }
@media (max-width: 420px) { .acc { padding-left: 12px; padding-right: 12px; } .contribution-row { grid-template-columns: minmax(0, 1fr) 95px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root { color-scheme: light; }
  body, .acc { background: white !important; color: black !important; }
  .acc { padding: 0; max-width: none; }
  .gn, .gn-menu, .gn-sheet, .gn-scrim, .gn-bsheet, .country-bar, .topic-sidebar, .no-script, .ask-panel { display: none !important; }
  .acc-reading, .acc-intro { display: block; }
  .acc h1, .acc h2, .acc h3, .acc h4, .acc p, .acc summary, .acc dt, .acc dd, .acc td, .acc th, .acc li, .acc strong, .acc b, .acc span, .acc a { color: black !important; }
  .account-overview, .family, .card, .note, .sum, .boundary, .calc, .inline-example, #wrapper-calc .calc-result, #cgt-exemptions > .reading-detail { background: white !important; border-radius: 0; }
  [data-country][hidden] { display: block !important; }
  .family { break-before: auto; }
  h2, h3, h4 { break-after: avoid; }
  .figs li, .sum { break-inside: avoid; }
  .fig-src a::after, details.sources a::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  table.compare { min-width: 0; font-size: 10pt; }
  .calc input[type="range"], .seg { display: none !important; }
}

/* The calculators' sliders were 30px tall on a phone; a thumb needs 44 (audit, 11 Sep 2026). */
@media (max-width: 760px) {
  .calc input[type="range"] { height: 44px; }
}
