/* Capital Catalyst · presentation mode (js/present.js). <html> carries .presenting while the tour runs. */

/* the settings row that starts it */
.prefs-menu .present-row .p-go { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; opacity: .8; flex: none; }
.prefs-menu .present-row { border-bottom: 1px solid var(--hair); margin-bottom: 4px; }

/* while presenting: only the language and the presentation controls in the top bar; no cue, pager, arrows or rain hint */
html.presenting .topbar .tools > :not(#langs):not(.present-ctl),
html.presenting .cue, html.presenting .pager, html.presenting .arrows, html.presenting .floors .fl-hint,
html.presenting .audio-hint { display: none !important; }
html.presenting .floors { opacity: .55; }
html.presenting.present-idle, html.presenting.present-idle * { cursor: none !important; }

/* the control group: Pause/Play, "3 / 9" with a thin line for this stop, Exit */
.present-ctl { display: flex; gap: 6px; align-items: center; }
.present-ctl[hidden] { display: none; }
.present-ctl .p-prog { cursor: default; gap: 0; min-width: 64px; justify-content: center; overflow: hidden; }
.present-ctl .p-prog:hover { --b: var(--bracket); box-shadow: none; }
.present-ctl .p-line { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 1px; background: var(--hair); }
.present-ctl .p-line i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s linear; }
.present-ctl .p-ico { width: 8px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; box-sizing: border-box; opacity: .85; }
.present-ctl .p-play.paused { --b: var(--accent); }
.present-ctl .p-play.paused .p-ico { border-width: 5px 0 5px 8px; border-style: solid; border-color: transparent transparent transparent currentColor; width: 0; height: 0; }
.present-ctl .p-x { position: relative; width: 10px; height: 10px; opacity: .85; }
.present-ctl .p-x::before, .present-ctl .p-x::after { content: ""; position: absolute; left: 50%; top: -1px; width: 1px; height: 12px; background: currentColor; transform: rotate(45deg); }
.present-ctl .p-x::after { transform: rotate(-45deg); }

/* a bare ?present URL starts silently: one quiet chip turns the sound on */
.present-chip { position: fixed; right: 32px; top: 62px; z-index: 25; padding: 10px 16px; cursor: pointer;
  font: 400 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--hair); border-radius: 0;
  background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .3s, box-shadow .3s; }
.present-chip:hover, .present-chip:focus-visible { border-color: var(--accent); box-shadow: 0 0 24px -8px var(--accent); }
.present-chip[hidden] { display: none; }

/* phones: touch-sized controls in the top bar, clear of the panel and the captions */
@media (max-width: 760px) {
  .present-ctl { gap: 4px; }
  .present-ctl .tool { min-height: 44px; min-width: 44px; justify-content: center; padding: 0 10px; }
  .present-ctl .p-prog { min-width: 58px; padding: 0 8px; }
  html.presenting #lang { min-height: 44px; }
  .present-chip { left: 16px; right: auto; top: auto; bottom: 12px; min-height: 36px; }
  /* captions use the full width while presenting, so they stay short and low */
  html.presenting .subs { left: 16px; right: 16px; width: auto; max-width: none; transform: none; }
}
