/* ==========================================================================
   /summit as an eight-page presentation (2026-10-01).

   The masthead stays on top, the current page fills the middle in a same-origin
   frame, and the navigator sits in normal flow at the bottom so it never covers
   a page's content. Reuses the .stg-* navigator styles from summit-stage.css.
   ========================================================================== */
html, body.deck-body { height: 100%; }
body.deck-body {
  display: flex; flex-direction: column;
  height: 100dvh; overflow: hidden;
}
.deck-masthead { flex: 0 0 auto; position: relative; }
.deck-open {
  margin-left: auto;
  font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--color-purple); text-decoration: underline; text-underline-offset: 2px;
  white-space: nowrap;
}
.deck-frames {
  flex: 1 1 auto; position: relative; min-height: 0;
  background: var(--color-bg);
}
.deck-frames iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block; background: var(--color-bg);
}
.deck-frames iframe[hidden] { display: none; }
.deck-wait {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); color: var(--color-muted);
}
.deck-wait[hidden] { display: none; }
.deck-nav {
  flex: 0 0 auto;
  padding: var(--sp-2) var(--sp-4) max(var(--sp-2), env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex; justify-content: center;
}
.deck-nav .stg-bar {
  position: static; transform: none; left: auto; bottom: auto;
  width: min(820px, 100%); max-width: 100%;
  box-shadow: none;
}
.deck-noscript { padding: var(--sp-6) var(--sp-5); }
.deck-noscript ol { font-family: var(--font-ui); line-height: var(--lh-relaxed); }

@media (max-width: 760px) {
  .deck-open { display: none; }
  .deck-masthead .su-eyebrow { display: none; }
  .deck-nav { padding: var(--sp-2) var(--sp-2) max(var(--sp-2), env(safe-area-inset-bottom)); }
  .stg-now { padding: 0 var(--sp-2); gap: var(--sp-2); }
}

/* ---------- Present mode (2026-10-02) ---------- */
.deck-mode {
  margin-left: auto;
  font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: var(--fw-bold);
  color: var(--color-surface); background: var(--color-purple);
  padding: var(--sp-2) var(--sp-4); border-radius: 999px; text-decoration: none; white-space: nowrap;
}
.deck-mode:hover { background: var(--color-red); }
.deck-mode + .deck-open { margin-left: var(--sp-4); }
.deck-caption {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: var(--sp-5);
  padding: var(--sp-3) var(--sp-6);
  background: var(--color-surface);
  border-bottom: 4px solid var(--color-gold);
}
.deck-caption[hidden] { display: none; }
.cap-text { flex: 1 1 auto; min-width: 0; }
.cap-kicker {
  margin: 0; font-family: var(--font-ui); font-size: var(--fs-2xs); font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--color-red);
}
.cap-h {
  margin: 2px 0 2px; font-family: var(--font-heading); font-weight: var(--fw-black);
  font-size: clamp(20px, 2.3vw, 40px); line-height: 1.1; color: var(--color-ink);
}
.cap-one { font-family: var(--font-body); font-weight: var(--fw-regular); font-size: .55em; color: var(--color-muted); }
.cap-src { margin: 0; font-family: var(--font-ui); font-size: var(--fs-2xs); color: var(--color-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-live {
  flex: 0 0 auto; font-family: var(--font-ui); font-size: var(--fs-2xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--color-purple); background: var(--color-purple-10); padding: 4px 10px; border-radius: 999px;
}
@media (max-width: 760px) {
  .deck-mode { padding: 6px 12px; }
  .deck-caption { padding: var(--sp-2) var(--sp-3); }
  .cap-src, .cap-live { display: none; }
}

/* keep the masthead on one line on desktop: the event label gives way first */
@media (min-width: 761px) {
  .deck-masthead .su-masthead-inner { flex-wrap: nowrap; }
  .deck-masthead .su-eyebrow { flex: 1 1 auto; min-width: 0; margin-left: var(--sp-5);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
