/* Showroom page. Everything is scoped under .showroom. Uses the site tokens
   (member.css) so it follows [data-theme] light/dark. */
.showroom {
  --sr-cta: #D33814;
  --sr-cta-hover: #B72F0F;
  --sr-focus: #FF8A6B;
  --sr-card: var(--bg-card, #16181B);
  --sr-line: var(--border, #30353B);
  --sr-muted: var(--text-secondary, #B9BFC6);
  --sr-text: var(--text-primary, #F2F4F6);
  max-width: 1120px; margin: 0 auto; padding: 0 16px 160px; /* bottom safe area: the fixed "Need Help?" widget must not cover the last cards */
  color: var(--sr-muted); font-family: "InterVariable", "Inter", system-ui, sans-serif;
}
html[data-theme="light"] .showroom { --sr-focus: #B72F0F; }
.showroom *:focus-visible { outline: 3px solid var(--sr-focus); outline-offset: 3px; border-radius: 6px; }

.showroom .sr-skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 18px; background: var(--sr-cta); color: #fff !important; border-radius: 8px; font-weight: 600; }
.showroom .sr-skip:focus { top: 12px; }

.showroom .sr-hero { padding: 56px 0 32px; max-width: 760px; }
.showroom .sr-eyebrow { margin: 0 0 12px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sr-muted); }
.showroom .sr-sub { font-size: 1.15rem !important; line-height: 1.55; margin: 16px 0 24px; max-width: 62ch; }
.showroom .sr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.showroom .sr-actions-center { justify-content: center; }
.showroom .sr-noscript { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--sr-line); border-radius: 8px; background: var(--sr-card); }

.showroom .sr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: 600 1rem/1 inherit; font-family: inherit; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.showroom .sr-btn[hidden] { display: none; }
.showroom .sr-btn-primary, .public-shell .showroom a.sr-btn-primary { background: var(--sr-cta); color: #fff !important; }
.showroom .sr-btn-primary:hover, .public-shell .showroom a.sr-btn-primary:hover { background: var(--sr-cta-hover); color: #fff !important; }
.showroom .sr-btn-secondary, .public-shell .showroom a.sr-btn-secondary { background: transparent; color: var(--sr-text) !important; border-color: var(--border-strong, #4A5058); }
.showroom .sr-btn-secondary:hover, .public-shell .showroom a.sr-btn-secondary:hover { background: var(--bg-elevated, #25292E); color: var(--sr-text) !important; }
.showroom .sr-btn-ghost { background: transparent; color: var(--sr-muted); border-color: var(--sr-line); }
.showroom .sr-btn-ghost:hover { color: var(--sr-text); background: var(--bg-elevated, #25292E); }

.showroom .sr-stage { width: 100%; height: min(70vh, 640px); min-height: 320px; border: 1px solid var(--sr-line); border-radius: 16px; background: var(--bg-surface, #16181B); overflow: hidden; position: relative; margin-bottom: 24px; }
.showroom .sr-stage[hidden] { display: none; }
.showroom.sr-list-only .sr-stage { display: none; }

.showroom .sr-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 32px; }
.showroom .sr-nav[hidden] { display: none; }
.showroom .sr-nav button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sr-line); background: var(--sr-card); color: var(--sr-text); font: 500 .9rem/1 inherit; font-family: inherit; cursor: pointer; }
.showroom .sr-nav button:hover { border-color: var(--border-strong, #4A5058); background: var(--bg-elevated, #25292E); }

.showroom .sr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; outline: none; }
.showroom .sr-card { position: relative; padding: 28px 24px 24px; background: var(--sr-card); border: 1px solid var(--sr-line); border-radius: 16px; display: flex; flex-direction: column; align-items: flex-start; scroll-margin-top: 80px; }
.showroom .sr-card::before { content: ""; position: absolute; left: 24px; top: 0; width: 40px; height: 3px; background: var(--border-strong, #4A5058); border-radius: 0 0 3px 3px; }
.showroom .sr-num { margin: 0 0 6px; font-size: .8rem !important; font-weight: 600; letter-spacing: .1em; color: var(--sr-muted); }
.showroom .sr-card h2 { margin: 0 0 10px !important; font-size: 1.35rem !important; line-height: 1.25; }
.showroom .sr-summary { color: var(--sr-text); font-weight: 500; }
.showroom .sr-card p { margin: 0 0 12px; }
.showroom .sr-card .sr-btn { margin-top: auto; }
.showroom .sr-pill { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid #C98A00; color: #FFC24D; background: rgba(201,138,0,.12); }
html[data-theme="light"] .showroom .sr-pill { color: #7A5200; background: #FFF3D6; border-color: #C98A00; }

.showroom .sr-band { margin-top: 56px; padding: 40px 24px; text-align: center; border: 1px solid var(--sr-line); border-radius: 16px; background: var(--sr-card); }
.showroom .sr-band h2 { margin: 0 0 8px !important; }
.showroom .sr-band p { margin: 0 auto 20px; max-width: 52ch; }

.showroom .sr-dialog { width: min(1100px, 96vw); height: min(780px, 92vh); padding: 0; border: 1px solid var(--sr-line); border-radius: 14px; background: var(--bg-primary, #0E0F11); color: var(--sr-text); overflow: hidden; }
.showroom .sr-dialog[open] { display: flex; flex-direction: column; }
.showroom .sr-dialog::backdrop { background: rgba(0,0,0,.65); }
.showroom .sr-dialog-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--sr-line); font-weight: 600; }
.showroom .sr-dialog iframe { flex: 1; width: 100%; border: 0; background: #0E0F11; }

@media (max-width: 600px) {
  .showroom .sr-hero { padding-top: 32px; }
  .showroom .sr-actions .sr-btn { width: 100%; }
  .showroom .sr-dialog { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .showroom * { transition: none !important; } }

/* Beat public.css's `.main-content a:not(...)` accent rule (high specificity, !important). */
.public-shell .main-content .showroom.showroom.showroom.showroom.showroom.showroom a.sr-btn-primary,
.public-shell .main-content .showroom.showroom.showroom.showroom.showroom.showroom a.sr-btn-primary:hover,
.public-shell .main-content .showroom.showroom.showroom.showroom.showroom.showroom a.sr-skip { color: #fff !important; }
.public-shell .main-content .showroom.showroom.showroom.showroom.showroom.showroom a.sr-btn-secondary,
.public-shell .main-content .showroom.showroom.showroom.showroom.showroom.showroom a.sr-btn-secondary:hover { color: var(--sr-text) !important; }

/* CLS: showroom/track.js un-hides the station nav and the "Enter the bay" button once it runs. Reserve their
   space from first paint when scripting is on (invisible until revealed), so the station list below does not
   jump. The list-only fallback (no WebGL / reduced motion) collapses the button again. */
@media (scripting: enabled) {
  .showroom .sr-nav[hidden] { display: flex; visibility: hidden; }
  .showroom #bay-enter[hidden] { display: inline-flex; visibility: hidden; }
  .showroom.sr-list-only #bay-enter[hidden] { display: none; }
}

/* Narration: Listen button + transcript on each station card (they move into the 3D panel with the card). */
.showroom .sr-listen { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px 6px 10px; min-height: 34px; border-radius: 999px; border: 1px solid var(--sr-line); background: transparent; color: var(--sr-text); font: 500 13px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.showroom .sr-listen:hover { border-color: var(--sr-muted, #8A919A); }
.showroom .sr-listen__i { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.showroom .sr-listen[aria-pressed="true"] .sr-listen__i { width: 8px; height: 10px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.showroom .sr-transcript { margin: 4px 0 14px; font-size: 14px; }
.showroom .sr-transcript summary { cursor: pointer; color: var(--sr-muted, #8A919A); }
.showroom .sr-transcript p { margin: 8px 0 0; }
#bay-stage .bay-panel .sr-listen { color: #F2F4F6 !important; border-color: #4A5058; }
#bay-stage .bay-panel .sr-transcript summary { color: #8A919A !important; }

/* Demo dialog: full screen (Fullscreen API, or fill the viewport where it is missing). */
.showroom .sr-dialog-tools { display: flex; gap: 8px; }
.showroom .sr-dialog.is-max { width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100dvh; border: 0; border-radius: 0; margin: 0; }
.showroom .sr-dialog:fullscreen { border-radius: 0; border: 0; }

/* The page's single primary CTA: fixed bottom-right pill. Safe-area aware; bottom offset clears the fixed help
   widget; the page already reserves 160px of bottom padding so it never covers the last cards. Hidden while the
   demo dialog is open (the dialog is in the top layer anyway). */
.showroom .sr-sticky { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px)); z-index: 40; min-height: 44px; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
@media (max-width: 600px) { .showroom .sr-actions .sr-btn.sr-sticky { width: auto; } }
