/* Design tokens. The base comes from lacrossingbarriers.org (see brand/brand.json). */
@font-face {
  font-family: "Oswald";
  src: url("fonts/oswald-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Muli";
  src: url("fonts/muli-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  /* LB brand */
  --lb-red: #8a2323;
  --lb-charcoal: #2c2424;
  --lb-brown: #4d3f39;
  --lb-tan: #bb9a6d;
  --lb-tan-light: #e3c39c; /* LB site; close to the logo's tan */
  --ink: #000000;
  --ground: #ffffff;
  --line: #d8ccc4;
  --on-dark: #ffffff;
  --on-dark-off: #a3938c; /* turned-off buttons */

  /* Drill accents: each has at least 4.5:1 contrast with white (npm run check) */
  --accent-hungry-hippos: #b5471b;
  --accent-sharks-and-minnows: #1f5f8b;
  --accent-dont-break-the-egg: #7a5a00;
  --accent-wall-ball: #2b6b4a;
  --accent-baking-the-cake: #6b3a7e;

  /* Type, in px on the 1920 x 1080 canvas */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Muli", "Segoe UI", sans-serif;
  --type-poster: 216px;
  --type-hero: 212px;
  --type-title: 108px;
  --type-heading: 44px;
  --type-label: 33px;
  --type-lead: 34px;
  --type-body: 29px;
  --type-small: 24px;
  --type-side: 116px;  /* heading in a side column (slides 3, 29, 36) */
  --type-list: 27px;   /* text in a list beside a heading: questions, points, captions */

  /* Space */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --time-slide: 260ms;
  --time-press: 140ms;
  --stagger: 40ms;
}

/* Reduced motion: a short fade still shows that the slide changed, but nothing moves. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --time-slide: 120ms;
    --time-press: 0ms;
    --stagger: 0ms;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--lb-charcoal); }
body { font-family: var(--font-body); color: var(--ink); overflow: hidden; -webkit-text-size-adjust: 100%; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, video { display: block; }
a { color: inherit; }
::selection { background: var(--lb-tan-light); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Shell ---------- */
.deck { height: 100vh; height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr) auto; outline: none; }
.stage { position: relative; overflow: hidden; touch-action: pan-y; outline: none; }
.canvas { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.slide { position: relative; width: 1920px; height: 1080px; overflow: hidden; background: var(--ground); outline: none; }
[data-layout="stage"] .stage[data-edge="prev"] { cursor: w-resize; }
[data-layout="stage"] .stage[data-edge="next"] { cursor: e-resize; }
.stage:focus-visible::after {
  content: ""; position: absolute; inset: 0; border: 4px solid var(--lb-tan-light); pointer-events: none;
}

.bar { display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 4px 12px; background: var(--lb-charcoal); color: var(--on-dark); }
.bar .count { min-width: 78px; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar .spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 50px; background: transparent; color: inherit; font: 700 16px/1 var(--font-body); cursor: pointer;
  transition: transform var(--time-press) var(--ease-out);
}
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(0.97); }
a.btn { text-decoration: none; }
.btn[aria-disabled="true"] { color: var(--on-dark-off); cursor: default; transform: none; }
@media (hover: hover) and (pointer: fine) { .btn:not([aria-disabled="true"]):hover { background: var(--lb-red); } }
.btn:focus-visible, .thumb:focus-visible { outline: 3px solid var(--lb-tan-light); outline-offset: 2px; }
.mode-embed .bar { min-height: 46px; padding: 1px 6px; }
.mode-embed .btn .text { display: none; }
.toast { position: fixed; left: 50%; bottom: 70px; translate: -50% 0; max-width: 90vw; padding: 12px 20px; background: var(--ground); color: var(--ink); border-radius: 50px; font-weight: 700; z-index: 30; }

/* Slide change */
[data-layout="stage"] .slide.enter-next { animation: from-right var(--time-slide) var(--ease-out); }
[data-layout="stage"] .slide.enter-prev { animation: from-left var(--time-slide) var(--ease-out); }
@keyframes from-right { from { opacity: 0.4; transform: translateX(36px); } }
@keyframes from-left { from { opacity: 0.4; transform: translateX(-36px); } }

/* ---------- Shared slide parts ---------- */
.slide h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; text-wrap: balance; }
.rule { height: 0; width: 144px; border: 0; border-top: 9px double var(--lb-tan); margin: 0; }
.photo { margin: 0; overflow: hidden; background: var(--lb-brown); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Slide 1 ---------- */
.s-title { display: grid; grid-template: 700px 380px / 1060px 860px; }
.s-title .intro { position: relative; background: var(--lb-red); color: var(--on-dark); padding: 44px 64px 40px 96px; display: flex; flex-direction: column; }
.s-title .logo { position: absolute; right: 76px; top: 248px; width: 200px; height: 200px; }
.s-title h2 { font-size: var(--type-poster); line-height: 0.96; letter-spacing: -0.02em; margin: 0 0 20px -6px; }
.s-title h2 span { display: block; }
.s-title .lead { font-size: var(--type-lead); font-weight: 800; line-height: 1.3; }
.s-title .subtitle { font-size: var(--type-body); line-height: 1.4; margin-top: var(--space-1); text-wrap: pretty; }
.s-title .credit { font-size: 21px; line-height: 1.3; margin-top: auto; white-space: nowrap; }
.s-title .index { grid-column: 1 / -1; display: grid; grid-template-columns: 416px repeat(4, 376px); }
.s-title .index li { display: grid; }
.drill-link { display: flex; flex-direction: column; padding: 24px 24px 24px 32px; background: var(--accent); color: var(--on-dark); text-decoration: none; }
.s-title li:first-child .drill-link { padding-left: 96px; }
.drill-link .number { font: 700 168px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.drill-link .name { font: 600 var(--type-label)/1.15 var(--font-display); text-transform: uppercase; margin-top: 18px; white-space: nowrap; }
.drill-link .skill { font-size: var(--type-small); line-height: 1.3; margin-top: 8px; text-wrap: balance; }
.drill-link .number, .drill-link .name { text-decoration-thickness: 4px; text-underline-offset: 8px; }
@media (hover: hover) and (pointer: fine) { .drill-link:hover .name { text-decoration: underline; } }
.drill-link:focus-visible { outline: 8px solid var(--on-dark); outline-offset: -16px; }

/* ---------- Slide 2 ---------- */
.s-history h2 { position: absolute; left: 90px; top: 40px; font-size: var(--type-hero); line-height: 1.04; letter-spacing: -0.015em; }
.s-history h2 span { display: block; white-space: nowrap; }
.s-history h2 span + span { color: var(--lb-red); }
.s-history .rule { position: absolute; left: 96px; top: 516px; }
.s-history .body { position: absolute; left: 96px; top: 560px; width: 820px; font-size: var(--type-body); line-height: 1.42; }
.s-history .body p { text-wrap: pretty; }
.s-history .body p + p { margin-top: 18px; }
.s-history .photo { position: absolute; right: 0; bottom: 0; width: 928px; height: 564px; }

/* ---------- Slide 3 ---------- */
.s-questions { display: grid; grid-template-columns: 680px 1fr; }
.s-questions .side { background: var(--lb-charcoal); color: var(--on-dark); padding: 72px 56px 88px 96px; display: flex; flex-direction: column; }
.s-questions h2 { font-size: var(--type-side); line-height: 1.05; letter-spacing: -0.015em; }
.s-questions .rule { margin: 40px 0 0; }
.s-questions .intro { margin-top: auto; font-size: var(--type-lead); line-height: 1.5; }
.s-questions ol { display: grid; grid-template-rows: repeat(5, 1fr); padding: 32px 96px 32px 64px; }
.s-questions li { display: grid; grid-template-columns: 464px 1fr; gap: 40px; align-items: center; }
.s-questions li + li { border-top: 2px solid var(--line); }
.s-questions h3 { font: 600 var(--type-heading)/1.15 var(--font-display); color: var(--lb-red); text-transform: uppercase; text-wrap: balance; }
.s-questions li p { font-size: var(--type-list); line-height: 1.42; text-wrap: pretty; }

/* ---------- Slides 29 to 36: inclusion, contact, sources ---------- */
.s-inclusion-overview .arrow, .s-contact .arrow { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--time-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .point-link:hover .arrow, .action:hover .arrow { transform: translateX(10px); }
}

/* Slide 29 */
.s-inclusion-overview { display: grid; grid-template-columns: 680px 1fr; }
.s-inclusion-overview .side { background: var(--lb-red); color: var(--on-dark); padding: 72px 56px 88px 96px; display: flex; flex-direction: column; }
.s-inclusion-overview h2 { font-size: var(--type-side); line-height: 1.05; letter-spacing: -0.015em; }
.s-inclusion-overview h2 span { display: block; }
.s-inclusion-overview .rule { margin: 40px 0 0; border-top-color: var(--lb-tan-light); }
.s-inclusion-overview .intro { margin-top: auto; font-size: var(--type-lead); line-height: 1.5; text-wrap: pretty; }
.s-inclusion-overview .points { display: grid; grid-template-rows: repeat(5, 1fr); padding: 32px 96px 32px 64px; }
.s-inclusion-overview li + li { border-top: 2px solid var(--line); }
.point-link { display: grid; grid-template-columns: 1fr 56px; column-gap: 40px; align-content: center; height: 100%; color: var(--ink); text-decoration: none; }
.point-link .name { font: 600 56px/1.1 var(--font-display); color: var(--lb-red); text-transform: uppercase; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.point-link .gist { grid-column: 1; margin-top: 8px; font-size: var(--type-list); line-height: 1.42; text-wrap: pretty; }
.point-link .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 56px; height: 56px; color: var(--lb-red); }
.point-link:focus-visible { outline: 5px solid var(--lb-red); outline-offset: 6px; }
@media (hover: hover) and (pointer: fine) { .point-link:hover .name { text-decoration: underline; } }
.s-inclusion-overview.reveal .points li { animation: rise 280ms var(--ease-out) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Slides 30 to 34 */
.s-inclusion-point { display: grid; grid-template-columns: 900px 1020px; }
.s-inclusion-point .text { display: flex; flex-direction: column; padding: 80px 64px 72px 96px; }
.s-inclusion-point h2 { font-size: 104px; line-height: 0.98; letter-spacing: -0.015em; color: var(--lb-red); }
.s-inclusion-point h2 span { display: block; }
.s-inclusion-point .rule { margin: 40px 0 36px; }
.s-inclusion-point .body { font-size: var(--type-lead); line-height: 1.45; text-wrap: pretty; }
.s-inclusion-point .seen { margin-top: auto; padding-top: 40px; }
.s-inclusion-point .seen h3 { font: 600 var(--type-small)/1.2 var(--font-display); text-transform: uppercase; color: var(--lb-brown); margin-bottom: 16px; }
.s-inclusion-point .seen ul { display: flex; flex-wrap: wrap; gap: 14px; }
.chip { display: inline-flex; align-items: baseline; gap: 12px; padding: 12px 26px 14px; border-radius: 50px; background: var(--accent); color: var(--on-dark); text-decoration: none; transition: transform var(--time-press) var(--ease-out); }
.chip .card { font: 600 26px/1.2 var(--font-display); text-transform: uppercase; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.chip .drill { font-size: 20px; line-height: 1.2; }
.chip:active { transform: scale(0.97); }
.chip:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .chip:hover .card { text-decoration: underline; } }
.s-inclusion-point .panel { display: grid; place-items: center; padding: 72px; background: var(--lb-charcoal); color: var(--on-dark); }
.s-inclusion-point figure { margin: 0; }
.s-inclusion-point .landscape { width: 816px; }
.s-inclusion-point .landscape .frame { aspect-ratio: 16 / 9; overflow: hidden; background: var(--lb-brown); }
.s-inclusion-point .frame img { width: 100%; height: 100%; object-fit: cover; }
.s-inclusion-point figcaption { margin-top: 24px; font-size: var(--type-list); line-height: 1.45; text-wrap: pretty; }
/* Portrait card: the web photo at 480px, under its own 495px, so it is never stretched. */
.s-inclusion-point .portrait-card { width: 528px; padding: 24px 24px 28px; background: var(--ground); color: var(--ink); box-shadow: 0 18px 44px rgb(0 0 0 / 0.35); }
.s-inclusion-point .portrait-card .frame { aspect-ratio: 3 / 4; overflow: hidden; background: var(--line); }
.s-inclusion-point .portrait-card figcaption { margin-top: 20px; font-size: var(--type-small); line-height: 1.4; }

/* Slide 35 */
.s-contact { display: grid; grid-template-columns: 1000px 1fr; }
.s-contact .call { display: flex; flex-direction: column; padding: 72px 64px 80px 96px; background: var(--lb-red); color: var(--on-dark); }
.s-contact .logo { width: 168px; height: 168px; }
.s-contact h2 { margin-top: auto; font-size: 176px; line-height: 0.98; letter-spacing: -0.02em; }
.s-contact h2 span { display: block; }
.s-contact .lead { margin-top: 36px; max-width: 22em; font-size: var(--type-lead); font-weight: 800; line-height: 1.35; text-wrap: pretty; }
.s-contact .reach { display: flex; flex-direction: column; padding: 96px 96px 72px 72px; }
.s-contact .actions { display: grid; gap: 20px; margin-top: auto; }
.action { display: grid; grid-template-columns: 1fr 44px; column-gap: 24px; padding: 26px 32px 28px; border: 3px solid var(--lb-charcoal); border-radius: 24px; color: var(--ink); text-decoration: none; transition: transform var(--time-press) var(--ease-out); }
.action .label { font: 600 var(--type-small)/1.2 var(--font-display); text-transform: uppercase; color: var(--lb-red); }
.action .value { grid-column: 1; margin-top: 6px; font-size: 34px; font-weight: 800; line-height: 1.25; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.action .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 44px; height: 44px; }
.action.primary { background: var(--lb-charcoal); color: var(--on-dark); }
.action.primary .label { color: var(--lb-tan-light); }
.action:active { transform: scale(0.97); }
.action:focus-visible { outline: 5px solid var(--lb-red); outline-offset: 5px; }
@media (hover: hover) and (pointer: fine) { .action:hover .value { text-decoration: underline; } }
.s-contact .place { margin-top: 40px; font-size: var(--type-body); font-weight: 800; }
.s-contact .credit { margin-top: auto; font-size: 21px; line-height: 1.4; color: var(--lb-brown); text-wrap: pretty; }

/* Slide 36: the same side column as slides 3 and 29, so each reference keeps a readable line (about 80 characters). */
.s-sources { display: grid; grid-template-columns: 680px 1fr; }
.s-sources .head { display: flex; flex-direction: column; padding: 72px 56px 88px 96px; border-right: 2px solid var(--line); }
.s-sources h2 { font-size: var(--type-side); line-height: 1.05; letter-spacing: -0.015em; color: var(--lb-red); }
.s-sources .rule { margin: 40px 0 0; }
.s-sources .intro { margin-top: auto; font-size: var(--type-body); line-height: 1.5; text-wrap: pretty; }
.s-sources .refs { align-self: center; padding: 72px 96px 72px 64px; }
.s-sources .refs li { padding-left: 1.75em; text-indent: -1.75em; font-size: var(--type-body); line-height: 1.5; text-wrap: pretty; }
.s-sources .refs li + li { margin-top: 28px; }
.s-sources .refs a { color: var(--lb-red); text-underline-offset: 4px; }
.s-sources .refs a:focus-visible { outline: 4px solid var(--lb-red); outline-offset: 3px; }

/* ---------- Not built yet ---------- */
.s-stub { display: grid; align-content: center; justify-items: start; gap: var(--space-4); padding: 0 var(--space-7); }
.s-stub h2 { font-size: var(--type-title); line-height: 1.1; max-width: 1500px; color: var(--accent, var(--lb-red)); }
.s-stub p { font-size: var(--type-lead); }

/* ---------- Overview ---------- */
.overview { position: fixed; inset: 0; z-index: 20; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 32px; background: var(--lb-charcoal); color: var(--on-dark); scrollbar-color: var(--lb-tan) var(--lb-charcoal); }
.overview > .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.overview > .head h2 { font: 600 30px/1.2 var(--font-display); }
.overview > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px 16px; }
.thumb { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--on-dark); text-align: left; font: 700 16px/1.35 var(--font-body); cursor: pointer; }
.thumb .frame { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ground); margin-bottom: 6px; }
.thumb .frame .slide { position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; color: var(--ink); }
.thumb[aria-current="true"] .frame { outline: 4px solid var(--lb-tan-light); }

/* ---------- Presenter ---------- */
.presenter { height: 100dvh; display: grid; grid-template: minmax(0, 1fr) auto / minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; padding: 16px; color: var(--on-dark); }
.presenter .view { position: relative; overflow: hidden; min-height: 0; }
.presenter .view .slide { position: absolute; top: 0; left: 0; transform-origin: 0 0; color: var(--ink); pointer-events: none; }
.presenter > aside { display: grid; grid-template-rows: auto minmax(120px, 0.8fr) auto minmax(0, 1fr); gap: 8px; min-height: 0; }
.presenter > aside > h2 { font: 600 20px/1.3 var(--font-display); }
.presenter .notes { overflow-y: auto; font-size: 22px; line-height: 1.5; white-space: pre-wrap; }
.presenter > footer { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.presenter .clock { margin-left: auto; font-size: 24px; font-weight: 700; }

/* ---------- Phones: one stacked section per slide ---------- */
[data-layout="scroll"] .stage { overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--lb-tan) var(--lb-charcoal); }
/* Embedded on a phone: at the end of the deck, a swipe carries on down the LB page instead of getting stuck. */
.mode-embed[data-layout="scroll"] .stage { overscroll-behavior: auto; }
[data-layout="scroll"] .canvas { position: static; width: auto; height: auto; transform: none !important; }
[data-layout="scroll"] .canvas .slide { display: block; width: auto; height: auto; min-height: 0; }
[data-layout="scroll"] .bar .spacer { display: none; }
[data-layout="scroll"] .bar { justify-content: center; }
[data-layout="scroll"] .bar .text, [data-layout="scroll"] .bar .notes-btn { display: none; }

[data-layout="scroll"] .canvas .s-title .intro { display: block; padding: 28px 20px 32px; }
[data-layout="scroll"] .canvas .s-title .logo { position: static; width: 88px; height: 88px; }
[data-layout="scroll"] .canvas .s-title h2 { font-size: clamp(64px, 26vw, 168px); margin: 16px 0 16px -2px; }
[data-layout="scroll"] .canvas .s-title .lead { font-size: 20px; }
[data-layout="scroll"] .canvas .s-title .subtitle { font-size: 18px; line-height: 1.5; }
[data-layout="scroll"] .canvas .s-title .credit { font-size: 16px; line-height: 1.5; margin-top: 24px; white-space: normal; }
[data-layout="scroll"] .canvas .s-title .photo { aspect-ratio: 43 / 35; }
[data-layout="scroll"] .canvas .s-title .index { display: block; }
[data-layout="scroll"] .canvas .drill-link { display: grid; grid-template-columns: 76px 1fr; align-items: center; padding: 16px 20px; }
[data-layout="scroll"] .canvas .s-title li:first-child .drill-link { padding-left: 20px; }
[data-layout="scroll"] .canvas .drill-link .number { font-size: 52px; grid-row: span 2; }
[data-layout="scroll"] .canvas .drill-link .name { font-size: 22px; margin: 0; white-space: normal; }
[data-layout="scroll"] .canvas .drill-link .skill { font-size: 16px; margin-top: 2px; }
[data-layout="scroll"] .canvas .drill-link:focus-visible { outline-width: 3px; outline-offset: -6px; }

[data-layout="scroll"] .canvas .rule { width: 72px; border-top-width: 6px; }
[data-layout="scroll"] .canvas .s-history { display: flex; flex-direction: column; padding-top: 48px; }
[data-layout="scroll"] .canvas .s-history > * { position: static; }
[data-layout="scroll"] .canvas .s-history h2 { font-size: clamp(34px, 11.4vw, 76px); padding: 0 20px; }
[data-layout="scroll"] .canvas .s-history .rule { margin: 24px 20px; }
[data-layout="scroll"] .canvas .s-history .body { width: auto; padding: 0 20px 32px; font-size: 18px; line-height: 1.6; }
[data-layout="scroll"] .canvas .s-history .photo { width: 100%; height: auto; aspect-ratio: 16 / 11; }

[data-layout="scroll"] .canvas .s-questions .side { display: block; padding: 48px 20px 40px; }
[data-layout="scroll"] .canvas .s-questions h2 { font-size: clamp(48px, 16vw, 96px); }
[data-layout="scroll"] .canvas .s-questions .rule { margin: 20px 0; }
[data-layout="scroll"] .canvas .s-questions .intro { padding: 0; font-size: 18px; line-height: 1.6; }
[data-layout="scroll"] .canvas .s-questions ol { display: block; padding: 8px 20px 32px; }
[data-layout="scroll"] .canvas .s-questions li { display: block; padding: 24px 0; }
[data-layout="scroll"] .canvas .s-questions h3 { font-size: 26px; margin-bottom: 8px; }
[data-layout="scroll"] .canvas .s-questions li p { font-size: 18px; line-height: 1.6; }

[data-layout="scroll"] .canvas .s-inclusion-overview .side { display: block; padding: 48px 20px 40px; }
[data-layout="scroll"] .canvas .s-inclusion-overview h2 { font-size: clamp(44px, 14vw, 96px); }
[data-layout="scroll"] .canvas .s-inclusion-overview .rule { margin: 20px 0; }
[data-layout="scroll"] .canvas .s-inclusion-overview .intro { font-size: 18px; line-height: 1.6; }
[data-layout="scroll"] .canvas .s-inclusion-overview .points { display: block; padding: 8px 20px 32px; }
[data-layout="scroll"] .canvas .point-link { grid-template-columns: 1fr 28px; column-gap: 16px; padding: 22px 0; }
[data-layout="scroll"] .canvas .point-link .name { font-size: 26px; }
[data-layout="scroll"] .canvas .point-link .gist { font-size: 16px; line-height: 1.55; }
[data-layout="scroll"] .canvas .point-link .arrow { width: 28px; height: 28px; }
[data-layout="scroll"] .canvas .s-inclusion-point .text { display: block; padding: 48px 20px 32px; border-top: 1px solid var(--line); }
[data-layout="scroll"] .canvas .s-inclusion-point h2 { font-size: clamp(38px, 12vw, 84px); }
[data-layout="scroll"] .canvas .s-inclusion-point .rule { margin: 20px 0; }
[data-layout="scroll"] .canvas .s-inclusion-point .body { font-size: 18px; line-height: 1.6; }
[data-layout="scroll"] .canvas .s-inclusion-point .seen { padding-top: 28px; }
[data-layout="scroll"] .canvas .s-inclusion-point .seen h3 { font-size: 16px; margin-bottom: 12px; }
[data-layout="scroll"] .canvas .s-inclusion-point .seen ul { gap: 10px; }
[data-layout="scroll"] .canvas .chip { flex-wrap: wrap; gap: 2px 8px; padding: 10px 18px 11px; min-height: 44px; align-items: center; }
[data-layout="scroll"] .canvas .chip .card { font-size: 18px; }
[data-layout="scroll"] .canvas .chip .drill { font-size: 16px; }
[data-layout="scroll"] .canvas .s-inclusion-point .panel { display: block; padding: 24px 20px 40px; }
[data-layout="scroll"] .canvas .s-inclusion-point .landscape { width: auto; margin: 0 -20px; }
[data-layout="scroll"] .canvas .s-inclusion-point .landscape figcaption { padding: 0 20px; }
[data-layout="scroll"] .canvas .s-inclusion-point .portrait-card { width: auto; max-width: 400px; margin: 0 auto; padding: 16px 16px 20px; }
[data-layout="scroll"] .canvas .s-inclusion-point figcaption { margin-top: 16px; font-size: 16px; line-height: 1.5; }
[data-layout="scroll"] .canvas .s-contact .call { display: block; padding: 48px 20px 40px; }
[data-layout="scroll"] .canvas .s-contact .logo { width: 88px; height: 88px; margin-bottom: 24px; }
[data-layout="scroll"] .canvas .s-contact h2 { font-size: clamp(52px, 17vw, 112px); }
[data-layout="scroll"] .canvas .s-contact .lead { margin-top: 20px; font-size: 20px; }
[data-layout="scroll"] .canvas .s-contact .reach { display: block; padding: 28px 20px 40px; }
[data-layout="scroll"] .canvas .s-contact .actions { gap: 12px; }
[data-layout="scroll"] .canvas .action { grid-template-columns: 1fr 28px; column-gap: 12px; padding: 16px 18px 18px; border-radius: 18px; }
[data-layout="scroll"] .canvas .action .label { font-size: 16px; }
[data-layout="scroll"] .canvas .action .value { font-size: 18px; }
[data-layout="scroll"] .canvas .action .arrow { width: 28px; height: 28px; }
[data-layout="scroll"] .canvas .s-contact .place { margin-top: 24px; font-size: 18px; }
[data-layout="scroll"] .canvas .s-contact .credit { margin-top: 16px; font-size: 16px; line-height: 1.5; }
[data-layout="scroll"] .canvas .s-sources { display: block; padding: 48px 20px 40px; border-top: 1px solid var(--line); }
[data-layout="scroll"] .canvas .s-sources h2 { font-size: clamp(44px, 14vw, 80px); }
[data-layout="scroll"] .canvas .s-sources .rule { margin: 20px 0; }
[data-layout="scroll"] .canvas .s-sources .intro { font-size: 18px; line-height: 1.6; }
[data-layout="scroll"] .canvas .s-sources .head { display: block; padding: 0; border: 0; }
[data-layout="scroll"] .canvas .s-sources .refs { margin-top: 28px; padding: 0; }
[data-layout="scroll"] .canvas .s-sources .refs li { font-size: 16px; line-height: 1.6; }
[data-layout="scroll"] .canvas .s-sources .refs li + li { margin-top: 16px; }

[data-layout="scroll"] .canvas .s-stub { padding: 56px 20px; border-top: 1px solid var(--line); }
[data-layout="scroll"] .canvas .s-stub h2 { font-size: 34px; margin-bottom: 12px; }
[data-layout="scroll"] .canvas .s-stub p { font-size: 18px; }

/* ---------- Print: one slide per page, no motion ---------- */
@page { size: 1920px 1080px; margin: 0; }
html.mode-print, .mode-print body { height: auto; overflow: visible; background: var(--ground); }
.mode-print .deck { display: block; height: auto; }
.mode-print .stage { overflow: visible; }
.mode-print .canvas { position: static; height: auto; transform: none !important; }
.mode-print .slide { break-after: page; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.mode-print .slide:last-child { break-after: auto; }
.mode-print *, .mode-print *::before, .mode-print *::after { animation: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  [data-layout="stage"] .slide.enter-next, [data-layout="stage"] .slide.enter-prev { animation-name: fade; }
  .btn:active, .chip:active, .action:active, .media .toggle:active { transform: none; }
}
@keyframes fade { from { opacity: 0.4; } }
@media (forced-colors: active) {
  .drill-link { border: 2px solid LinkText; }
  .thumb[aria-current="true"] .frame { outline-color: Highlight; }
}

/* ---------- Keep hyphenated words whole ---------- */
.nb { white-space: nowrap; }
.photo picture, .media picture { display: contents; }

/* ---------- Media slots: a photo, loop or placeholder always fills the same box ---------- */
.media { position: relative; overflow: hidden; margin: 0; background: var(--tint); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media .toggle {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 72px; height: 72px; padding: 0;
  border: 0; border-radius: 50%; background: var(--lb-charcoal); color: var(--on-dark); cursor: pointer;
  transition: transform var(--time-press) var(--ease-out);
}
.media .toggle:active { transform: scale(0.97); }
.media .toggle svg { width: 36px; height: 36px; fill: currentColor; }
.media .toggle:focus-visible { outline: 5px solid var(--lb-tan-light); outline-offset: 3px; }
.pending {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%;
  padding: 20px; border: 3px dashed var(--accent); color: var(--accent); text-align: center;
}
.pending svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pending .status { font: 600 34px/1.2 var(--font-display); text-transform: uppercase; }
.pending .what { font-size: 24px; line-height: 1.3; color: var(--ink); text-wrap: balance; }

/* ---------- Shared frame for drill slides b to e ---------- */
.slide[data-drill] { --tint: color-mix(in srgb, var(--accent) 9%, var(--ground)); }
.railed { display: grid; grid-template-columns: 144px 1fr; }
.rail { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 48px 0; background: var(--accent); color: var(--on-dark); }
.rail .number { font: 700 92px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rail .name { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 44px/1 var(--font-display); text-transform: uppercase; white-space: nowrap; }
.railed h2 { color: var(--accent); line-height: 1.08; letter-spacing: -0.01em; }
.railed p { text-wrap: pretty; }

/* ---------- a. Opener ---------- */
.s-drill-what { display: grid; grid-template-rows: 720px 360px; }
.s-drill-what .top { display: grid; grid-template-columns: 650px 1fr; gap: 64px; align-items: center; padding: 0 64px 0 84px; background: var(--accent); color: var(--on-dark); }
.s-drill-what .number { align-self: start; margin-top: 11px; font: 700 640px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.s-drill-what h2 { font-size: 200px; line-height: 1.05; letter-spacing: -0.015em; }
.s-drill-what .skill { margin-top: 28px; font-size: 46px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.s-drill-what .what { display: grid; grid-template-columns: 650px 1fr; gap: 64px; align-items: center; padding: 0 96px; }
.s-drill-what h3 { font: 600 76px/1.1 var(--font-display); color: var(--accent); text-transform: uppercase; text-wrap: balance; }
.s-drill-what .what p { font-size: 38px; line-height: 1.42; text-wrap: pretty; }

/* ---------- b. How ---------- */
.s-drill-how .body { display: grid; grid-template-columns: 560px 1008px; gap: 64px; align-items: center; padding: 72px; }
.s-drill-how h2 { font-size: 92px; }
.s-drill-how .rule { margin: 32px 0; }
.s-drill-how .text p { font-size: 31px; line-height: 1.5; }
.schematic { position: relative; display: grid; place-content: center; justify-items: center; gap: 12px; width: 1008px; height: 936px; background: var(--tint); border: 3px dashed var(--accent); text-align: center; }
.schematic strong { font: 600 52px/1.2 var(--font-display); color: var(--accent); text-transform: uppercase; }
.schematic span { font-size: 29px; line-height: 1.4; }
.schematic .draft { position: absolute; top: 24px; right: 24px; padding: 8px 20px; border-radius: 50px; background: var(--lb-charcoal); color: var(--on-dark); font-size: 22px; font-weight: 700; }

/* ---------- c. Why: the reason sits directly on a full-width "Change the game" band ---------- */
.s-drill-why .body { display: grid; grid-template-rows: 1fr 620px; }
.s-drill-why .reason { align-self: center; padding: 0 72px; }
.s-drill-why h2 { font-size: 108px; }
.s-drill-why .answer { margin-top: 24px; font-size: 42px; line-height: 1.45; text-wrap: balance; }
.s-drill-why .game { display: grid; grid-template-rows: auto 1fr; gap: 24px; padding: 36px 72px 48px; background: var(--tint); }
.s-drill-why h3 { font: 600 60px/1.1 var(--font-display); }
.change { display: grid; grid-template-columns: 432px 1fr; gap: 20px; }
.change .same { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 36px; background: var(--accent); color: var(--on-dark); }
.change .same strong { font: 600 42px/1.15 var(--font-display); }
.change .same p { font-size: 38px; font-weight: 700; line-height: 1.34; }
.change ul { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; }
.change li { padding: 36px 20px 24px 24px; background: var(--ground); }
.change h4 { margin: 0 0 16px; font: 600 40px/1.15 var(--font-display); color: var(--accent); text-transform: uppercase; text-wrap: balance; }
.change li p { font-size: 33px; line-height: 1.36; }

/* ---------- d. In action: one large shot, then a three-step visual task card ---------- */
.s-drill-action .body { position: relative; }
.s-drill-action h2 { position: absolute; left: 72px; top: 96px; font-size: 188px; line-height: 1; }
.s-drill-action .rule { position: absolute; left: 72px; top: 332px; }
.s-drill-action .hero { margin: 0; }
.s-drill-action .hero .media { position: absolute; right: 0; top: 0; width: 780px; height: 624px; }
.s-drill-action .hero figcaption { position: absolute; left: 72px; top: 376px; width: 820px; font-size: 44px; font-weight: 700; line-height: 1.32; text-wrap: balance; }
.sequence { position: absolute; left: 72px; top: 652px; display: grid; grid-template-columns: repeat(3, 464px); column-gap: 120px; }
.sequence li { position: relative; }
.sequence h3 { height: 52px; font: 600 40px/52px var(--font-display); color: var(--accent); text-transform: uppercase; }
.sequence .media { width: 464px; height: 261px; }
.sequence .caption { height: 64px; margin-top: 10px; font-size: 24px; line-height: 32px; text-wrap: balance; }
.sequence .arrow { position: absolute; left: 480px; top: 138px; width: 88px; height: 88px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sequence .media .toggle { right: 8px; bottom: 8px; width: 64px; height: 64px; }
.sequence .pending { gap: 4px; padding: 12px; }
.sequence .pending svg { width: 52px; height: 52px; }

/* ---------- e. Where next, when and who ---------- */
.s-drill-next .body { display: grid; grid-template-rows: 1fr 288px; }
.s-drill-next .blocks { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; column-gap: 96px; padding: 88px 96px 0 72px; }
.s-drill-next .block { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.s-drill-next h2 { font-size: 80px; }
.s-drill-next .rule { margin: 32px 0; }
.s-drill-next .block p { font-size: 35px; line-height: 1.5; }
.next-link { display: flex; align-items: center; gap: 32px; margin-left: 4px; padding: 0 72px; background: var(--accent); color: var(--on-dark); font: 600 92px/1.1 var(--font-display); text-decoration: none; }
.next-link .label { font-weight: 400; }
.next-link .arrow { flex: none; width: 108px; height: 108px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--time-press) var(--ease-out); }
.next-link:focus-visible { outline: 8px solid var(--on-dark); outline-offset: -20px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .next-link:hover .arrow { transform: translateX(16px); } }

/* ---------- Keyboard shortcuts ---------- */
.btn .glyph { font: 700 22px/1 var(--font-body); }
.help { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; overflow-y: auto; overscroll-behavior: contain; padding: 16px; background: var(--lb-charcoal); }
.help .panel { width: min(640px, 100%); padding: 20px 28px 28px; background: var(--ground); color: var(--ink); }
.help .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.help h2 { font: 600 30px/1.2 var(--font-display); }
.help dl > div { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.help dt { font-weight: 800; }
.help .btn:focus-visible { outline-color: var(--lb-red); }
@media (hover: hover) and (pointer: fine) { .help .btn:not([aria-disabled="true"]):hover { color: var(--on-dark); } }

/* ---------- Phones ---------- */
@media (max-width: 400px) {
  .bar { gap: 0; padding-inline: 4px; }
  .bar .count { min-width: 62px; }
}
/* The smallest phones: keyboard shortcuts are no use on a touch screen, and dropping that button keeps the bar on screen. */
@media (max-width: 360px) { .bar .help-btn { display: none; } }
[data-layout="scroll"] .canvas .rail { flex-direction: row; justify-content: flex-start; align-items: center; gap: 16px; padding: 12px 20px; }
[data-layout="scroll"] .canvas .rail .number { font-size: 36px; }
[data-layout="scroll"] .canvas .rail .name { writing-mode: horizontal-tb; transform: none; font-size: 22px; }
[data-layout="scroll"] .canvas .railed .body { display: block; padding: 32px 20px 44px; }
[data-layout="scroll"] .canvas .railed h2 { position: static; font-size: clamp(34px, 10.5vw, 60px); }
[data-layout="scroll"] .canvas .railed .rule { position: static; margin: 20px 0; }
[data-layout="scroll"] .canvas .railed p { font-size: 18px; line-height: 1.6; }
[data-layout="scroll"] .canvas .media { width: 100%; height: auto; }
[data-layout="scroll"] .canvas .media .toggle { width: 48px; height: 48px; }
[data-layout="scroll"] .canvas .media .toggle svg { width: 24px; height: 24px; }
[data-layout="scroll"] .canvas .pending .status { font-size: 22px; line-height: 1.2; }
[data-layout="scroll"] .canvas .pending .what { font-size: 16px; line-height: 1.35; }

[data-layout="scroll"] .canvas .s-drill-what .top { display: block; padding: 32px 20px 36px; }
[data-layout="scroll"] .canvas .s-drill-what .number { display: block; margin: 0 0 8px -4px; font-size: clamp(150px, 52vw, 300px); }
[data-layout="scroll"] .canvas .s-drill-what h2 { font-size: clamp(44px, 14.5vw, 96px); }
[data-layout="scroll"] .canvas .s-drill-what .skill { margin-top: 12px; font-size: 21px; line-height: 1.4; }
[data-layout="scroll"] .canvas .s-drill-what .what { display: block; padding: 32px 20px 44px; }
[data-layout="scroll"] .canvas .s-drill-what h3 { margin-bottom: 12px; font-size: 30px; }
[data-layout="scroll"] .canvas .s-drill-what .what p { font-size: 18px; line-height: 1.6; }

[data-layout="scroll"] .canvas .schematic { width: 100%; height: auto; aspect-ratio: 1008 / 936; margin-top: 28px; padding: 56px 16px 16px; }
[data-layout="scroll"] .canvas .schematic strong { font-size: 26px; }
[data-layout="scroll"] .canvas .schematic span { font-size: 16px; }
[data-layout="scroll"] .canvas .schematic .draft { top: 12px; right: 12px; padding: 6px 14px; font-size: 16px; }

[data-layout="scroll"] .canvas .s-drill-why .body { padding: 0; }
[data-layout="scroll"] .canvas .s-drill-why .reason { padding: 32px 20px; }
[data-layout="scroll"] .canvas .s-drill-why .answer { margin-top: 16px; }
[data-layout="scroll"] .canvas .s-drill-why .game { display: block; padding: 28px 20px 32px; }
[data-layout="scroll"] .canvas .s-drill-why h3 { margin: 0 0 16px; font-size: 30px; }
[data-layout="scroll"] .canvas .change, [data-layout="scroll"] .canvas .change ul { display: block; }
[data-layout="scroll"] .canvas .change .same { padding: 20px; gap: 8px; }
[data-layout="scroll"] .canvas .change .same strong { font-size: 24px; }
[data-layout="scroll"] .canvas .change li { margin-top: 12px; padding: 20px; }
[data-layout="scroll"] .canvas .change h4 { margin-bottom: 6px; font-size: 24px; }

[data-layout="scroll"] .canvas .s-drill-action .hero .media { position: relative; }
[data-layout="scroll"] .canvas .s-drill-action .hero figcaption { position: static; width: auto; margin-top: 12px; font-size: 20px; line-height: 1.4; }
[data-layout="scroll"] .canvas .sequence { position: static; display: block; margin-top: 36px; }
[data-layout="scroll"] .canvas .sequence h3 { height: auto; margin-bottom: 8px; font-size: 26px; line-height: 1.2; }
[data-layout="scroll"] .canvas .sequence .caption { height: 58px; margin-top: 8px; font-size: 18px; line-height: 29px; }
[data-layout="scroll"] .canvas .sequence .arrow { position: static; display: block; width: 56px; height: 56px; margin: 4px auto 8px; transform: rotate(90deg); }

[data-layout="scroll"] .canvas .s-drill-next .body { padding: 0; }
[data-layout="scroll"] .canvas .s-drill-next .blocks { display: block; padding: 32px 20px; }
[data-layout="scroll"] .canvas .s-drill-next .block { display: block; }
[data-layout="scroll"] .canvas .s-drill-next .block + .block { margin-top: 44px; }
[data-layout="scroll"] .canvas .next-link { margin-left: 0; padding: 28px 20px; gap: 16px; font-size: clamp(26px, 8vw, 46px); }
[data-layout="scroll"] .canvas .next-link .label { display: block; }
[data-layout="scroll"] .canvas .next-link .arrow { width: 52px; height: 52px; }
[data-layout="scroll"] .canvas .next-link:focus-visible { outline-width: 3px; outline-offset: -8px; }

.mode-print .toggle { display: none; }
@media (forced-colors: active) {
  .next-link, .change .same, .change li, .media .toggle { border: 2px solid; }
}

/* ---------- Animated schematics ---------- */
.schematic.live { display: flex; flex-direction: column; place-content: normal; gap: 0; border: 0; text-align: left; }
.sch-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; height: 60px; padding: 0 16px; }
.sch-legend { display: flex; align-items: center; gap: 16px; }
.sch-legend li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.schematic.live .sch-legend span { font-size: 20px; line-height: 1.2; }
.schematic.live .draft { position: static; flex: none; padding: 6px 14px; font-size: 20px; line-height: 1.2; }
.sch-key { width: 34px; height: 34px; flex: none; }
.sch-key-path, .sch-key-pass { width: 48px; height: 24px; }
.sch-pic { width: 100%; aspect-ratio: 1000 / 700; flex: none; }

.sch-floor { fill: var(--ground); stroke: var(--accent); stroke-width: 4; }
.sch-court { fill: none; stroke: var(--line); stroke-width: 3; }
.sch-zone { fill: color-mix(in srgb, var(--accent) 14%, var(--ground)); stroke: var(--accent); stroke-width: 2; }
.sch-label { fill: var(--ink); font: 700 25px/1 var(--font-body); }
.sch-bucket { fill: var(--lb-charcoal); }
.sch-count { fill: var(--on-dark); font: 700 42px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.sch-cue { fill: var(--accent); stroke: var(--ground); stroke-width: 14; paint-order: stroke; stroke-linejoin: round; font: 700 130px/1 var(--font-display); text-transform: uppercase; }
.sch-fill { fill: var(--accent); }
.sch-wheel { fill: var(--ground); stroke: var(--lb-charcoal); stroke-width: 5; }
.sch-tyre { fill: none; stroke: var(--lb-charcoal); stroke-width: 11; stroke-linecap: round; }
.sch-stick { fill: none; stroke: var(--lb-charcoal); stroke-width: 6; stroke-linecap: round; }
.sch-head { fill: var(--ground); stroke: var(--lb-charcoal); stroke-width: 3; }
.sch-ball { fill: var(--lb-charcoal); }
.sch-path { fill: none; stroke: var(--accent); stroke-width: 5; }
.sch-pass { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.sch-shot { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.sch-tip { fill: var(--accent); }
.sch-line { fill: none; stroke: var(--lb-brown); stroke-width: 4; stroke-linecap: round; }
.sch-wall { fill: none; stroke: var(--lb-charcoal); stroke-width: 16; stroke-linecap: round; }
.sch-wall-side { stroke-width: 10; }
.sch-target { fill: var(--ground); stroke: var(--accent); stroke-width: 6; }
.sch-target-dot { fill: var(--accent); }
.sch-goal { fill: none; stroke: var(--lb-charcoal); stroke-width: 6; stroke-dasharray: none; }
.sch-hand { fill: var(--lb-red); stroke: var(--ground); stroke-width: 2; }
.sch-inset-bg { fill: var(--ground); }
.sch-inset-frame { fill: none; stroke: var(--accent); stroke-width: 4; }
.sch-marker circle { fill: var(--ground); stroke: var(--accent); stroke-width: 3; }
.sch-marker text { fill: var(--ink); font: 800 22px/1 var(--font-body); }

.s-drill-how .schematic.live .sch-caption { display: grid; place-items: center; flex: 1; padding: 0 24px; font-size: 32px; font-weight: 700; line-height: 1.25; text-align: center; text-wrap: balance; }
.sch-controls { display: flex; align-items: center; justify-content: center; gap: 8px; flex: none; height: 84px; padding-bottom: 12px; }
.sch-btn, .sch-dot { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50px; cursor: pointer; }
.sch-btn { width: 68px; height: 68px; background: var(--lb-charcoal); color: var(--on-dark); transition: transform var(--time-press) var(--ease-out); }
.sch-btn svg { width: 34px; height: 34px; fill: currentColor; }
.sch-btn:active { transform: scale(0.97); }
.sch-btn[aria-disabled="true"] { background: none; color: var(--lb-brown); box-shadow: inset 0 0 0 2px var(--lb-brown); cursor: default; transform: none; }
.sch-dots { display: flex; margin-left: 16px; }
.sch-dot { width: 52px; height: 68px; background: none; }
/* The current step is larger and solid, so it never depends on colour alone. */
.sch-dot::before { content: ""; width: 18px; height: 18px; border: 3px solid var(--accent); border-radius: 50%; }
.sch-dot[aria-current]::before { width: 30px; height: 30px; background: var(--accent); }
.sch-btn:focus-visible, .sch-dot:focus-visible { outline: 5px solid var(--lb-red); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .sch-btn:not([aria-disabled="true"]):hover { background: var(--lb-red); }
  .sch-dot:not([aria-current]):hover::before { background: var(--line); }
}

/* Print: the final frame, with numbers that match this list. */
.sch-steps { display: grid; grid-auto-flow: column; grid-template-columns: repeat(3, 1fr); flex: none; gap: 6px 20px; padding: 10px 16px 12px; }
/* In print the diagram gives up height, so the whole list of steps always fits under it. */
.schematic.live:has(.sch-steps) .sch-pic { flex: 1 1 0; min-height: 0; width: auto; max-width: 100%; align-self: center; }
.sch-steps li { display: flex; gap: 8px; font-size: 20px; line-height: 1.2; }
.schematic.live .sch-steps span { font-size: 20px; line-height: 1.2; }

/* Phones: the diagram fills the width, with the caption, controls and legend underneath. */
[data-layout="scroll"] .canvas .schematic.live { aspect-ratio: auto; margin: 28px -20px 0; width: calc(100% + 40px); padding: 8px 0 20px; }
[data-layout="scroll"] .canvas .live .sch-top { display: contents; }
[data-layout="scroll"] .canvas .live .draft { order: -1; align-self: flex-end; margin: 0 12px 8px; font-size: 16px; }
[data-layout="scroll"] .canvas .live .sch-legend { order: 1; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 16px; padding: 0 16px; }
[data-layout="scroll"] .canvas .live .sch-legend span { font-size: 16px; }
[data-layout="scroll"] .canvas .sch-key { width: 26px; height: 26px; }
[data-layout="scroll"] .canvas .sch-key-path { width: 40px; height: 20px; }
[data-layout="scroll"] .canvas .sch-label { font-size: 30px; }
[data-layout="scroll"] .canvas .s-drill-how .live .sch-caption { flex: none; height: 84px; padding: 0 16px; font-size: 18px; line-height: 1.35; }
[data-layout="scroll"] .canvas .sch-controls { flex-wrap: wrap; height: auto; padding: 0 12px; }
[data-layout="scroll"] .canvas .sch-btn { width: 56px; height: 56px; }
[data-layout="scroll"] .canvas .sch-btn svg { width: 28px; height: 28px; }
[data-layout="scroll"] .canvas .sch-dots { width: 100%; margin: 0; }
[data-layout="scroll"] .canvas .sch-dot { flex: 1; width: auto; height: 48px; }
[data-layout="scroll"] .canvas .sch-dot::before { width: 14px; height: 14px; }
[data-layout="scroll"] .canvas .sch-dot[aria-current]::before { width: 24px; height: 24px; }

@media (prefers-reduced-motion: reduce) { .sch-btn:active { transform: none; } }
@media (forced-colors: active) {
  .sch-btn { border: 2px solid; }
  .sch-dot[aria-current]::before { background: Highlight; forced-color-adjust: none; }
}
