/* Backpack. Documentary photographs of the places district money goes, with hand-drawn
   spot illustrations wherever no photo fits. One light theme, one reading column beside a
   pinned chapter index on wide screens, school-bus yellow only where something can be pressed
   or counted. Shared by / and /training. */
:root {
  /* colour */
  --paper: #F7F3EB;
  --paper-2: #EEE7D9;
  --frame: #EFE8DA;      /* ground behind every drawing, so drawings and photos share a footprint */
  --card: #FFFDF8;
  --ink: #16181C;
  --ink-2: #1E2329;
  --muted: #444A55;
  --rule: #DDD3C1;
  --yellow: #F5B800;
  --yellow-hover: #FFC61A;
  --yellow-soft: #FCEBB4;
  --yellow-deep: #7A5800;
  --error: #9B2C1F;

  /* type */
  --font: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --t-h1: clamp(42px, 5vw, 70px);
  --t-h2: clamp(31px, 3.2vw, 44px);
  --t-h3: clamp(22px, 1.8vw, 25px);
  --t-h4: 20px;
  --t-body: 18px;
  --t-intro: clamp(19px, 1.4vw, 21px);
  --t-small: 16px;
  --t-cap: 14px;

  /* spacing scale: 8 12 16 24 32 48 64 96 */
  --s1: 8px; --s2: 12px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
  --sec: var(--s8);

  /* grid */
  --wide: 1280px;
  --read: 700px;
  --index: 200px;
  --gut: max(24px, env(safe-area-inset-left, 0px));
  --gut-r: max(24px, env(safe-area-inset-right, 0px));
  --r: 14px;
  --r-sm: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
strong, b { font-weight: 700; color: var(--ink); }

.wrap { max-width: calc(var(--wide) + 48px); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }

/* icons */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 28px; height: 28px; stroke-width: 1.6; }
.ic-xl { width: 44px; height: 44px; stroke-width: 1.5; }
.dic { width: 44px; height: 44px; flex: none; overflow: visible; }

/* drawings: the same rounded frame and ratio as the photographs */
.draw { display: grid; place-items: center; background: var(--frame); border-radius: var(--r); aspect-ratio: 4 / 3; width: 100%; overflow: hidden; }
.draw svg { width: 78%; height: auto; max-height: 86%; overflow: visible; }
.draw-sq { aspect-ratio: 1; }
.draw-sq svg { width: 62%; }

/* every photograph: one radius, fixed ratios */
.ph { width: 100%; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.mast { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--rule); }
.mast-in { max-width: calc(var(--wide) + 48px); margin: 0 auto; padding: 14px var(--gut-r) 14px var(--gut); display: flex; align-items: center; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; fill: var(--yellow); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.brand-mark rect { fill: var(--paper); }
.mast-nav { display: flex; gap: var(--s4); margin-left: var(--s2); }
.mast-nav a, .mast-link { font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.mast-nav a:hover, .mast-link:hover, .mast-nav a[aria-current="true"], .mast-link[aria-current="page"] { border-bottom-color: var(--yellow); }
.mast-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s4); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; font: 700 17px/1.2 var(--font); text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink); transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.btn .ic { width: 20px; height: 20px; transition: transform .15s ease; }
.btn:hover .ic { transform: translateX(3px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-hover); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2A2E35; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--card); box-shadow: 0 1px 0 var(--rule); }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: 16px; white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.btn-note { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 5.5vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: end; padding-bottom: var(--s6); }
.hero-text { display: grid; gap: var(--s4); justify-items: start; }
.standfirst { font-size: var(--t-small); font-weight: 600; color: var(--muted); }
h1 { font-size: var(--t-h1); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; }
.lede { font-size: var(--t-intro); line-height: 1.6; max-width: 640px; }
.facts { display: grid; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s1) var(--s4); }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.facts li:last-child { border-bottom: 0; }
.facts .ic-lg { color: var(--ink); margin-top: 4px; }
.facts p { font-size: var(--t-small); line-height: 1.5; }
.facts .fact-n { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.15; margin-bottom: 4px; letter-spacing: -0.01em; }

/* ---------- photographs between sections ---------- */
.bleed img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--paper-2); }
.bleed-hero img { aspect-ratio: 21 / 9; object-position: 50% 62%; }
.bleed figcaption, .group3-photo figcaption, .argument-photo figcaption, .ph-cap { font-size: var(--t-cap); line-height: 1.45; color: var(--muted); padding-top: var(--s2); display: flex; flex-wrap: wrap; gap: 2px var(--s3); justify-content: space-between; }
.credit { color: var(--muted); }
.shell .bleed figcaption { padding-left: 0; padding-right: 0; }

/* ---------- body shell: chapter index + one reading column ---------- */
.shell { max-width: calc(var(--wide) + 48px); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); padding-top: var(--s7); }
.shell .wrap { max-width: none; padding-left: 0; padding-right: 0; margin: 0; }
.col { min-width: 0; }

.toc { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s4); }
.toc-h { font-size: var(--t-small); font-weight: 700; color: var(--ink); margin-bottom: var(--s2); }
.toc ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px var(--s4); counter-reset: toc; }
.toc li { counter-increment: toc; min-width: 0; }
.toc a { display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-size: 15px; line-height: 1.35; font-weight: 600; text-decoration: none; padding: 6px 0; color: var(--ink-2); }
.toc a::before { content: counter(toc); font-weight: 700; color: var(--yellow-deep); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); }

@media (min-width: 1360px) {
  .shell { display: grid; grid-template-columns: var(--index) minmax(0, 1fr); gap: var(--s7); align-items: start; }
  .toc { position: sticky; top: 104px; background: transparent; border: 0; border-radius: 0; padding: 0; }
  .toc ol { grid-template-columns: 1fr; gap: 0; border-left: 1px solid var(--rule); }
  .toc a { padding: 7px 0 7px var(--s3); margin-left: -1px; border-left: 3px solid transparent; }
  .toc a[aria-current="true"] { border-left-color: var(--yellow); color: var(--ink); font-weight: 750; }
  .toc a:hover { text-decoration: none; }
}

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); border-top: 1px solid var(--rule); }
.col > .sec:first-of-type { border-top: 0; padding-top: var(--s7); }
.bleed + .sec { border-top: 0; padding-top: var(--s7); }
.sec-head { display: grid; gap: var(--s3); max-width: 780px; margin-bottom: var(--s6); }
h2 { font-size: var(--t-h2); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.intro { font-size: var(--t-intro); line-height: 1.6; max-width: var(--read); }
.h-sub { font-size: var(--t-h3); line-height: 1.25; font-weight: 750; display: flex; gap: var(--s2); align-items: center; }
.h-small { font-size: var(--t-h4); font-weight: 700; display: flex; gap: 10px; align-items: center; margin-bottom: var(--s3); }
.read { max-width: var(--read); }
.h-sub + .read { margin-top: var(--s2); }
.strong { font-weight: 700; color: var(--ink); }
.big { font-size: clamp(20px, 1.6vw, 22px); line-height: 1.55; }
.caption { font-size: 15px; line-height: 1.55; color: var(--muted); }
.list-top { border-top: 1px solid var(--ink); }

/* deal */
.deal-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: center; }
.deal-left { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--s5); align-items: center; }
.draw-deal { aspect-ratio: 1; }
.draw-deal svg { width: 80%; }
.deal-h { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.06; }
.deal-body { display: grid; gap: var(--s4); justify-items: start; }

/* three situations: three cards with drawn weather */
.situations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.situations li { display: flex; flex-direction: column; gap: var(--s3); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s3) var(--s3) var(--s4); }
.sit-tag { display: grid; gap: var(--s3); font-weight: 700; font-size: var(--t-small); color: var(--ink); }
.sit-tag > span:last-child { padding-inline: var(--s1); }
.situations .draw-sq { aspect-ratio: 16 / 9; border-radius: var(--r-sm); }
.situations .draw-sq svg { width: 96px; height: 96px; }
.sit-body { display: grid; gap: var(--s2); padding-inline: var(--s1); }
.sit-body h3 { font-size: 22px; line-height: 1.25; font-weight: 750; }
.sit-body p { font-size: 17px; line-height: 1.6; }

/* levers */
.levers { margin-top: var(--s7); display: grid; gap: var(--s3); }
.table-scroll { overflow-x: auto; margin-top: var(--s1); }
.lever-table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.5; }
.lever-table th, .lever-table td { text-align: left; vertical-align: top; padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--rule); }
.lever-table thead th { font-size: 15px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--ink); padding-top: 0; padding-bottom: var(--s2); }
.lever-table tbody th { font-size: 18px; font-weight: 750; color: var(--ink); white-space: nowrap; }
.lever-table tbody th .ic { vertical-align: -5px; margin-right: 10px; }
.lever-table tr.us th, .lever-table tr.us td { background: var(--yellow-soft); }
.lever-table tr.us th { padding-left: var(--s3); border-radius: var(--r-sm) 0 0 var(--r-sm); }
.lever-table tr.us td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); margin-top: var(--s4); align-items: start; }
.callout { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s4); font-size: 17px; line-height: 1.6; }
.callout .ic-lg { color: var(--ink); }
.callout-art { grid-template-columns: 120px 1fr; gap: var(--s4); align-items: start; }
.procure-art { width: 120px; height: auto; background: var(--frame); border-radius: var(--r-sm); padding: 10px; overflow: visible; }

/* why */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.why-head { position: sticky; top: 104px; }
.reasons { border-top: 1px solid var(--ink); }
.reasons li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.reasons h3 { font-size: var(--t-h4); line-height: 1.3; font-weight: 750; margin-bottom: 6px; display: flex; gap: var(--s2); align-items: baseline; }
.num { font-size: 14px; font-weight: 800; color: var(--ink); background: var(--yellow); border-radius: 50%; width: 26px; height: 26px; display: inline-grid; place-items: center; flex: none; transform: translateY(-2px); font-variant-numeric: tabular-nums; }
.reasons p { font-size: 17px; }
.pull { margin: var(--s7) 0 0; max-width: 900px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.32; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); padding-left: var(--s4); border-left: 4px solid var(--yellow); }

/* training teaser */
.training { margin-top: var(--s7); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.training-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.training-text { padding: var(--s6); display: grid; gap: var(--s3); align-content: center; justify-items: start; font-size: 17px; }
.training-text .btn { margin-top: var(--s1); }

/* where we look */
.group { margin-top: var(--s8); }
.group:first-of-type { margin-top: 0; }
.group-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s3) var(--s6); padding-top: var(--s4); border-top: 1px solid var(--ink); margin-bottom: var(--s5); align-items: baseline; }
.group-h { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px var(--s2); }
.count { font-size: 15px; font-weight: 700; color: var(--ink); background: var(--yellow-soft); padding: 2px 12px; border-radius: 999px; white-space: nowrap; letter-spacing: 0; }
.group-head p { font-size: 17px; max-width: 640px; }
.leaks h4 { font-size: var(--t-h4); line-height: 1.3; font-weight: 750; display: flex; gap: 10px; align-items: flex-start; }
.leaks h4 .ic { margin-top: 2px; }
.leaks p { font-size: 17px; line-height: 1.6; }
.note { display: flex; gap: var(--s1); align-items: flex-start; font-size: 15px !important; line-height: 1.5 !important; font-weight: 600; color: var(--ink); }
.note .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--yellow-deep); }
.leaks-photo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.leaks-photo li { display: grid; gap: var(--s2); align-content: start; }
.leaks-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); margin-bottom: var(--s1); }
.flag { display: inline-flex; justify-self: start; gap: var(--s1); align-items: center; font-size: 14px !important; font-weight: 700; background: var(--yellow); color: var(--ink); padding: 3px 12px; border-radius: 999px; }
.flag .ic { width: 16px; height: 16px; }
.leaks-icon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); }
.leaks-icon li { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: var(--s4); align-items: start; }
.leaks-icon li > div { display: grid; gap: var(--s1); }
.group3 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: start; }
.group3-photo { position: sticky; top: 104px; }
.group3-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.leaks-list { grid-template-columns: 1fr; gap: 0; }
.leaks-list li { grid-template-columns: 136px minmax(0, 1fr); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.leaks-list li:first-child { padding-top: 0; }
.leaks-list li:last-child { border-bottom: 0; }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: start; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s5); }
.calc-inputs { display: grid; gap: var(--s5); }
.field-budget label, .posture legend { font-size: 17px; font-weight: 700; color: var(--ink); }
.budget-out { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--s3); margin: 6px 0 var(--s2); }
#calc-budget { font-size: clamp(46px, 4.6vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.enroll { font-size: var(--t-small); color: var(--muted); }
input[type="range"] { width: 100%; height: 36px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--ink) 0 var(--fill, 49%), var(--rule) var(--fill, 49%) 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); margin-top: -11px; box-shadow: 0 2px 6px rgba(22, 24, 28, .2); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--rule); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.range-ends { display: flex; justify-content: space-between; font-size: var(--t-cap); color: var(--muted); }
.posture { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.posture legend { margin-bottom: var(--s2); padding: 0; }
.posture-opt { display: grid; grid-template-columns: 20px 22px 1fr; gap: var(--s2); align-items: center; padding: var(--s2) var(--s3); border: 1px solid var(--rule); border-radius: var(--r-sm); font-size: var(--t-small); cursor: pointer; background: var(--paper); }
.posture-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.posture-opt:has(input:checked) { border-color: var(--ink); background: var(--yellow-soft); font-weight: 600; }
.calc-out { background: var(--paper); border-radius: var(--r-sm); padding: var(--s4) var(--s5); }
.ledger { margin: 0; }
.lr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: baseline; padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.lr dt { display: flex; gap: var(--s2); align-items: flex-start; font-size: 17px; font-weight: 600; color: var(--ink); }
.lr dt .ic { margin-top: 2px; }
.lr dt span { display: grid; }
.lr small { font-size: var(--t-cap); font-weight: 400; color: var(--muted); }
.lr dd { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.lr-total { border-bottom: 1px solid var(--ink); }
.lr-net { border-bottom: 0; padding-top: var(--s4); align-items: center; }
.lr-net dt { font-size: 18px; font-weight: 800; }
.lr-net dd { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; background: var(--yellow); padding: 4px 12px; border-radius: 8px; }
.lr-note { margin-top: var(--s3); font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.calc-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); margin-top: var(--s6); }
.bars { display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.bar-row { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr) 6.2em; gap: var(--s2); align-items: center; font-size: 15px; }
.bar-row > span:first-child { color: var(--ink); font-weight: 600; line-height: 1.3; }
.bar-track { height: 12px; background: var(--paper-2); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--yellow); border-radius: 6px; }
.bar-val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); text-align: right; }
.buys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-bottom: var(--s3); }
.buys li { display: grid; gap: 6px; align-content: start; padding-top: var(--s3); border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }
.buy-val { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.assume { margin: var(--s6) 0 var(--s5); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.assume summary { cursor: pointer; display: flex; gap: var(--s2); align-items: center; font-size: 18px; font-weight: 700; color: var(--ink); padding: var(--s4) 0; list-style: none; }
.assume summary::-webkit-details-marker { display: none; }
.assume summary::after { content: "+"; margin-left: auto; font-size: 26px; font-weight: 500; line-height: 1; }
.assume[open] summary::after { content: "\2212"; }
.assume-body { display: grid; gap: var(--s3); padding-bottom: var(--s5); max-width: 860px; font-size: 17px; }
.assume-list { display: grid; gap: 10px; }
.assume-list li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); }

/* board quotes */
.said { border-top: 1px solid var(--ink); }
.said-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); padding: var(--s3) 0; font-size: 15px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--rule); }
.said-head span:last-child { color: var(--ink); }
.said li { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.said p { display: grid; grid-template-columns: 24px 1fr; gap: var(--s2); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; }
.said .before { color: var(--muted); }
.said .after { color: var(--ink); font-weight: 650; }
.said .after .ic { color: var(--ink); fill: var(--yellow); }
.said .lbl { display: none; }
.said-note { margin-top: var(--s2); font-size: var(--t-cap); color: var(--muted); }

/* people */
.beats { margin-top: var(--s5); border-top: 1px solid var(--ink); }
.beats li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.beats li > div { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s1) var(--s5); }
.beats h4 { font-size: var(--t-h4); line-height: 1.3; font-weight: 750; grid-column: 1 / -1; }
.beats p { font-size: 17px; }
.beats .note { align-self: start; background: var(--card); border: 1px solid var(--rule); padding: var(--s2) var(--s3); border-radius: var(--r-sm); }
.argument { margin-top: var(--s7); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: start; }
.argument-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.argument-text { display: grid; gap: var(--s3); max-width: var(--read); }
.podium { margin-top: var(--s6); display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); align-items: center; }
.podium .draw-sq { border-radius: var(--r-sm); }
.podium .draw-sq svg { width: 78%; }

/* paid */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); border-top: 1px solid var(--ink); padding-top: var(--s5); }
.steps li { display: grid; gap: var(--s2); align-content: start; }
.step-top { display: flex; align-items: center; gap: var(--s2); }
.step-n { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--t-h4); line-height: 1.3; font-weight: 750; }
.steps p { font-size: 17px; }
.paid-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); margin-top: var(--s7); align-items: start; }
.slip { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s4); box-shadow: 0 18px 32px -24px rgba(40, 30, 10, .35); }
.slip-top { display: grid; grid-template-columns: 1fr 96px; gap: var(--s3); align-items: center; margin-bottom: var(--s2); }
.slip figcaption { font-size: var(--t-cap); color: var(--muted); }
.slip-art { width: 96px; height: 72px; overflow: visible; }
.slip dl { margin: 0 0 var(--s3); }
.slip dl div { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px dashed var(--rule); font-size: 17px; }
.slip dt { color: var(--ink-2); }
.slip dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.slip .slip-net { border-bottom: 0; border-top: 1px solid var(--ink); margin-top: 4px; }
.slip .slip-net dt { font-weight: 800; color: var(--ink); }
.slip .slip-net dd { font-size: 22px; font-weight: 800; }
.slip-bar { width: 100%; height: auto; display: block; border-radius: 6px; overflow: hidden; }
.sb-net { fill: var(--yellow); }
.sb-fee { fill: var(--ink); }
.proof { border-top: 1px solid var(--ink); }
.proof li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.final { margin-top: var(--s5); font-size: 19px; }

/* timeline: a drawn road, the bus at the start */
.route { position: relative; height: 84px; margin-bottom: var(--s1); }
.route-road { position: absolute; inset: 22px 0 0 0; width: 100%; height: 56px; overflow: visible; }
.route-bus { position: absolute; left: 2%; top: 0; width: 104px; height: 52px; overflow: visible; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.timeline li { display: grid; gap: var(--s2); align-content: start; }
.when { font-size: 15px; font-weight: 800; color: var(--ink); background: var(--yellow-soft); padding: 2px 12px; border-radius: 999px; justify-self: start; }
.dot { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); border: 1.5px solid var(--ink); display: grid; place-items: center; color: var(--ink); order: -1; }
.timeline h3 { font-size: var(--t-h4); font-weight: 750; line-height: 1.3; }
.timeline p { font-size: 17px; }
.callout-plain { margin-top: var(--s6); display: grid; grid-template-columns: 26px 1fr; gap: var(--s3); font-size: 17px; }
.callout-plain .ic { margin-top: 4px; }

/* not */
.not-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: start; }
.not-grid > .sec-head { position: sticky; top: 104px; }
.nots { border-top: 1px solid var(--ink); margin-bottom: var(--s5); }
.nots li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); font-size: 17px; }

/* start here */
.head-art { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: end; margin-bottom: var(--s6); }
.head-art .sec-head { margin-bottom: 0; }
.draw-head { max-width: 360px; justify-self: end; }
.hour { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s6); border-top: 1px solid var(--ink); }
.hour li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.hour h3 { font-size: 19px; line-height: 1.3; font-weight: 750; margin-bottom: 4px; }
.hour p { font-size: 16px; line-height: 1.55; }

/* form */
.form-shell { margin-top: var(--s7); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s6); box-shadow: 0 24px 48px -36px rgba(40, 30, 10, .4); }
#enquiry-form { display: grid; gap: var(--s4); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.f { display: grid; gap: var(--s1); }
.f label, .checks legend { font-size: var(--t-small); font-weight: 700; color: var(--ink); }
input[type="text"], input[type="email"], select, textarea { width: 100%; font: 400 17px/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1px solid #B9AE99; border-radius: var(--r-sm); padding: 12px 14px; min-height: 50px; }
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--ink); }
.checks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1) var(--s2); }
.checks legend { margin-bottom: var(--s2); padding: 0; }
.checks label { display: grid; grid-template-columns: 18px 20px 1fr; gap: 10px; align-items: center; font-size: 15px; line-height: 1.3; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r-sm); cursor: pointer; background: var(--paper); }
.checks label .ic { width: 20px; height: 20px; }
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.checks label:has(input:checked) { background: var(--yellow-soft); border-color: var(--ink); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.f-email { max-width: 520px; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
#form-note.is-warn { color: var(--error); font-weight: 600; }
.form-done { display: grid; gap: var(--s3); justify-items: start; padding: var(--s4) 0; }
.form-done .ic-xl { color: var(--ink); }
.done-big { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; color: var(--ink); line-height: 1.3; max-width: 760px; }
.form-error { display: grid; gap: var(--s3); justify-items: start; padding: var(--s1) 0; }
.err-msg { font-size: 19px; font-weight: 700; color: var(--error); }

/* footer */
.foot { border-top: 1px solid var(--rule); background: var(--paper-2); padding-block: var(--s7); margin-top: var(--s7); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s4) var(--s7); }
.foot-note { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 760px; }
.foot-credits { grid-column: 2; font-size: var(--t-cap); line-height: 1.55; color: var(--muted); max-width: 760px; }
.foot-mail { display: flex; gap: 10px; align-items: center; margin-top: var(--s2); font-size: var(--t-small); }

/* ---------- training page ---------- */
.back { display: inline-flex; gap: var(--s1); align-items: center; font-size: var(--t-small); font-weight: 600; text-decoration: none; color: var(--ink-2); padding: 6px 0; }
.back:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.t-hero { padding-top: var(--s5); }
.t-hero .hero-grid { align-items: center; padding-bottom: 0; margin-top: var(--s4); }
.t-hero-photo img { aspect-ratio: 4 / 3; }
.sessions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.session { display: grid; gap: var(--s3); align-content: start; }
.session .ph, .session .draw { aspect-ratio: 16 / 10; margin-bottom: var(--s1); }
.session .draw svg { width: 62%; max-height: 74%; }
.session h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 750; }
.session p { font-size: 17px; }
.leave { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); background: var(--yellow-soft); border-radius: var(--r-sm); padding: var(--s2) var(--s3); font-size: var(--t-small) !important; line-height: 1.5; color: var(--ink); }
.leave .ic { margin-top: 1px; }
.room-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: start; }
.room { border-top: 1px solid var(--ink); }
.room li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.room-art { position: sticky; top: 104px; }
.after-body { display: grid; gap: var(--s4); max-width: var(--read); }
.t-cta { margin-top: var(--s6); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s5); }
.t-cta p { font-size: 17px; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .mast-nav { display: none; }
  .hero-grid, .deal-grid, .why-grid, .not-grid, .head-art, .room-grid { grid-template-columns: 1fr; }
  .why-head, .not-grid > .sec-head, .room-art { position: static; }
  .draw-head { justify-self: start; max-width: 320px; }
  .situations { grid-template-columns: 1fr; }
  .situations li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--s4); align-items: start; }
  .situations .draw-sq { aspect-ratio: 4 / 3; }
  .sit-tag > span:last-child { padding-inline: 0; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaks-photo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaks-icon { grid-template-columns: 1fr; }
  .calc, .calc-more, .paid-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-art { max-width: 420px; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  :root { --gut: max(16px, env(safe-area-inset-left, 0px)); --gut-r: max(16px, env(safe-area-inset-right, 0px)); --sec: var(--s7); --t-body: 17px; }
  .mast-in { gap: var(--s2); padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .mast-link { display: none; }
  .btn-small { min-height: 42px; padding: 8px 16px; font-size: 15px; }
  h1 { font-size: clamp(38px, 10.5vw, 48px); }
  .hero-grid { gap: var(--s5); padding-bottom: var(--s5); }
  .btn-row .btn { flex: 1 1 100%; }
  .bleed img { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
  .bleed-hero img { aspect-ratio: 4 / 3; }
  .shell { padding-top: var(--s5); }
  .toc { padding: var(--s3) var(--s3) var(--s2); }
  .toc ol { grid-template-columns: 1fr; gap: 0; }
  .toc a { padding: 5px 0; }
  .sec-head { margin-bottom: var(--s5); }
  .col > .sec:first-of-type, .bleed + .sec { padding-top: var(--s6); }
  .deal-left { grid-template-columns: 96px minmax(0, 1fr); gap: var(--s3); }
  .deal-h { font-size: 32px; }
  .situations li { grid-template-columns: 1fr; }
  .situations .draw-sq { aspect-ratio: 16 / 9; }
  .two-col, .group-head, .group3, .argument, .foot-grid, .training { grid-template-columns: 1fr; }
  .group3-photo { position: static; }
  .group3-photo img, .argument-photo img { aspect-ratio: 4 / 3; }
  .foot-credits { grid-column: auto; }

  .lever-table thead { display: none; }
  .lever-table, .lever-table tbody, .lever-table tr, .lever-table th, .lever-table td { display: block; width: 100%; }
  .lever-table tr { border-bottom: 1px solid var(--rule); padding: var(--s3) 0; }
  .lever-table tr.us { background: var(--yellow-soft); padding: var(--s3); border-radius: var(--r-sm); border: 0; margin-top: var(--s1); }
  .lever-table tr.us th, .lever-table tr.us td { background: transparent; padding-left: 0; border-radius: 0; }
  .lever-table th, .lever-table td { border: 0; padding: 4px 0; }
  .lever-table td::before { content: attr(data-label); display: block; font-size: var(--t-cap); font-weight: 700; color: var(--muted); margin-top: var(--s1); }

  .callout { padding: var(--s4) var(--s3); gap: var(--s2); grid-template-columns: 26px 1fr; }
  .callout-art { grid-template-columns: 1fr; }
  .procure-art { width: 96px; }
  .pull { padding-left: var(--s3); }
  .training-photo img { min-height: 0; aspect-ratio: 4 / 3; }
  .training-text { padding: var(--s4); }
  .leaks-photo { grid-template-columns: 1fr; gap: var(--s6); }
  .leaks-icon li, .leaks-list li { grid-template-columns: 1fr; gap: var(--s3); }
  .leaks-icon .draw, .leaks-list .draw { aspect-ratio: 2 / 1; }
  .leaks-icon .draw svg, .leaks-list .draw svg { width: 52%; height: auto; }
  .group-h { font-size: 24px; }

  .calc { padding: var(--s4) var(--s3); gap: var(--s5); }
  .calc-out { padding: var(--s3); }
  .lr { grid-template-columns: 1fr; gap: 4px; }
  .lr dd { text-align: left; padding-left: 34px; }
  .lr-net dd { justify-self: start; margin-left: 34px; padding-left: 12px; }
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--s2); }
  .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .buys { grid-template-columns: 1fr; gap: 0; }
  .buys li { grid-template-columns: 28px 1fr; column-gap: var(--s2); padding: var(--s3) 0; }
  .buys li .ic { grid-row: span 2; }

  .said-head { display: none; }
  .said li { grid-template-columns: 1fr; gap: var(--s2); }
  .said .lbl { display: block; font-size: var(--t-cap); font-weight: 700; color: var(--muted); grid-column: 2; order: -1; }
  .said p { grid-template-columns: 22px 1fr; row-gap: 2px; }
  .said p .ic { grid-row: span 2; }

  .beats li > div { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 88px 1fr; align-items: start; }
  .steps { grid-template-columns: 1fr; gap: var(--s5); }
  .timeline { grid-template-columns: 1fr; row-gap: var(--s5); }
  .route { height: 64px; }
  .route-road { top: 18px; height: 44px; }
  .route-bus { width: 80px; height: 40px; }
  .hour { grid-template-columns: 1fr; }
  .form-shell { padding: var(--s4) var(--s3); }
  .form-grid, .checks { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 100%; }

  .sessions { grid-template-columns: 1fr; gap: var(--s6); }
  .t-cta { grid-template-columns: 1fr; padding: var(--s4); }
  .t-cta .btn { width: 100%; }
}

/* training: the chalkboard drawing fills its frame */
.room-art svg { width: 82%; }
@media (max-width: 1080px) { .room-art { aspect-ratio: 4 / 3; } }

/* header booking label: full on wide screens, short on phones */
.bl-short { display: none; }
@media (max-width: 720px) { .bl-long { display: none; } .bl-short { display: inline; } }

/* Form intro: the first thing a visitor sees when a button drops them on the form */
.form-intro { margin-bottom: var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid var(--rule); }
.form-intro h3 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; color: var(--ink); }
.form-intro p { font-size: 17px; line-height: 1.6; margin: 0; color: var(--ink); max-width: 62ch; }
.checks legend { font-size: 16px; }

/* ---------- homepage v2 (Dec 3rd): no chapter index, FAQ, short form ---------- */
.shell.no-toc { display: block; }
.after-table { margin-top: var(--s4); max-width: var(--read); font-size: 17px; line-height: 1.6; color: var(--muted); }
.more-lines { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); margin-top: var(--s6); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s4); font-size: 17px; line-height: 1.6; }
.calc-sec .assume + .btn { margin-top: var(--s5); }
.calc-sec .assume .calc-more { margin-bottom: var(--s5); }
.faq { border-top: 1px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; gap: var(--s3); align-items: center; padding: var(--s4) 0; font-size: var(--t-h4); font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 26px; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 var(--s4); font-size: 17px; line-height: 1.7; max-width: var(--read); }
#here .btn-row { margin-bottom: var(--s6); }
.form-more { margin-top: var(--s4); border-top: 1px solid var(--rule); }
.form-more summary { cursor: pointer; list-style: none; padding: var(--s3) 0; font-weight: 700; display: flex; align-items: center; gap: var(--s2); }
.form-more summary::-webkit-details-marker { display: none; }
.form-more summary::before { content: "+"; font-size: 22px; line-height: 1; width: 18px; }
.form-more[open] summary::before { content: "\2212"; }
.form-more-body { display: grid; gap: var(--s4); padding-bottom: var(--s3); }
.form-grid .f-email { max-width: none; }

.fee-star{color:inherit;text-decoration:none;font-weight:700;margin-left:1px}
.fee-note{font-size:16px;line-height:1.5;color:#5b5548;max-width:760px;margin:18px 0 0}

/* ---------- guide pages (/software-licensing-compliance/ and the others) ---------- */
.g-meta { font-size: var(--t-small); color: var(--muted); }
.prose { display: grid; gap: var(--s4); max-width: var(--read); }
.prose h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 750; margin-top: var(--s3); display: flex; gap: var(--s2); align-items: center; }
.prose ul, .prose ol { display: grid; gap: var(--s2); padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--yellow-deep); font-weight: 700; }
.prose .table-scroll, .prose .g-fig { max-width: none; }
.g-wide { max-width: none; }
.g-table { font-size: 16px; }
.g-table td, .g-table th { padding: var(--s3) var(--s3) var(--s3) 0; }
.g-table tbody th { white-space: normal; font-size: 16px; }
.g-fig { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s4); display: grid; gap: var(--s3); }
.g-fig-h { font-size: var(--t-h4); font-weight: 700; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.g-fig .bar-row { grid-template-columns: minmax(0, 13em) minmax(0, 1fr) 6.2em; }
.g-fig .bar-row.hl > span:first-child { font-weight: 800; }
.g-fig .bar-row:not(.hl) .bar-fill { background: var(--rule); }
.g-note { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); background: var(--yellow-soft); border-radius: var(--r-sm); padding: var(--s3); font-size: var(--t-small); line-height: 1.5; color: var(--ink); max-width: var(--read); }
.g-note .ic { margin-top: 2px; }
.g-sources { font-size: 15px; line-height: 1.55; color: var(--muted); }
.g-sources ol { display: grid; gap: 6px; padding-left: 1.4em; list-style: decimal; }
.g-sources a { color: var(--ink-2); overflow-wrap: anywhere; }
.g-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3); }
.g-related a { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: var(--s3); font-weight: 700; font-size: var(--t-small); line-height: 1.4; text-decoration: none; }
.g-related a:hover { border-color: var(--ink); }
.g-hero-art { max-width: 420px; justify-self: end; width: 100%; }
.guides-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3); margin-top: var(--s6); }
.guides-row a { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: var(--s3); font-weight: 700; font-size: var(--t-small); line-height: 1.4; text-decoration: none; }
.guides-row a:hover { border-color: var(--ink); }
.guides-h { font-size: var(--t-h4); font-weight: 700; color: var(--ink); margin-top: var(--s6); }
.guides-h + .guides-row { margin-top: var(--s3); }
@media (max-width: 1080px) { .g-hero-art { justify-self: start; max-width: 320px; } }
@media (max-width: 720px) { .g-fig .bar-row { grid-template-columns: minmax(0, 1fr) auto; } .g-table { font-size: 15px; } }

/* ---------- guides hub (/guides/) and the Guides nav link ---------- */
.hub-hero { max-width: var(--read); margin-top: var(--s4); }
.shell.no-toc .col > #guides.sec { padding-top: var(--s5); }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--s4); }
.hub-card { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); align-items: start; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: var(--s4); text-decoration: none; color: var(--ink); }
.hub-card:hover { border-color: var(--ink); }
.hub-card .ic { margin-top: 3px; }
.hub-t { display: block; font-size: var(--t-h4); font-weight: 700; line-height: 1.3; }
.hub-s { display: block; margin-top: var(--s2); font-size: 17px; line-height: 1.55; color: var(--ink-2); }
#training .t-cta { margin-top: var(--s6); }
@media (max-width: 720px) { .mast-link.mast-keep { display: inline; } }
@media (max-width: 359px) { .mast-link.mast-keep { display: none; } }
.mast-nav a, .mast-link { white-space: nowrap; }
@media (min-width: 1081px) and (max-width: 1180px) { .mast-in { gap: var(--s4); } .mast-nav { gap: var(--s3); } }
