/* arc-autopilot-presentation.css — W4 presentation coordination
 * (December 2 Public Experience Corrections; Ricky 2026-12-02 08:51 PST;
 * N-001 coordination update).
 *
 * Division of ownership: the substrate (#640 rebase) implements chrome
 * auto-hide, the single bottom subtitle band, narration-panel
 * suppression, and the takeover chip INSIDE ArcAutopilotUI. Journey
 * lines feed the substrate's single narration channel (INTERFACE
 * narrate(text,{recordedLine}) via node narration fields) and render
 * exactly once as subtitles, substrate-side. This layer therefore
 * builds NO text surface and NO duplicate timers on substrate
 * elements. It keeps only what is the shell's:
 *   1. Dock hide during Autopilot conduct (body class from
 *      ArcInteraction.onChange: autopilot && !suspended).
 *   2. Scene-clear layout coordination: collapse the dock's layout
 *      reserve during conduct and reserve scroll space for the
 *      substrate subtitle band, so the structure being shown is
 *      never covered by shell layout.
 *   3. Site-wide non-substrate cluster hide affordances with
 *      remembered state + restore tabs (dock, orb, welcome controls,
 *      observatory chrome hooks). Shell/welcome chrome auto-hides
 *      after idle during conduct; substrate chrome is untouched.
 * Guide point tags (.apg-tag) are shell text on the scene; during
 * conduct they yield to the substrate subtitle (ring highlight stays).
 */

body.arc-pres-conducting nav.arc-pub-dock,
body.arc-pres-conducting .arc-pub-dock {
  display: none !important;
}
body.arc-pres-conducting {
  --arc-pub-dock-reserve: 0px;
}
body.arc-pres-conducting html,
html:has(body.arc-pres-conducting) {
  scroll-padding-bottom: 22dvh;
}
body.arc-pres-conducting .apg-tag {
  display: none !important;
}

/* Shell/welcome chrome auto-hide (substrate elements excluded). */
body.arc-pres-chrome-hidden .arc-welcome .aw-tool,
body.arc-pres-chrome-hidden .arc-welcome .aw-replay,
body.arc-pres-chrome-hidden [data-arc-pres-autohide] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.arc-welcome .aw-tool, .arc-welcome .aw-replay, [data-arc-pres-autohide] {
  transition: opacity .25s ease, visibility .25s;
}

/* Cluster hide affordances + restore tabs. */
.arc-pres-hide-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(8, 12, 24, .72);
  color: #dfe5fb;
  font: 600 .72rem Geist, system-ui, sans-serif;
  cursor: pointer;
  padding: 0 10px;
}
.arc-pres-hide-btn:focus-visible {
  outline: 2px solid var(--acc, #8fb4ff);
  outline-offset: 2px;
}
[data-arc-pres-hidden="1"] { display: none !important; }
.arc-pres-restore {
  position: fixed;
  z-index: 8950;
  display: none;
  flex-direction: column;
  gap: 6px;
  right: max(8px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
}
.arc-pres-restore.arc-pres-restore-on { display: flex; }
.arc-pres-restore button {
  min-width: 44px;
  min-height: 44px;
  writing-mode: vertical-rl;
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(8, 12, 24, .85);
  color: #eef1fa;
  font: 600 .7rem Geist, system-ui, sans-serif;
  cursor: pointer;
  padding: 10px 4px;
}
.arc-pres-orb-dot {
  position: fixed;
  z-index: 8950;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.5), rgba(20,30,60,.9) 65%);
  color: transparent;
  cursor: pointer;
  display: none;
}
.arc-pres-orb-dot.arc-pres-orb-dot-on { display: block; }

@media (prefers-reduced-motion: reduce) {
  .arc-welcome .aw-tool, .arc-welcome .aw-replay, [data-arc-pres-autohide],
  .arc-pres-hide-btn, .arc-pres-restore button {
    transition: none !important;
    animation: none !important;
  }
}
body.arc-pres-rm [data-arc-pres-autohide] { transition: none !important; }

/* A Hide button never sits inside another button, link or summary (interactive controls cannot nest, and it doubled the dock's height on phones).
   The dock keeps its own single Hide; the welcome keeps one compact Hide in its corner, not a full-width bar. */
a > .arc-pres-hide-btn, button > .arc-pres-hide-btn, summary > .arc-pres-hide-btn { display: none !important; }
.arc-welcome > .arc-pres-hide-btn { position: absolute; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: auto; align-self: auto; z-index: 3; }
