/* The Complexity Ceiling: shared styles for every page.
   Every colour and font is a role. The roles get their values from the chosen
   style of the SP kit (assets/vendor/theme-delivery); the values in the first
   block are only what the pages fall back on if that pack does not load. */

:root {
  color-scheme: light dark;

  /* surfaces and ink */
  --plane:   light-dark(#f9f9f7, #0d0d0d);
  --surface: light-dark(#fcfcfb, #1a1a19);
  --ink:     light-dark(#0b0b0b, #f0efec);
  --ink-2:   light-dark(#52514e, #c3c2b7);
  --grid:    light-dark(#e1e0d9, #2c2c2a);
  --axis:    light-dark(#c3c2b7, #383835);
  --border:  light-dark(rgba(11, 11, 11, .10), rgba(255, 255, 255, .10));
  --wash:    light-dark(rgba(11, 11, 11, .045), rgba(255, 255, 255, .06));
  --link:    light-dark(#1c5cab, #86b6ef);
  --note:    light-dark(#fff1bd, #3a3112);          /* the narrator's box in the comic */
  --chrome:  var(--surface);                        /* the top bar */
  --chrome-ink: var(--ink);
  --action:  var(--note);                           /* the one prominent button on a page */
  --action-ink: var(--ink);
  --radius:  8px;
  --lift:    0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px rgba(0, 0, 0, .07);

  /* data colours: four distinct series, checked for colour-blind separation in light and dark.
     The fourth is Kit's; it is told from the green only with a name beside it, which it always has. */
  --series-1: light-dark(#2a78d6, #3987e5);
  --series-2: light-dark(#eb6834, #d95926);
  --series-3: light-dark(#1baf7a, #199e70);
  --series-4: light-dark(#cc3f93, #dc5fae);

  /* ordered ramp, one hue: more of the quantity = further from the surface */
  --ord-1: light-dark(#86b6ef, #184f95);
  --ord-2: light-dark(#3987e5, #2a78d6);
  --ord-3: light-dark(#1c5cab, #6da7ec);
  --ord-4: light-dark(#0d366b, #b7d3f6);

  /* type: the paper keeps its book face; reading text, interface and headlines follow the style */
  --book:    "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --read:    var(--book);
  --sans:    system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
}

/* ---------- the styles of the SP kit, laid onto the roles above ----------
   theme-loader.js sets data-cvt-theme on <html> and loads that style's --cvt-* values. */
:root[data-cvt-theme] {
  --plane:   var(--cvt-color-surface);
  --surface: var(--cvt-color-surface-strong);
  --ink:     var(--cvt-color-text);
  --ink-2:   var(--cvt-color-text-muted);
  --grid:    color-mix(in srgb, var(--cvt-color-text) 13%, transparent);
  --axis:    color-mix(in srgb, var(--cvt-color-text) 32%, transparent);
  --border:  var(--cvt-color-border);
  --wash:    color-mix(in srgb, var(--cvt-color-text) 6%, transparent);
  --link:    var(--cvt-color-help-action);
  --note:    color-mix(in srgb, var(--cvt-color-candle-glow, #f7b25a) 26%, var(--cvt-color-surface-strong));
  --chrome:  var(--cvt-color-chrome);
  --chrome-ink: var(--cvt-color-chrome-text);
  --action:  var(--cvt-color-help-action);
  --action-ink: var(--cvt-color-help-action-text);
  --radius:  var(--cvt-shape-radius-sm, 8px);
  --lift:    var(--cvt-shape-shadow, none);
  --read:    var(--cvt-font-family);
  --sans:    var(--cvt-font-family);
  --display: var(--cvt-font-serif);
  background: var(--cvt-color-surface);
}
:root[data-cvt-theme="light"], :root[data-cvt-theme="neon-glass-light"], :root[data-cvt-theme="republik"] { color-scheme: light; }
:root[data-cvt-theme="dark"], :root[data-cvt-theme="pirate"], :root[data-cvt-theme="space"], :root[data-cvt-theme="wotlk"],
:root[data-cvt-theme="neon-glass"], :root[data-cvt-theme="film-noir"], :root[data-cvt-theme="signal"] { color-scheme: dark; }

/* the picture of a style: the pack names it on the kit's own server, so the local copy is named here */
:root[data-cvt-theme="pirate"]    { --backdrop: url(themes/kit-pirate.jpg); }
:root[data-cvt-theme="space"]     { --backdrop: url(themes/kit-space.jpg); }
:root[data-cvt-theme="wotlk"]     { --backdrop: url(themes/kit-wotlk.jpg); }
:root[data-cvt-theme="neon-glass"], :root[data-cvt-theme="neon-glass-light"] { --backdrop: url(themes/kit-neon.jpg); }
:root[data-cvt-theme="republik"]  { --backdrop: url(themes/kit-republic.jpg); }
:root[data-cvt-theme="film-noir"] { --backdrop: url(themes/kit-film-noir.jpg); }
:root[data-cvt-theme="signal"]    { --backdrop: url(themes/kit-signal.jpg); }

/* painted as the kit paints it: the picture under the style's own veil, three soft glows above */
:root[data-cvt-theme] body { background: transparent; }
:root[data-cvt-theme] body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: var(--cvt-image-backdrop-overlay, none), var(--backdrop, none);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: var(--cvt-image-backdrop-opacity, 0);
}
:root[data-cvt-theme] body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--cvt-color-accent) 18%, transparent), transparent 40%),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--cvt-color-candle-glow, #f7b25a) 12%, transparent), transparent 45%),
    radial-gradient(circle at 50% 90%, color-mix(in srgb, var(--cvt-color-surface-deep) 60%, transparent), transparent 60%);
}
/* long text gets a sheet in the colour of the page, so it stays readable over a picture */
:root[data-cvt-theme] .wrap {
  margin-top: 18px; margin-bottom: 40px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--cvt-color-surface) 90%, transparent);
  -webkit-backdrop-filter: blur(var(--cvt-effect-backdrop-blur, 0px)); backdrop-filter: blur(var(--cvt-effect-backdrop-blur, 0px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plane); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: var(--link); text-underline-offset: 2px; }
var { font-style: italic; }

/* ---------- top bar, with the style selector at its right end ---------- */
.topnav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  padding: 10px 20px; font-size: 14px;
  background: var(--chrome); color: var(--chrome-ink); border-bottom: 1px solid var(--border);
}
.topnav .brand { margin-right: auto; font-weight: 600; color: var(--chrome-ink); text-decoration: none; }
.topnav a { color: color-mix(in srgb, var(--chrome-ink) 72%, transparent); text-decoration: none; }
.topnav a:hover { color: var(--chrome-ink); text-decoration: underline; }
.topnav a[aria-current="page"] { color: var(--chrome-ink); font-weight: 600; }
.stylepick { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-size: 13px; color: color-mix(in srgb, var(--chrome-ink) 72%, transparent); }
.stylepick select { padding: 3px 6px; font: 13px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--axis); border-radius: 6px; }
@media screen and (max-width: 480px) { .topnav .brand { flex-basis: 100%; } }

/* ---------- the paper: book pages ---------- */
.spread {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 28px; padding: 28px 16px 56px;
}
.page {
  position: relative;
  width: 152mm; min-height: 229mm; padding: 15mm 16mm 18mm;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--lift);
  font: 10pt/1.3 var(--book);
  text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}
.page .folio {
  position: absolute; left: 0; right: 0; bottom: 7.5mm;
  text-align: center; font-size: .82em; color: var(--ink-2);
}
.page h1 { margin: 0 0 .12em; font: 400 2.15em/1.08 var(--book); letter-spacing: .01em; text-align: left; hyphens: manual; }
.page .subtitle { margin: 0 0 .45em; font: italic 1.16em/1.25 var(--book); text-align: left; hyphens: manual; }
.page .meta {
  margin: 0 0 1.1em; font: .74em var(--sans); letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-2); text-align: left;
}
.page .lead { margin: 0 0 .7em; font-style: italic; }
.page h2 {
  margin: .85em 0 .34em; font: 400 .93em/1.2 var(--book);
  letter-spacing: .13em; text-transform: uppercase; text-align: left;
}
.page h2 .n { margin-right: .7em; }
.page p { margin: 0 0 .3em; }
.page .eq { margin: .22em 0 .3em; text-align: center; white-space: nowrap; hyphens: manual; }
.page ul { margin: 0 0 .3em; padding: 0; list-style: none; }
.page li { margin: 0 0 .1em; padding-left: 1.15em; text-indent: -1.15em; }
.page li::before { content: "\2013"; display: inline-block; width: 1.15em; text-indent: 0; }
.page b { font-weight: 700; }
.page sup, .page sub { font-size: .72em; line-height: 0; }

.plate { margin: 0; text-align: left; hyphens: manual; }
.plate .plate-head { margin: 0 0 .6em; font: 400 .93em/1.2 var(--book); letter-spacing: .13em; text-transform: uppercase; }
.plate svg { display: block; width: 100%; height: auto; margin: 0 0 .9em; }
.plate figcaption { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.plate figcaption p { margin: 0 0 .5em; }
.fig text { font: 10.5px var(--sans); fill: var(--ink-2); }
.fig .strong { fill: var(--ink); font-weight: 600; }
.fig .hair { stroke: var(--grid); stroke-width: 1; }
.fig .axis { stroke: var(--axis); stroke-width: 1; fill: none; }
.fig .ceiling { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 3; }
.fig .budget { stroke: var(--ink-2); stroke-width: 1; }
.fig .band { fill: var(--wash); }
.fig .curve { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fig .curve.beyond { stroke-dasharray: 1 6; }
.fig .dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.fig .gap { stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.fig .arrow { stroke: var(--ink-2); stroke-width: 1.25; fill: none; stroke-linecap: round; }
.fig .arrowhead { fill: var(--ink-2); }
.fig .bar { fill: var(--series-1); }
.fig.big text { font-size: 13px; }
.fig.mini text { font-size: 12.5px; }

@media screen and (max-width: 660px) {
  .spread { gap: 12px; padding: 12px 0 36px; }
  .page {
    width: 100%; min-height: 0; padding: 24px 20px 52px;
    border-left: 0; border-right: 0; box-shadow: none;
    font-size: 16.5px; line-height: 1.5; text-align: left; hyphens: manual;
  }
  .page .folio { bottom: 16px; }
  .page .eq { white-space: normal; }
  .plate figcaption { text-align: left; hyphens: manual; }
}

/* ---------- reading pages: lab, comic, decisions, tests, assessment, overview ---------- */
.wrap { max-width: 1000px; margin: 0 auto; padding: 30px 20px 72px; }
.wrap h1 { margin: 6px 0 10px; font: 600 32px/1.15 var(--display); letter-spacing: -.005em; }
.kicker { margin: 0; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.intro { max-width: 43em; margin: 0 0 8px; font: 18px/1.55 var(--read); }

.exp { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--border); }
.exp h2 { margin: 0 0 4px; font: 600 23px/1.2 var(--display); }
.speaks { margin: 0 0 14px; font-size: 13px; letter-spacing: .03em; color: var(--ink-2); }
.prose { max-width: 43em; font: 17px/1.6 var(--read); }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 1.25em; }
.prose li { margin: 0 0 7px; }
.prose h3 { margin: 22px 0 6px; font: 600 16px/1.3 var(--sans); }
.open { max-width: 46em; margin: 18px 0 0; padding-left: 14px; border-left: 2px solid var(--axis); font: 15.5px/1.55 var(--read); color: var(--ink-2); }
.open b { color: var(--ink); font-family: var(--sans); font-size: 13.5px; font-weight: 600; }
.ruled { border-left-color: var(--action); color: var(--ink); }

.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; margin: 20px 0 14px; }
.control { display: grid; gap: 5px; font-size: 13px; color: var(--ink-2); }
.control output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.control input[type="range"] { width: min(320px, 72vw); margin: 0; accent-color: var(--series-1); }
.control.short input[type="range"] { width: min(170px, 60vw); }
.control output.wide { display: inline-block; min-width: 10.6em; }       /* room for the longest value, so the control keeps its width */
/* a button whose label changes keeps the width of its longest label: the labels are stacked, one of them unseen */
.btn.steady { display: inline-grid; grid-template-columns: auto auto; align-items: center; justify-items: center; column-gap: 9px; }
.btn.steady > .ico { grid-area: 1 / 1; }
.btn.steady > span { grid-area: 1 / 2; white-space: nowrap; }
.btn.steady .ghost { visibility: hidden; }
.btn.steady[data-state="playing"] .ico.play, .btn.steady:not([data-state="playing"]) .ico.pause { visibility: hidden; }
.choice.rows .opts { flex-wrap: wrap; }
.controls.stages { margin-bottom: 0; }
.controls.stages + .controls { margin-top: 12px; }
.choice { margin: 0; padding: 0; border: 0; min-width: 0; font-size: 13px; color: var(--ink-2); }
.choice legend { padding: 0; margin-bottom: 5px; }
.choice .opts { display: inline-flex; border: 1px solid var(--axis); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.choice label { position: relative; padding: 6px 13px; color: var(--ink); cursor: pointer; border-left: 1px solid var(--axis); }
.choice label:first-child { border-left: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label:has(input:checked) { background: var(--ink); color: var(--surface); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--series-1); outline-offset: -2px; }
.btn {
  padding: 7px 13px; font: 13px var(--sans); color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid var(--axis); border-radius: var(--radius);
}
.btn:hover { background: var(--wash); }
.status { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 14px 0; }
.tile { padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tile .label { font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.tile .value { margin-top: 4px; font: 600 28px/1.2 var(--sans); }
.tile .note { margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }

.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 12px; margin: 14px 0; }
.card-table { margin: 14px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.card-table .chart-title { margin-bottom: 8px; }

table.data { width: 100%; border-collapse: collapse; font: 13px/1.35 var(--sans); font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 6px 10px; text-align: right; border-bottom: 1px solid var(--grid); }
table.data thead th { font-weight: 600; color: var(--ink-2); border-bottom-color: var(--axis); vertical-align: bottom; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data tbody th { font-weight: 400; }
table.data tr:last-child th, table.data tr:last-child td { border-bottom: 0; }
table.data.words th, table.data.words td { text-align: left; vertical-align: top; font-variant-numeric: normal; }
table.data.words tbody th { font-weight: 600; white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 26px 0 34px; }
.card { display: grid; align-content: start; gap: 6px; padding: 18px 20px 20px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card:hover { border-color: var(--axis); }
.card .card-kicker { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.card .card-title { font: 600 21px/1.2 var(--display); }
.card .card-text { font: 16px/1.5 var(--read); color: var(--ink-2); }
.wrap h2.plain { margin: 0 0 8px; font: 600 15px var(--sans); letter-spacing: .02em; }
.foot { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-2); }
.foot code { font-size: 12.5px; }

/* the foot of every page: who made it, on what terms, the Impressum, and which build this is */
.sitefoot { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.sitefoot p { margin: 0 0 4px; }
.sitefoot .build { font-variant-numeric: tabular-nums; }
.sitefoot.alone { max-width: 1000px; margin: 0 auto 40px; padding: 14px 20px 12px; border-top: 0; border-radius: var(--radius); }
:root[data-cvt-theme] .sitefoot.alone { background: color-mix(in srgb, var(--cvt-color-surface) 90%, transparent); }
body.presenting .sitefoot { display: none; }
pre.legal { margin: 0 0 12px; padding: 12px 14px; overflow-x: auto; font: 12.5px/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--ink-2); background: var(--wash); border: 1px solid var(--border); border-radius: var(--radius); white-space: pre-wrap; }

/* ---------- charts ----------
   A chart keeps the surface its colours were checked against, whatever the style of the page. */
figure.chart {
  --surface: light-dark(#fcfcfb, #1a1a19);
  --ink:     light-dark(#0b0b0b, #f0efec);
  --ink-2:   light-dark(#52514e, #c3c2b7);
  --grid:    light-dark(#e1e0d9, #2c2c2a);
  --axis:    light-dark(#c3c2b7, #383835);
  --border:  light-dark(rgba(11, 11, 11, .10), rgba(255, 255, 255, .10));
  --wash:    light-dark(rgba(11, 11, 11, .045), rgba(255, 255, 255, .06));
  min-width: 0; margin: 0; padding: 14px 16px 10px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.chart-title { font: 600 14.5px/1.3 var(--sans); color: var(--ink); }
.chart-sub { margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.chart-key { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; flex: none; }
.key-line { width: 16px; border-top: 2px solid var(--c); border-radius: 1px; }
.key-thin { width: 16px; border-top: 1.5px solid var(--c); }
.key-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chart-plot { position: relative; margin-top: 8px; }
.chart-svg { display: block; max-width: 100%; overflow: visible; outline: none; touch-action: pan-y; }
.chart-svg:focus-visible { outline: 2px solid var(--series-1); outline-offset: 3px; border-radius: 4px; }
.chart-svg text { font: 11.5px var(--sans); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.chart-svg .grid { stroke: var(--grid); stroke-width: 1; }
.chart-svg .axis { stroke: var(--axis); stroke-width: 1; }
.chart-svg .ref { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 3; }
.chart-svg .band { fill: var(--wash); }
.chart-svg .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .line.thin { stroke-width: 1.5; }
.chart-svg .dot { stroke: var(--surface); stroke-width: 2; }
.chart-svg .cross { stroke: var(--axis); stroke-width: 1; }
.chart-svg .end-label, .chart-svg .mark-label { fill: var(--ink); }
.chart-tip {
  position: absolute; z-index: 2; min-width: 130px; padding: 8px 10px; pointer-events: none;
  font: 12.5px/1.4 var(--sans); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}
.tip-head { margin-bottom: 4px; color: var(--ink-2); white-space: nowrap; }
.tip-row { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tip-val { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tip-name { color: var(--ink-2); }
.chart-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.chart-note { font-size: 12px; line-height: 1.35; color: var(--ink-2); }
.chart-btn { flex: none; margin-left: auto; padding: 3px 8px; font: 12px var(--sans); color: var(--ink-2); cursor: pointer; background: none; border: 1px solid var(--border); border-radius: 6px; }
.chart-btn:hover { color: var(--ink); border-color: var(--axis); }
.chart-table { max-height: 300px; margin-top: 10px; overflow: auto; border-top: 1px solid var(--grid); }

/* ---------- slides: every size is a share of the slide's own width (cqw) ---------- */
.deck-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: 1120px; margin: 22px auto 0; padding: 0 16px; font-size: 13px; color: var(--ink-2); }
.deck-bar .btn { margin-left: auto; }
.deck { display: grid; justify-items: center; gap: 26px; padding: 18px 16px 56px; }
.slide {
  position: relative; container-type: inline-size; overflow: hidden;
  width: min(100%, 1120px); aspect-ratio: 16 / 9;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--lift);
}
.slide-inner { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 4.6cqw 5.4cqw 5.4cqw; }
.slide .kicker { margin: 0 0 1.5cqw; font: 1.3cqw var(--sans); letter-spacing: .12em; }
.slide h2 { margin: 0 0 1.5cqw; font: 400 4.7cqw/1.06 var(--display); letter-spacing: -.005em; }
.slide .lines { margin: 0; padding: 0; list-style: none; font: 2.25cqw/1.3 var(--read); }
.slide .lines li { margin: 0 0 1.05cqw; padding-left: 1.5cqw; border-left: .22cqw solid var(--axis); }
.slide .foot { position: absolute; left: 5.4cqw; right: 5.4cqw; bottom: 2.1cqw; display: flex; justify-content: space-between; gap: 2cqw; margin: 0; padding: 0; border: 0; font: 1.12cqw var(--sans); color: var(--ink-2); }
.slide .split { flex: 1; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 3cqw; min-height: 0; }
.slide .split svg { display: block; width: 100%; height: auto; }
.slide .cols { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; align-items: start; margin-top: .6cqw; }
.slide .point svg { display: block; width: 100%; height: auto; margin-bottom: .9cqw; }
.slide .point .num { font: 600 3.6cqw/1.05 var(--sans); }
.slide .point .pt { margin-top: .5cqw; font: 600 1.72cqw/1.25 var(--sans); }
.slide .point .px { margin-top: .5cqw; font: 1.55cqw/1.38 var(--read); color: var(--ink-2); }
.slide .claims { display: grid; gap: 1.7cqw; margin-top: .6cqw; }
.slide .claim { display: grid; grid-template-columns: 3cqw 1fr; align-items: baseline; gap: 1cqw; }
.slide .claim .n { font: 600 2.3cqw var(--sans); color: var(--ink-2); }
.slide .claim p { margin: 0; font: 2.1cqw/1.32 var(--read); }
.slide .wrong { margin-top: auto; padding-top: 1.3cqw; border-top: 1px solid var(--axis); font: 1.5cqw/1.4 var(--read); color: var(--ink-2); }
.slide .wrong b { color: var(--ink); font: 600 1.25cqw var(--sans); letter-spacing: .06em; }
.fig .loop { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.fig .node { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.fig .floor { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }

/* the one-slide version, made to stand alone: some readers will only ever see this one.
   Its rules:
   1 The headline makes the claim. Nothing else on the slide is as large.
   2 Every block is a picture first, and the blocks are numbered in the order of the argument.
   3 Text only teases: a label, one bold phrase, one line. What needs explaining is in the paper.
   4 Blue is what the hypothesis says, orange is what would prove it wrong, everything else is ink.
   5 Type may be small, because this slide is read up close: nothing below 1% of its width.
   6 One small link at the bottom leads to the longer version.
   Every size is a multiple of --u, so a narrow screen can stack the blocks and enlarge the type. */
.poster { --u: 1cqw; }
.poster .slide-inner { padding: calc(2.3 * var(--u)) calc(3.2 * var(--u)) calc(3.5 * var(--u)); }
.poster .kicker { margin: 0 0 calc(.7 * var(--u)); font-size: calc(1.05 * var(--u)); }
.poster .head { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: end; gap: calc(2.4 * var(--u)); margin: 0 0 calc(1.2 * var(--u)); }
.poster h2 { margin: 0; font-size: calc(4.3 * var(--u)); white-space: nowrap; }
.poster .say { max-width: 34em; margin: 0 0 calc(.4 * var(--u)); padding-left: calc(1.3 * var(--u)); border-left: calc(.22 * var(--u)) solid var(--axis); font: calc(1.38 * var(--u))/1.34 var(--read); }
.poster .body { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1.36fr) minmax(0, 1fr); gap: calc(1.1 * var(--u)); }
.poster .row { display: grid; column-gap: calc(1.1 * var(--u)); min-height: 0; }
.poster .row.why { grid-template-columns: 1.9fr 1fr 1fr 1fr; }
.poster .row.so { grid-template-columns: 1fr 1fr; }
.poster .blk { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: calc(.85 * var(--u)) calc(1.05 * var(--u)) calc(1 * var(--u)); background: var(--wash); border: 1px solid var(--border); border-radius: var(--radius); }
.poster .tag { display: flex; align-items: center; gap: calc(.6 * var(--u)); font: 700 calc(1.02 * var(--u)) var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.poster .tag .n { display: grid; place-items: center; flex: none; width: calc(1.55 * var(--u)); height: calc(1.55 * var(--u)); border-radius: 50%; font-size: calc(.95 * var(--u)); letter-spacing: 0; color: var(--surface); background: var(--ink); }
.poster .tag .key { display: inline-flex; align-items: center; gap: calc(.45 * var(--u)); margin-left: auto; font-weight: 400; letter-spacing: .02em; text-transform: none; }
.poster .tag .k { display: inline-block; width: calc(1.4 * var(--u)); border-top: calc(.22 * var(--u)) solid var(--series-1); }
.poster .tag .k.alt { margin-left: calc(.6 * var(--u)); border-top-color: var(--series-2); }
.poster .pic { position: relative; flex: 1 1 0; min-height: 0; margin: calc(.5 * var(--u)) 0; }
.poster .pic svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.poster .big { font: 600 calc(1.9 * var(--u))/1.12 var(--sans); }
.poster .blk p { margin: calc(.3 * var(--u)) 0 0; font: calc(1.2 * var(--u))/1.34 var(--read); }
.poster .three { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(1.2 * var(--u)); }
.poster .item { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.poster .item b { font: 600 calc(1.26 * var(--u))/1.18 var(--sans); }
.poster .item span { margin-top: calc(.2 * var(--u)); font: calc(1.1 * var(--u))/1.32 var(--read); color: var(--ink-2); }
.poster .foot { left: calc(3.2 * var(--u)); right: calc(3.2 * var(--u)); bottom: calc(1.25 * var(--u)); font-size: calc(.98 * var(--u)); }
.poster .foot a { color: var(--link); }
/* where the browser can, label, picture, phrase and line of a row share their lines,
   so the pictures of a row are equally tall whatever the length of the text below them */
@supports (grid-template-rows: subgrid) {
  .poster .row { grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .poster .blk { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); }
  .poster .row.why .blk:first-child .pic { grid-row: 2 / -1; }
  .poster .row.so .blk { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: calc(1.2 * var(--u)); }
  .poster .row.so .tag { grid-column: 1 / -1; }
  .poster .three, .poster .item { display: contents; }
  .poster .item:nth-child(1) > * { grid-column: 1; }
  .poster .item:nth-child(2) > * { grid-column: 2; }
  .poster .item:nth-child(3) > * { grid-column: 3; }
  .poster .item .pic { grid-row: 2; }
  .poster .item b { grid-row: 3; }
  .poster .item span { grid-row: 4; }
}
.fig.dense text { font-size: 16.5px; }
.fig .mark circle { fill: var(--ink); }
.fig.dense .mark text { font: 700 12.5px var(--sans); fill: var(--surface); }
.fig.post text { font-size: 13px; }
.fig.pict text { font-size: 11.5px; }
.fig .hollow { fill: var(--surface); stroke: var(--series-1); stroke-width: 2; }
.fig .cell { fill: none; stroke: var(--series-1); stroke-width: 1.5; }
.fig .cell.on { fill: var(--series-1); }
.fig .cell.new { stroke: var(--ink-2); stroke-dasharray: 2.5 2.5; }
.fig .ghost { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linecap: round; }
.fig .alt { fill: none; stroke: var(--series-2); stroke-width: 2.5; stroke-linecap: round; }
.fig .altdot { fill: var(--series-2); stroke: var(--surface); stroke-width: 2; }
.fig .althead { fill: var(--series-2); }

/* on a narrow screen the one slide becomes a column: the same blocks, stacked, with larger type */
@media screen and (max-width: 760px) {
  body:not(.presenting) .poster { --u: 3cqw; aspect-ratio: auto; }
  body:not(.presenting) .poster .slide-inner { position: static; padding: calc(2 * var(--u)) calc(1.6 * var(--u)) calc(1.8 * var(--u)); }
  body:not(.presenting) .poster .head { grid-template-columns: minmax(0, 1fr); gap: calc(1 * var(--u)); }
  body:not(.presenting) .poster h2 { white-space: normal; }
  body:not(.presenting) .poster .say { padding-left: 0; border-left: 0; }
  body:not(.presenting) .poster .body { display: block; }
  body:not(.presenting) .poster .row { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: calc(1.1 * var(--u)); margin-bottom: calc(1.1 * var(--u)); }
  body:not(.presenting) .poster .blk { display: grid; grid-row: auto; grid-template-rows: none; grid-template-columns: 44% minmax(0, 1fr); column-gap: calc(1.3 * var(--u)); padding: calc(1 * var(--u)) calc(1 * var(--u)) calc(1.1 * var(--u)); }
  body:not(.presenting) .poster .tag { grid-column: 1 / -1; flex-wrap: wrap; }
  body:not(.presenting) .poster .tag .key { margin-left: 0; flex-basis: 100%; }
  body:not(.presenting) .poster .pic { grid-column: 1; grid-row: 2 / span 2; flex: none; align-self: center; }
  body:not(.presenting) .poster .pic svg { position: static; height: auto; }
  body:not(.presenting) .poster .row.why .blk:first-child .pic { grid-column: 1 / -1; grid-row: auto; }
  body:not(.presenting) .poster .big { grid-column: 2; align-self: end; }
  body:not(.presenting) .poster .blk p { grid-column: 2; align-self: start; font-size: calc(1.34 * var(--u)); }
  body:not(.presenting) .poster .three { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(.4 * var(--u)); }
  body:not(.presenting) .poster .item { display: grid; grid-template-columns: 38% minmax(0, 1fr); column-gap: calc(1.3 * var(--u)); }
  body:not(.presenting) .poster .item .pic { grid-column: 1; grid-row: 1 / span 2; }
  body:not(.presenting) .poster .item b { grid-column: 2; grid-row: 1; align-self: end; }
  body:not(.presenting) .poster .item span { grid-column: 2; grid-row: 2; align-self: start; font-size: calc(1.24 * var(--u)); }
  body:not(.presenting) .poster .foot { position: static; flex-direction: column; gap: calc(.6 * var(--u)); margin-top: calc(.6 * var(--u)); font-size: calc(1.1 * var(--u)); }
}

body.presenting { overflow: hidden; background: #000; }
body.presenting::before, body.presenting::after { display: none; }
body.presenting .topnav, body.presenting .deck-bar { display: none; }
body.presenting .deck { display: grid; place-items: center; height: 100vh; gap: 0; padding: 0; }
body.presenting .slide { display: none; width: min(100vw, 177.78vh); border: 0; border-radius: 0; box-shadow: none; cursor: pointer; }
body.presenting .slide.current { display: block; }

/* ---------- comic: thick ink, flat fills, hard shadows ---------- */
.strip { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(240px, 1fr); align-items: start; gap: 22px; margin: 22px 0 6px; }
.panel { background: var(--surface); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink); }
.stage { padding: 6px; }
.stage svg { display: block; width: 100%; height: auto; }
.cast { display: grid; gap: 22px; }
.who { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 8px 14px; padding: 12px 14px 12px 10px; }
#mo { --c: var(--series-1); }                      /* Mo: the blue cap */
#max { --c: var(--series-2); }                     /* Max: the orange bow tie */
.who .face { width: 84px; height: 84px; }
.bubble { position: relative; min-height: 4.6em; padding: 8px 12px 9px; font: 600 15px/1.3 var(--sans); background: var(--surface); border: 2.5px solid var(--ink); border-radius: 14px; }
.bubble::before, .bubble::after { content: ""; position: absolute; top: 20px; border: 8px solid transparent; }
.bubble::before { left: -18.5px; border-right-color: var(--ink); }
.bubble::after { left: -14.5px; border-right-color: var(--surface); }
.bubble .name { display: block; margin-bottom: 2px; font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.tally { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 24px; font: 13px var(--sans); color: var(--ink-2); }
.tally .pip { width: 12px; height: 12px; background: var(--c); border: 2px solid var(--ink); border-radius: 50%; }
.tally .miss { font: 800 15px/1 var(--sans); color: var(--ink); }
.tally .count { margin-left: 4px; }
.caption { margin: 18px 0 0; padding: 12px 16px; background: var(--note); font: 16.5px/1.5 var(--read); }
.caption div + div { margin-top: 4px; }
.caption b { font: 700 12.5px var(--sans); letter-spacing: .08em; }
.btn.big { padding: 10px 22px; font: 700 15px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--action-ink); background: var(--action); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); }
.btn.big:hover { background: var(--action); filter: brightness(1.06); }
.btn.big:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
/* the film's buttons: play or pause in the middle, one step back and one step on beside it */
.transport { display: inline-flex; align-items: stretch; gap: 9px; }
.ico { flex: none; width: 15px; height: 15px; fill: currentColor; }
.btn.step { display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; font: 700 13px var(--sans); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--ink); background: var(--surface); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); }
.btn.step:hover { background: var(--wash); }
.btn.step:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.step:disabled { opacity: .4; cursor: default; background: var(--surface); box-shadow: none; transform: none; }
@media (max-width: 520px) {                         /* a narrow page: the steps show their sign only */
  .transport { gap: 8px; }
  .btn.step .word { display: none; }
  .btn.big { padding: 10px 14px; }
}
.hint { margin: 0; font-size: 13px; color: var(--ink-2); }
.hint + .caption { margin-top: 14px; }
/* while the film gives time to read before it moves on, a line under the text runs out */
.caption { position: relative; }
.caption.waiting::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--ink); opacity: .5; transform-origin: 0 50%; animation: runout var(--wait, 6s) linear forwards; }
@keyframes runout { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.face .skin { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.face .ink { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.face .seam { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; opacity: .55; }
.face .white { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.face .tint { fill: var(--c); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.face .lid { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.face .pupils { transform: translate(var(--px, 0px), var(--py, 0px)); }
.face .pupils circle { fill: var(--ink); }
.face .mouth { display: none; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.face .mouth.open { fill: var(--ink); }
.face .specs, .face .brows { transition: transform .18s ease-out; }
.who[data-mood="calm"] .m-calm, .who[data-mood="sure"] .m-grin, .who[data-mood="oops"] .m-oops, .who[data-mood="shrug"] .m-shrug,
.who[data-mood="focus"] .m-focus, .who[data-mood="smug"] .m-smug, .who[data-mood="shock"] .m-shock, .who[data-mood="crushed"] .m-crushed { display: inline; }
.who[data-mood="oops"] .lid { display: none; }
.who[data-mood="shock"] .specs { transform: rotate(10deg); transform-origin: 50px 54px; }
.who[data-mood="shock"] .brows { transform: translateY(-6px); }
.who[data-mood="crushed"] .brows { transform: translateY(2px) scaleY(-1); transform-origin: 50px 40px; }

#table .felt { fill: var(--wash); stroke: var(--ink); stroke-width: 3; }
#table .bumper { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
#table .bumper-cap { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .45; }
#table .rule { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; }
#table .trail { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .3; }
#table .ghost { fill: none; stroke-width: 3.5; }
#table .ghost-trail { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 7; }
#table .mo { stroke: var(--series-1); }
#table .max { stroke: var(--series-2); }
#table .event-body { fill: var(--ink); }
#table .event-eye { fill: var(--surface); }
#table .event-smile { fill: none; stroke: var(--surface); stroke-width: 1.8; stroke-linecap: round; }
#table .count { font: 700 14px var(--sans); letter-spacing: .1em; fill: var(--ink-2); }
#table .burst line { stroke-width: 3.5; stroke-linecap: round; }
#table .burst text { font: 800 15px var(--sans); letter-spacing: .06em; fill: var(--ink); stroke: var(--surface); stroke-width: 4; paint-order: stroke; }
#table .burst .pop { animation: pop .95s ease-out forwards; transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { opacity: 1; transform: scale(.55); } 60% { opacity: 1; } to { opacity: 0; transform: scale(1.2); } }

/* scenes 2 and 3, the bar and the market: the crowd at home on the left, the place on the right, the week above */
.scenes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; font: 600 13px var(--sans); }
.scenes a { padding: 4px 12px; color: var(--ink); text-decoration: none; background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; }
.scenes a:hover { background: var(--wash); }
.scenes a[aria-current="page"] { color: var(--surface); background: var(--ink); }
.ticker { min-height: 5.1em; margin: 6px 4px 0; padding: 9px 8px 2px; border-top: 2px solid var(--ink); font: 15.5px/1.45 var(--read); }
.ticker b { font: 700 12.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.ticker.long { min-height: 6.6em; }
.stage-key { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 4px 12px 8px; font-size: 12.5px; color: var(--ink-2); }
.stage-key .key-dot { width: 12px; height: 12px; border: 2px solid var(--ink); }
.stage-key .key-col { width: 9px; height: 13px; background: var(--ink); border-radius: 2px; }
.nights { margin: 16px 0 0; }
.nights summary { width: fit-content; cursor: pointer; font: 600 14px var(--sans); }
.nights .card-table { margin: 10px 0 0; }
.daybtn { padding: 2px 9px; font: 600 13px var(--sans); color: var(--ink); cursor: pointer; background: var(--surface); border: 1.5px solid var(--axis); border-radius: 6px; }
.daybtn:hover { background: var(--wash); }
table.data tr.now th, table.data tr.now td { background: var(--wash); }

svg.crowd text { font-family: var(--sans); fill: var(--ink); }
svg.crowd .label { font: 700 12.5px var(--sans); letter-spacing: .1em; fill: var(--ink-2); }
svg.crowd .letter { font: 700 11.5px var(--sans); fill: var(--ink-2); }
svg.crowd .small { font: 14px var(--sans); fill: var(--ink-2); }
svg.crowd .big { font: 800 27px var(--sans); }
svg.crowd .verdict { font: 800 21px var(--sans); letter-spacing: .02em; }
svg.crowd .col { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
svg.crowd .col.done { fill: var(--axis); }
svg.crowd .col.now { fill: var(--ink); }
svg.crowd .limit { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 7 5; }
svg.crowd .limit.thin { stroke-width: 1.5; stroke-dasharray: 4 3; }
svg.crowd .room { fill: var(--wash); stroke: var(--ink); stroke-width: 3; }
svg.crowd .hatch { stroke: var(--ink); stroke-width: 2.5; opacity: .14; }
svg.crowd .spot { fill: var(--axis); }
svg.crowd .wood { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }      /* the bar's counter, tables and booths */
svg.crowd .tap { fill: var(--ink); }
svg.crowd .chair { fill: none; stroke: var(--axis); stroke-width: 1.6; }
svg.crowd .tick { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }       /* the market's price scale and the foot of its chart */
svg.crowd .weekline { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
svg.crowd .weekdot { fill: var(--ink); stroke: var(--surface); stroke-width: 1.5; }
svg.crowd .weekdot.live { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
svg.crowd .weekdot.off { display: none; }
svg.crowd .p .body { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
svg.crowd .p.fol .body, svg.crowd .p.max .body { fill: var(--series-2); }              /* whoever acts on the forecast wears Max's colour */
svg.crowd .p.mo .body, svg.crowd .p.mo .bill { fill: var(--series-1); }
svg.crowd .p .bill { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
svg.crowd .p .lens { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
svg.crowd .p.turn .body { animation: turn .45s ease-out backwards; transform-box: fill-box; transform-origin: center; }
svg.crowd .sign .shadow { fill: var(--ink); }
svg.crowd .sign .board { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
svg.crowd .sign .call { font: 800 30px var(--sans); }
svg.crowd .sign.pop .call { animation: flip .22s ease-out; }
svg.crowd .stamp { visibility: hidden; }
svg.crowd .stamp.on { visibility: visible; }
svg.crowd .stamp rect { fill: var(--note); stroke: var(--ink); stroke-width: 3.5; }
svg.crowd .stamp text { font: 800 20px var(--sans); letter-spacing: .04em; }
svg.crowd .stamp.on .stamp-in { animation: stamp .26s ease-out; transform-box: fill-box; transform-origin: center; }
svg.crowd.still * { animation: none !important; }

/* scene 3, the market: a third player, a second sign */
#dash { --c: var(--series-3); }                    /* Dash: the green headset */
.cast.three .bubble { min-height: 5.9em; }         /* room for three lines, so the panels keep their height */
.who.away { opacity: .45; }
svg.crowd .p.fast .body { fill: var(--series-3); }                            /* whoever is as fast as Dash wears her colour */
svg.crowd .p.fast.turn .body { animation-name: turnfast; }
svg.crowd .p .streak { display: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
svg.crowd .p.dash .streak { display: inline; }
svg.crowd .p.dash .body { transform: scale(1.19); transform-box: fill-box; transform-origin: center; }
svg.crowd .sign.half .call { font-size: 21px; }
svg.crowd .sign.away { opacity: .4; }
svg.crowd .mark { visibility: hidden; }
svg.crowd .mark.on { visibility: visible; }
svg.crowd .mark circle { fill: var(--note); stroke: var(--ink); stroke-width: 2.5; }
svg.crowd .mark text { font: 800 15px var(--sans); }
svg.crowd .mark.on .mark-in { animation: stamp .26s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes turnfast { from { fill: var(--surface); transform: scale(1); } 45% { fill: var(--series-3); transform: scale(1.7); } to { fill: var(--series-3); transform: scale(1); } }
@keyframes turn { from { fill: var(--surface); transform: scale(1); } 45% { fill: var(--series-2); transform: scale(1.7); } to { fill: var(--series-2); transform: scale(1); } }
@keyframes flip { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: scale(2); } to { opacity: 1; transform: scale(1); } }

@media screen and (max-width: 860px) {
  .strip { grid-template-columns: 1fr; }
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 560px) {
  .cast { grid-template-columns: 1fr; }
  .panel { box-shadow: 3px 3px 0 var(--ink); }
  .ticker { min-height: 7.9em; }
}

/* ---------- the page on the word itself: a path with bars, strips of three frames, cards for the scope ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 16px 0 0; font: 14px var(--sans); }
.toc a { color: var(--ink); }
.exp h3.sub { margin: 30px 0 4px; font: 600 18px/1.25 var(--display); }

/* the path from experience to effects; under it, one bar for every stretch a use of the word covers */
.path { margin: 24px 0 8px; }
.path ol, .path ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 16px; margin: 0; padding: 0; list-style: none; }
.path .stations li { position: relative; padding: 8px 9px 10px; font: 12.5px/1.35 var(--sans); color: var(--ink-2); background: var(--surface); border: 2.5px solid var(--ink); border-radius: 8px; }
.path .stations li b { display: block; margin-bottom: 2px; font: 700 14.5px var(--sans); color: var(--ink); }
.path .stations li.does { border-style: dashed; }      /* something a system does, between two things it has */
.path .stations li + li::before { content: ""; position: absolute; left: -15px; top: 50%; width: 7px; height: 7px; margin-top: -4.5px; border-top: 2.5px solid var(--ink); border-right: 2.5px solid var(--ink); transform: rotate(45deg); }
.path .uses { margin-top: 14px; row-gap: 10px; }
.path .uses li { grid-column: var(--a) / span var(--n, 1); grid-row: var(--r, auto); padding: 6px 1px 0; font: 12.5px/1.35 var(--sans); color: var(--ink-2); border-top: 5px solid var(--ink); }
.path .uses li b { display: block; font-size: 13.5px; color: var(--ink); }
.path .uses li i { display: none; }                     /* the stations in words, for a page too narrow to show the bars under them */
.path .uses li.ours { border-top-color: var(--series-1); }
.path .uses li.price { border-top-style: dashed; }
.path .uses li.later { border-top-style: dotted; }
.path figcaption { max-width: 46em; margin-top: 14px; font: 14.5px/1.5 var(--read); color: var(--ink-2); }
.path .outside { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 14px 0 0; font: 13px var(--sans); color: var(--ink-2); }
.path .outside span { padding: 3px 10px; color: var(--ink); border: 1.5px dashed var(--axis); border-radius: 999px; }

/* the definition, with its parts marked and numbered */
.defn { max-width: 38em; margin: 18px 0 10px; padding: 14px 18px 16px; font: 20px/1.55 var(--read); background: var(--surface); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink); }
.defn p { margin: 0; }
.defn span { border-bottom: 2.5px solid var(--series-1); }
.defn span::after { content: attr(data-n); margin-left: 2px; font: 700 11px var(--sans); vertical-align: super; }
.parts { max-width: 46em; margin: 16px 0 0; padding-left: 1.4em; font: 16.5px/1.55 var(--read); }
.parts li { margin: 0 0 6px; }
.parts li::marker { font: 700 13px var(--sans); }
.parts b { font: 600 14px var(--sans); }

/* a strip: its name, three frames, and two notes under them. A frame holds the narrator's line,
   a picture, and who says what; the three rows line up across the frames. */
.comic { margin: 34px 0 0; }
.comic > figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.comic > figcaption .no { align-self: center; display: inline-grid; place-items: center; min-width: 27px; height: 27px; padding: 0 4px; font: 800 13px var(--sans); color: var(--surface); background: var(--ink); border-radius: 14px; }
.comic > figcaption b { font: 600 20px/1.2 var(--display); }
.comic > figcaption .pair { font: 12.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: 20px; }
.frame { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 9px; padding: 10px 10px 13px; background: var(--surface); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink); }
.frame .narr { grid-row: 1; align-self: start; margin: 0; padding: 6px 9px 7px; font: 14px/1.4 var(--read); background: var(--note); border: 2px solid var(--ink); border-radius: 4px; }
.frame .pic { grid-row: 2; aspect-ratio: 2 / 1; font: 13px/1.4 var(--sans); color: var(--ink-2); }
.frame .pic svg { display: block; width: 100%; height: 100%; }
.frame .talk { grid-row: 3; display: grid; align-content: start; gap: 9px; }
.says { margin: 0; font: 600 14px/1.32 var(--sans); }
.comic:not(.drawn) .says::before { content: attr(data-who) ": "; font-weight: 800; text-transform: capitalize; }   /* without the script a strip reads as lines of a play */
.comic:not(.drawn) .pic::before { content: "[" attr(aria-label) "]"; }
.comic.drawn .says { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 13px; --px: 1.5px; --py: -1.6px; }
.comic.drawn .says.right { grid-template-columns: minmax(0, 1fr) 48px; --px: -1.5px; }
.comic.drawn .says.right .face { order: 2; }
.comic.drawn .says.voice { grid-template-columns: minmax(0, 1fr); padding: 0 30px; }
.says.mo { --c: var(--series-1); }
.says.max { --c: var(--series-2); }
.says.dash { --c: var(--series-3); }
.says.kit { --c: var(--series-4); }
.says .face { width: 48px; height: 48px; }
.says .face .mouth { display: inline; }
.face .ball { fill: var(--ink); }
.face .ball-eye { fill: var(--surface); }
.face .ball-smile { fill: none; stroke: var(--surface); stroke-width: 4.5; stroke-linecap: round; }
.says .bubble { display: block; min-height: 0; padding: 6px 10px 7px; font: inherit; border-radius: 12px; }
.says .bubble::before, .says .bubble::after { top: 12px; border-width: 7px; }
.says .bubble::before { left: -16.5px; }
.says .bubble::after { left: -12.5px; }
.says.right .bubble::before { left: auto; right: -16.5px; border-right-color: transparent; border-left-color: var(--ink); }
.says.right .bubble::after { left: auto; right: -12.5px; border-right-color: transparent; border-left-color: var(--surface); }
.says.voice .bubble::before { top: -16.5px; left: 50%; margin-left: -7px; border-right-color: transparent; border-bottom-color: var(--ink); }
.says.voice .bubble::after { top: -12.5px; left: 50%; margin-left: -7px; border-right-color: transparent; border-bottom-color: var(--surface); }
.comic .gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; margin: 18px 0 0; font: 15.5px/1.55 var(--read); color: var(--ink-2); }
.comic .gloss p { margin: 0; }
.comic .gloss b { font: 600 13.5px var(--sans); color: var(--ink); }

/* the pen of the small pictures: see strips.js */
.pic svg text { font: 800 13px var(--sans); letter-spacing: .04em; fill: var(--ink); }
.pic svg text.xs { font-size: 8.5px; letter-spacing: .07em; }
.pic svg text.s { font-size: 10.5px; letter-spacing: .06em; }
.pic svg text.b { font-size: 20px; }
.pic svg text.huge { font-size: 38px; }
.pic svg text.miss, .pic svg text.faint { fill: var(--ink-2); }
.pic svg text.faint { font-weight: 600; }
.pic svg .o, .pic svg .w, .pic svg .n, .pic svg .c1, .pic svg .c2, .pic svg .c3, .pic svg .c4 { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.pic svg .o { fill: var(--surface); }
.pic svg .w { fill: color-mix(in srgb, var(--ink) 10%, var(--surface)); }   /* the wash, made solid: in some styles --wash lets what lies under it show */
.pic svg .n { fill: var(--note); }
.pic svg .k { fill: var(--ink); }
.pic svg .c1 { fill: var(--series-1); }
.pic svg .c2 { fill: var(--series-2); }
.pic svg .c3 { fill: var(--series-3); }
.pic svg .c4 { fill: var(--series-4); }
.pic svg .thin { stroke-width: 1.5; }
.pic svg .l, .pic svg .r1, .pic svg .r2, .pic svg .r3 { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pic svg .r1 { stroke: var(--series-1); }
.pic svg .r2 { stroke: var(--series-2); }
.pic svg .r3 { stroke: var(--series-3); }
.pic svg .t { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; opacity: .5; }
.pic svg .dash { stroke-dasharray: 6 5; }
.pic svg .eye { fill: var(--surface); }
.pic svg .smile { fill: none; stroke: var(--surface); stroke-width: 1.6; stroke-linecap: round; }

/* what is in and what is out: one card each, with where it sits, why, and what follows */
.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; }
.scope article { padding: 13px 16px 14px; font: 15.5px/1.5 var(--read); background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--axis); border-radius: var(--radius); }
.scope article.in { border-left-color: var(--series-1); }
.scope article.side { border-left-color: var(--ink); }
.scope .tag { margin: 0; font: 700 11.5px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.scope h3 { margin: 3px 0 7px; font: 600 17.5px/1.25 var(--display); }
.scope article p { margin: 0 0 5px; color: var(--ink-2); }
.scope article p b { font: 600 13px var(--sans); color: var(--ink); }
table.data.cases { min-width: 700px; font-size: 13.5px; line-height: 1.4; }      /* the test cases: six columns of words */
table.data.cases tbody th { white-space: normal; min-width: 88px; }
table.data.cases td { min-width: 104px; }

/* the book: the cast, and the strips set in from the page they belong to (see book.js) */
.castlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 18px; margin: 18px 0 0; }
.member { padding: 14px 14px 15px; font: 15px/1.45 var(--read); background: var(--surface); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink); }
.member h3 { margin: 8px 0 4px; font: 700 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.member p { margin: 0; color: var(--ink-2); }
.portrait { display: block; width: 76px; height: 76px; }
.portrait svg { display: block; width: 100%; height: 100%; }
.portrait .face .mouth { display: inline; }
.portrait.mo { --c: var(--series-1); }
.portrait.max { --c: var(--series-2); }
.portrait.dash { --c: var(--series-3); }
.portrait.kit { --c: var(--series-4); }
.reel .contents { max-width: 46em; margin: 12px 0 0; padding-left: 2.2em; font: 16.5px/1.65 var(--read); }
.reel.filled .contents { display: none; }
.reel .comic .more { margin: 14px 0 0; font: 13.5px var(--sans); }
.cards.plays { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 18px 0 8px; }
.cards.plays .pic { display: block; aspect-ratio: 2 / 1; margin: -6px -8px 4px; }
.cards.plays .pic svg { display: block; width: 100%; height: 100%; }

@media (max-width: 760px) {
  .path ol, .path ul { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .path .stations li + li::before { left: 50%; top: -12px; margin: 0 0 0 -4px; transform: rotate(135deg); }
  .path .uses li { grid-column: auto; grid-row: auto; }
  .path .uses li i { display: block; font-style: normal; }
  .defn { font-size: 18px; }
  .frames { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 18px; }
  .frame { grid-row: auto; grid-template-rows: none; }
  .frame .narr, .frame .pic, .frame .talk { grid-row: auto; }
  .comic .gloss, .scope { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- print: black on white whatever the style; the paper as book pages, 152 x 229 mm ---------- */
@page { size: 152mm 229mm; margin: 0; }
@media print {
  :root, :root[data-cvt-theme] {
    color-scheme: light; background: #fff;
    --plane: #fff; --surface: #fff; --ink: #0b0b0b; --ink-2: #52514e; --grid: #e1e0d9; --axis: #c3c2b7;
    --border: rgba(11, 11, 11, .10); --wash: rgba(11, 11, 11, .045); --link: #1c5cab; --note: #fff1bd;
    --radius: 8px; --lift: none;
    --read: var(--book); --sans: system-ui, -apple-system, "Segoe UI", sans-serif; --display: var(--sans);
  }
  html, body { background: #fff; }
  body::before, body::after { display: none !important; }
  .topnav, .sitefoot { display: none; }
  .spread { display: block; padding: 0; }
  .page { width: 152mm; min-height: 228mm; margin: 0; border: 0; box-shadow: none; break-after: page; }
  .page:last-child { break-after: auto; }
}
