/* Deck page. Each slide is authored on a fixed 1920x1080 canvas and scaled
   to fit its frame by deck.js, which sets --scale on every .slide-frame. */

.deck { max-width: 1120px; margin: 0 auto; padding: 40px 16px 72px; }
.deck-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.deck-head h1 { margin: 0 0 6px; font-family: var(--display); font-size: clamp(32px, 5vw, 44px); font-weight: 600; line-height: 1.1; }
.deck-head p { margin: 0; max-width: 620px; color: var(--muted); }
.deck-actions { display: flex; align-items: center; gap: 16px; }
.toggle { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
#present, .presenter-bar button {
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: var(--cream);
  font: 600 15px var(--body);
  cursor: pointer;
}
#present:hover { background: var(--accent); }

.slide-list { display: flex; flex-direction: column; gap: 40px; }
.slide-item { scroll-margin-top: 72px; }
.slide-frame {
  --scale: 0.5;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(22, 32, 46, 0.08), 0 8px 24px rgba(22, 32, 46, 0.1);
  background: #fff;
}
.notes { margin-top: 14px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; }
.notes p { margin: 0; color: var(--muted); }
.notes .notes-label { margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
body.hide-notes .notes { display: none; }

/* The slide canvas. Defaults follow the deck format the slides were written in. */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  transform: scale(var(--scale));
  transform-origin: top left;
  font-family: 'Public Sans', Arial, sans-serif;
  color: #16202e;
}
.slide * { margin: 0; box-sizing: border-box; }
.slide > section { position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: hidden; }
.slide div:not([style*="display"]) { display: flex; flex-direction: column; }
.slide h1 { font-size: 96px; font-weight: 600; line-height: 1.1; }
.slide h2 { font-size: 64px; font-weight: 600; line-height: 1.15; }
.slide h3 { font-size: 44px; font-weight: 600; line-height: 1.2; }
.slide p { font-size: 32px; line-height: 1.4; }
.slide ol, .slide ul { padding-left: 1.25em; }
.slide li { padding-left: 0.2em; }
.slide svg { display: block; flex: none; }
.slide b { font-weight: 700; }

/* Presenter view */
.presenter {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: #0d141e;
}
.presenter[hidden] { display: none; }
.presenter-stage { position: relative; flex: 1; min-height: 0; }
.presenter-stage .slide-frame { position: absolute; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.presenter-notes { max-height: 28vh; overflow-y: auto; padding: 16px max(16px, 6vw); background: var(--navy); color: #c9d3df; font-size: 18px; line-height: 1.55; }
.presenter-notes[hidden] { display: none; }
.presenter-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: #0d141e; color: #c9d3df; }
.presenter-bar .count { min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; }
.presenter-bar button { padding: 8px 14px; background: #22303f; }
.presenter-bar button:hover { background: var(--accent); }
.presenter-bar [data-go] { font-size: 22px; line-height: 1; padding: 6px 14px; }
body.presenting { overflow: hidden; }
