/* FFC toolkit design system — screen + print from one stylesheet */

:root {
  --lime: #e2fa4f;
  --indigo: #4c60bb;
  --coral: #f26b52;        /* fills, rules and marks ONLY - 3.0:1, fails for text */
  --coral-text: #b84329;   /* the text-safe coral - 5.42:1 on white, 4.69:1 on paper */
  --paper: #eceff1;
  --ink: #14161a;
  --muted: #5f6773;        /* 5.72:1 white, 4.95:1 paper, 4.90:1 on lime */
  --rule: #d6dade;

  --display: "Archivo Condensed", "Archivo", "Helvetica Neue", sans-serif;
  --body: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --ui: "Inter", -apple-system, "Segoe UI", sans-serif;

  --measure: 68ch;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 2.5rem; }
p, li { max-width: var(--measure); }

/* ---------- headings ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  break-after: avoid;
  page-break-after: avoid;
}

h1 { font-size: 3.4rem; margin: 0 0 1rem; }
h2 { font-size: 2.1rem; margin: 3rem 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }

.eyebrow {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* ---------- section divider ---------- */

.divider {
  border-top: 3px solid var(--indigo);
  padding-top: 2rem;
  margin-top: 4rem;
  break-before: page;
  page-break-before: always;
}
.divider .numeral {
  font-family: var(--display);
  font-size: 6rem;
  line-height: 1;
  color: var(--indigo);
  opacity: 0.28;
}

/* ---------- stat blocks ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 0.75rem;
  break-inside: avoid;
  page-break-inside: avoid;
}
.stat .value {
  font-family: var(--ui);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--indigo);
  line-height: 1.1;
}
.stat .label {
  font-family: var(--ui);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.source-line {
  font-family: var(--ui);
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ---------- snapshot table ---------- */

table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--ui); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
tbody tr:nth-child(even) { background: var(--paper); }
table { break-inside: avoid; page-break-inside: avoid; }

/* ---------- callouts ---------- */

.lessons { list-style: none; padding: 0; }
.lessons li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.9rem;
  break-inside: avoid;
}
.lessons li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 0.55rem; height: 0.55rem;
  background: var(--coral);
  border-radius: 50%;
}
.lessons strong { font-family: var(--ui); font-size: 0.95rem; color: var(--coral-text); }

.pullquote {
  border-top: 2px solid var(--indigo);
  padding-top: 1rem;
  margin: 2rem 0;
  font-size: 1.3rem;
  line-height: 1.45;
  break-inside: avoid;
}
.pullquote cite {
  display: block;
  font-family: var(--ui);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

mark { background: var(--lime); padding: 0 0.15em; }

/* ---------- placeholder ---------- */

.placeholder {
  border: 2px dashed var(--muted);
  background: repeating-linear-gradient(45deg, #fafafa, #fafafa 10px, #f2f2f2 10px, #f2f2f2 20px);
  color: var(--muted);
  font-family: var(--ui);
  padding: 2rem;
  margin: 1.5rem 0;
  break-inside: avoid;
}
.placeholder .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--muted);
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.75rem;
}

/* ---------- worksheet ---------- */

.worksheet li {
  list-style: none;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}
.worksheet li:not(:has(input))::before {
  content: "";
  position: absolute; left: 0; top: 0.35em;
  width: 1rem; height: 1rem;
  border: 1.5px solid var(--ink);
}

/* ---------- print ---------- */

@page {
  size: Letter;
  margin: 0.9in;
}

@media print {
  body { font-size: 11pt; line-height: 1.55; }
  .wrap { max-width: none; padding: 0; }
  h1 { font-size: 30pt; }
  h2 { font-size: 18pt; }
  h3 { font-size: 12.5pt; }
  .screen-only, nav.sticky { display: none !important; }
  a { color: var(--ink); text-decoration: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}


/* ---------- accessibility ---------- */

/* Skip link: first focusable element, visible on focus. */
.skip-link {
  position: absolute;
  left: -9999px;
  font-family: var(--ui);
  font-size: 0.9rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Visible focus everywhere. Never remove this. */
:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}

/* Visually hidden but available to screen readers - for text equivalents of
   charts and timelines, and for context on short link text. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Real checkboxes in the worksheet, sized for touch and print. */
.worksheet input[type="checkbox"] {
  position: absolute;
  left: 0; top: 0.3em;
  width: 1rem; height: 1rem;
  accent-color: var(--indigo);
}
.worksheet label { display: inline-block; }

/* The PDF download link states format and size in its text; this only styles it. */
.download-pdf {
  display: inline-block;
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--lime);
  padding: 0.7rem 1.1rem;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- toolkit 01 components ---------- */

.cover { padding: 4rem 0 3rem; border-bottom: 4px solid var(--indigo); }
.cover h1 { font-size: 4rem; max-width: 20ch; }
.subtitle { font-family: var(--ui); font-size: 1.05rem; color: var(--muted); max-width: 52ch; }
.edition { font-family: var(--ui); font-size: 0.8rem; letter-spacing: 0.1em;
           text-transform: uppercase; color: var(--ink); margin-top: 2rem; }
.colophon { font-family: var(--ui); font-size: 0.8rem; color: var(--muted); }

.note { border-left: 3px solid var(--indigo); background: var(--paper);
        padding: 1rem 1.25rem; margin: 1.5rem 0; break-inside: avoid; }
.note h3 { margin-top: 0; font-size: 1rem; }
.note p { font-size: 0.95rem; max-width: none; }

.snapshot th[scope="row"] { width: 34%; font-family: var(--ui); font-size: 0.74rem;
        letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.comparison th[scope="row"] { width: 22%; }
.comparison td { font-size: 0.9rem; }

.cross-ref { font-family: var(--ui); font-size: 0.85rem; color: var(--muted);
             border-left: 3px solid var(--coral); padding-left: 0.9rem; margin: 1rem 0; }

.flag { font-family: var(--ui); font-size: 0.78rem; color: var(--coral-text); }

.carry { padding-left: 1.2rem; }
.carry li { margin-bottom: 2rem; break-inside: avoid; }
.carry p { font-family: var(--ui); font-weight: 600; margin-bottom: 0.6rem; max-width: 60ch; }
.rule-lines { border-bottom: 1px solid var(--rule); height: 4.5rem; }
.questions-page .subtitle { margin-bottom: 2rem; }

.placeholder ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.placeholder li { max-width: none; margin-bottom: 0.35rem; }

@media print {
  .cover { padding-top: 1rem; break-after: page; }
  .cover h1 { font-size: 34pt; }
  .rule-lines { height: 3.2rem; }
  .questions-page { break-before: page; }
}

/* ---------- pull-out boxes (warm neutral, Anthropic-guide style) ---------- */
/* --sand passes AA with ink 16.05:1, muted 5.06:1, indigo 5.03:1, coral-text 4.80:1 */

:root { --sand: #f3f1ec; --sand-edge: #e2ddd3; }

.note,
.callout,
.lessons-box {
  background: var(--sand);
  border: 1px solid var(--sand-edge);
  border-left: none;
  border-radius: 3px;
  padding: 1.4rem 1.6rem;
  margin: 1.75rem 0;
  break-inside: avoid;
  page-break-inside: avoid;
}

.note h3,
.callout h3,
.lessons-box h3 {
  margin-top: 0;
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.note p, .callout p { font-size: 0.95rem; max-width: none; }
.lessons-box .lessons { margin-bottom: 0; }
.lessons-box .lessons li:last-child { margin-bottom: 0; }

/* Stat rows sit on the same tint so the data reads as one unit. */
.stats {
  background: var(--sand);
  border: 1px solid var(--sand-edge);
  border-radius: 3px;
  padding: 1.4rem 1.6rem;
  list-style: none;
}
.stats + .source-line { margin-top: -0.4rem; }

.snapshot { background: var(--sand); border: 1px solid var(--sand-edge); }
.snapshot tbody tr:nth-child(even) { background: transparent; }
.snapshot th, .snapshot td { border-bottom: 1px solid var(--sand-edge); }
.snapshot tr:last-child th, .snapshot tr:last-child td { border-bottom: none; }

@media print {
  .note, .callout, .lessons-box, .stats, .snapshot {
    background: var(--sand) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ---------- relaxed section breaks ---------- */
/* Sections no longer force a page break each. Short sections share a page,
   separated by a rule. Only the major anchors start fresh. */

.divider {
  break-before: auto;
  page-break-before: auto;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 2px solid var(--indigo);
}

/* The opener must not strand at the foot of a page. */
.divider > .numeral,
.divider > .eyebrow,
.divider > h2 {
  break-after: avoid;
  page-break-after: avoid;
}
.divider > .numeral {
  font-size: 3.2rem;
  margin: 0 0 0.1rem;
}

/* Anchors that still deserve a clean opening page. */
#scfd,
#doors-open,
#questions {
  break-before: page;
  page-break-before: always;
}

@media print {
  .divider { margin-top: 2.2rem; padding-top: 1.1rem; }
  .divider > .numeral { font-size: 2.6rem; }
  /* Keep a section opener with at least a few lines of its own text. */
  .divider > h2 + p { orphans: 3; widows: 3; }
  p { orphans: 2; widows: 2; }
}

/* ---------- credits page ---------- */
.credits-page { break-after: page; }
.credits-page p { font-size: 0.95rem; max-width: 60ch; }
.credits-page h3 {
  font-family: var(--ui); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-top: 1.8rem;
}
.credits-page em { color: var(--muted); font-style: normal;
  font-family: var(--ui); font-size: 0.8rem; letter-spacing: 0.06em; }
#scfd, #doors-open, #assessing { break-before: page; page-break-before: always; }

/* ============ design pass ============ */

/* Wider text column: trim the side margins so lines carry more words. */
@page { size: Letter; margin: 0.85in 0.7in 0.85in 0.8in; }
p, li { max-width: 78ch; }

/* Sections open on their own page again — easier to navigate, cleaner breaks. */
.divider {
  break-before: page;
  page-break-before: always;
  margin-top: 0;
  padding-top: 0.5rem;
}
.credits-page { break-after: page; }

/* ---- chart headers: bold, left-aligned, and inside the chart as a top band ---- */
table { border: 1px solid var(--sand-edge); border-radius: 6px; border-collapse: separate;
        border-spacing: 0; overflow: hidden; }
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--sand-edge);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 0.7rem 0.9rem;
  margin: 0;
}
caption + thead th, caption + tbody th, caption + tbody td { border-top: 1px solid var(--sand-edge); }
table:has(caption) { border-radius: 0 0 6px 6px; border-top: none; }

thead th {
  background: #e7e3da;
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  vertical-align: bottom;
}
tbody tr:nth-child(odd) { background: #fff; }
tbody tr:nth-child(even) { background: var(--sand); }
.snapshot tbody tr:nth-child(even) { background: var(--sand); }
.snapshot tbody tr:nth-child(odd) { background: #fff; }
th, td { border-bottom: 1px solid var(--sand-edge); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }

/* Source lines sit tight under their chart. */
table + p, table + .source-line { margin-top: 0.4rem; font-size: 0.78rem; color: var(--muted); }
table + p em, .source-line { font-style: normal; }

/* ---- impact callouts: rounder, tighter ---- */
.callout, .lessons-box, .note {
  border-radius: 8px;
  padding: 1rem 1.1rem;
}
.callout ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.callout li { margin-bottom: 0.3rem; max-width: none; }
.callout p:first-child { margin-top: 0; }
.stats { border-radius: 8px; padding: 1.1rem 1.2rem; }

/* ---- worksheet checkbox alignment ---- */
.worksheet { padding-left: 0; }
.worksheet li { list-style: none; padding-left: 0; margin-bottom: 0.5rem; }
.worksheet li::before { content: none; }
.worksheet label {
  display: grid;
  grid-template-columns: 1.05rem 1fr;
  gap: 0.6rem;
  align-items: start;
  max-width: 78ch;
}
.worksheet input[type="checkbox"] {
  position: static;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2em 0 0;
  accent-color: var(--indigo);
}

/* ---- misc tightening ---- */
h3 { margin-top: 1.6rem; }
.divider > h2 { margin-bottom: 0.9rem; }
ul.lessons li { margin-bottom: 0.7rem; }

@media print {
  table { border-radius: 0; }
  caption { border-radius: 0; }
  .callout, .lessons-box, .note, .stats { border-radius: 6px; }
  thead th { background: #e7e3da !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  tbody tr:nth-child(even) { background: var(--sand) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  caption { background: var(--sand) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- let the page margins set the measure in print ---- */
@media print {
  p, li, .worksheet label { max-width: none; }
  .callout p, .note p, .lessons-box p { max-width: none; }
}

/* ---- credits: fit on one page ---- */
.credits-page { font-size: 0.9rem; }
.credits-page p { max-width: none; margin: 0.35rem 0; line-height: 1.45; }
.credits-page h3 { margin-top: 1.1rem; margin-bottom: 0.35rem; }
.credits-page h2 { margin-bottom: 0.6rem; }
@media print {
  .credits-page { font-size: 9.5pt; }
  .credits-page p { margin: 0.28rem 0; line-height: 1.4; }
  .credits-page h3 { margin-top: 0.9rem; }
}

/* headers in wide charts read better top-aligned */
thead th { vertical-align: top; }
.worksheet label p { margin: 0; }

/* ============ restoring the earlier, more generous type ============ */

/* Section numerals: back to the large, quiet numeral that opens a page. */
.divider > .numeral,
.divider .numeral {
  font-size: 6rem;
  line-height: 0.95;
  margin: 0 0 0.4rem;
  opacity: 0.28;
}
.divider {
  border-top: 3px solid var(--indigo);
  padding-top: 2rem;
  margin-top: 0;
}
.divider > h2 { font-size: 2.1rem; margin-bottom: 1.1rem; }
h3 { font-size: 1.35rem; margin-top: 2rem; }

/* Cover: the earlier proportions. */
.cover { padding: 3.5rem 0 3rem; border-bottom: 4px solid var(--indigo); }
.cover h1 { font-size: 3.6rem; line-height: 1.03; max-width: 22ch; margin-bottom: 1.5rem; }
.cover .subtitle {
  font-family: var(--ui); font-size: 1.1rem; line-height: 1.45;
  color: var(--muted); max-width: 54ch; margin: 0 0 2.25rem;
}
.cover .edition {
  font-family: var(--ui); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 0.35rem;
}
.cover .colophon {
  font-family: var(--ui); font-size: 0.82rem; color: var(--muted); margin: 0;
}

/* More air between blocks generally. */
p { margin: 0 0 1rem; }
.lessons li { margin-bottom: 0.85rem; }
table { margin: 1.75rem 0 0; }

@media print {
  .divider .numeral { font-size: 4.6rem; }
  .divider { padding-top: 1.4rem; }
  .divider > h2 { font-size: 19pt; }
  h3 { font-size: 12.5pt; margin-top: 1.5rem; }
  .cover { padding-top: 1.5rem; }
  .cover h1 { font-size: 34pt; }
  .cover .subtitle { font-size: 12pt; margin-bottom: 2rem; }
}

/* ============ refinements ============ */

/* "About this case study": compact, set apart from body copy. */
.note {
  font-family: var(--ui);
  font-size: 0.84rem;
  line-height: 1.5;
  padding: 0.85rem 1rem;
  margin: 1.25rem 0 2rem;
}
.note h3 { font-size: 0.68rem; margin-bottom: 0.35rem; }
.note p { font-family: var(--ui); font-size: 0.84rem; margin: 0; max-width: none; }

/* Source line sitting directly under a chart heading. */
.chart-source {
  font-family: var(--body);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
  margin: -0.35rem 0 0.9rem;
  max-width: none;
}
.callout .chart-source { margin: 0.2rem 0 0.75rem; }

/* Two-column charts shouldn't stretch the full measure and strand white space. */
table.two-col { width: auto; min-width: 22rem; max-width: 30rem; }
table.two-col th[scope="row"] { width: 65%; }
table.two-col td { width: 35%; text-align: right; font-variant-numeric: tabular-nums; }
table.two-col caption { width: auto; }

@media print {
  .note { font-size: 9.5pt; }
  .note p { font-size: 9.5pt; }
  .chart-source { font-size: 9pt; }
  table.two-col { max-width: 4.6in; }
}
table.two-col thead th:last-child { text-align: right; }

/* ============ credits page: quieter, roomier ============ */

.credits-page { font-size: 0.95rem; }
.credits-page .numeral { display: none; }
.credits-page h2 { margin-bottom: 1.4rem; }

.credits-page .credits-meta {
  font-family: var(--ui);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.credits-page .credits-meta strong { color: var(--ink); letter-spacing: 0.08em; text-transform: uppercase; }

.credits-page .credits-lede {
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 58ch;
  margin: 0 0 2.2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--rule);
}

.credits-page h3 {
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 0.9rem;
}

/* Role label left, names right: removes the stacked-paragraph crowding. */
.credit-grid {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 0.85rem 1.5rem;
  margin: 0;
}
.credit-grid dt {
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.credit-grid dd { margin: 0; line-height: 1.55; }

.credits-page p { max-width: 62ch; margin: 0 0 0.9rem; line-height: 1.55; }

.credits-page .credits-colophon {
  font-family: var(--ui);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  max-width: none;
}

@media print {
  .credits-page { font-size: 10pt; }
  .credits-page .credits-lede { font-size: 10.5pt; margin-bottom: 1.6rem; padding-bottom: 1.3rem; }
  .credits-page h3 { margin: 1.5rem 0 0.7rem; }
  .credit-grid { grid-template-columns: 11.5rem 1fr; gap: 0.7rem 1.3rem; }
  .credits-page .credits-colophon { margin-top: 1.5rem; }
}

/* Credits: let the copy run to the page margin like every other section. */
.credits-page .credits-lede,
.credits-page p,
.credits-page dd { max-width: none; }
.credits-page .credits-meta { max-width: none; }
.credit-grid { grid-template-columns: 14rem 1fr; }
.credits-page .credits-colophon { line-height: 1.7; }

@media print {
  .credit-grid { grid-template-columns: 12.5rem 1fr; }
}

/* Cover: title and subheader as two distinct lines of hierarchy. */
.cover h1 { max-width: 16ch; margin-bottom: 1rem; }
.cover .subhead {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.15;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 0 1.75rem;
}
.cover .subtitle { font-size: 1rem; margin-bottom: 2.5rem; }

@media print {
  .cover .subhead { font-size: 17pt; margin-bottom: 1.5rem; }
  .cover .subtitle { font-size: 11pt; }
}

/* ---------- cover: single header ---------- */
.cover h1 { max-width: 18ch; }
.cover .subhead { margin-bottom: 2.5rem; }

/* ---------- table of contents ---------- */
.contents-page .numeral { display: none; }
.toc { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: none; }
.toc li { margin: 0; }
.toc a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: none;
}
.toc li:first-child a { border-top: 1px solid var(--rule); }
.toc-label { font-family: var(--ui); font-size: 0.98rem; }
.toc-dots { flex: 1 1 auto; border-bottom: 1px dotted var(--rule); transform: translateY(-0.2em); }
.toc-page {
  font-family: var(--ui);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  flex: none;
}

@media print {
  .toc a { padding: 0.45rem 0; }
  .toc-label { font-size: 11pt; }
  .toc-page { font-size: 10pt; }
}
