/* Guides, lists and compare pages. Builds on styles.css tokens; loaded only on article and index pages. */

.article-head h1 { max-width: 24ch; }
.article-head .byline { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 20px 0 0; color: var(--slate); font-size: 18px; max-width: none; }
.article-head .disclosure { margin: 16px 0 0; color: var(--slate); max-width: 68ch; }

/* Text runs at a ~68ch measure; tables may run wider (up to the column) and scroll beyond that. */
.article-body > * { max-width: 68ch; }
.article-body > .table-scroll { max-width: 960px; }
.article-body p, .article-body ul, .article-body ol { max-width: 68ch; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { font-size: 30px; font-weight: 600; margin: 56px 0 16px; }
.article-body h3 { font-size: 22px; margin: 36px 0 12px; }
.article-body h4 { font-family: var(--font-body); font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.article-body li { margin-bottom: 6px; }
.article-body li::marker { color: var(--slate); }
.article-body li > p { margin-bottom: 6px; }
.article-body strong { font-weight: 700; }
.article-body code { font-family: var(--font-code); font-weight: 500; font-size: 0.9em; }
.article-body img { max-width: 100%; height: auto; }
.article-body hr { border: 0; height: 0; margin: 48px 0; }

.article-body blockquote {
  margin: 28px 0;
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--harbour);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}
.article-body blockquote p { margin-bottom: 0.6em; }
.article-body blockquote p:last-child { margin-bottom: 0; }

/* Tables: scroll inside their own box on phones, tabular figures, harbour header rule, no zebra. */
.table-scroll { margin: 28px 0 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll:focus-visible { outline-offset: 2px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.article-body th, .article-body td { text-align: left; vertical-align: top; padding: 11px 18px 11px 0; min-width: 7.5em; }
.article-body th:last-child, .article-body td:last-child { padding-right: 0; }
.article-body thead th { font-weight: 600; border-bottom: 2px solid var(--harbour); vertical-align: bottom; }
.article-body td { border-bottom: 1px solid var(--rule); }
.article-body th[align="right"], .article-body td[align="right"],
.article-body th[style*="right"], .article-body td[style*="right"] { text-align: right; }

/* Sources, related, index rows */
.article-end { display: grid; gap: 56px; }
.article-end > div { max-width: 820px; }
.article-end h2 { font-size: 28px; margin-bottom: 12px; }
.sources { margin: 0; padding-left: 1.2em; font-size: 17px; }
.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }
.sources li::marker { color: var(--slate); }
.sources .checked { color: var(--slate); }

.article-list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.article-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.article-list li:first-child { padding-top: 4px; }
.article-list a { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.25; text-decoration: none; text-wrap: balance; }
.article-list a:hover { text-decoration: underline; }
.article-list p { margin: 6px 0 0; color: var(--slate); }

@media (max-width: 480px) {
  .article-body h2 { font-size: 26px; margin-top: 44px; }
  .article-body blockquote { font-size: 20px; padding-left: 16px; }
  .article-body table { font-size: 16px; }
}

/* ======================================================================
   Visual articles (MDX). Everything below is scoped to .article-visual so
   plain Markdown articles render as before.
   ====================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout: sticky contents list beside the text on wide screens */
.article-layout { display: block; }
.toc { display: none; }
@media (min-width: 1100px) {
  .article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
  .toc { display: block; position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow-y: auto; padding-bottom: 8px; }
  .toc-details { display: none; }
}
.toc-title { font-weight: 700; font-size: 15px; margin: 4px 0 12px; color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc li { margin: 0; }
.toc a {
  display: block;
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--slate);
  text-decoration: none;
}
.toc a:hover { color: var(--harbour); text-decoration: underline; }
.toc a[aria-current] { color: var(--ink); font-weight: 600; }
.toc a[aria-current]::before {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--harbour);
}
.toc a[aria-current]::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 12px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--harbour);
  background: var(--paper);
  box-sizing: border-box;
}

.toc-details { margin-top: 24px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); max-width: 68ch; }
.toc-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  font-weight: 600;
  font-size: 18px;
}
.toc-details summary::-webkit-details-marker { display: none; }
.toc-details summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--harbour);
  border-bottom: 2px solid var(--harbour);
  transform: rotate(45deg) translate(-3px, -3px);
}
.toc-details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.toc-details ol { margin: 0 0 16px; padding-left: 1.4em; }
.toc-details li { margin-bottom: 8px; }
.toc-details li::marker { color: var(--slate); font-variant-numeric: tabular-nums; }
.toc-details a { text-decoration: none; font-size: 17px; }
.toc-details a:hover { text-decoration: underline; }

/* Short answer: the opening paragraph, set larger with no box or label */
.article-visual .article-body > p:first-child {
  font-family: var(--font-display);
  font-size: clamp(21px, 1vw + 15px, 24px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 38em;
  margin-bottom: 1.1em;
}

/* Section rhythm: more space above each H2 and a short route-line mark */
.article-visual .article-body h2 { margin-top: 88px; scroll-margin-top: 24px; }
.article-visual .article-body h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 8px;
  margin-bottom: 18px;
  background: var(--wave-h) repeat-x left center / 16px 8px;
}
.article-visual .article-body h3 { scroll-margin-top: 24px; }
.article-visual .article-body > .wide { max-width: none; }
.article-visual .article-body > .table-scroll { max-width: none; }

/* Tables: sticky first column on phones */
@media (max-width: 700px) {
  .article-visual .article-body th:first-child,
  .article-visual .article-body td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--paper);
    box-shadow: inset -1px 0 0 var(--rule);
    padding-right: 14px;
    min-width: 8.5em;
    max-width: 10em;
  }
  .article-visual .article-body th:first-child + *, .article-visual .article-body td:first-child + * { padding-left: 14px; }
  .article-visual .tool .article-body th:first-child { background: var(--mist); }
}

/* Tool panels (explorer, finder, checklist): mist, no border or shadow */
.tool { background: var(--mist); padding: clamp(20px, 3vw, 32px); margin: 32px 0 36px; }
.tool p { max-width: 62ch; }

/* ---------- Figure strip ---------- */
.figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px 32px;
  margin: 40px 0 8px;
  padding-top: 20px;
  border-top: 2px solid var(--harbour);
}
.figs > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.figs dd { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 2.2vw + 14px, 40px); line-height: 1.05; color: var(--ink); font-variant-numeric: lining-nums; }
.figs dt { font-size: 16px; line-height: 1.4; color: var(--slate); }
@media (max-width: 560px) { .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } }

/* ---------- Pull quote ---------- */
.article-visual .pull { margin: 36px 0 36px; max-width: 34em; }
.article-visual .pull blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 1.4vw + 16px, 30px);
  line-height: 1.32;
  color: var(--ink);
}
.article-visual .pull figcaption { margin-top: 12px; font-size: 16px; color: var(--slate); }
.article-visual .article-body blockquote { border-left: 0; padding-left: 0; font-style: italic; font-size: 26px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 40px 0 8px; padding: 0; counter-reset: step; max-width: 820px !important; }
.steps > .step {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 24px;
  padding-bottom: 40px;
  margin: 0;
}
.steps > .step:last-child { padding-bottom: 0; }
.steps > .step::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / span 3;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  color: var(--harbour);
  text-align: center;
  padding-top: 2px;
}
.steps > .step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 58px;
  bottom: 12px;
  width: 12px;
  background: var(--wave-v) repeat-y center top / 12px 20px;
}
.steps > .step > * { grid-column: 2; }
.article-visual .article-body .step-title { margin: 6px 0 8px; font-size: 24px; }
.step-meta { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0 0 14px; font-size: 16px; }
.step-meta div { display: block; }
.step-meta dt, .step-meta dd { display: inline; }
.step-meta dt { margin-right: 6px; }
.step-meta dt { color: var(--slate); }
.step-meta dt::after { content: ":"; }
.step-meta dd { margin: 0; font-weight: 600; }
.step-body > :last-child { margin-bottom: 0; }
.step-body p, .step-body ul { max-width: 68ch; }
.step-body .table-scroll { margin: 20px 0 20px; }
@media (max-width: 560px) {
  .steps > .step { grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; }
  .steps > .step::before { font-size: 34px; }
  .steps > .step:not(:last-child)::after { left: 11px; top: 46px; }
  .article-visual .article-body .step-title { font-size: 22px; margin-top: 2px; }
}

/* ---------- Checklist ---------- */
.checklist fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checklist-title { font-weight: 700; font-size: 18px; padding: 0; margin-bottom: 8px; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 14px; padding: 9px 0; margin: 0; border-bottom: 1px solid var(--rule); }
.checklist li:last-child { border-bottom: 0; }
.checklist input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--harbour); cursor: pointer; }
.checklist label { cursor: pointer; line-height: 1.45; }
.checklist input:checked + label { color: var(--slate); }
.checklist-count { margin: 14px 0 0; font-weight: 600; color: var(--slate); font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------- Take-home explorer ---------- */
.th-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
@media (max-width: 640px) { .th-controls { grid-template-columns: minmax(0, 1fr); } }
.th-field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; }
.th-field label { font-weight: 600; font-size: 17px; }
.th-field output { font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.th-field input[type="range"] { grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; accent-color: var(--harbour); cursor: pointer; background: transparent; }
.th-basis { margin: 8px 0 18px; color: var(--slate); font-size: 16px; }
.th-bars { list-style: none; margin: 0; padding: 0; }
.th-row {
  display: grid;
  grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 6.5em 6.5em;
  align-items: center;
  gap: 4px 16px;
  padding: 6px 0;
  margin: 0;
}
.th-name { font-size: 16px; line-height: 1.3; }
.th-ours .th-name { font-weight: 700; }
.th-val { grid-column: 3; grid-row: 1; text-align: right; font-family: var(--font-display); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.th-diff { grid-column: 4; grid-row: 1; text-align: right; font-size: 16px; color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.th-diff.th-ahead { color: var(--ink); font-weight: 700; }
.th-track { grid-column: 2; grid-row: 1; height: 18px; }
.th-bar { display: block; height: 100%; min-width: 2px; border-radius: 2px; background: rgba(75, 91, 112, 0.42); transition: width 160ms ease-out; }
.th-ours .th-bar { background: var(--signal); box-shadow: inset 0 0 0 1px rgba(19, 35, 58, 0.18); }
@media (prefers-reduced-motion: reduce) { .th-bar { transition: none; } }
.th-head { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 6.5em 6.5em; gap: 4px 16px; margin: 0 0 2px; font-size: 15px; color: var(--slate); }
.th-head-val { grid-column: 3; text-align: right; }
.th-head-diff { grid-column: 4; text-align: right; }
/* Two- or three-way comparison: fixed order, larger bars */
.th-compare .th-row { padding: 10px 0; }
.th-compare .th-name { font-size: 18px; }
.th-compare .th-val { font-size: 24px; }
.th-compare .th-track { height: 26px; }
.th-breakeven { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.th-breakeven p { margin: 0 0 6px; font-size: 17px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.th-breakeven p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .th-head { grid-template-columns: minmax(0, 1fr) 5.6em 5.4em; gap: 4px 10px; line-height: 1.25; align-items: end; }
  .th-head-val { grid-column: 2; }
  .th-head-diff { grid-column: 3; }
  .th-row { grid-template-columns: minmax(0, 1fr) 5.6em 5.4em; gap: 4px 10px; padding: 8px 0; }
  .th-name { grid-column: 1; grid-row: 1; }
  .th-val { grid-column: 2; grid-row: 1; font-size: 19px; }
  .th-diff { grid-column: 3; grid-row: 1; font-size: 15px; }
  .th-track { grid-column: 1 / -1; grid-row: 2; height: 14px; }
  .th-compare .th-name { font-size: 16px; }
  .th-compare .th-val { font-size: 21px; }
  .th-compare .th-track { height: 20px; }
}
.th-unpub { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 16px; }
.th-unpub p { margin: 0 0 8px; color: var(--slate); }
.th-unpub ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.th-unpub li { margin: 0 0 6px; break-inside: avoid; }
@media (max-width: 640px) { .th-unpub ul { columns: 1; } }
.th-tables { margin-top: 22px; }
.th-ui[hidden] + .th-tables { margin-top: 0; }
.th-tables summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--harbour); }
.th-tables .table-scroll { background: var(--paper); padding: 4px 16px; }
.th-tables p { margin-top: 16px; }

/* ---------- Network finder ---------- */
.nf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.nf-chips[hidden], .nf-count[hidden] { display: none; }
.nf-chips-label { font-weight: 600; margin-right: 4px; }
.nf-chip {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 22px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.nf-chip:hover { border-color: var(--harbour); }
.nf-chip[aria-pressed="true"] { background: var(--harbour); border-color: var(--harbour); color: var(--paper); }
.nf-count { margin: 0 0 8px; color: var(--slate); font-size: 16px; }
.nf-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
@media (max-width: 760px) { .nf-list { grid-template-columns: minmax(0, 1fr); } }
.nf-item { padding: 18px 0 20px; margin: 0; border-top: 1px solid var(--rule); }
.nf-item[hidden] { display: none; }
.article-visual .article-body .nf-name { font-size: 22px; margin: 0 0 10px; }
.nf-facts { margin: 0 0 12px; font-size: 16px; line-height: 1.4; }
.nf-facts div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 12px; padding: 3px 0; }
.nf-facts dt, .nf-fit dt { color: var(--slate); font-size: 15px; }
.nf-facts dd { margin: 0; font-weight: 600; }
.nf-fit { margin: 0; font-size: 16px; line-height: 1.45; }
.nf-fit div { margin-bottom: 8px; }
.nf-fit dd { margin: 0; }
.nf-source { margin: 4px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.nf-toggle[hidden] { display: none; }
@media (min-width: 700px) { .nf-toggle { display: none; } }
@media (max-width: 699.98px) {
  .nf-ready .nf-item { padding: 0; }
  .nf-ready .nf-name-text { display: none; }
  .article-visual .article-body .nf-ready .nf-name { margin: 0; font-size: inherit; }
  .nf-ready .nf-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 4px 12px;
    width: 100%;
    min-height: 44px;
    padding: 14px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .nf-ready .nf-toggle::after {
    content: "";
    grid-column: 2; grid-row: 1;
    align-self: center;
    justify-self: center;
    width: 9px; height: 9px;
    border-right: 2px solid var(--harbour);
    border-bottom: 2px solid var(--harbour);
    transform: rotate(45deg) translate(-2px, -2px);
  }
  .nf-ready .nf-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .nf-t-name { grid-column: 1; font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.2; }
  .nf-t-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 18px; font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.4; }
  .nf-t-label { color: var(--slate); font-weight: 400; font-size: 15px; margin-right: 4px; }
  .nf-ready .nf-item:not(.nf-open) .nf-more { display: none; }
  .nf-ready .nf-more { padding: 0 0 18px; }
  .nf-ready .nf-f-sum { display: none !important; }
}
.article-visual .article-body .nf-list, .article-visual .article-body .th-bars, .article-visual .article-body .th-unpub ul,
.article-visual .article-body .checklist ul, .article-visual .article-body .rm-list, .article-visual .article-body .rm-stops { padding-left: 0; max-width: none; }
.article-visual .article-body .nf-item, .article-visual .article-body .th-row { margin-bottom: 0; }

/* ---------- Route map ---------- */
.rm { margin: 36px 0 40px; }
.rm-svg { display: none; width: 100%; height: auto; overflow: visible; }
.rm-line { fill: none; stroke: var(--harbour); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.rm-stop { fill: var(--paper); stroke: var(--harbour); stroke-width: 2.25; }
.rm-stop.rm-end, .rm-origin { fill: var(--harbour); }
.rm-name { font-family: var(--font-body); font-weight: 700; font-size: 16px; fill: var(--ink); }
.rm-start { font-family: var(--font-body); font-weight: 700; font-size: 16px; fill: var(--ink); }
.rm-label { font-family: var(--font-display); font-weight: 600; font-size: 19px; fill: var(--ink); }
.rm-detail { font-family: var(--font-body); font-size: 15px; fill: var(--slate); }
.rm-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 8px; font-size: 16px; color: var(--slate); }
.rm-legend span { display: inline-flex; align-items: center; gap: 10px; }

.rm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.rm-route { margin: 0; }
.rm-route-name { font-weight: 700; margin: 0 0 10px; }
.rm-stops { list-style: none; margin: 0; padding: 0; }
.rm-li { position: relative; padding: 0 0 18px 34px; margin: 0; display: flex; flex-direction: column; }
.rm-li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2.25px solid var(--harbour);
  background: var(--paper);
  box-sizing: border-box;
  z-index: 1;
}
.rm-li-last::before { background: var(--harbour); }
.rm-li:not(.rm-li-last)::after {
  content: "";
  position: absolute;
  left: 6.4px; top: 21px; bottom: -6px;
  width: 2.25px;
  background: var(--harbour);
}
.rm-li.rm-li-next-wavy::after { left: 1.5px; width: 12px; background: var(--wave-v) repeat-y center top / 12px 20px; }
.rm-li-last { padding-bottom: 0; }
.rm-li-label { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.3; }
.rm-li-detail { color: var(--slate); font-size: 16px; line-height: 1.45; }

@media (min-width: 900px) {
  .rm-svg { display: block; }
  .rm-list { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
.th-tables summary { list-style: none; gap: 10px; }
.th-tables summary::-webkit-details-marker { display: none; }
.th-tables summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--harbour);
  border-bottom: 2px solid var(--harbour);
  transform: rotate(45deg) translate(-2px, -2px);
}
.th-tables[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.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; }

/* ---------- Timeline ---------- */
.tl { margin: 36px 0 40px; }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 28px; }
.tl-event { position: relative; display: grid; grid-template-rows: 34px 15px auto; row-gap: 12px; margin: 0; }
.tl-when { font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 34px; color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums; }
.tl-dot { width: 15px; height: 15px; border-radius: 50%; border: 2.25px solid var(--harbour); background: var(--paper); box-sizing: border-box; position: relative; z-index: 1; }
.tl-last .tl-dot { background: var(--harbour); }
.tl-event:not(.tl-last)::after {
  content: "";
  position: absolute;
  left: 13px; right: -28px; top: 52.4px;
  height: 2.25px;
  background: var(--harbour);
}
.tl-wavy .tl-event:not(.tl-last)::after { top: 49.5px; height: 8px; background: var(--wave-h) repeat-x left center / 16px 8px; }
.tl-body { display: flex; flex-direction: column; gap: 2px; font-size: 16px; line-height: 1.45; padding-right: 4px; }
.tl-title { font-weight: 700; color: var(--ink); }
.tl-text { color: var(--slate); }
.article-visual .article-body .tl-list { padding-left: 0; max-width: none; }
.article-visual .article-body .tl-event { margin-bottom: 0; }

.tl-vertical .tl-list { grid-auto-flow: row; grid-auto-columns: auto; row-gap: 0; }
@media (max-width: 899.98px) {
  .tl-list { grid-auto-flow: row; grid-auto-columns: auto; row-gap: 0; }
}
@media (max-width: 899.98px) {
  .tl .tl-event { grid-template-columns: 15px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; row-gap: 2px; padding-bottom: 22px; }
  .tl .tl-last { padding-bottom: 0; }
  .tl .tl-when { grid-column: 2; grid-row: 1; font-size: 26px; line-height: 32px; }
  .tl .tl-dot { grid-column: 1; grid-row: 1; margin-top: 8.5px; }
  .tl .tl-body { grid-column: 2; grid-row: 2; }
  .tl .tl-event:not(.tl-last)::after { left: 6.4px; right: auto; top: 23px; bottom: -8px; width: 2.25px; height: auto; }
  .tl.tl-wavy .tl-event:not(.tl-last)::after { left: 1.5px; width: 12px; top: 23px; height: auto; background: var(--wave-v) repeat-y center top / 12px 20px; }
}
.tl-vertical .tl-event { grid-template-columns: 15px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; row-gap: 2px; padding-bottom: 22px; }
.tl-vertical .tl-last { padding-bottom: 0; }
.tl-vertical .tl-when { grid-column: 2; grid-row: 1; font-size: 26px; line-height: 32px; }
.tl-vertical .tl-dot { grid-column: 1; grid-row: 1; margin-top: 8.5px; }
.tl-vertical .tl-body { grid-column: 2; grid-row: 2; }
.tl-vertical .tl-event:not(.tl-last)::after { left: 6.4px; right: auto; top: 23px; bottom: -8px; width: 2.25px; height: auto; }
.tl-vertical.tl-wavy .tl-event:not(.tl-last)::after { left: 1.5px; width: 12px; top: 23px; height: auto; background: var(--wave-v) repeat-y center top / 12px 20px; }

/* ---------- Side by side ---------- */
.sbs { margin: 32px 0 36px; }
.sbs-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 17px; line-height: 1.45; }
.sbs-caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 10px; }
.sbs-table thead th, .sbs-corner {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  box-shadow: inset 0 -2px 0 var(--harbour);
  padding: 12px 16px 12px 0;
  text-align: left;
  vertical-align: bottom;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
.sbs-table thead th + th { padding-left: 16px; }
.sbs-table tbody th, .sbs-table tbody td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; }
.sbs-table tbody td + td { padding-left: 16px; }
.sbs-table tbody td:first-of-type { padding-left: 0; }
.sbs-table tbody th { width: 30%; font-weight: 600; }
.sbs-table thead th { width: 35%; }
.sbs-table tbody td { width: 35%; color: var(--ink); }
.sbs-label { display: block; }
.sbs-note { display: block; margin-top: 4px; font-weight: 400; font-size: 15px; line-height: 1.4; color: var(--slate); }
@media (max-width: 699.98px) {
  .sbs-table, .sbs-table thead, .sbs-table tbody { display: block; }
  .sbs-table thead { position: sticky; top: 0; z-index: 2; background: var(--paper); box-shadow: inset 0 -2px 0 var(--harbour); }
  .sbs-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
  .sbs-corner { display: none; }
  .sbs-table thead th { position: static; box-shadow: none; width: auto; font-size: 20px; padding: 10px 0; }
  .sbs-table thead th + th { padding-left: 0; }
  .sbs-table tbody tr { padding: 12px 0 14px; border-bottom: 1px solid var(--rule); }
  .sbs-table tbody th { grid-column: 1 / -1; width: auto; padding: 0 0 6px; border: 0; font-size: 16px; }
  .sbs-table tbody td, .sbs-table tbody td + td { width: auto; padding: 0; border: 0; font-size: 16px; }
  .article-visual .article-body .sbs-table th:first-child,
  .article-visual .article-body .sbs-table td:first-child,
  .article-visual .article-body .sbs-table th:first-child + *,
  .article-visual .article-body .sbs-table td:first-child + * { position: static; box-shadow: none; min-width: 0; max-width: none; padding: 0; background: transparent; }
  .article-visual .article-body .sbs-table tbody th:first-child { padding-bottom: 6px; }
}

/* ---------- Harbour amber v6 ---------- */
.tool { border-radius: 24px; }
.th-bar { border-radius: 999px; background: rgba(62, 76, 95, 0.42); }
.th-ours .th-bar { background: var(--signal); box-shadow: inset 0 0 0 2px var(--signal-edge); }
.th-tables .table-scroll { border-radius: 12px; }
.nf-chip { border-color: var(--border); }
.nf-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.steps > .step::before {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--harbour); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; padding-top: 0; justify-self: center;
}
.steps > .step:not(:last-child)::after { left: 16px; top: 56px; }
@media (max-width: 560px) {
  .steps > .step { grid-template-columns: 36px minmax(0, 1fr); }
  .steps > .step::before { width: 36px; height: 36px; font-size: 19px; }
  .steps > .step:not(:last-child)::after { left: 12px; top: 46px; }
}
.article-visual .article-body .step-title { margin-top: 8px; }
.photo img { border-radius: 22px; }
.article-list a { color: var(--link); }
.article-list a:hover { color: var(--ink); }
.toc a[aria-current]::before { background: var(--harbour); }

/* Pass 2: balanced article page. Header image at full content width; body text at a reading
   measure, centred in the column beside the "On this page" rail; tools and tables use the full column. */
.article-visual + .photo-section .photo, .photo-section .photo { max-width: none; }
.article-visual .article-body > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.article-visual .article-body > .table-scroll,
.article-visual .article-body > .wide,
.article-visual .article-body > .tool,
.article-visual .article-body > .sbs,
.article-visual .article-body > .rm,
.article-visual .article-body > .tl,
.article-visual .article-body > .figs,
.article-visual .article-body > .th,
.article-visual .article-body > .nf { max-width: none; }
.article-visual .article-body > .steps { max-width: 760px !important; }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
}
.article-visual .article-body > p:first-child { max-width: 680px; }

/* Closed detail blocks ("The full numbers", "The details") styled like the FAQ accordion */
.article-body details:not(.toc-details):not(.th-tables) { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 28px auto 32px; }
.article-body details:not(.toc-details):not(.th-tables) > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-weight: 600; font-size: 20px; line-height: 1.35; color: var(--ink);
}
.article-body details:not(.toc-details):not(.th-tables) > summary::-webkit-details-marker { display: none; }
.article-body details:not(.toc-details):not(.th-tables) > summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(var(--harbour), var(--harbour)) center / 12px 2px no-repeat,
              linear-gradient(var(--harbour), var(--harbour)) center / 2px 12px no-repeat, var(--mist);
}
.article-body details[open]:not(.toc-details):not(.th-tables) > summary::after {
  background: linear-gradient(var(--harbour), var(--harbour)) center / 12px 2px no-repeat, var(--mist);
}
.article-body details:not(.toc-details):not(.th-tables) > :last-child { margin-bottom: 24px; }
.article-body details:not(.toc-details):not(.th-tables) > summary:focus-visible { outline: 2px solid var(--harbour); outline-offset: 3px; }
