/* ─────────────────────────────────────────────────────────────────────────
   Business Review deck — shared engine styles.

   Two layers live here, kept apart on purpose:
     1. the slide design system (DESIGN-SYSTEM.md in this folder): tokens,
        type, panels, icon tiles, footer — everything *on* a 1280×720 slide;
     2. the presenter chrome around the slides: dark stage, bottom bar,
        overview, notes, help, pointer — never drawn on a slide.

   Every deck under /review/<quarter>/ loads this file and deck.js, then adds
   only the styles its own slides need.
   ───────────────────────────────────────────────────────────────────────── */

/* Expressway is the company's official English face (Typodermic). Vendored,
   not a CDN: the people presenting this sit on Iranian connections. Regular
   also covers 500; the family has no Medium. */
@font-face { font-family: 'Expressway'; src: url('fonts/expressway-400.otf') format('opentype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Expressway'; src: url('fonts/expressway-600.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Expressway'; src: url('fonts/expressway-700.otf') format('opentype'); font-weight: 700; font-display: swap; }

:root {
  /* brand, from the logo */
  --teal: #14A99D;
  --teal-dark: #0F8F85;
  --teal-text: #0F7A72;
  --blue: #2B86C5;
  --blue-text: #1E5F92;
  --sky: #A8D1EC;
  --sky-on-blue: #DDEEFA;

  /* soft fills */
  --mint: #E6F6F4;
  --ice: #E5F0F9;
  --warn-soft: #FFF3DC; --warn-text: #8A5200;
  --bad-soft: #FCE9E6;  --bad: #C0392B;

  /* neutrals */
  --ink: #2B2B2B;
  --muted: #5A6168;
  --faint: #8A9096;
  --canvas: #F2F4F6;
  --panel: #FFFFFF;
  --panel-head: #FAFBFC;
  --line: #E1E6EA;
  --axis: #D9DEE2;
  --track: #EEF1F3;

  /* presenter chrome */
  --ui-bg: #1F2328;
  --ui-bg-2: #272C32;
  --ui-bg-3: #30363D;
  --ui-line: #373D44;
  --ui-fg: #E9ECEF;
  --ui-dim: #A2A9B0;
  --ui-dimmer: #737A82;
  --bar-h: 48px;
  --notes-w: 380px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Expressway', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: var(--ui-bg);
  color: var(--ink);
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }

/* ═════════════════════════════════════════════════════════════════════════
   1 · SLIDES
   ═════════════════════════════════════════════════════════════════════════ */

#stage {
  position: fixed;
  inset: 0 0 var(--bar-h) 0;
  overflow: hidden;
  overflow: clip;
  transition: right .25s var(--ease), bottom .25s var(--ease);
}
body.notes-open #stage { right: var(--notes-w); }
body.is-full #stage { bottom: 0; }

#viewport {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1280px;
  height: 720px;
  transform-origin: center center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 70px rgba(0, 0, 0, .5);
  background: var(--canvas);
  /* clip, not just hidden: an overflow:hidden box can still be scrolled, and
     following a #slide link scrolled it towards the offset (entering) slide */
  overflow: hidden;
  overflow: clip;
}
body.is-full #viewport { box-shadow: none; }

.slide {
  position: absolute;
  inset: 0;
  width: 1280px;
  height: 720px;
  overflow: hidden;
  overflow: clip;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  translate: var(--enter, 0) 0;
  transition: opacity .38s ease, translate .45s var(--ease), visibility 0s linear .45s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity .38s ease, translate .45s var(--ease);
  z-index: 1;
}
.slide.from-right { --enter: 36px; }
.slide.from-left  { --enter: -36px; }

/* entry choreography — `translate`, not `transform`, so hover effects that
   use transform on the same element never fight it */
.slide [data-in] { opacity: 0; translate: 0 16px; }
.slide.is-in [data-in] {
  opacity: 1;
  translate: 0 0;
  transition: opacity .6s var(--ease), translate .6s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms + 120ms);
}
.slide [data-in="fade"] { translate: 0 0; }
.slide [data-in="left"] { translate: -24px 0; }
.slide [data-in="right"] { translate: 24px 0; }

/* speaker notes ride inside their slide, never shown on it */
.slide > .notes { display: none; }

/* ── layout ─────────────────────────────────────────────────────────────── */
.sl-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 42px 56px 28px;
}
.sl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sl-head .hgroup { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kicker { font-size: 18px; font-weight: 600; color: var(--teal-text); letter-spacing: .005em; }
.title { margin: 0; font-size: 42px; font-weight: 700; line-height: 1.1; letter-spacing: -.012em; }
.title .paren { font-weight: 500; color: var(--faint); }
.sl-head .lead { margin: 8px 0 0; max-width: 1168px; font-size: 19px; line-height: 1.45; color: var(--muted); }
.sl-grid { flex: 1; min-height: 0; display: grid; gap: 16px; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.sl-foot {
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 56px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--faint);
}
.sl-foot .l { display: flex; align-items: center; gap: 14px; }
.sl-foot .l img { height: 20px; }
.sl-foot .r { display: flex; align-items: center; gap: 14px; }
.sl-foot .num { font-weight: 700; color: var(--ink); min-width: 22px; text-align: right; }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-text);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease;
}
.crumb .i { --s: 14px; }
button.crumb:hover { background: #d4efeb; }
.crumb.is-blue { background: var(--ice); color: var(--blue-text); }

/* ── panels ─────────────────────────────────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
  min-height: 0;
}
.panel.is-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.panel.is-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.card-title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.label { font-size: 16px; color: var(--muted); }

/* ── icons (line set, rendered as masks so they take any colour) ────────── */
.i {
  display: block;
  flex: none;
  width: var(--s, 26px);
  height: var(--s, 26px);
  background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
          mask: var(--m) center / contain no-repeat;
}
.i-activity  { --m: url('icons/activity.svg'); }
.i-alert     { --m: url('icons/alert.svg'); }
.i-badge     { --m: url('icons/badge.svg'); }
.i-bag       { --m: url('icons/bag.svg'); }
.i-bank      { --m: url('icons/bank.svg'); }
.i-bars      { --m: url('icons/bars.svg'); }
.i-bars-up   { --m: url('icons/bars-up.svg'); }
.i-bell      { --m: url('icons/bell.svg'); }
.i-book      { --m: url('icons/book.svg'); }
.i-briefcase { --m: url('icons/briefcase.svg'); }
.i-bulb      { --m: url('icons/bulb.svg'); }
.i-calendar  { --m: url('icons/calendar.svg'); }
.i-cart      { --m: url('icons/cart.svg'); }
.i-chat      { --m: url('icons/chat.svg'); }
.i-check     { --m: url('icons/check.svg'); }
.i-clock     { --m: url('icons/clock.svg'); }
.i-code      { --m: url('icons/code.svg'); }
.i-database  { --m: url('icons/database.svg'); }
.i-diamond   { --m: url('icons/diamond.svg'); }
.i-flag      { --m: url('icons/flag.svg'); }
.i-globe     { --m: url('icons/globe.svg'); }
.i-grid      { --m: url('icons/grid.svg'); }
.i-heart     { --m: url('icons/heart.svg'); }
.i-hierarchy { --m: url('icons/hierarchy.svg'); }
.i-home      { --m: url('icons/home.svg'); }
.i-image     { --m: url('icons/image.svg'); }
.i-infinity  { --m: url('icons/infinity.svg'); }
.i-jar       { --m: url('icons/jar.svg'); }
.i-layers    { --m: url('icons/layers.svg'); }
.i-mail      { --m: url('icons/mail.svg'); }
.i-megaphone { --m: url('icons/megaphone.svg'); }
.i-moneybag  { --m: url('icons/moneybag.svg'); }
.i-monitor   { --m: url('icons/monitor.svg'); }
.i-pencil    { --m: url('icons/pencil.svg'); }
.i-phone     { --m: url('icons/phone.svg'); }
.i-plant     { --m: url('icons/plant.svg'); }
.i-python    { --m: url('icons/python.svg'); }
.i-robot     { --m: url('icons/robot.svg'); }
.i-scales    { --m: url('icons/scales.svg'); }
.i-search    { --m: url('icons/search.svg'); }
.i-send      { --m: url('icons/send.svg'); }
.i-share     { --m: url('icons/share.svg'); }
.i-shield    { --m: url('icons/shield.svg'); }
.i-sliders   { --m: url('icons/sliders.svg'); }
.i-star      { --m: url('icons/star.svg'); }
.i-store     { --m: url('icons/store.svg'); }
.i-tag       { --m: url('icons/tag.svg'); }
.i-target    { --m: url('icons/target.svg'); }
.i-timer     { --m: url('icons/timer.svg'); }
.i-trend-down{ --m: url('icons/trend-down.svg'); }
.i-trend-up  { --m: url('icons/trend-up.svg'); }
.i-trophy    { --m: url('icons/trophy.svg'); }
.i-user      { --m: url('icons/user.svg'); }
.i-wallet    { --m: url('icons/wallet.svg'); }
.i-wrench    { --m: url('icons/wrench.svg'); }

/* ── icon tiles ─────────────────────────────────────────────────────────── */
.tile {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--teal-text);
}
.tile .i { --s: 26px; }
.tile.lg { width: 52px; height: 52px; border-radius: 14px; }
.tile.lg .i { --s: 30px; }
.tile.xl { width: 56px; height: 56px; border-radius: 14px; }
.tile.xl .i { --s: 32px; }
.tile.is-ice  { background: var(--ice); color: var(--blue-text); }
.tile.is-warn { background: var(--warn-soft); color: var(--warn-text); }
.tile.is-bad  { background: var(--bad-soft); color: var(--bad); }
.tile.is-teal { background: var(--teal); color: #fff; }
.tile.is-blue { background: var(--blue); color: #fff; }
.tile.is-glass { background: rgba(255, 255, 255, .18); color: #fff; }

/* ── callout bar ────────────────────────────────────────────────────────── */
.callout {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 18px;
  line-height: 1.45;
}
.callout b { font-weight: 700; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--teal-text);
  font-size: 18px;
  font-weight: 600;
}

/* ═════════════════════════════════════════════════════════════════════════
   2 · PRESENTER CHROME
   ═════════════════════════════════════════════════════════════════════════ */

#progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bar-h);
  height: 2px;
  z-index: 41;
  pointer-events: none;
  transition: right .25s var(--ease), bottom .25s var(--ease), opacity .25s ease;
}
#progress i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .45s var(--ease); }
body.notes-open #progress { right: var(--notes-w); }

#bar {
  position: fixed;
  inset: auto 0 0 0;
  height: var(--bar-h);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  background: rgba(24, 27, 31, .97);
  border-top: 1px solid var(--ui-line);
  color: var(--ui-dim);
  font-size: 13px;
  backdrop-filter: blur(14px);
  transition: transform .3s var(--ease), opacity .3s ease;
}
#bar .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px 0 4px;
  margin-right: 6px;
  height: 26px;
  border-right: 1px solid var(--ui-line);
  color: var(--ui-dim);
  white-space: nowrap;
  text-decoration: none;
}
#bar .brand:hover { color: var(--ui-fg); }
#bar .brand .mark { position: relative; width: 16px; height: 16px; flex: none; }
#bar .brand .mark::before,
#bar .brand .mark::after { content: ''; position: absolute; border-radius: 3px; }
#bar .brand .mark::before { left: 5px; top: 0; width: 6px; height: 16px; background: #fff; }
#bar .brand .mark::after  { left: 0; top: 5px; width: 16px; height: 6px; background: var(--teal); }
#bar .grow { flex: 1; }
#bar .sep { width: 1px; height: 22px; background: var(--ui-line); margin: 0 6px; }

.bbtn {
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ui-dim);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.bbtn:hover { background: var(--ui-bg-2); color: var(--ui-fg); }
a.bbtn { text-decoration: none; }
.bbtn:active { background: var(--ui-bg-3); }
.bbtn:disabled { opacity: .3; cursor: default; background: none; }
.bbtn[aria-pressed="true"] { background: rgba(20, 169, 157, .16); border-color: rgba(20, 169, 157, .5); color: #6FD6CC; }
.bbtn .k {
  font: 600 10.5px/1 ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--ui-dimmer);
  border: 1px solid var(--ui-line);
  border-radius: 4px;
  padding: 2px 4px;
}
.bbtn svg { width: 16px; height: 16px; display: block; }
.bbtn.icon { padding: 0; width: 34px; }

#nowBtn {
  height: 34px;
  max-width: 44vw;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ui-bg-2);
  border: 1px solid var(--ui-line);
  color: var(--ui-fg);
  overflow: hidden;
  transition: border-color .15s ease;
}
#nowBtn:hover { border-color: #4a525b; }
#nowBtn .idx { font: 600 12px ui-monospace, 'SF Mono', Menlo, monospace; color: #6FD6CC; }
#nowBtn .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
#nowBtn .chev { color: var(--ui-dimmer); font-size: 10px; }

#timer { font: 500 12.5px ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ui-dim); min-width: 64px; }
#timer.is-paused { color: var(--ui-dimmer); }

/* fullscreen: the bar steps aside and comes back on mouse movement */
body.is-full #bar { transform: translateY(100%); opacity: 0; }
body.is-full.chrome-on #bar { transform: none; opacity: 1; }
body.is-full #progress { bottom: 0; opacity: .9; }
body.is-full.idle, body.is-full.idle * { cursor: none !important; }

/* ── overview ───────────────────────────────────────────────────────────── */
#overview {
  position: fixed;
  inset: 0 0 var(--bar-h) 0;
  z-index: 50;
  background: rgba(17, 19, 22, .94);
  backdrop-filter: blur(6px);
  overflow: auto;
  padding: 36px 40px 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
#overview.open { opacity: 1; visibility: visible; transition: opacity .22s ease; }
.ov-group { max-width: 1240px; margin: 0 auto 30px; }
.ov-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; color: var(--ui-fg); }
.ov-head b { font-size: 15px; font-weight: 600; }
.ov-head span { font-size: 12.5px; color: var(--ui-dimmer); }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 18px; }
.ov-item { text-align: left; display: flex; flex-direction: column; gap: 9px; color: var(--ui-dim); }
.ov-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--canvas);
  box-shadow: 0 0 0 1px var(--ui-line);
  transition: box-shadow .15s ease, transform .2s var(--ease);
}
.ov-thumb .slide {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transform-origin: 0 0;
  pointer-events: none;
  transition: none;
}
/* thumbnails show the finished state, not the choreography */
.ov-thumb .slide, .ov-thumb .slide * { transition: none !important; animation: none !important; }
.ov-item:hover .ov-thumb { box-shadow: 0 0 0 2px #4a525b; transform: translateY(-2px); }
.ov-item[aria-current="true"] .ov-thumb { box-shadow: 0 0 0 2px var(--teal); }
.ov-cap { display: flex; gap: 8px; font-size: 13px; }
.ov-cap .n { font: 600 12px ui-monospace, 'SF Mono', Menlo, monospace; color: #6FD6CC; }
.ov-cap .t { color: var(--ui-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── notes ──────────────────────────────────────────────────────────────── */
#notes {
  position: fixed;
  top: 0;
  right: 0;
  bottom: var(--bar-h);
  width: var(--notes-w);
  z-index: 30;
  background: #181B1F;
  border-left: 1px solid var(--ui-line);
  color: var(--ui-fg);
  padding: 28px 28px 32px;
  overflow: auto;
  transform: translateX(100%);
  transition: transform .25s var(--ease);
}
body.notes-open #notes { transform: none; }
#notes .n-kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6FD6CC; }
#notes h3 { margin: 6px 0 18px; font-size: 22px; line-height: 1.3; }
#notes ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 12px; }
#notes li { font-size: 15.5px; line-height: 1.6; color: #D5DADF; }
#notes li::marker { color: var(--teal); }
#notes .n-empty { color: var(--ui-dimmer); font-size: 14px; }
#notes .n-next { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--ui-line); font-size: 13px; color: var(--ui-dimmer); }
#notes .n-next b { color: var(--ui-dim); font-weight: 600; }

/* ── help ───────────────────────────────────────────────────────────────── */
#help {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 14, .6);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility 0s linear .18s;
}
#help.open { opacity: 1; visibility: visible; transition: opacity .18s ease; }
#help .sheet {
  width: min(560px, calc(100vw - 32px));
  background: #1B1F24;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  padding: 26px 28px 22px;
  color: var(--ui-fg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
#help h3 { margin: 0 0 4px; font-size: 20px; }
#help .sub { color: var(--ui-dim); font-size: 13.5px; line-height: 1.6; margin-bottom: 18px; }
#help dl { display: grid; grid-template-columns: 130px 1fr; gap: 9px 16px; margin: 0 0 20px; font-size: 14px; }
#help dt { font: 600 12px ui-monospace, 'SF Mono', Menlo, monospace; color: #6FD6CC; padding-top: 2px; }
#help dd { margin: 0; color: #D5DADF; }
#help .close { float: right; }

/* ── blackout, pointer, toast ───────────────────────────────────────────── */
#blackout { position: fixed; inset: 0; z-index: 70; background: #000; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
body.is-black #blackout { opacity: 1; visibility: visible; transition: opacity .3s ease; }

#pointer {
  position: fixed;
  z-index: 65;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 5px rgba(255, 59, 48, .25), 0 0 22px 6px rgba(255, 59, 48, .55);
  pointer-events: none;
  display: none;
}
body.pointer-on #pointer { display: block; }
body.pointer-on #stage, body.pointer-on #stage * { cursor: none !important; }

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h) + 18px);
  z-index: 80;
  translate: -50% 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0F1215;
  border: 1px solid var(--ui-line);
  color: var(--ui-fg);
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, translate .2s ease;
}
#toast.show { opacity: 1; translate: -50% 0; }

/* ── loops off: nothing repeats; entry and hover animations still play ──── */
body.loops-off .slide .runner { display: none; }
body.loops-off .slide .loopy,
body.loops-off .slide .loopy::before,
body.loops-off .slide .loopy::after { animation: none !important; }

/* ── the AI chip: a robot that breathes, wherever AI does the work ────────── */
.ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: 1px;
}
.ai .i { --s: 16px; animation: bob 3.2s ease-in-out infinite; }
.ai .spark { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .9; animation: spark 2.4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -2px; } }
@keyframes spark { 0%, 100% { opacity: .25; scale: .6; } 50% { opacity: 1; scale: 1; } }
body.loops-off .ai .i, body.loops-off .ai .spark { animation: none; }

/* ── the Python chip: where the logic is our own Python code ──────────────── */
.py { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 2px 9px 2px 6px; border-radius: 999px; background: var(--ice); color: var(--blue-text); font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; vertical-align: 1px; }
.py .i { --s: 14px; }

/* ── narrow screens: keep only what a tablet or phone presenter needs ──── */
@media (max-width: 860px) {
  #bar { gap: 2px; padding: 0 6px; }
  #bar .brand span:last-child, #bar .sep, #timer, #pointerBtn, #loopBtn, #notesBtn, #helpBtn, #dlBtn, .bbtn .k { display: none; }
  #nowBtn { max-width: 38vw; }
  body.notes-open #stage { right: 0; }
}

/* ── reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active, .slide [data-in], .slide.is-in [data-in] { transition: none !important; translate: 0 0 !important; }
  .slide [data-in] { opacity: 1; }
  /* every drawing lands in its finished state straight away */
  .slide *, .slide *::before, .slide *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}

/* ── print: one slide per page, final state, no chrome (Ctrl/⌘ + P → PDF) ── */
@media print {
  @page { size: 1280px 720px; margin: 0; }
  html, body { height: auto; overflow: visible; background: #fff; }
  #bar, #progress, #overview, #notes, #help, #blackout, #pointer, #toast { display: none !important; }
  #stage { position: static; }
  #viewport { position: static; transform: none !important; box-shadow: none; width: 1280px; height: auto; overflow: visible; }
  .slide {
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    translate: 0 0 !important;
    break-after: page;
    page-break-after: always;
  }
  .slide [data-in] { opacity: 1 !important; translate: 0 0 !important; }
  /* repeated slides (the chooser before each section) print once */
  .slide.is-draft, .slide.is-dup { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
