/* Presenter controls: a frosted pill that slides in when the mouse reaches the bottom-left corner of the screen.
   The whole corner area (dock) is the hover zone, the pill itself is hidden until then. */
.deck-dock { position: fixed; left: 0; bottom: 0; width: 600px; height: 180px; z-index: 60; display: flex; align-items: flex-end; padding: 0 0 24px 24px; box-sizing: border-box; }

.deck-bar {
  display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 999px; color: #fff;
  font-family: "Neue Haas Unica Pro", Arial, Helvetica, sans-serif;
  background: linear-gradient(rgba(var(--shade-deep), .9), rgba(var(--shade-deep), .9)) padding-box, linear-gradient(140deg, rgba(124, 200, 255, .85), rgba(124, 200, 255, .12) 42%, rgba(236, 194, 21, .6)) border-box;
  border: 1px solid transparent; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 18px 40px -12px rgba(3, 12, 40, .65);
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: left bottom; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.deck-dock:hover .deck-bar, .deck-dock:focus-within .deck-bar, .deck-dock.open .deck-bar { opacity: 1; transform: none; pointer-events: auto; }

.deck-btn { width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s ease; }
.deck-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.deck-btn:hover { background: rgba(255, 255, 255, .16); }
.deck-btn:focus-visible { outline: 2px solid #ECC215; outline-offset: 1px; }
.deck-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.deck-restart { color: #ECC215; }
.deck-restart:hover { background: rgba(236, 194, 21, .2); }
.deck-count { min-width: 92px; display: inline-flex; align-items: center; justify-content: center; gap: .3em; white-space: nowrap; font-size: 20px; font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
/* the current slide number is an input that looks like plain text until you hover / focus it */
.deck-page { box-sizing: content-box; width: 2.4ch; padding: 3px 5px; margin: 0; border: 0; border-radius: 9px; outline: 0; background: transparent; color: inherit;
  font: inherit; letter-spacing: inherit; font-variant-numeric: inherit; text-align: center; caret-color: #ECC215; cursor: text; transition: background .15s ease, box-shadow .15s ease; }
.deck-page:hover { background: rgba(255, 255, 255, .13); }
.deck-page:focus { background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 2px rgba(236, 194, 21, .9); }
.deck-page::selection { background: rgba(236, 194, 21, .5); color: #fff; }
.deck-gap { width: 10px; }

@media (prefers-reduced-motion: reduce) { .deck-bar { transition: none; } }
@media print { .deck-dock { display: none; } }

/* ---- slide overview (tiles): pan by dragging / scrolling, hover ring on the tile under the pointer, ring on the selected tile ---- */
.reveal.overview { touch-action: none; -webkit-user-select: none; user-select: none; cursor: grab; }
.reveal.overview.deck-panning, .reveal.overview.deck-panning .slides section { cursor: grabbing; }
.reveal.overview .slides section { cursor: pointer; }
.reveal.overview .slides section img { -webkit-user-drag: none; }
/* tiles are scaled to about a fifth, so these px values are 1/5 of what you see */
.reveal.overview .slides section:hover { outline: 14px solid #ECC215; outline-offset: 12px; box-shadow: 0 0 160px 20px rgba(236, 194, 21, .45); }
.reveal.overview .slides section.present { outline: 14px solid #38BDF8; outline-offset: 12px; box-shadow: 0 0 160px 20px rgba(56, 189, 248, .4); }
.reveal.overview:not(.deck-panning) .slides { transition: translate .3s cubic-bezier(.2, .7, .2, 1), transform .45s cubic-bezier(.2, .7, .2, 1); }
.reveal.overview.deck-panning .slides { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .reveal.overview:not(.deck-panning) .slides { transition: none; } }

/* page numbers under the tiles (the .ov-num elements follow each slide in the markup, tiles are scaled to about a fifth) */
.ov-num { display: none; }
.reveal.overview .slides .ov-num { display: block; position: absolute; left: 0; top: calc(100% + 80px); width: 100%; text-align: center; pointer-events: none;
  font-family: "Neue Haas Unica Pro", Arial, Helvetica, sans-serif; font-size: 118px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: #B6C5EC; }
.reveal.overview .slides section.present + .ov-num { color: #38BDF8; font-weight: 700; }
.reveal.overview .slides section:hover + .ov-num { color: #ECC215; font-weight: 700; }
@media print { .ov-num { display: none !important; } }

/* ===== arrows at the left and right edge (a click on the slide itself no longer goes on) ===== */
.deck-edge { position: fixed; top: 16%; bottom: 16%; width: clamp(56px, 5.4vw, 104px); z-index: 40; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.deck-edge-prev { left: 0; }
.deck-edge-next { right: 0; }
.deck-edge[hidden] { display: none; }
.deck-edge button { appearance: none; -webkit-appearance: none; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; outline: none;
  background: rgba(0, 48, 135, .84); box-shadow: 0 12px 34px rgba(0, 24, 80, .34), inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(8px);
  opacity: 0; transform: translateX(-10px) scale(.82); transition: opacity .22s ease, transform .26s cubic-bezier(.2, .8, .2, 1), background-color .2s; }
.deck-edge-next button { transform: translateX(10px) scale(.82); }
.deck-edge button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.deck-edge:hover button, .deck-edge.hint button, .deck-edge button:focus-visible { opacity: 1; transform: none; }
.deck-edge:hover button { background: #0056BF; }
.deck-edge button:focus-visible { box-shadow: 0 0 0 3px #ECC215, 0 12px 34px rgba(0, 24, 80, .34); }
html[data-slide-tone="dark"] .deck-edge button { background: rgba(255, 255, 255, .16); box-shadow: 0 12px 34px rgba(0, 8, 32, .5), inset 0 0 0 2px rgba(255, 255, 255, .55); }
html[data-slide-tone="dark"] .deck-edge:hover button { background: rgba(255, 255, 255, .3); }
@media (hover: none) { .deck-edge { display: none; } }
