/* The slides: a modern Beamer. Sizes and spacing for every slide are here; font, corners and palette
   are in shared/theme.css.

   What the colours mean
     orange   the talk's own voice: slide titles, the big title, section numbers and thank you,
              and where you are in the section navigation
     brown    block headings
     pink     alert: the current bullet, and CAAV in the results
     grey     No-CAAV in the results
     blue, orange, pink inside a figure: you, your partner, both, as in the paper */
:root {
  --frame-bg: var(--title);
  --sphere: #cfd0d8; --person: #6b6e7c;
  --glyph-line: rgba(59, 53, 47, 0.35); --glyph-fill: rgba(59, 53, 47, 0.08); --dot-off: rgba(59, 53, 47, 0.1);
  --field-cell: rgba(59, 53, 47, 0.05); --field-grey: rgb(92, 95, 110); --field-swatch: #5c5f6e; --field-ink: #3b352f; --field-numeral: #ffffff;
  --x-ink: var(--fg); --x-muted: #6b655f; --x-line: #8a817a; --x-geo: #c9ccd8; --x-bg: var(--bg); --x-person: #8a817a;
  --plot-ink: var(--fg); --plot-muted: rgba(59, 53, 47, 0.7); --plot-grey: #8a817a; --plot-line: #d9cfc6;
  --ic-ink: var(--fg);
}
.dark {
  --frame-bg: color-mix(in srgb, var(--title) 60%, #000);
  --sphere: #3f4048; --person: #d9d9e3;
  --glyph-line: rgba(255, 255, 255, 0.38); --glyph-fill: rgba(255, 255, 255, 0.12); --dot-off: rgba(255, 255, 255, 0.12);
  --field-cell: rgba(255, 255, 255, 0.05); --field-grey: rgb(222, 222, 230); --field-swatch: #dedee6; --field-ink: #ffffff; --field-numeral: #15161b;
  --x-ink: var(--fg); --x-muted: #a89f97; --x-line: #8d8fa0; --x-geo: #3f4048; --x-bg: var(--bg); --x-person: #a89f97;
  --plot-ink: var(--fg); --plot-muted: rgba(246, 239, 233, 0.7); --plot-grey: #a89f97; --plot-line: #4a4038;
}

html, body { overscroll-behavior: none; }
.reveal-viewport { background: var(--bg); }
/* One radius everywhere: this is the same on screen as --radius on the pages, because slides are
   drawn at 1920 wide and scaled down. It matches the rounded maps in the plots. */
.reveal { --radius: calc(var(--r) * 10 / 7); }
.reveal { font-family: var(--f-text); font-size: 38px; font-weight: var(--w-text); line-height: 1.3; color: var(--fg); font-synthesis: none; font-kerning: normal; font-feature-settings: "calt", "liga", "kern"; text-rendering: optimizeLegibility; }
.reveal .slides { text-align: left; }
.reveal .slides > section { height: 100%; padding: 0; box-sizing: border-box; }
.reveal h1, .reveal h2, .reveal h3 { font-family: var(--f-text); font-weight: var(--w-head); color: inherit; margin: 0; letter-spacing: -0.016em; text-transform: none; text-shadow: none; }
.reveal p { margin: 0; }
.reveal strong, .reveal b { font-weight: var(--w-strong); }
.reveal em, .reveal i { font-style: italic; } /* reveal resets these */
.reveal a { color: var(--accent); }
.reveal mark { color: inherit; background: none; font-weight: var(--w-strong); }
.reveal mark.you { color: var(--you); }
.reveal mark.partner { color: var(--partner); }
.reveal mark.both { color: var(--accent); }
.reveal aside.notes { display: none; }
.rq, .c-quote p, .c-card blockquote p { font-style: italic; font-weight: 380; }

/* ---------- section navigation: no bar. The current section is orange, ones you've left fade ---------- */
.headline { position: absolute; left: 72px; right: 72px; top: 0; height: 52px; display: flex; align-items: center; gap: 40px; color: var(--fg-2); z-index: 3; }
.sec { display: flex; align-items: center; gap: 12px; font-size: 21px; line-height: 1; transition: color 200ms, opacity 200ms; }
.reveal .sec-name, .reveal .dots a, .reveal .f-what a { color: inherit; text-decoration: none; cursor: pointer; }
.sec-name { font-weight: 500; }
.reveal .sec-name:hover, .reveal .f-what a:hover { color: var(--title); }
.sec.past { opacity: 0.38; }
.sec.past:hover { opacity: 1; }
.sec.now { color: var(--title); }
.sec.now .sec-name { font-weight: var(--w-strong); }
.dots { display: flex; }
.dots a { display: grid; place-items: center; width: 16px; height: 24px; }
.dots a::before { content: ""; width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid currentColor; }
.dots a.done::before, .dots a:hover::before { background: currentColor; }
.dots a.now::before { background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 28%, transparent); }
.headline a, .f-what a { border-radius: 6px; }

/* ---------- footer: names, title, logos, no bar ---------- */
.footline { position: absolute; left: 72px; right: 72px; bottom: 0; height: 56px; display: flex; align-items: center; gap: 28px; font-size: 21px; color: var(--fg-2); z-index: 3; }
.f-what { font-weight: var(--w-strong); }
.f-logos { margin-left: auto; display: flex; align-items: center; gap: 24px; height: 30px; }
.f-logos img { height: 100%; width: auto; }
.count { font-weight: var(--w-strong); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }

/* ---------- slide title: text, no bar ---------- */
.frametitle { position: absolute; left: 72px; right: 72px; top: 56px; height: 88px; display: flex; align-items: center; gap: 28px; }
.frametitle h2 { font-size: 66px; line-height: 1.04; letter-spacing: -0.019em; color: var(--title); white-space: nowrap; }
.frametitle p { font-size: 32px; color: var(--fg-2); }
/* The space between the title and the footer. Text sits in the vertical middle of it, figures fill
   it, and a footnote always keeps a gap from what's above. */
.s-main { position: absolute; left: 72px; right: 72px; top: 168px; bottom: 68px; display: flex; flex-direction: column; gap: 30px; min-height: 0; }
.s-body { flex: 1; min-height: 0; display: grid; gap: 56px; align-items: center; grid-auto-rows: minmax(0, 1fr); }
.s-foot { flex: none; }
/* blocks in a grid line up across each row, and the whole grid sits in the middle */
.s-body:has(> .c-card) { grid-template-rows: auto auto !important; grid-auto-rows: auto; align-content: center; align-items: start; row-gap: 88px; column-gap: 72px; }
.s-body > .c-media, .s-body > .c-canvas, .s-body > .c-demo, .s-body > .c-explain, .s-body > .c-live, .s-body > .c-plot, .s-body > .c-ds, .s-body > .c-row, .s-body > .c-grid { align-self: stretch; }
.c-frame { position: relative; align-self: stretch; min-height: 0; border-radius: 20px; overflow: hidden; background: var(--dot-off); }
.c-frame iframe, .c-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.c-glyph svg { display: block; width: 100%; max-height: 230px; color: var(--fg); }
.c-caveat { font-size: 25px; line-height: 1.32; color: var(--fg-2); text-wrap: pretty; }
.c-stack { display: flex; flex-direction: column; justify-content: center; gap: 56px; min-height: 0; }
.c-row { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 48px; align-items: center; min-height: 0; }
.c-row > .c-media { align-self: stretch; }
.c-row > .c-stat .v { font-size: 84px; }
.c-row:has(> .c-stat) { align-items: start; }
.c-grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 32px 48px; min-height: 0; }
.wide { grid-column: 1 / -1; }


/* ---------- bullets. Pick one with `bullet:` at the top of talk.md, or `:::items bullet=dot` on one list:
   vis, triangle, dot, square, dash, none, or the path to an image. ---------- */
/* deck.js paints them from the palette, in --bullet */
[data-bullet="none"], .bullet-none { --bullet: none; }

/* the current bullet is highlighted */
.c-items ul, .c-items ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 30px; }
.c-items li { position: relative; padding-left: 44px; transition: color 200ms, opacity 200ms, transform 200ms; }
.c-items > ul > li::before { content: ""; position: absolute; left: 0; top: 0.22em; width: 0.8em; height: 0.8em; background: var(--bullet) center / contain no-repeat; }
.c-items li.now { color: var(--accent); }
.c-items li.later { opacity: 0; transform: translateY(24px); }
.c-items.all-visible li.later { opacity: 1; transform: none; color: var(--fg-3); }
.c-items li li { padding-left: 32px; font-size: 0.86em; margin-top: 10px; }
.c-items li li::before { content: "–"; position: absolute; left: 0; }
.c-items .rq { display: block; margin-top: 4px; }
/* bullets beside a figure, and on a slide of their own, take the room they have */
.s-body > .c-items { font-size: 44px; line-height: 1.24; }
.s-body > .c-items > ul { gap: 44px; }
.s-body > .c-items:only-child { font-size: 47px; }
.s-body > .c-items:only-child > ul { gap: 60px; }
.c-row > .c-items { font-size: 40px; }
.c-row > .c-items > ul { gap: 26px; }
.c-items > ul > li { padding-left: 1.2em; }

/* ---------- text blocks sit on the page ---------- */
.c-card { display: flex; flex-direction: column; gap: 18px; min-height: 0; color: var(--fg); }
.c-top { display: flex; align-items: center; gap: 16px; }
.c-card h3 { font-size: 42px; line-height: 1.1; color: var(--tone, var(--head)); }
.c-card p { font-size: 34px; line-height: 1.3; }
.c-card blockquote { margin: 0; }
.c-card blockquote p { font-size: 38px; line-height: 1.3; }
.c-card .cite { font-size: 27px; font-variant-numeric: tabular-nums; color: var(--fg-2); }
.ic { color: var(--tone, var(--head)); --fa-secondary-color: var(--tone, var(--title)); --ic-ink: currentColor; --ic-fill: color-mix(in srgb, var(--tone, var(--title)) 28%, transparent); width: 60px; height: 60px; flex: none; display: block; }
.tone-you { --tone: var(--you); }
.tone-partner { --tone: var(--partner); }
.tone-both { --tone: var(--accent); }
.tone-orange { --tone: var(--title); }
.c-quote { margin: 0; }
.c-quote p { font-size: 42px; line-height: 1.28; }
.c-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 26px; color: var(--fg-2); }
.c-stat .v { font-size: 96px; line-height: 1; font-weight: var(--w-head); letter-spacing: -0.024em; font-variant-numeric: lining-nums; color: var(--tone, var(--head)); }
.c-stat .l { margin-top: 8px; font-size: 34px; line-height: 1.2; font-weight: var(--w-strong); }
.c-stat .s { margin-top: 2px; font-size: 28px; color: var(--fg-2); }

/* three columns, one idea each */
.c-card.col { gap: 26px; }
.col .c-top { flex-direction: column; align-items: flex-start; gap: 22px; }
.col .ic { width: 92px; height: 92px; }
.col h3 { font-size: 66px; line-height: 1.04; letter-spacing: -0.02em; }
.col p { font-size: 37px; line-height: 1.3; }
.col p .rq { font-size: 37px; line-height: 1.3; }
.col .rq-tag { display: block; margin-top: 8px; margin-bottom: 6px; font-size: 30px; font-weight: var(--w-strong); color: var(--title); }
/* a heading over bullets */
.c-card .c-items { font-size: 40px; line-height: 1.24; }
.c-card .c-items > ul { gap: 30px; }
.c-card.head-lg h3 { font-size: 54px; line-height: 1.04; letter-spacing: -0.018em; margin-bottom: 18px; }

/* ---------- pictures, plots, tables, diagrams ---------- */
.c-media { position: relative; margin: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
/* the corners go on the picture itself, wherever it ends up in its space */
.c-media img { display: block; flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: 100%; margin: auto; border-radius: var(--radius); }
.c-media.fit-cover img { flex: 1 1 0; width: 100%; height: 0; max-height: none; object-fit: cover; object-position: 50% 12%; }
.c-media figcaption { flex: none; font-size: 28px; line-height: 1.25; color: var(--fg-2); }
.c-plot { margin: 0; min-height: 0; display: flex; flex-direction: column; }
.plot-svg { flex: 1; min-height: 0; }
.plot-svg svg { display: block; width: 100%; height: 100%; }
.c-heat { min-height: 0; }
.c-heat table { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 34px; font-variant-numeric: tabular-nums; }
.c-heat th { font-size: 26px; font-weight: var(--w-text); line-height: 1.1; color: var(--fg-2); vertical-align: bottom; text-align: left; border: 0; padding: 6px 10px; }
.c-heat td { border: 0; padding: 9px 12px; border-radius: var(--radius); }
.c-heat th:not(:first-child), .c-heat td:not(:first-child) { text-align: center; width: 13%; }
.c-heat th:first-child, .c-heat td:first-child { padding-left: 0; }
.c-diagram { display: flex; justify-content: center; min-height: 0; }
.c-diagram svg { max-width: 100%; height: auto; }
.reveal pre { font-size: 26px; }
.katex { font-size: 1em; }

/* ---------- animations ---------- */
.c-canvas { position: relative; min-height: 0; height: 100%; overflow: hidden; border-radius: var(--radius); }
.c-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.c-demo { display: grid; grid-template-columns: 1fr; min-height: 0; }
.c-demo .seg-ctl { display: none; }
.step { display: none; }
.tag { position: absolute; right: 12px; top: 10px; font-size: 22px; color: var(--fg-2); background: var(--bg); padding: 2px 12px; border-radius: var(--radius); }

/* live demo */
.c-live { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.hvd-panes { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hvd-pane { position: relative; min-height: 0; overflow: hidden; background: #dedddc; border-radius: var(--radius); }
.hvd-pane canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.hvd-pane canvas:active { cursor: grabbing; }
.hvd-pane .who { position: absolute; left: 14px; top: 14px; padding: 6px 16px; font-size: 26px; font-weight: var(--w-strong); color: #3b352f; background: #fff; border-radius: var(--radius); pointer-events: none; }
.live-bar { display: flex; align-items: center; gap: 14px; font-size: 24px; }
.live-bar .tag { position: static; padding: 0; font-weight: var(--w-strong); color: var(--accent); background: none; }
.live-bar .hint { color: var(--fg-2); margin-right: auto; }

/* design space */
.c-ds { display: grid; grid-template-columns: 56px 1fr 1fr 360px; grid-template-rows: 44px 1fr 1fr; gap: 12px 16px; min-height: 0; }
.c-ds .axis-x { align-self: end; font-size: 30px; font-weight: var(--w-strong); color: var(--head); }
.c-ds .axis-y { writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; align-self: center; font-size: 30px; font-weight: var(--w-strong); color: var(--head); }
.c-ds .quad { position: relative; display: flex; min-height: 0; border-radius: var(--radius); transition: opacity 300ms, background 300ms; }
.c-ds .quad svg { flex: 1; width: 100%; min-height: 0; }
.c-ds .q-label { position: absolute; left: 12px; top: 6px; font-size: 25px; color: var(--fg-2); }
.c-ds .badge { position: absolute; right: 12px; top: 6px; font-size: 26px; font-weight: var(--w-strong); color: var(--accent); opacity: 0; }
.c-ds .trig { grid-row: 2 / span 2; grid-column: 4; display: flex; flex-direction: column; justify-content: center; gap: 44px; }
.c-ds .trig-item { display: flex; align-items: center; gap: 18px; transition: opacity 300ms, color 300ms; }
.c-ds .trig-item svg { width: 44px; height: 44px; flex: none; }
.c-ds .trig-item b { display: block; font-size: 34px; }
.c-ds .trig-item span { font-size: 26px; color: var(--fg-2); }
.c-ds.picked .quad:not(.hv), .c-ds[data-picked] .quad:not(.hv), .c-ds.picked .trig-item:not(.hv), .c-ds[data-picked] .trig-item:not(.hv) { opacity: 0.32; }
.c-ds.picked .hv, .c-ds[data-picked] .hv { color: var(--accent); }
.c-ds.picked .quad.hv, .c-ds[data-picked] .quad.hv { background: color-mix(in srgb, var(--both) 13%, transparent); }
.c-ds.picked .badge, .c-ds[data-picked] .badge { opacity: 1; }
/* a second look at the same grid: on the click, the highlight moves to the other quadrants */
.c-ds[data-picked] .quad.next .badge { opacity: 0; }
.c-ds[data-picked].swapped .quad.next { opacity: 1; color: var(--accent); background: color-mix(in srgb, var(--both) 13%, transparent); }
.c-ds[data-picked].swapped .quad.next .badge { opacity: 1; }
.c-ds[data-picked].swapped .quad.hv { opacity: 0.32; color: inherit; background: transparent; }
.c-ds[data-picked].swapped .quad.hv .badge { opacity: 0; }
.c-ds[data-picked].swapped .trig-item { opacity: 0.32; color: inherit; }

/* clips */
.c-clip { margin: 0; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.clip-v { position: relative; width: 100%; background: #000; overflow: hidden; border-radius: var(--radius); }
.c-clip figcaption { display: flex; flex-direction: column; gap: 2px; }
.c-clip figcaption b { font-weight: var(--w-head); letter-spacing: -0.012em; font-size: 40px; color: var(--head); }
.c-clip figcaption span { font-size: 34px; line-height: 1.28; }
.embed { position: absolute; inset: 0; overflow: hidden; }
.embed iframe, .embed video, .embed img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.embed-badge { display: none; }

/* ---------- title page: big type, flush left, no colour field ---------- */
.t-block { position: absolute; left: 72px; right: 72px; top: 96px; height: 300px; display: flex; align-items: flex-end; }
.t-block h1 { font-size: 240px; line-height: 0.92; font-weight: var(--w-display); letter-spacing: -0.034em; color: var(--title); }
.t-grid { position: absolute; left: 72px; right: 72px; top: 456px; bottom: 64px; display: grid; grid-template-columns: 6fr 3fr 3fr; grid-template-rows: auto 1fr; gap: 36px 48px; }
.t-sub { grid-column: 1; font-size: 50px; line-height: 1.14; font-weight: var(--w-head); letter-spacing: -0.016em; text-wrap: balance; color: var(--fg); }
.t-people { grid-column: 1; grid-row: 2; display: flex; gap: 40px; align-items: flex-start; }
.author { display: flex; align-items: center; gap: 16px; font-size: 32px; }
.author img { width: 76px; height: 76px; object-fit: cover; display: block; border-radius: var(--radius); }
.author b { font-weight: var(--w-strong); }
.t-people .author { font-size: 34px; padding: 0; }
.t-people .author b { display: block; font-size: 34px; line-height: 1.2; font-weight: var(--w-strong); color: var(--fg); }
.t-people .author small { display: block; font-size: 26px; line-height: 1.25; color: var(--fg-2); }
.t-people .author img { width: 96px; height: 96px; border-radius: var(--radius); }
.t-venue { grid-column: 2; grid-row: 1 / span 2; font-size: 34px; line-height: 1.3; font-weight: var(--w-text); }
.t-qr { grid-column: 3; grid-row: 1 / span 2; justify-self: end; width: 300px; }
.t-qr p { margin-top: 10px; font-size: 26px; line-height: 1.2; color: var(--fg-2); }
.t-logos { position: absolute; left: 72px; bottom: 64px; height: 76px; display: flex; gap: 44px; align-items: center; }
.t-logos img { height: 100%; width: auto; }
.logo-mono { filter: var(--logo-filter); }
.qr { background: #fff; padding: 12px; border-radius: var(--radius); }
.qr svg { display: block; width: 100%; height: auto; }

/* ---------- section page: number and title together, in the middle, no colour field ---------- */
.s-page { position: absolute; left: 72px; right: 72px; top: 56px; bottom: 56px; display: flex; flex-direction: column; justify-content: center; }
.s-num { font-size: 288px; line-height: 0.86; font-weight: var(--w-display); letter-spacing: -0.03em; font-variant-numeric: lining-nums; color: var(--title); }
.s-page h2 { margin-top: 24px; font-size: 164px; line-height: 1; font-weight: var(--w-display); letter-spacing: -0.03em; color: var(--fg); }
.s-page p { margin-top: 20px; font-size: 56px; line-height: 1.15; color: var(--fg-2); }

/* ---------- end page: takeaways on the left; thank you, people and logos build in on the right ---------- */
.layout-end .frametitle { right: auto; }
.e-body { position: absolute; left: 72px; width: 680px; top: 168px; bottom: 68px; display: flex; align-items: center; }
.e-body .c-items { font-size: 40px; line-height: 1.24; }
.e-body .c-items > ul { gap: 44px; }
.e-side { position: absolute; left: 816px; right: 72px; top: 64px; bottom: 64px; display: flex; flex-direction: column; justify-content: space-between; }
.e-thanks h1 { font-size: 124px; line-height: 1.02; font-weight: var(--w-display); letter-spacing: -0.026em; text-align: right; color: var(--title); }
.e-people { display: flex; flex-direction: column; gap: 14px; }
.e-person { display: flex; align-items: center; gap: 36px; }
.e-face { position: relative; flex: none; width: 270px; display: flex; justify-content: center; }
.e-face img { display: block; width: 126px; height: 126px; object-fit: cover; border-radius: 50%; }
.e-person.first .e-face { height: 270px; align-items: center; }
.e-person.first .e-face img { position: relative; width: 192px; height: 192px; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring-band { fill: none; stroke: var(--frame-bg); stroke-width: 36; }
.ring-spin { transform-origin: 135px 135px; animation: ring-spin 36s linear infinite; }
.ring-text { fill: #fff; font: var(--w-strong) 21px var(--f-text); dominant-baseline: alphabetic; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring-spin { animation: none; } }
.e-who b { display: block; font-size: 40px; line-height: 1.14; font-weight: var(--w-head); letter-spacing: -0.012em; }
.e-who span { display: block; font-size: 30px; color: var(--fg-2); }
.e-slug { margin-top: 14px !important; font-size: 34px; line-height: 1.2; font-weight: var(--w-strong); color: var(--accent); }
.e-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.e-logos { display: flex; align-items: center; gap: 36px; height: 66px; }
.e-logos img { height: 100%; width: auto; }
.e-qr { flex: none; width: 214px; }
.e-qr p { margin-top: 8px; font-size: 22px; line-height: 1.15; color: var(--fg-2); }
.layout-end .f-logos { visibility: hidden; }

/* ---------- questions on the projected slide, when the presenter shows them ---------- */
.hv-qa { isolation: isolate; border-radius: var(--radius); position: fixed; right: 3vw; top: 16vh; width: 28vw; z-index: 20; padding: 1.2vw 1.4vw; background: var(--bg); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2); font-family: var(--f-text); font-size: 1.25vw; line-height: 1.3; color: var(--fg); }
.hv-qa p { margin: 0 0 0.8vw; }
.hv-qa b { color: var(--accent); margin-right: 0.3em; }

/* ---------- audience controls: out of the way, never while presenting ---------- */
.hv-fab { position: fixed; right: 0; top: 0; z-index: 40; isolation: isolate; display: flex; align-items: center; gap: 4px; padding: 8px 12px 24px 48px; font-family: var(--f-text); opacity: 0; transition: opacity 200ms; }
.hv-fab:hover, .hv-fab:focus-within { opacity: 1; }
@media (hover: none) { .hv-fab { opacity: 1; padding: 8px 12px; } }
.hv-fab .btn, .hv-fab .theme-picker button { min-height: 36px; font-size: 14px; }
.hv-fab .theme-picker button { width: 36px; }
.hv-fab .badge { color: var(--accent); }
.hv-sheet { position: fixed; z-index: 50; isolation: isolate; right: 12px; top: 52px; width: min(440px, calc(100vw - 24px)); max-height: min(72vh, 660px); display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--surface); box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28); font-family: var(--f-text); color: var(--fg); font-size: 15px; line-height: 1.5; }
.hv-sheet header { display: flex; align-items: flex-start; gap: 12px; }
.hv-sheet h2 { font-size: 18px; font-weight: var(--w-head); letter-spacing: -0.01em; }
.hv-sheet header span { display: block; font-size: 13.5px; color: var(--fg-3); }
.hv-sheet .close { margin-left: auto; flex: none; width: 36px; min-height: 36px; padding: 0; font-size: 18px; }
.hv-sheet .q-list { overflow: auto; min-height: 0; }

/* ---------- modes ---------- */
body.presenting .hv-fab, body.presenting .hv-sheet, body.receiver .hv-fab, body.is-embed .hv-fab, body.poster .hv-fab { display: none; }
.hv-jump .reveal *, .hv-jump .reveal *::before, .hv-jump .reveal *::after { transition: none !important; animation-duration: 0s !important; }
.reveal .slides section .fragment.step { display: none; }
body.is-embed { margin: 0; height: 100vh; overflow: hidden; }
body.is-embed .reveal { width: 100vw; height: 100vh; }
body.is-embed .reveal .slides { cursor: pointer; }
@media print { .hv-fab, .hv-sheet, .hv-qa { display: none !important; } }

/* PDF export: reveal lays each slide on its own page */
.reveal .slides .pdf-page > section { position: absolute !important; left: 0 !important; top: 0 !important; width: 1920px !important; height: 1080px !important; min-height: 1080px !important; overflow: hidden; }
.reveal .slides .pdf-page { background: var(--bg); }
html.print-pdf .fragment { opacity: 1 !important; visibility: visible !important; transform: none !important; }
/* print exactly these colours, even with "background graphics" off in the print dialog */
html.print-pdf, html.print-pdf * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
