/* Sponsorship Deck for Top Tech Tidbits and Access Information News.
   Look A (round 2026-10-24-sponsor-deck-plan-A): Top Tech Tidbits charcoal as the canvas, the shared gold as the
   thread, Access Information News cobalt marking its own slides. Roboto.
   Colors are tokens. tools\check.py reads the two token blocks below and refuses a build whose text and graphics
   fail contrast, so change a color here and the check tells you if it still reads. */

:root {
  --bg-0: #0b0b0b;          /* page behind the slide */
  --bg-1: #161616;          /* slide canvas, for contrast checks */
  --bg-2: #2e2e2e;          /* slide glow center */
  --card-solid: #222222;    /* a card on the canvas, for contrast checks */
  --card-ain-solid: #1d2953;/* an Access Information News card, for contrast checks */
  --ink: #ffffff;
  --ink-soft: #c9ccd4;
  --accent-text: #ffcc00;   /* gold, as text */
  --ain-text: #9db3ff;      /* cobalt, as text on dark */
  --gold: #ffcc00;          /* gold, as a shape */
  --gold-deep: #cc9d00;
  --cobalt: #416bf6;        /* cobalt, as a shape */
  --bar-ttt: #ffcc00;
  --bar-ain: #5b80ff;
  --on-gold: #1a1a1a;       /* text on a gold button, and on the gold slide number */
  --cobalt-deep: #2f55e0;   /* the slide number's pill on Access Information News slides */
  --on-cobalt: #ffffff;
  --line: rgba(255, 255, 255, 0.16);
  --card: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  --card-ain: linear-gradient(160deg, rgba(65, 107, 246, 0.32), rgba(65, 107, 246, 0.08));
  --card-ain-line: rgba(120, 150, 255, 0.50);
  --grid-alpha: 0.05;       /* the Sparkle settings panel (?tune=1) moves this */
  --grid-line: rgba(255, 255, 255, var(--grid-alpha));
  --focus: #ffcc00;
  /* A wash of the brand colour, for a hovered or current row in the two windows. ⚠️ It is a TOKEN because the
     literal rgba(255, 204, 0, 0.14) it replaced was Top Tech Tidbits gold hard-coded into the engine, and it
     leaked into the first deck built on that engine: the All Slides list highlighted the current slide in gold
     on a deck whose every other colour is Dr. Adams's blue (seen in a picture, 2026-11-02). */
  --wash: rgba(255, 204, 0, 0.14);
  --link: #ffe066;
  --link-line: rgba(255, 224, 102, 0.45);   /* the faint line under a link at rest */
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --ts: 1;
}

:root[data-theme="light"] {
  --bg-0: #e9e9e6;
  --bg-1: #ffffff;
  --bg-2: #ffffff;
  --card-solid: #f3f3f1;
  --card-ain-solid: #eef2ff;
  --ink: #1a1a1a;
  --ink-soft: #454545;
  --accent-text: #6f5400;
  --ain-text: #2a46b8;
  --gold: #ffcc00;
  --gold-deep: #cc9d00;
  --cobalt: #416bf6;
  --bar-ttt: #8f7000;
  --bar-ain: #2f55e0;
  --on-gold: #1a1a1a;
  --cobalt-deep: #2f55e0;
  --on-cobalt: #ffffff;
  --line: rgba(0, 0, 0, 0.16);
  --card: linear-gradient(160deg, #f6f6f4, #efefec);
  --card-ain: linear-gradient(160deg, #eef2ff, #e3e9ff);
  --card-ain-line: rgba(47, 85, 224, 0.45);
  --grid-line: rgba(0, 0, 0, var(--grid-alpha));
  --focus: #b34700;
  --link: #0000cc;
  --link-line: rgba(0, 0, 204, 0.35);
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;         /* Aaron, 2026-10-24: "increase the line spacing just a little bit" (was 1.35) */
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: pre; border: 0;
}
/* pre, not nowrap: NVDA read "Deckfor" and "Co-op(opens" because nowrap dropped the first space of this absolutely
   positioned text (GitHub NVDA run, 2026-10-26). pre keeps every space and still never wraps. */
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 50; padding: 10px 16px; border-radius: 8px;
  background: var(--gold); color: var(--on-gold); font-weight: 700;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1:focus, h2:focus { outline: none; }
h1:focus-visible, h2:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }

/* ---------- the app and the stage ---------- */
.deck-app {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 16px;
}
.stage {
  width: min(100%, calc((100vh - var(--chrome)) * 16 / 9));
  min-width: min(100%, 320px);
  container-type: inline-size;
  position: relative;
}
html.read .stage { width: min(100%, 1400px); display: flex; flex-direction: column; gap: 28px; }

/* ---------- a slide ---------- */
.slide {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-size: calc(clamp(14px, 1.25cqi, 40px) * var(--ts));   /* the whole slide scales with the window, like a slide */
  background:
    radial-gradient(ellipse 90% 80% at 28% 22%, var(--bg-2) 0%, var(--bg-1) 55%, var(--bg-0) 100%);
  color: var(--ink);
  isolation: isolate;
}
.slide[hidden] { display: none; }
.slide .bg { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; z-index: -1; }
.slide .bg .grid {
  position: absolute; inset: -64px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 45%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 75% 70% at 60% 45%, #000 30%, transparent 85%);
}
.slide .bg .glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.slide .bg .glow.g1 { width: 38%; aspect-ratio: 1; right: -8%; top: 14%; background: rgba(65, 107, 246, 0.30); }
.slide .bg .glow.g2 { width: 28%; aspect-ratio: 1; left: -9%; top: -14%; background: rgba(255, 204, 0, 0.14); }
.slide.brand-ttt .bg .glow.g1 { background: rgba(255, 204, 0, 0.12); }
.slide.brand-ain .bg .glow.g1 { background: rgba(65, 107, 246, 0.48); width: 46%; }
:root[data-theme="light"] .slide .bg .glow { opacity: 0.35; }
.slide .bg .watermark {
  position: absolute; right: 3%; bottom: -6%; font-size: 14em; font-weight: 900; line-height: 0.8;
  letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 2px rgba(255, 204, 0, 0.14);
}
.slide.brand-ain .bg .watermark { -webkit-text-stroke-color: rgba(120, 150, 255, 0.24); }
:root[data-theme="light"] .slide .bg .watermark { -webkit-text-stroke-color: rgba(0, 0, 0, 0.08); }
/* Sparkle (template\deck-bg.js) draws on this canvas, which follows the current slide. No soft edge mask: the stars
   are meant to be crisp (Aaron, 2026-10-24: "crisper and less faded and blurred"). The traveling ball and the gold
   line it rode on are both gone (Aaron, 2026-10-24, and round 2026-10-24-sponsor-deck-background-A q3). */
.slide .bg .bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
:root[data-motion="off"] .bg-canvas, html.read .bg-canvas { visibility: hidden; }

.slide-inner {
  position: relative; min-height: 100%;
  padding: 2.9em 4.2em 3.2em;
  display: flex; flex-direction: column;
}
/* A slide with little on it sits in the middle of the space under its top bar; a full one simply fills it. */
.slide-inner > .topbar + * { margin-top: auto !important; }
.slide-inner > :last-child { margin-bottom: auto; }
/* The section label and the slide number. Aaron, 2026-10-24: the labels are "a little too out of the way. Just a
   little bit bigger"; the slide number "on a gold background ... so that it stands out and people remember the slide
   that they're on" (dark text: white on this gold measures 1.5 to 1, dark 11.5 to 1). */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1em; margin-bottom: 0.9em;
  font-size: 1.15em; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; line-height: 1.3;
}
.kicker { color: var(--accent-text); margin: 0 !important; }
/* Who is speaking, for a deck with more than one presenter. Set by `who` in a slide's settings line; the
   Sponsorship Deck has one presenter and never sets it. (Added to the canonical engine 2026-11-02, when the BPN
   workshop deck — Dr. Adams and Aaron, ninety minutes between them — was rebuilt onto it.)
   ⛔ No opacity on it: an `opacity:.97` on this deck's version of this tag put white-on-blue under the contrast
   line and raised 130 serious axe findings at once. */
.topbar .who { color: var(--ink-soft); margin: 0 !important; font-weight: 500; letter-spacing: 0.08em; }
.slide.brand-ain .kicker { color: var(--ain-text); }
.kicker .series { text-transform: none; letter-spacing: 0.02em; font-weight: 500; white-space: nowrap; }
.slidenum {
  margin: 0 !important; white-space: nowrap; letter-spacing: 0.1em; font-size: 0.85em; font-weight: 700;
  padding: 0.35em 0.95em; border-radius: 999px; background: var(--gold); color: var(--on-gold);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.slide.brand-ain .slidenum { background: var(--cobalt-deep); color: var(--on-cobalt); }
.slide h2 { margin: 0.35em 0 0; font-weight: 900; letter-spacing: -0.015em; line-height: 1.04; }
/* The cover's title is an h2 like every slide's; the deck's one h1 is its full name, for a screen reader, above every
   slide (shell.tmpl). axe, 2026-10-26: present mode hid the old cover h1 on every other slide. */
.slide.cover h2 { font-size: 5.6em; margin-top: 1.1em; }
.slide h2 { font-size: 2.9em; }
.accent { color: var(--accent-text); }
.ain-accent { color: var(--ain-text); }
.slide h3 { margin: 0 0 0.3em; font-size: 1.45em; font-weight: 700; line-height: 1.15; }
.slide p { margin: 0 0 0.6em; }
.lead { font-size: 1.45em; font-weight: 300; color: var(--ink-soft); margin-top: 0.7em; max-width: 52em; line-height: 1.42; }
/* Space between a title and the sentence under it. Aaron, 2026-10-24: "the text beneath the sponsorship deck title is
   incredibly close ... Can we get a little bit of space between the title and that text". (.slide p used to win over
   .lead's own top margin and set it to nothing.) */
.slide.cover h2 + .lead { margin-top: 0.95em; }
.slide h2 + .lead { margin-top: 0.85em; }
/* A paragraph directly under a title starts as far down as slide 5's right column, which Aaron likes (2026-10-26: "make
   sure there are no other slides that still suffer from that same issue of spacing"); tools\title_gap_check.cjs. */
.lead strong { color: var(--ink); font-weight: 500; }
.body { margin-top: 1.2em; display: flex; flex-direction: column; gap: 1.1em; font-size: 1.12em; }
.note { font-size: 0.82em; color: var(--ink-soft); margin: 0; padding-top: 0.3em; }
/* Links draw their line left to right, the Simple Surf way (Aaron, 2026-10-24: "perhaps the mouseover that we used for
   the Simple Surf site, which goes from left to right. I really like that mouseover effect."). At rest a faint line;
   on hover or keyboard focus a bold line in the link color sweeps across in about a quarter of a second. With Motion off
   the line simply appears. Copied from C:\Main Docs\Simple Surf\repo\brand.css (the "p a, li a" rule). */
.slide a {
  color: var(--link); text-decoration: none;
  background-image: linear-gradient(var(--link), var(--link)), linear-gradient(var(--link-line), var(--link-line));
  background-size: 0% 2px, 100% 1px; background-repeat: no-repeat; background-position: left bottom, left bottom;
  padding-bottom: 2px; transition: background-size 0.28s ease;
}
.slide a:hover, .slide a:focus-visible { background-size: 100% 2px, 100% 1px; }

/* ---------- building blocks ---------- */
.cols-2, .cols-3, .cols-4 { display: grid; gap: 1.2em; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; border-radius: 1em; padding: 1.1em 1.3em 1.15em; line-height: 1.42;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.card::before { content: ""; position: absolute; left: 1.3em; right: 1.3em; top: -1px; height: 4px; border-radius: 0 0 4px 4px; background: var(--gold); }
.card.ain { background: var(--card-ain); border-color: var(--card-ain-line); }
.card.ain::before { background: var(--cobalt); box-shadow: 0 0 14px rgba(65, 107, 246, 0.8); }
.card.plain::before { display: none; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .tag { color: var(--ink-soft); }
.slide .big { font-size: 2.5em; font-weight: 900; line-height: 1; margin: 0.1em 0 0.18em; color: var(--accent-text); }
.big .lbl { font-size: 0.42em; font-weight: 500; letter-spacing: 0; }
.card.ain .big { color: var(--ink); }
/* A big number with its words on the same line, all one size, the largest that keeps it on one line (slide 9,
   Aaron, 2026-10-25: "42,459 Matched: August 15, 2026 ... have everything on that line be one font size, whatever will
   fit on one line"). 2026-11-16: at 1.8em "45,000 Matched: November 15, 2026" wrapped at every deck size. 1.65em
   keeps every date a quarterly run can bring on one line, "September 30" the widest (measured: it fits up to
   1.67em, November up to 1.70em), and tools\fit_check.cjs now fails any big line that wraps in its 16:9 frame. */
.slide .big.line { font-size: 1.65em; }
/* A slide with more words than the usual spacing allows: the same type sizes, less space between its parts (slide 9,
   after Aaron's two longer opening paragraphs, 2026-10-25). Type never shrinks to fit. */
.slide.compact .body { margin-top: 0.7em; gap: 0.65em; }
.slide.compact .lead { margin-top: 0.4em; line-height: 1.34; }
.slide.compact h2 + .lead { margin-top: 0.85em; }
.slide.compact .card { padding: 0.8em 1.3em 0.85em; }
.slide.compact .points { gap: 0.35em; }
.lbl { color: var(--ink-soft); margin: 0; }
/* Words beside their cards (slide 5, 2026-10-24: Aaron's three paragraphs, the three cards and the price as readers
   grew did not fit the 16:9 frame one above the other). .story holds a column of words and a .stack of cards. */
/* Both columns start the same distance under the title, the right column's (Aaron, 2026-10-26: "I like the margin that
   it has with the right column"; the left column's words had been touching the title). 1.344em = .body's 1.2em of its
   1.12em text. tools\title_gap_check.cjs measures it on every slide. */
.story { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5em; align-items: start;
  margin-top: 1.344em; }
.story .stack { display: grid; gap: 0.7em; margin-top: 0; }
.story .card { padding: 0.9em 1.15em 0.95em; }
/* A card whose big number sits beside its words; anything after them runs the full width of the card. */
.card.figure { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.75em; align-items: center; }
.card.figure .big { margin: 0; }
.card.figure .lbl strong { white-space: nowrap; }
.card.figure > :not(.big):not(.lbl) { grid-column: 1 / -1; }
/* The price as readers grew, in a row (Aaron, 2026-10-24: "It's a good time to bring that up.") */
/* About the Publisher (slide 7; Aaron, 2026-10-25: "add a few more timeline events, maybe wrapping around to the other
   side where there's plenty of room ... a photo of me over there as well"): the dated timeline on the left; his photo,
   guiding rule, certifications and awards on the right. Balanced at 1.2 to 1 so both columns fit the 16:9 frame. */
.bio { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5em; align-items: start; }
/* .bio in front of each, so these win over the general .timeline rules further down this file (same strength, later
   wins: without it the slide ran 81 pixels too tall, 2026-10-25). */
.bio .bio-timeline { gap: 0.55em; }
.bio .bio-timeline li { grid-template-columns: 7.3em 1fr; gap: 0.7em; line-height: 1.35; }
.bio .bio-timeline .when { font-size: 1em; }
.bio-side { display: grid; gap: 0.4em; }
.bio-side h3 { margin: 0.2em 0 0; }
.bio-side .points { gap: 0.3em; line-height: 1.35; }
.bio-top { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 0.9em; align-items: center; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); display: block; }
.bio-top .quote { font-size: 1.05em; margin: 0 0 0.3em; }
.bio-top .who { font-size: 0.9em; line-height: 1.35; }
/* Past prices white, today's gold (Aaron, 2026-10-24: "make the 100, 150, and 200 white and the 250 yellow for today"). */
.price-steps { list-style: none; margin: 0.6em 0 0; padding: 0.55em 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5em; color: var(--ink-soft); }
.price-steps li { display: block; line-height: 1.25; }
.price-steps strong { display: block; color: var(--ink); font-weight: 900; font-size: 1.15em; }
.price-steps li.now { color: var(--ink); }
.price-steps li.now strong { color: var(--accent-text); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55em; }
.points li { position: relative; padding-left: 1.3em; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(255, 204, 0, 0.6); }
.points.ain li::before { background: var(--cobalt); box-shadow: 0 0 10px rgba(65, 107, 246, 0.8); }
.points strong { color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9em; }
.timeline li { display: grid; grid-template-columns: 8.4em 1fr; gap: 1em; align-items: baseline; }
.timeline .when { font-weight: 900; color: var(--accent-text); font-size: 1.15em; white-space: nowrap; }
.timeline li.now span:last-child { color: var(--ink); font-weight: 700; }
.timeline.prices { gap: 0.6em; }
.timeline.prices li { grid-template-columns: 4.2em 1fr; }
.quote { font-size: 1.25em; font-weight: 300; line-height: 1.45; margin: 0 0 0.5em; }
.quote::before { content: "\201C"; color: var(--accent-text); font-weight: 900; }
.quote::after { content: "\201D"; color: var(--accent-text); font-weight: 900; }
.who { color: var(--ink-soft); margin: 0; }
.who strong { color: var(--ink); }
.pill { display: inline-block; padding: 0.15em 0.7em; border-radius: 999px; border: 1px solid var(--line); font-size: 0.85em; color: var(--ink-soft); }

/* tables: comparison grids and bar charts are real tables, so a screen reader reads every number */
.slide table { width: 100%; border-collapse: collapse; font-size: 0.98em; line-height: 1.3; }
.slide caption { text-align: left; color: var(--ink-soft); padding-bottom: 0.5em; font-size: 0.9em; }
.slide th, .slide td { padding: 0.42em 0.7em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.slide thead th { color: var(--ink-soft); font-weight: 500; font-size: 0.85em; letter-spacing: 0.06em; text-transform: uppercase; }
.slide td.num, .slide th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slide tr.ours th, .slide tr.ours td { color: var(--accent-text); font-weight: 700; }
.bar-cell { width: 55%; }
/* Rows a little tighter since the four early counts joined the table (2026-10-25), so slide 8 still fits a short
   wide window; spacing only, the type is unchanged. */
.slide table.growth th, .slide table.growth td { padding-top: 0.2em; padding-bottom: 0.2em; }
.slide table.growth th[scope="row"] { white-space: nowrap; }
.slide table.growth .bar-cell { width: 34%; }
.bar { display: block; height: 0.95em; border-radius: 0 0.5em 0.5em 0; background: linear-gradient(90deg, var(--gold-deep), var(--bar-ttt)); width: calc(var(--v) * 100%); min-width: 4px; box-shadow: 0 0 14px rgba(255, 204, 0, 0.25); }
.bar.ain { background: linear-gradient(90deg, #2f55e0, var(--bar-ain)); box-shadow: 0 0 14px rgba(65, 107, 246, 0.4); }
.bar.muted { background: var(--ink-soft); opacity: 0.55; box-shadow: none; }
.legend { display: flex; gap: 1.4em; color: var(--ink-soft); font-size: 0.9em; margin: 0; }
.legend span::before { content: ""; display: inline-block; width: 0.9em; height: 0.9em; border-radius: 3px; margin-right: 0.4em; vertical-align: -0.1em; background: var(--bar-ttt); }
.legend span.ain::before { background: var(--bar-ain); }

/* where your brand appears: a drawn issue */
.issue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.6em; align-items: start; }
.issue-map { list-style: none; margin: 0; padding: 0.7em; display: grid; gap: 0.3em; line-height: 1.3; border-radius: 1em; border: 1px solid var(--line); background: var(--card); }
.issue-map li { padding: 0.28em 0.8em; border-radius: 0.5em; border: 1px dashed var(--line); color: var(--ink-soft); font-size: 0.86em; }
.issue-map li.yours { border: 1.5px solid var(--gold); color: var(--ink); background: rgba(255, 204, 0, 0.08); font-weight: 500; }
.issue-map li.yours b { color: var(--accent-text); }

/* logo walls */
.logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.6em; margin: 0; padding: 0; list-style: none; }
/* 17 or more logos: nine across, because a third row runs past the 16:9 frame (2026-11-08). Must stay above the phone rule. */
.logos-nine { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.align-start { align-items: start; }
.logos li { background: #ffffff; border-radius: 0.6em; padding: 0.3em; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1.1; }
.logos img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Each sponsor logo links to the sponsor's site (2026-10-25): the link fills its tile and draws no underline. */
.logos a { display: block; width: 100%; height: 100%; background-image: none; }
.logos a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* A newsletter's header banner at the top of its card (slide 22, Aaron, 2026-10-25). */
.card .masthead { width: 100%; height: auto; display: block; border-radius: 0.5em; margin: 0 0 0.6em; }
.card a.masthead-link { display: block; background-image: none; padding-bottom: 0; border-radius: 0.5em; }
.card a.masthead-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wall h3 { margin-bottom: 0.5em; }

.portrait { width: 100%; max-width: 11em; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 30px rgba(255, 204, 0, 0.35); }

/* the cover */
.slide.cover h2 .accent { color: var(--accent-text); }
.slide.cover .presenter { color: var(--ink-soft); margin-top: auto; padding-top: 1em; }
.slide.cover .presenter strong { color: var(--ink); font-weight: 500; }

/* ---------- controls ---------- */
/* Aaron, 2026-10-24: "Nothing fits on one line. When the window is resized, they all collapse on each other. The 1
   through 29 never stays in the middle." He chose layout B, One Tidy Row (round 2026-10-24-sponsor-deck-controls-A).
   The bar is a grid of three columns: two equal halves and the slide count in the center column, so the count is
   always in the exact middle. The left half holds All Slides (at its far left) and First and Previous (against the
   count); the right half holds Next and Last (against the count) and Options (at its far right). Options opens a panel
   with Read as a Page, Motion, Text Size, Light Mode, and Print or Save as PDF. Sizes follow the bar's own width (a
   container query), so a wide but short window gets the narrow layout its bar actually needs. tools\bar_check.cjs
   proves the count is centered, nothing overlaps or wraps, and nothing leaves the window, at ten window sizes. */
:root { --chrome: 124px; }                  /* the height everything but the slide needs */
.controls { width: min(100%, calc((100vh - var(--chrome)) * 16 / 9)); min-width: min(100%, 320px); position: relative; container-type: inline-size; }
html.read .controls { position: sticky; bottom: 0; width: min(100%, 1400px); background: var(--bg-0); padding: 8px 0; z-index: 5; }
.ctlbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.bar-l, .bar-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.nav-l, .nav-r { display: flex; gap: 8px; }
.ctlbar .btn { white-space: nowrap; }
.count {
  color: var(--ink); font: 700 17px/1 Roboto, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap;
  min-width: 5.4em; text-align: center; padding: 12px 10px; border-radius: 999px; border: 1.5px solid var(--line);
}
/* the Options panel, opening above the Options button */
.tools {
  position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 20; width: 280px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-1); box-shadow: var(--shadow);
}
.tools[hidden] { display: none; }
.tools .btn { width: 100%; font-size: 15px; min-height: 40px; padding: 8px 14px; }
#btn-more[aria-expanded="true"] { border-color: var(--gold); }
/* a middle-sized bar: First and Last show their arrows only (a screen reader still hears "First Slide") */
@container (max-width: 900px) {
  #btn-first .blbl, #btn-last .blbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #btn-first, #btn-last { min-width: 44px; padding-left: 12px; padding-right: 12px; }
}
/* a narrow bar: the arrows and the count on the first line; All Slides and Options on the second */
@container (max-width: 640px) {
  .ctlbar { grid-template-areas: "navl count navr" "toc . more"; row-gap: 8px; }
  .bar-l, .bar-r { display: contents; }
  .nav-l { grid-area: navl; justify-self: end; }
  .nav-r { grid-area: navr; justify-self: start; }
  .count { grid-area: count; }
  #btn-toc { grid-area: toc; justify-self: start; }
  #btn-more { grid-area: more; justify-self: end; }
}
/* a very narrow bar: Previous and Next show their arrows only too */
@container (max-width: 430px) {
  #btn-prev .blbl, #btn-next .blbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #btn-prev, #btn-next { min-width: 48px; padding-left: 12px; padding-right: 12px; }
  .count { min-width: 4.6em; }
}

.progress { height: 3px; background: var(--line); border-radius: 2px; margin-bottom: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); box-shadow: 0 0 10px rgba(255, 204, 0, 0.8); transition: width 0.4s ease; }
.btn {
  font: 500 16px/1.2 Roboto, "Segoe UI", Arial, sans-serif; color: var(--ink);
  padding: 10px 16px; border-radius: 999px; min-height: 44px;
  border: 1.5px solid var(--line); background: rgba(127, 127, 127, 0.10); cursor: pointer;
}
.btn:hover { border-color: var(--gold); }
.btn.primary { background: var(--gold); color: var(--on-gold); border-color: var(--gold); font-weight: 700; }
.btn[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.btn:disabled { opacity: 0.45; cursor: default; }
/* the gold Next button at the last slide: an outline, not a dimmed gold fill with unreadable dark words */
.btn.primary:disabled { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn .state { margin-left: 0.4em; color: var(--accent-text); font-weight: 700; }
.btn.primary .state { color: var(--on-gold); }
.btn .ico { font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", sans-serif; font-size: 0.9em; }

/* The All Slides and Print windows cap their height, so a 26-slide list is taller than the window they sit in and has
   to scroll. ⚠️ Measured 2026-11-02: it already did, and every link was reachable by scrolling AND by Tab, because the
   HTML Standard's own rendering rules say `dialog:modal { overflow: auto; }` and both Chromium and WebKit apply it.
   The research sweep read the absence of an overflow rule here as "no scroll container" and called it a blocker; that
   was wrong, and the measurement is what settled it. Two things are still worth having, and this is them:
     - `overflow: auto` written down, so the deck does not rest on a browser default for reaching 16 of its 26 slides;
     - a sticky head, because Close DID scroll off the top (measured: out of view in both engines), leaving a mouse
       user to find Escape or the backdrop. The top padding moved into the head so it covers content cleanly; the
       negative margin keeps the spacing below it exactly what it was. */
.toc {
  max-width: min(720px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 64px);
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-1); color: var(--ink);
  padding: 0 24px 20px;
  overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
}
.toc::backdrop { background: rgba(0, 0, 0, 0.6); }
.toc-head {
  position: sticky; top: 0; z-index: 1; background: var(--bg-1);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px 0 8px; margin-bottom: -8px;
}
.toc-head h2 { margin: 0; font-size: 24px; }
.toc-list { margin: 12px 0 0; padding-left: 2.2em; display: grid; gap: 4px; font-size: 18px; }
.toc-list a { color: var(--ink); text-decoration: none; display: block; padding: 6px 8px; border-radius: 8px; }
.toc-list a:hover, .toc-list a[aria-current="true"] { background: var(--wash); color: var(--ink); }
.toc-list a[aria-current="true"] { font-weight: 700; }

/* ---------- motion (off when the computer asks for less motion, or the Motion button is off) ---------- */
/* The grid stays put so the canvas light runs exactly on its lines; the grid's animation is template\deck-bg.js. */
@keyframes breathe { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
:root[data-motion="on"] .slide .bg .glow { animation: breathe 14s ease-in-out infinite; }
:root[data-motion="on"] .slide .bg .glow.g2 { animation-delay: -7s; }
:root[data-motion="on"] .slide.entering .slide-inner { animation: enter 0.55s ease-out both; }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation: none !important; transition: none !important; }

/* ---------- narrow screens and large text: the slide grows instead of clipping ---------- */
@container (max-width: 900px) {
  .slide-inner { padding: 1.6em 1.4em 1.8em; }
  .slide.cover h2 { font-size: 3.2em; margin-top: 0.6em; }
  .slide h2 { font-size: 2em; }
  .cols-2, .cols-3, .cols-4, .issue, .story, .bio { grid-template-columns: minmax(0, 1fr); }
  .slide table.growth th[scope="row"] { white-space: normal; }
  .slide table.growth .bar-cell { width: auto; }
  .price-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline li { grid-template-columns: 1fr; gap: 0.2em; }
  .topbar { flex-direction: column; gap: 0.3em; }
}

/* ---------- the slide box has two regimes, and until 2026-11-02 only one of them was named ----------
   The 16:9 box holds while the type is PROPORTIONAL to the box. The type is
   calc(clamp(14px, 1.25cqi, 40px) * var(--ts)), so it stops being proportional in exactly two cases:
     - the stage falls below 1120px, where 1.25cqi has reached the 14px clamp floor and stops shrinking with the box;
     - Text Size is above 100%, where the type is deliberately larger than the box's own proportion.
   In both the box GROWS, and it already did: `aspect-ratio` sets a PREFERRED size, not a cap, so a block whose
   content needs more simply gets taller. Measured 2026-11-02 against the live deck: +75px at 1280x720, +177px at
   1024x768, +1811px at 320x568, and at Text Size 115% it grows at EVERY window size, +404px even at 1920x1080.
   ⚠️ Nothing was ever clipped and no words were ever lost. What growth costs is the 16:9 frame and the control bar,
   which it pushes down the page — "a slide that grows pushes the buttons down and the page starts to scroll during a
   presentation", which is why the fit check was written in the first place. So: the growth is now DECLARED instead of
   accidental (identical rendering, an honest computed value that tools\fit_check.cjs can read), min-height keeps a
   sparse slide at a true 16:9, and the bar below stays in reach.
   ⛔ Never "fix" this by lowering the 14px floor. That trades a page that scrolls for type too small to read. */
@container (max-width: 1120px) {
  .slide { aspect-ratio: auto; min-height: 56.25cqi; }
}
@media (min-width: 701px) {
  /* Above a phone, Text Size over 100% releases the box the same way. (On a phone the rule below already does, and
     keeps its own taller 70vh minimum.) data-ts is set by deck.js and by the pre-paint script in shell.tmpl. */
  :root[data-ts]:not([data-ts="100"]) .slide { aspect-ratio: auto; min-height: 56.25cqi; }
}
/* Wherever the slide may grow, Previous and Next stay reachable: the bar sticks to the bottom of the window, exactly
   as it does on a phone. The stage, and so the bar, is min(100vw - 32px, (100vh - 124px) * 16 / 9), so a stage under
   1120px means a window under 1152px wide or under 754px tall. scroll-padding-bottom keeps a focused button from
   ending up behind the sticky bar (WCAG 2.4.11 Focus Not Obscured). */
   ⛔ No extra padding here, unlike the phone rule below. `--chrome: 124px` budgets for a 57px bar plus the app's own
   16px padding and 14px gap, and the 8px above and below that the phone rule adds put the page 2px over the window at
   1920x700 — caught by bar_check.cjs, which asserts the whole page fits without scrolling at 1024 and wider. The bar
   carries its own background, so content scrolling beneath it is covered without any. */
:root { scroll-padding-bottom: calc(var(--chrome) + 16px); }
@media (max-width: 1151px), (max-height: 754px) {
  .controls { position: sticky; bottom: 0; z-index: 5; background: var(--bg-0); }
}
:root[data-ts]:not([data-ts="100"]) .controls {
  position: sticky; bottom: 0; z-index: 5; background: var(--bg-0);
}

/* ---------- 320 CSS px, the width WCAG 1.4.10 Reflow names, with large text on top of it (2026-11-02) ----------
   Nothing may push a slide SIDEWAYS, because sideways is the one direction a reader must never have to scroll.
   Measured at 320x568 with Text Size 130% before this block existed: ten slides ran up to 163px off the side and the
   page itself scrolled 70px sideways. Every cause, named, because each one was found by measuring rather than guessed
   (tools\fit_check.cjs is what found them, on the first run it was able to fail):
     - web addresses and email addresses — one unbreakable token 329px wide in a 253px box;
     - the cover's heading word "Sponsorship" at 3.2em — 321px as a single word;
     - white-space: nowrap on the price label, the timeline dates and the growth table's row headings;
     - .bio .bio-timeline li keeping its two columns, because its own `.bio` prefix out-specifies the single-column
       rule in the 900px block above (the same trap the 2026-10-25 note in CLAUDE.md warns about);
     - table.growth at 442px and table.paved at 410px, which no amount of wrapping shrinks while the columns size
       themselves from their content.
   overflow-wrap is inherited, so one declaration on .slide-inner reaches every word inside it. */
@container (max-width: 430px) {
  .slide-inner { overflow-wrap: anywhere; }
  /* th.num is a column HEADING — "Per 1,000 subscribers", 225px of words in an 84px cell. td.num keeps its nowrap:
     those are the figures, they are short, and a price broken over two lines reads wrong. */
  .card.figure .lbl strong, .timeline .when, .slide table.growth th[scope="row"], .slide th.num { white-space: normal; }
  .bio .bio-timeline li, .timeline li, .timeline.prices li { grid-template-columns: minmax(0, 1fr); gap: 0.2em; }
  /* ⛔ A DATA TABLE IS NOT SQUEEZED. Both ways of squeezing one were tried on 2026-11-02 and both passed every
     geometric check while being unreadable, which is why they were caught by LOOKING at the picture and not by a
     script: `table-layout: fixed` gives every column the same width, so "December 2004" came out "Dec / em / ber /
     200 / 4"; `table-layout: auto` with breakable words shrinks each column to about one character, so "Not yet
     published" came out "No / t / ye / t / pu / bli / sh / ed". A data table is one of the things WCAG 1.4.10
     Reflow excepts, so the table keeps its own width and scrolls sideways inside its own box. The page still
     never scrolls sideways, which is the thing the criterion is actually about. The box is given its role, its
     name and a place in the Tab order by build.make_tables_scrollable(), so a keyboard user can reach it. */
  /* ⚠️ min-width: 0 is load-bearing. .body is a flex box, and a flex item's automatic minimum size is its
     min-content width — so without this the scroller refuses to be narrower than the table inside it and the
     slide runs off the side anyway (measured: growth still 149px over at 320x568 until this line was added). */
  .table-scroll { overflow-x: auto; overscroll-behavior-x: contain; min-width: 0; max-width: 100%; }
  .table-scroll table, .table-scroll th, .table-scroll td { overflow-wrap: normal; }
  .slide table { width: auto; min-width: 100%; }
  /* ⚠️ The caption is prose, not a column. It belongs to the table, so it is as wide as the table — which means
     it scrolled off to the right with it and read "Subscriber counts from origin to today. D". It stays put at
     the left and wraps inside the width the reader can actually see. 100cqi is the stage, which is the only
     measurement here that does not depend on how wide the table happens to be. */
  .table-scroll > table > caption { position: sticky; left: 0; max-width: calc(100cqi - 3em); }
}
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (max-width: 700px) {
  /* On a phone the bar stays pinned to the bottom of the screen, so Next is always in reach. */
  .controls { position: sticky; bottom: 0; z-index: 5; background: var(--bg-0); padding: 8px 0; }
  .deck-app { padding: 8px; }
  .slide { aspect-ratio: auto; min-height: 70vh; }
  .btn { font-size: 15px; padding: 9px 13px; }
}

/* ---------- the Print or Save as PDF window ---------- */
.print-dialog form { display: grid; gap: 14px; margin-top: 12px; }
.print-dialog fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px 14px; margin: 0; display: grid; gap: 6px; }
.print-dialog legend { font-weight: 700; padding: 0 6px; font-size: 18px; }
.print-dialog .opt { display: flex; gap: 10px; align-items: center; font-size: 18px; padding: 4px 0; cursor: pointer; }
.print-dialog input[type="radio"], .print-dialog input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.print-choose { display: grid; gap: 8px; margin-top: 4px; }
.print-choose[hidden] { display: none; }
.print-tools { display: flex; gap: 8px; }
.print-list { list-style: none; margin: 0; padding: 4px; max-height: 38vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.print-list label { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.print-list label:hover { background: var(--wash); }
.print-list .n { color: var(--ink-soft); min-width: 2em; text-align: right; }
.print-tip { color: var(--ink-soft); font-size: 16px; margin: 0; }
.print-error { color: var(--accent-text); font-weight: 700; margin: 0; min-height: 0; }
.print-error:empty { display: none; }
.print-actions { display: flex; gap: 8px; }

/* ---------- the Sparkle settings panel (only with ?tune=1 in the address) ---------- */
.tune {
  position: fixed; top: 12px; left: 12px; z-index: 40; width: 300px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg-1); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); font: 15px/1.35 Roboto, sans-serif;
}
.tune h2 { margin: 0 0 8px; font-size: 17px; }
.tune-row { display: grid; grid-template-columns: 82px 1fr 46px; gap: 8px; align-items: center; margin: 6px 0; }
.tune-row input[type="range"] { width: 100%; accent-color: var(--gold); }
.tune-row output { text-align: right; font-variant-numeric: tabular-nums; color: var(--accent-text); font-weight: 700; }
.tune-row select { grid-column: 2 / 4; font: inherit; padding: 4px; border-radius: 6px; }
.tune-read { margin: 8px 0; color: var(--ink-soft); font-size: 13px; user-select: all; }
.tune-actions { display: flex; gap: 8px; }
.tune .btn { min-height: 36px; padding: 6px 12px; font-size: 14px; }

/* ---------- print or save as PDF: each chosen slide fills its own landscape page ----------
   Aaron, 2026-10-24: "I tried to print or save as PDF and the preview is absolutely horrible. This part needs to be
   right: one slide per page, easily selectable, customizable." The slide is drawn to the page's width at the same
   proportions as on screen (1.25 per cent of the width per em), 7.3 inches tall so it fits Letter and A4 landscape
   alike, with its colors kept even when the browser's "Background graphics" box is off. Light colors unless the Print
   window asked for dark. tools\print_check.cjs prints it on both paper sizes and pictures every page. */
@page { size: landscape; margin: 0.4in; }
@media print {
  html:not(.print-dark), html:not(.print-dark)[data-theme="dark"] {
    --bg-0: #ffffff; --bg-1: #ffffff; --bg-2: #ffffff; --ink: #1a1a1a; --ink-soft: #454545;
    --accent-text: #6f5400; --ain-text: #2a46b8; --bar-ttt: #8f7000; --bar-ain: #2f55e0; --link: #0000cc; --link-line: rgba(0, 0, 204, 0.35);
    --line: rgba(0, 0, 0, 0.18); --card: linear-gradient(160deg, #f6f6f4, #efefec); --card-ain: linear-gradient(160deg, #eef2ff, #e3e9ff);
    --card-ain-line: rgba(47, 85, 224, 0.45); --grid-line: transparent; --shadow: none;
  }
  html, body { background: var(--bg-0) !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .skip, .controls, .toc, #deck-status, .tune, .bg-canvas, .slide .bg .glow { display: none !important; }
  .deck-app { display: block; padding: 0; min-height: 0; }
  .stage { width: 100% !important; min-width: 0; container-type: inline-size; display: block !important; }
  .slide, .slide[hidden] {
    display: block !important; width: 100%; height: 7.3in; aspect-ratio: auto; overflow: hidden;
    font-size: 1.25cqi; border-radius: 0.16in; box-shadow: none; border: 1px solid rgba(0, 0, 0, 0.18);
    break-inside: avoid; page-break-inside: avoid; break-before: page; page-break-before: always;
  }
  .slide:first-child { break-before: auto; page-break-before: auto; }
  html.print-select .slide:not(.print-on) { display: none !important; }
  html.print-select .slide.print-on { break-before: page; page-break-before: always; }
  html.print-select .slide.print-first { break-before: auto; page-break-before: auto; }
  .slide-inner { min-height: 100%; height: 100%; }
  .slide .slide-inner, .slide.entering .slide-inner { animation: none !important; }
  html.read .stage { gap: 0; }
  .slide a { text-decoration-thickness: 1px; }
}
