/* The Ledger Times · site.css (v2)
   A newspaper that breathes: a Didone masthead between thick-thin rules, one reading column
   with a quiet rail, a two-colour illustration where a page needs a breath, and the yellow
   highlighter on the one number that matters. Each section owns a colour; numbers are mono;
   every final total sits on a double rule. */

:root {
  --paper: #FFFFFF;
  --paper-2: #F4F5F7;
  --ink: #0E0E0E;
  --ink-2: #596270;
  --rule: #0E0E0E;
  --rule-2: #DCDFE4;
  --mark: #FFE566;
  --mark-ink: #0E0E0E;
  --tint: #FFF9D9;

  --std: #1F3A93;   --std-tint: #EEF1FB;
  --fund: #0F7C73;  --fund-tint: #E7F4F2;
  --tool: #B4302A;  --tool-tint: #FBEEEC;
  --close: #6B2D8F; --close-tint: #F3ECF8;
  --sec: var(--std); --sec-tint: var(--std-tint);

  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --body: 'Schibsted Grotesk', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: only light; /* light only: no dark mode, and browsers are asked not to auto-darken the site */
}
.sec-std { --sec: var(--std); --sec-tint: var(--std-tint); }
.sec-fund { --sec: var(--fund); --sec-tint: var(--fund-tint); }
.sec-tool { --sec: var(--tool); --sec-tint: var(--tool-tint); }
.sec-close { --sec: var(--close); --sec-tint: var(--close-tint); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--sec); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--sec); }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }
h1, h2, h3, h4 { text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
hr { border: 0; border-top: 1px solid var(--rule-2); margin: 2em 0; }
small { font-size: 0.875rem; color: var(--ink-2); }
code, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
mark { background: var(--mark); color: var(--mark-ink); padding: 0 0.18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-family: var(--mono); font-weight: 600; }

/* ---------- masthead ---------- */
.oxford { border-top: 4px solid var(--rule); position: relative; height: 6px; }
.oxford::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 1px solid var(--rule); }
.oxford-rev { border-top: 1px solid var(--rule); position: relative; height: 6px; }
.oxford-rev::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 4px solid var(--rule); }
.rule { border-top: 1px solid var(--rule); }
.masthead { padding-top: 16px; }
.folio { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 7px 0 3px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.folio .motto { text-align: center; color: var(--ink); font-weight: 600; }
.folio-tools { justify-self: end; }
.folio .date { font-family: var(--mono); letter-spacing: 0.04em; white-space: nowrap; }
.folio-tools { display: flex; align-items: center; gap: 18px; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 0; background: transparent; color: var(--ink-2); border: 0; cursor: pointer; font: inherit; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.menu-btn:hover { color: var(--ink); }
.clock { font-family: var(--mono); letter-spacing: 0.04em; white-space: nowrap; color: var(--ink-2); }
.folio .date .d-short { display: none; }
.menu-btn { display: none; }
.brand { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 20px); padding: 18px 0 10px; }
.brand .mark { width: clamp(32px, 5vw, 52px); height: auto; flex: none; }
.brand .wordmark { font-family: var(--display); font-weight: 900; font-size: clamp(2.125rem, 6.4vw, 4.75rem); line-height: 0.95; letter-spacing: -0.015em; text-decoration: none; white-space: nowrap; }
.brand .wordmark:hover { color: inherit; }
.tagline { display: none; text-align: center; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); font-weight: 600; padding-bottom: 12px; margin: 0; }
.brand { padding-bottom: 16px; }
.nav ul { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav li + li { border-left: 1px solid var(--rule-2); }
.nav a { display: block; padding: 13px clamp(14px, 2vw, 26px); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; box-shadow: inset 0 -3px 0 transparent; }
.nav a[aria-current="page"], .nav a:hover { color: inherit; box-shadow: inset 0 -3px 0 var(--sec); }
.nav li:not([class]) a[aria-current="page"], .nav li:not([class]) a:hover { box-shadow: inset 0 -3px 0 var(--mark); }
@media (max-width: 760px) {
  .folio { grid-template-columns: 1fr auto; }
  .folio .motto { display: none; }
  .tagline { display: block; }
  .brand { padding-bottom: 8px; }
  .menu-btn { display: inline-flex; }
  .folio-tools { gap: 14px; }
  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav li + li { border-left: 0; }
  .nav li { border-top: 1px solid var(--rule-2); }
  .nav a { padding: 14px 0; box-shadow: inset 4px 0 0 var(--sec); padding-left: 14px; }
  .nav li:not([class]) a { box-shadow: inset 4px 0 0 var(--mark); }
}

/* ---------- shells ---------- */
.page { padding-top: clamp(32px, 5vw, 64px); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; } }
.column { min-width: 0; }
.column > :not(.table-scroll):not(.calc):not(.keypanel):not(.figure) { max-width: var(--measure); }
.table-scroll.narrow { max-width: var(--measure); }
.rail { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.rail .box { border-top: 2px solid var(--rule); padding-top: 14px; }
.rail .box h2, .rail .box h3 { font-family: var(--body); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 10px; color: var(--ink-2); }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 0; font-size: 0.9375rem; text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 4px; }
@media (min-width: 1024px) { .rail .sticky { position: sticky; top: 24px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sec); margin: 0; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--sec); flex: none; }
.label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.title { font-family: var(--display); font-weight: 700; font-size: clamp(2.125rem, 4.6vw, 3.375rem); line-height: 1.04; letter-spacing: -0.012em; margin: 0.4em 0 0.35em; }
.dek { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 1em; }
.byline { font-size: 0.875rem; color: var(--ink-2); margin: 0 0 1.6em; }
.byline b { color: var(--ink); }
.answer { font-size: 1.25rem; line-height: 1.55; margin: 0 0 1.6em; }
h2.h { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.12; margin: 2em 0 0.55em; }
h3.h { font-size: 1.25rem; font-weight: 700; margin: 1.6em 0 0.5em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 18px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); cursor: pointer; font: inherit; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.cta:hover { color: var(--paper); background: var(--sec); border-color: var(--sec); }
.cta svg { width: 18px; height: 18px; }
.cta-ghost { background: transparent; color: var(--ink); }
.cta-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }
.cta-mark { background: var(--mark); color: var(--mark-ink); border-color: var(--mark); }
.cta-mark:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- illustrations ---------- */
.illo { width: 100%; height: auto; display: block; color: var(--ink); }
.illo .paper { fill: var(--paper); }
.illo .ink { fill: var(--ink); }
.illo .mark { fill: var(--mark); }
.illo .sec { fill: var(--sec); }
.illo .sec-soft { fill: var(--sec); fill-opacity: 0.18; }
.illo .line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.illo .thin { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.illo text { font-family: var(--mono); fill: var(--ink); }
.illo text[fill="#FFFFFF"] { fill: #FFFFFF; } /* labels set on the black header bars */
.illo-frame { background: var(--sec-tint); padding: 8%; }

/* ---------- front page ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .lead { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; } }
.lead .title { font-size: clamp(2.125rem, 4.4vw, 3.5rem); margin-top: 0.5em; }
.lead .title a { text-decoration: none; }
.lead .title a:hover { color: inherit; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 6px; text-underline-offset: 0.12em; }
.lead .illo-frame { aspect-ratio: 7 / 5; display: flex; align-items: center; }

.latest { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--rule); }
.latest .label { margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.card .thumb { aspect-ratio: 16 / 10; background: var(--sec-tint); display: flex; align-items: center; justify-content: center; padding: 10% 12%; }
.card .thumb .illo { width: 100%; }
.card .eyebrow { font-size: 0.75rem; margin-top: 4px; }
.card b { font-size: 1.1875rem; line-height: 1.3; font-weight: 700; }
.card span { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.5; }
.card .when { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); }
.card:hover b { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 5px; text-underline-offset: 0.12em; }
.card:hover { color: inherit; }

.sections { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 720px) { .sections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; } }
@media (min-width: 1024px) { .sections { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.section { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; text-decoration: none; align-items: start; }
.section .ico { width: 44px; height: 44px; color: var(--sec); }
.section b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; }
.section span { display: block; font-size: 0.9375rem; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.section:hover { color: inherit; }
.section:hover b { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 5px; text-underline-offset: 0.12em; }

.band { background: var(--tint); margin: clamp(40px, 6vw, 72px) 0 0; padding: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.band h2 { font-family: var(--display); font-weight: 700; font-size: 1.875rem; margin: 0 0 6px; }
.band p { margin: 0; color: var(--ink-2); }
.band form { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-pending { flex-basis: 100%; margin: 6px 0 0; font-size: 0.875rem; color: var(--ink); }
.band input[type="email"] { flex: 1 1 220px; min-height: 44px; padding: 8px 12px; font: inherit; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 0; }

/* ---------- article ---------- */
.keypanel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 1.6em 0 2em; }
@media (min-width: 720px) { .keypanel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.keypanel .illo-frame { padding: 7%; }
.keypanel .figures { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 20px 0 20px 28px; }
@media (max-width: 719px) { .keypanel .figures { padding-left: 0; } }
.figure { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule-2); }
.figure:first-child { border-top: 0; }
.figure .v { font-family: var(--mono); font-weight: 600; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.figure .v.key { background: var(--mark); color: var(--mark-ink); padding: 0 0.18em; }
.figure .w { font-size: 0.9375rem; color: var(--ink-2); }
.keypanel .cap { font-size: 0.8125rem; color: var(--ink-2); padding-top: 10px; }

.yt-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; text-decoration: none; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.yt-link .yt { width: 28px; height: 20px; flex: none; }
.yt-link .dur { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--ink-2); padding: 2px 6px; border: 1px solid var(--rule-2); }
.yt-link:hover { color: var(--ink); }
.yt-link:hover .t { text-decoration: underline; text-decoration-color: #FF0000; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.yt-link.watch { margin: -0.6em 0 1.6em; }

.table-scroll { overflow-x: auto; margin: 0.6em 0 1.6em; }
table.ledger { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
table.ledger caption { text-align: left; font-family: var(--body); font-size: 0.8125rem; color: var(--ink-2); padding-bottom: 8px; }
table.ledger th { font-family: var(--body); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); text-align: right; padding: 0 8px 8px; border-bottom: 2px solid var(--rule); white-space: normal; line-height: 1.25; vertical-align: bottom; }
table.ledger td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
table.ledger th:first-child, table.ledger td:first-child { text-align: left; padding-left: 0; }
table.ledger th:last-child, table.ledger td:last-child { padding-right: 0; }
table.ledger td.txt { text-align: left; font-family: var(--body); white-space: normal; }
table.ledger td.cr { padding-left: 28px; }
table.ledger tr.total td { border-bottom: 4px double var(--rule); font-weight: 600; padding-bottom: 12px; }
table.ledger .key { font-weight: 600; background: var(--mark); color: var(--mark-ink); padding-left: 6px; padding-right: 6px; }

.chart { margin: 1.2em 0 1.6em; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--rule-2); stroke-width: 1; }
.chart .axis { stroke: var(--rule); stroke-width: 1.5; }
.chart .bar { fill: var(--sec); }
.chart .lbl { font-family: var(--mono); font-size: 13px; fill: var(--ink); }
.chart .lbl.key { fill: var(--mark-ink); }
.chart .keybox { fill: var(--mark); }
.chart .cat { font-family: var(--body); font-size: 12px; fill: var(--ink-2); }
.chart .tick { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); }
.chart figcaption { font-size: 0.8125rem; color: var(--ink-2); margin-top: 8px; }

.taccounts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 1em 0 1.6em; }
@media (min-width: 560px) { .taccounts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.taccount { display: flex; flex-direction: column; }
.taccount .t { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding-bottom: 8px; border-bottom: 3px solid var(--rule); }
.taccount .cols { display: grid; grid-template-columns: 1fr 1fr; }
.taccount .cols > div { padding: 10px 12px 14px; font-family: var(--mono); font-size: 0.9375rem; font-variant-numeric: tabular-nums; min-height: 72px; }
.taccount .cols > div:first-child { border-right: 3px solid var(--rule); text-align: left; }
.taccount .cols > div:last-child { text-align: right; }
.taccount .side { display: block; font-family: var(--body); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.taccount .amt.key { background: var(--mark); color: var(--mark-ink); padding: 0 0.2em; font-weight: 600; }

.callout { border-top: 4px double var(--rule); padding-top: 14px; margin: 2.2em 0; }
.callout .label { color: var(--sec); }
.callout ol li { margin-bottom: 0.6em; }

.calc { margin: 1.2em 0 2em; background: var(--paper); border: 1px solid var(--sec); }
.calc-head { display: flex; align-items: center; gap: 14px; background: var(--sec); color: var(--paper); padding: 14px 20px; }
.calc-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--mark); color: var(--mark-ink); }
.calc-ico svg { width: 22px; height: 22px; }
.calc-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1.15; }
.calc-sub { margin: 2px 0 0; font-size: 0.8125rem; opacity: 0.85; }
.calc-in { background: var(--sec-tint); padding: 18px 20px 20px; }
.calc .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
@media (min-width: 640px) { .calc .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.calc label { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sec); margin-bottom: 6px; }
.calc input, .calc select { width: 100%; min-height: 44px; padding: 8px 10px; font: inherit; font-family: var(--mono); font-size: 1rem; background: var(--paper); color: var(--ink); border: 1px solid var(--rule-2); border-bottom: 2px solid var(--sec); border-radius: 0; }
.calc input:focus, .calc select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 0 0 3px var(--mark); }
.calc .err { color: var(--tool); font-size: 0.875rem; margin: 12px 0 0; }
.results { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.res { padding: 16px 20px 18px; border-top: 1px solid var(--rule-2); }
@media (min-width: 640px) { .res { border-top: 0; } .res + .res { border-left: 1px solid var(--rule-2); } }
.res p { margin: 0; }
.res .rl { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.res .rv { font-family: var(--mono); font-weight: 600; font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.res .rs { font-size: 0.8125rem; color: var(--ink-2); }
.res.key { background: var(--mark); color: var(--mark-ink); }
.res.key .rl, .res.key .rs { color: var(--mark-ink); }
.res.key .rs { opacity: 0.7; }
.calc .sched { max-height: 380px; overflow: auto; margin: 0; border-top: 1px solid var(--rule-2); }
table.ledger.calc-table { font-size: 0.8125rem; }
table.ledger.calc-table thead { position: sticky; top: 0; z-index: 2; }
table.ledger.calc-table thead th { background: var(--sec-tint); color: var(--sec); border-bottom: 2px solid var(--sec); padding: 8px 8px 8px; white-space: nowrap; }
table.ledger.calc-table thead tr.grp th { border-bottom: 1px solid var(--sec); padding-top: 10px; padding-bottom: 6px; text-align: center; color: var(--ink); letter-spacing: 0.06em; }
table.ledger.calc-table thead tr.grp th + th { border-left: 1px solid var(--rule-2); }
table.ledger.calc-table th:first-child, table.ledger.calc-table td:first-child { padding-left: 20px; }
table.ledger.calc-table th:last-child, table.ledger.calc-table td:last-child { padding-right: 20px; }
table.ledger.calc-table td:nth-child(6), table.ledger.calc-table th:nth-child(6), table.ledger.calc-table td:nth-child(7) { border-left: 1px solid var(--rule-2); }
table.ledger.calc-table thead tr:not(.grp) th:nth-child(6), table.ledger.calc-table thead tr:not(.grp) th:nth-child(7) { border-left: 1px solid var(--rule-2); }
table.ledger.calc-table tbody tr:nth-child(even) td { background: var(--paper-2); }
table.ledger.calc-table tbody tr:hover td { background: var(--tint); }
table.ledger.calc-table td.int { color: var(--sec); }
table.ledger.calc-table td.bal { position: relative; }
table.ledger.calc-table td.bal .db { position: absolute; left: 8px; bottom: 4px; height: 3px; max-width: calc(100% - 16px); background: var(--sec); opacity: 0.6; }
table.ledger.calc-table td.bal .n { position: relative; }
table.ledger.calc-table tbody tr.total td { background: var(--paper); }
.calc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 20px; border-top: 1px solid var(--rule-2); }
.calc-foot small { flex: 1 1 260px; }
.calc-foot .cta { min-height: 40px; padding: 8px 14px; }

.faq details { border-top: 1px solid var(--rule-2); }
.faq details:last-child { border-bottom: 1px solid var(--rule-2); }
.faq summary { font-weight: 700; padding: 14px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-2); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 14px; }

.download { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--tint); padding: 22px 24px; margin: 2.2em 0 0; }
.download .t { font-weight: 700; }
.download .s { font-size: 0.9375rem; color: var(--ink-2); }

.author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; border-top: 4px double var(--rule); padding-top: 18px; margin-top: 3em; }
.author .photo { width: 72px; height: 72px; background: var(--paper-2); display: grid; place-items: center; }
.author .photo img { width: 72px; height: 72px; object-fit: cover; }
.author .name { font-weight: 700; margin: 0; }
.author p { font-size: 0.9375rem; margin: 4px 0 0; }

.related { list-style: none; padding: 0; margin: 0; }
.related li { border-top: 1px solid var(--rule-2); margin: 0; }
.related a { display: block; padding: 12px 0; text-decoration: none; }
.related a b { display: block; }
.related a span { font-size: 0.875rem; color: var(--ink-2); }
.related a:hover b { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 4px; }
.changelog { font-size: 0.875rem; color: var(--ink-2); border-top: 1px solid var(--rule-2); padding-top: 10px; margin-top: 2em; }

/* ---------- section pages ---------- */
.section-head { padding-bottom: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { border-bottom: 1px solid var(--rule-2); margin: 0; }
.list a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 0; text-decoration: none; }
@media (min-width: 640px) { .list a { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; } }
.list .thumb { aspect-ratio: 16 / 10; background: var(--sec-tint); display: flex; align-items: center; justify-content: center; padding: 10% 12%; }
.list .thumb.planned { color: var(--sec); }
.list .thumb.planned .ico { width: 44px; height: 44px; }
.list-planned { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 0; }
@media (min-width: 640px) { .list-planned { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; } }
.list .eyebrow { margin-bottom: 6px; font-size: 0.75rem; }
.list b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.15; }
.list span.s { display: block; margin-top: 8px; font-size: 1rem; color: var(--ink-2); }
.list a:hover b { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 5px; text-underline-offset: 0.12em; }
.list a:hover { color: inherit; }
.plan ol { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 9px 0; margin: 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; font-size: 0.9375rem; border-top: 1px solid var(--rule-2); }
.plan li:first-child { border-top: 0; }
.plan .when { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); padding-top: 3px; }

/* ---------- prose pages ---------- */
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.12; margin: 1.8em 0 0.5em; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.5em 0 0.4em; }
.prose .meta { font-size: 0.875rem; color: var(--ink-2); }

/* ---------- footer ---------- */
.footer { border-top: 4px double var(--rule); margin-top: clamp(56px, 8vw, 96px); padding: 32px 0 40px; font-size: 0.9375rem; }
.footer .cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 768px) { .footer .cols { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; } }
.footer .fm { font-family: var(--display); font-weight: 900; font-size: 1.75rem; text-decoration: none; }
.footer .fm:hover { color: inherit; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 0 0 8px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; }
.footer .label { margin-bottom: 10px; }
.footer .fine { border-top: 1px solid var(--rule-2); margin-top: 24px; padding-top: 16px; font-size: 0.8125rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: no-preference) { .nav a, .cta, .card b, .list b, .section b { transition: text-decoration-color 120ms ease, background-color 120ms ease; } }
@media print { .navbar, .rail, .band, .watch, .cta, .calc { display: none !important; } body { font-size: 11pt; } }

/* ---- video embed (added 19 Oct 2026) ---- */
.video-embed { margin: 0 0 2em; }
.video-embed .frame { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); border: 1px solid var(--rule); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed figcaption { font-size: 0.8125rem; color: var(--ink-2); margin-top: 8px; }
.video-embed figcaption a { color: var(--ink); }

/* ---- journal entries page ---- */
.patterns li { margin-bottom: 0.5em; }
h3.h.pattern { display: flex; align-items: center; gap: 12px; font-size: 1.375rem; margin-top: 2.4em; }
h3.h.pattern .chip { display: inline-block; font-family: var(--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper); background: var(--sec); padding: 4px 10px; }
.pattern-desc { color: var(--ink-2); margin-top: 0; }
.entry { border-top: 1px solid var(--rule); padding-top: 14px; margin: 1.4em 0 1.8em; }
.entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 6px; font-size: 0.9375rem; }
.entry-head .num { font-family: var(--mono); font-weight: 700; background: var(--mark); color: var(--mark-ink); padding: 0 8px; min-width: 2.4em; text-align: center; }
.entry-head .date { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2); }
.entry-head .memo { flex: 1 1 100%; font-weight: 700; }
.entry .table-scroll { margin: 0.4em 0 0.8em; }
table.ledger.entry-table { font-size: 0.8125rem; }
table.ledger.entry-table th { padding-bottom: 6px; }
table.ledger.entry-table td { padding: 7px 8px; }
.entry .why, .entry .trap, .practice .why { font-size: 0.9375rem; margin: 0 0 0.5em; }
.entry .trap b { color: var(--tool); }
table.ledger.compare td.txt a { color: var(--ink); }
.practice-set details summary { font-weight: 600; justify-content: flex-start; align-items: flex-start; }
.practice-set details summary .num { flex: none; font-family: var(--mono); font-weight: 700; background: var(--mark); color: var(--mark-ink); padding: 0 8px; line-height: 1.6; }
.practice-set details summary .q { flex: 1 1 auto; }
.practice-set details .table-scroll { margin: 0.2em 0 0.6em; }
.toc ol ol { padding-left: 14px; }
.toc ol ol a { font-size: 0.875rem; padding: 4px 0; }

.sources { font-size: 0.875rem; color: var(--ink-2); margin-top: 2em; }

/* narrow phones: the folio date shortens so the clock and the Sections button fit on one line */
@media (max-width: 520px) {
  .folio .date .d-long { display: none; }
  .folio .date .d-short { display: inline; }
}
@media (max-width: 360px) {
  .folio { gap: 10px; }
  .folio-tools { gap: 10px; }
  .folio .date, .clock { letter-spacing: 0; }
}

/* ---------- debits and credits page ---------- */
.rulecard { display: grid; grid-template-columns: 1fr 1fr; border-top: 4px solid var(--ink); margin: 1.4em 0 1.6em; max-width: var(--measure); }
.rulecard .side { padding: 14px 18px 16px 0; }
.rulecard .side + .side { border-left: 4px solid var(--ink); padding: 14px 0 16px 18px; text-align: right; }
.rulecard .h { margin: 0 0 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.rulecard .h mark, .rulecard .h .tag { font-size: 0.75rem; letter-spacing: 0.06em; margin-left: 4px; }
.rulecard .h .tag { font-family: var(--mono); font-weight: 600; border: 1px solid var(--rule-2); padding: 0 0.3em; color: var(--ink); }
.rulecard ul { list-style: none; margin: 0; padding: 0; }
.rulecard li { font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1.35; margin: 0; }
table.ledger.types td.txt { vertical-align: top; }
table.ledger.types td:nth-child(5) { min-width: 16em; font-size: 0.8125rem; color: var(--ink-2); }
table.ledger.dealer td.txt { white-space: normal; }
.taccts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 36px; margin: 0.8em 0 1.6em; max-width: var(--measure); }
table.tacct { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.875rem; font-variant-numeric: tabular-nums; table-layout: fixed; }
table.tacct caption { font-family: var(--body); font-weight: 700; font-size: 0.9375rem; text-align: center; padding-bottom: 6px; }
table.tacct th { font-family: var(--body); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 0 10px 6px; border-bottom: 3px solid var(--ink); }
table.tacct th:first-child { text-align: left; padding-left: 0; }
table.tacct th:last-child { text-align: right; padding-right: 0; }
table.tacct td { padding: 8px 10px 10px; vertical-align: top; height: 3.4em; }
table.tacct td:first-child { border-right: 3px solid var(--ink); text-align: left; padding-left: 0; }
table.tacct td:last-child { text-align: right; padding-right: 0; }
table.tacct .d { display: block; font-family: var(--body); font-size: 0.75rem; color: var(--ink-2); line-height: 1.3; margin-bottom: 2px; }
table.tacct .n { font-weight: 600; background: var(--mark); color: var(--mark-ink); padding: 0 4px; }
@media (max-width: 520px) {
  .rulecard li { font-size: 1.125rem; }
  .rulecard .side { padding-right: 12px; }
  .rulecard .side + .side { padding-left: 12px; }
}
table.ledger.compare th { text-align: left; }
table.ledger.dealer th:nth-child(2), table.ledger.dealer th:nth-child(4) { text-align: right; }
table.ledger.types td:first-child { white-space: nowrap; }
table.ledger.bankbooks { min-width: 600px; }
table.ledger.bankbooks .jl { display: block; white-space: nowrap; }
table.ledger.bankbooks .jl.cr { padding-left: 1.4em; }
table.ledger.bankbooks td { vertical-align: top; }
table.ledger.bankbooks td:first-child { min-width: 10em; }

/* ---------- balance sheet page ---------- */
.equation { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-family: var(--mono); font-weight: 600; font-size: 1.0625rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; margin: 1.2em 0 1.4em; max-width: var(--measure); }
.equation span:nth-child(odd) { background: var(--tint); padding: 2px 8px; }
table.ledger.statement tr.head td { font-family: var(--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sec); padding-top: 22px; border-bottom: 2px solid var(--ink); }
table.ledger.statement tr.sub-head td { font-weight: 700; padding-top: 14px; border-bottom: 1px solid var(--rule-2); }
table.ledger.statement td.ind { padding-left: 18px; }
table.ledger.statement tr.sub td { font-weight: 600; border-top: 1px solid var(--ink); }
table.ledger.statement tr.total td { padding-top: 12px; }
table.ledger.sources-tbl td:nth-child(3) { font-size: 0.8125rem; color: var(--ink-2); min-width: 14em; }
table.ledger.sources-tbl td:first-child { min-width: 9em; }

/* ---------- trial balance page ---------- */
table.ledger.tb td.num { color: var(--ink-2); font-size: 0.75rem; width: 2.4em; padding-left: 0; }
table.ledger.tb td.txt { white-space: normal; }
table.ledger.tb th:first-child { padding-left: 0; }
.entry .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; }
.entry .pair .table-scroll { margin: 0.2em 0 0.6em; }
h3.h.err { font-size: 1.25rem; margin: 0 0 0.4em; }
h3.h.err .trad { font-family: var(--body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-left: 6px; white-space: nowrap; }

/* ---------- income statement page ---------- */
table.ledger.income td.pct { font-size: 0.8125rem; color: var(--ink-2); width: 7em; }
table.ledger.income tr.neg td { color: var(--ink-2); }
table.ledger.income tr.total td.pct, table.ledger.income tr.sub td.pct { color: var(--ink); font-weight: 600; }
figure.chart { margin: 1.4em 0 1.8em; max-width: var(--measure); }
figure.chart figcaption { font-size: 0.8125rem; color: var(--ink-2); margin-top: 8px; }
.waterfall { width: 100%; height: auto; display: block; }
.waterfall .bar { stroke: var(--ink); stroke-width: 1.5; }
.waterfall .bar.rev { fill: var(--sec); fill-opacity: 0.25; }
.waterfall .bar.down { fill: var(--paper-2); }
.waterfall .bar.net { fill: var(--mark); }
.waterfall .conn { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.waterfall .val { font-family: var(--mono); font-size: 13px; font-weight: 600; fill: var(--ink); }
.waterfall .lab { font-family: var(--body); font-size: 11px; font-weight: 600; fill: var(--ink-2); letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 520px) { .waterfall .val { font-size: 17px; } .waterfall .lab { font-size: 14px; } }

/* ---------- lease classification page ---------- */
table.ledger.tests td:nth-child(2) { white-space: nowrap; }
table.ledger.tests b.yes { color: var(--sec); }
table.ledger.tests b.no { color: var(--ink-2); font-weight: 600; }
table.ledger.tests b.na { color: var(--ink-2); font-weight: 400; font-style: italic; }
table.ledger.tests tr.total td { border-bottom: 4px double var(--rule); }
.tests-list li { margin-bottom: 0.7em; }

/* ---------- T-accounts page ---------- */
.taccts.one { grid-template-columns: minmax(0, 420px); }
table.tacct tr.tot td { border-top: 1px solid var(--ink); padding-top: 8px; height: auto; }
table.tacct tr.tot .t { font-weight: 600; }
table.tacct tr.balrow td { height: auto; padding-top: 4px; padding-bottom: 6px; }
table.tacct .n.bal { background: var(--mark); }
.practice-set ul.plain { margin: 0.4em 0 0.8em; padding-left: 1.2em; font-size: 0.9375rem; }
.practice-set ul.plain li { margin-bottom: 0.25em; }
.practice-set .taccts { margin: 0.4em 0 0.8em; }
.download .dl-pair { display: inline-flex; flex-wrap: wrap; gap: 10px; }

/* ---------- chart of accounts page ---------- */
table.ledger.coa td.num { width: 3.2em; padding-left: 0; font-weight: 600; }
table.ledger.coa td.nb { width: 3.5em; }
table.ledger.coa td.what { font-size: 0.8125rem; color: var(--ink-2); min-width: 16em; }
table.ledger.coa tr.range td { font-family: var(--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sec); padding-top: 18px; border-bottom: 2px solid var(--ink); }
table.ledger.coa tr.range td.num { font-family: var(--mono); letter-spacing: 0; }

/* ---------- accounting equation page ---------- */
.equation.long { font-size: 0.9375rem; gap: 4px 8px; }
.equation.long span:nth-child(odd) { padding: 2px 6px; }
table.ledger.effects td.eff { font-family: var(--mono); font-weight: 600; white-space: nowrap; text-align: right; }
table.ledger.effects th:nth-child(2), table.ledger.effects th:nth-child(3), table.ledger.effects th:nth-child(4) { text-align: right; }
table.ledger.effects td.why { font-size: 0.8125rem; color: var(--ink-2); min-width: 16em; }
.practice-set .eq-answer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-family: var(--mono); font-weight: 600; font-size: 0.9375rem; margin: 0.4em 0 0.6em; }
.practice-set .eq-answer span:nth-child(odd) { background: var(--tint); padding: 2px 8px; }
.figure .v.small { font-size: 1.125rem; }
table.ledger.effects td:first-child { min-width: 11em; }

/* ---------- adjusting entries page ---------- */
table.ledger.compare td.eff { font-family: var(--mono); font-weight: 600; white-space: nowrap; text-align: right; color: var(--ink-2); }
table.ledger.bridge tr.total td { border-top: 2px solid var(--ink); font-weight: 700; }
table.ledger.bridge tr.total td.eff { color: var(--ink); }
.practice .no-entry { margin: 0.3em 0 0.5em; font-size: 0.9375rem; background: var(--tint); display: inline-block; padding: 4px 10px; }
.illo text.cash { font-size: 7px; }

/* ---------- MACRS calculator page ---------- */
.calc h2.calc-title { color: var(--paper); margin: 0; font-size: 1.375rem; line-height: 1.15; scroll-margin-top: 80px; }
.calc .mc-note { margin: 12px 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.mchart { padding: 14px 20px 12px; border-top: 1px solid var(--rule-2); background: var(--paper); }
.mchart svg { width: 100%; height: auto; display: block; }
.mchart .gl { stroke: var(--rule-2); stroke-width: 1; }
.mchart .axis { stroke: var(--ink); stroke-width: 1.5; }
.mchart .bar { fill: var(--sec); }
.mchart .bar.hi { fill: var(--mark); stroke: var(--ink); stroke-width: 1.5; }
.mchart .book { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; }
.mchart text { font-family: var(--mono); fill: var(--ink-2); }
.mchart text.lbl { font-size: 1.18em; font-weight: 700; fill: var(--ink); }
#macrs-calc .sched { max-height: 560px; }
.mchart .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8125rem; color: var(--ink-2); margin: 8px 0 0; }
.mchart .legend span { display: inline-flex; align-items: center; gap: 6px; }
.mchart .sw { display: inline-block; width: 14px; height: 10px; }
.mchart .sw.bar { background: var(--sec); }
.mchart .sw.hi { background: var(--mark); box-shadow: inset 0 0 0 1.5px var(--ink); }
.mchart .sw.book { height: 0; border-top: 2px dashed var(--ink); width: 18px; }
#macrs-calc.stale .results, #macrs-calc.stale .mchart, #macrs-calc.stale .sched { opacity: 0.35; }

/* ---------- cash flow statement page ---------- */
table.ledger.bs2 tr.sub td, table.ledger.cfs tr.sub td { font-family: var(--body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sec); padding-top: 18px; border-bottom: 2px solid var(--ink); }
table.ledger td.small { font-size: 0.8125rem; color: var(--ink-2); }
table.ledger.bs2 tr.hl td { background: var(--tint); font-weight: 600; }
table.ledger.cfs.full { max-width: 640px; }

/* ---------- prepaid expenses page ---------- */
table.ledger.months tr.hl td { background: var(--tint); }

/* ---------- general ledger page ---------- */
table.ledger.glpage td.ref { font-family: var(--mono); font-size: 0.8125rem; color: var(--sec); white-space: nowrap; }
table.ledger.glpage.mini { margin-top: 10px; }

/* ---------- Section 179 vs bonus page ---------- */
.column p.checked { font-size: 0.875rem; color: var(--ink-2); border-left: 3px solid var(--sec); background: var(--tint); padding: 8px 12px; margin: 14px 0 0; }
table.ledger.compare.three td.txt { min-width: 9em; }

/* bank reconciliation: two columns side by side, numbered steps */
.recon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin: 1em 0 1.2em; max-width: var(--measure); align-items: start; }
.recon table.ledger { margin: 0; width: 100%; }
.recon table.ledger caption { color: var(--sec); font-weight: 700; }
.column ol.steps { max-width: var(--measure); padding-left: 1.4em; margin: 0.8em 0 1.4em; }
.column ol.steps li { margin: 0 0 0.55em; padding-left: 0.2em; }
.column ol.steps li::marker { font-family: var(--mono); font-weight: 700; color: var(--sec); }
@media (max-width: 640px) { .recon { grid-template-columns: minmax(0, 1fr); } }

/* ---------- depreciation calculator page ---------- */
.calc .grid.uop { margin-top: 14px; }
.calc .grid .wide { grid-column: 1 / -1; }
.dc-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); }
@media (min-width: 640px) { .dc-cmp { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dc-cmp a { display: block; padding: 12px 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-2); border-right: 1px solid var(--rule-2); min-height: 44px; }
.dc-cmp a:hover { background: var(--tint); }
.dc-cmp a.on { background: var(--sec-tint); box-shadow: inset 0 -3px 0 var(--sec); }
.dc-cmp .n { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.dc-cmp .v { display: block; font-family: var(--mono); font-weight: 600; font-size: 1.125rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
table.ledger .tag { font-family: var(--mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; border: 1px solid var(--sec); color: var(--sec); padding: 0 0.35em; margin-left: 6px; vertical-align: 1px; }
#dep-calc .sched { max-height: 560px; }
#dep-calc.stale .results, #dep-calc.stale .mchart, #dep-calc.stale .sched, #dep-calc.stale .dc-cmp { opacity: 0.35; }

/* ---------- accrual vs cash page ---------- */
table.ledger td.txt span.why { display: block; font-family: var(--body); font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); margin-top: 3px; min-width: 18em; }

/* ---------- adjusted trial balance page ---------- */
table.ledger.worksheet tr.hl td { background: var(--tint); }
table.ledger span.ref { font-family: var(--mono); font-size: 0.6875rem; font-weight: 600; color: var(--sec); margin-left: 3px; }
details.copy { max-width: var(--measure); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); margin: 0.2em 0 1.6em; }
details.copy summary { cursor: pointer; font-weight: 600; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
details.copy pre { overflow-x: auto; font-family: var(--mono); font-size: 0.75rem; line-height: 1.5; background: var(--tint); padding: 12px 14px; margin: 0 0 12px; tab-size: 16; white-space: pre; }
table.ledger.worksheet { font-size: 0.8125rem; }
table.ledger.worksheet td { padding: 8px 6px; }
table.ledger.worksheet td.txt { min-width: 9.5em; }
table.ledger.worksheet thead tr.grp th { border-bottom: 1px solid var(--rule-2); text-align: center; padding-bottom: 6px; }
table.ledger.worksheet thead tr.grp th[rowspan] { text-align: left; border-bottom: 2px solid var(--rule); }
table.ledger.worksheet thead th { padding-left: 6px; padding-right: 6px; }
table.ledger.worksheet thead tr:not(.grp) th { text-align: right; }

/* ---------- financial ratios cheat sheet ---------- */
table.ledger tr.fam td { font-family: var(--body); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sec); padding-top: 18px; padding-bottom: 6px; border-bottom: 2px solid var(--rule); }
table.ledger.ratios tr.hl td { background: var(--tint); }
table.ledger.ratios td.txt { min-width: 11em; }
table.ledger.decide tr.hl td { background: var(--tint); }

/* ---------- quoted definitions (incremental borrowing rate page) ---------- */
.column blockquote { max-width: var(--measure); margin: 0.8em 0 1.4em; padding: 12px 18px; border-left: 4px solid var(--sec); background: var(--sec-tint); }
.column blockquote p { margin: 0; font-size: 1.0625rem; font-style: italic; line-height: 1.55; }
@media (max-width: 640px) {
  table.ledger.ratios th:nth-child(3), table.ledger.ratios td:nth-child(3) { display: none; }
  table.ledger.ratios tr.fam td { display: table-cell; }
  table.ledger.ratios td.txt { min-width: 0; }
}
