/* Guide presentation is independent of the main rig's responsive stylesheet. */
.guide-content { color: #b8bdb3; background: #080808; font-size: 16px; line-height: 1.6; padding: 80px 28px 56px; margin: 0 auto; max-width: 1000px; }
.guide-content h1, .guide-content h2 { color: #eeeae2; font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-weight: 900; line-height: 1.08; letter-spacing: -.025em; }
.guide-content h1 { font-size: clamp(44px, 7vw, 76px); margin: 0 60px 20px 0; }
.guide-content h2 { font-size: 32px; margin: 0 0 18px; }
.guide-content h3 { color: #eeeae2; font-size: 18px; }
.guide-content p { max-width: 58ch; margin: 0 0 16px; }
.guide-content strong { color: #eeeae2; font-weight: 600; }
.guide-content header { margin-bottom: 64px; }
.guide-content header p { font-size: 20px; }
.guide-content a { color: #ff697c; text-underline-offset: 4px; }
.guide-content :is(a, summary, .guide-replay, #guide-title):focus-visible { outline: 2px solid #eeeae2; outline-offset: 5px; }
.guide-close { position: fixed; top: max(16px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); display: grid; place-items: center; width: 48px; height: 48px; z-index: 10; border: 1px solid #ffffff1c; border-radius: 50%; background: radial-gradient(ellipse at 38% 22%, #191b1b, #090a0a 62%, #030404); box-shadow: inset 0 1px 2px #ffffff17, 0 3px 5px #000; }
.guide-close svg { width: 22px; height: 22px; fill: #b8bdb3; }
.guide-lesson { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; border-top: 1px solid #ffffff18; padding: 44px 0; }

.guide-demo { margin: 0; min-width: 0; }
.guide-demo-mount.timer-page { background: transparent; min-height: 0; min-width: 0; }
.guide-demo figcaption { text-align: center; font-size: 13px; margin-top: 16px; }
.guide-demo figcaption span { display: block; min-height: 42px; }
.guide-replay { color: #eeeae2; border: 0; border-bottom: 1px solid #70766c; padding: 8px; min-height: 48px; background: transparent; }
.guide-demo .rest-knob-control:focus-visible, .guide-demo .round-knob-control:focus-visible { outline: none; }
.guide-demo [hidden] { display: none !important; }

.guide-bubbles { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; flex-direction: column; gap: 12px; }
.guide-bubbles li { background: #1b1e1b; border-radius: 16px 16px 16px 3px; padding: 12px 18px; color: #eeeae2; }

.guide-help { border-block: 1px solid #ffffff18; padding: 18px 0; scroll-margin-top: 90px; }
.guide-help summary { color: #eeeae2; cursor: pointer; min-height: 48px; display: list-item; align-content: center; }
.guide-help > div { padding: 10px 0 20px; }
.guide-content footer { padding-top: 32px; }
.guide-panel { position: fixed; inset: 0; z-index: 30; overflow: hidden; overscroll-behavior: contain; background: #080808; transform: translateY(100%); transition: transform 560ms cubic-bezier(.65,0,.25,1); }
.guide-panel[hidden] { display: none; }
html.guide-transition .stage { transition: transform 560ms cubic-bezier(.65,0,.25,1); }
html.guide-open .stage { transform: translateY(-100svh); }
html.guide-open .guide-panel { transform: translateY(0); }
html.guide-transition, html.guide-transition body { overflow: hidden; }
.guide-direct { background: #080808; }
@media (max-width: 640px) {
  .guide-content { padding: 80px 22px 40px; }
  .guide-content header { margin-bottom: 40px; }
  .guide-content h2 { font-size: 30px; }
  .guide-demo { width: calc(100% + 44px); margin-inline: -22px; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .guide-panel, html.guide-transition .stage { transition: none; } }

.guide-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.guide-panel > .guide-close { position: absolute; }

.guide-control-context.control-plate { padding: 0; min-height: 0; border-radius: 0; background: transparent; box-shadow: none; }
.guide-mode-demo, .guide-playback-demo { --reflected-light: .28; margin: 0; min-width: 0; background: transparent; }
.guide-mode-demo .mode-switcher { max-width: 100%; position: relative; inset: auto; translate: none; margin-inline: auto; }
.guide-demo-mount { --reflected-light: .28; }
.guide-demo .guide-isolate.control-cluster { display: grid; position: relative; place-items: center; width: 100%; height: var(--guide-dial-height, 300px); margin: 0; }
.guide-demo .guide-isolate .primary-actions { display: contents; }
.guide-demo .guide-isolate.control-cluster .control-start[data-mode] { position: relative; inset: auto; transform: none; }
.guide-transport-controls.control-cluster { display: flex; position: relative; align-items: center; justify-content: center; gap: 22px; width: 100%; height: auto; }
.guide-playback-demo .guide-transport-controls.control-cluster .control { position: relative; inset: auto; transform: none; }
.guide-playback-demo figcaption { text-align: center; margin-top: 24px; font-size: 13px; }
@media (max-width: 640px) { .guide-demo { width: 100%; margin-inline: 0; } .guide-transport-controls.control-cluster { gap: 14px; } }
.guide-control-context.control-plate { border: 0; }
.guide-control-context.control-plate::before { content: none; }
.guide-demo .guide-demo-mount .guide-isolate.control-cluster:has(.control-start[data-mode]) { height: var(--guide-dial-height, 300px); }
.guide-playback-demo .guide-transport-controls.control-cluster:has(.control-start[data-mode]) { display: flex; height: auto; min-height: 0; }
.guide-playback-demo .guide-transport-controls.control-cluster:has(.control-start[data-mode]) .control { position: relative; inset: auto; transform: none; }
/* The full production transport group sets the shared wrap threshold. */
@media (max-width: 959px) { .guide-lesson { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 0; } }
.guide-utility-demo.timer-page { margin: 0; min-width: 0; background: transparent; }
.guide-utility-cluster.control-cluster { display: block; position: relative; width: 100%; height: auto; margin: 0; }
.guide-utility-cluster .guide-utility-controls.bank-bottom { display: flex; justify-content: center; position: static; width: 100%; height: auto; margin: 0; padding: 0; }
.guide-utility-demo .guide-utility-cluster .guide-utility-controls.bank-bottom .utility-toggle { position: relative; inset: auto; transform: none; }
.guide-utility-demo figcaption { text-align: center; margin-top: 24px; font-size: 13px; }
.guide-cue-key.timer-page { --nav-size: 48px; --reflected-light: 0; margin: 0; background: transparent; }
.guide-cue-key ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.guide-cue-key li { display: flex; align-items: center; gap: 12px; }
.guide-content .guide-cue-key .guide-cue-play.control { position: relative; inset: auto; transform: none; min-width: 48px; min-height: 48px; display: grid; place-items: center; }
.guide-content .guide-cue-key .guide-cue-play .control-cap { width: 32px; height: 32px; min-width: 0; min-height: 0; }
.guide-content .guide-cue-key .guide-cue-play .control-cap svg { width: 14px; height: 14px; }
.guide-cue-key [data-cue-mount] { flex: none; }
.guide-cue-status { min-height: 26px; font-size: 13px; padding-top: 16px; }
.guide-cue-text > :is(strong, span) { display: block; }
.guide-cue-text > span { font-size: 14px; }

.guide-load-error { position: fixed; z-index: 20; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; margin: 0; border-radius: 8px; color: #eeeae2; background: #080808; font-size: 14px; pointer-events: none; }

.guide-help summary { list-style: none; display: flex; align-items: center; gap: 12px; }
.guide-help summary::-webkit-details-marker { display: none; }
.guide-help summary::marker { content: ''; }
.guide-help summary svg { flex: none; width: 16px; height: 16px; }
.guide-help[open] summary svg { transform: rotate(90deg); }

/* Sibling disclosures share the guide's face and native summary target. */
.guide-help + .guide-help { border-top: 0; }
.guide-help > .disclosure-body { padding: 0; }
.disclosure-inner { padding: 10px 0 20px; display: flow-root; }
.guide-help summary svg { transition: transform 280ms cubic-bezier(.25,.7,.25,1); }
.guide-help[data-expanded="false"] summary svg { transform: rotate(0); }
.guide-help[data-expanded="true"] summary svg { transform: rotate(90deg); }
.guide-content .privacy-choice { background: #191b1b; color: #eeeae2; border: 1px solid #ffffff30; border-radius: 8px; padding: 12px 16px; min-height: 48px; font: inherit; cursor: pointer; margin: 4px 0 12px; }
.guide-content .privacy-choice:disabled { color: #b8bdb3; cursor: default; }
.guide-content .privacy-choice:focus-visible { outline: 2px solid #eeeae2; outline-offset: 5px; }
.guide-content .privacy-choice-note { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .guide-help summary svg { transition: none; } }

/* Centre each example group; its rows keep one shared left edge. */
.guide-cue-key ul.control-plate, .guide-bubbles { width: max-content; max-width: 100%; margin-inline: auto; }
.guide-bubbles li { max-width: 100%; }

/* Keep programmatic guide focus, with an explicit indicator for keyboard use.
   Pointer/touch suppresses only the guide title/restoration/hash-focus targets. */
html[data-guide-input="pointer"] :is(#guide-title, [data-guide-focus-target]):focus { outline: none; }
html[data-guide-input="keyboard"] :is(#guide-title, [data-guide-focus-target]):focus { outline: 2px solid #eeeae2; outline-offset: 3px; }
