/*
 * Beat audio-to-cues: Cuebench, a precision bench for a visitor's own audio
 * (web/landing/sections/audio-to-cues.html). Linked in the page head by lib/landing.ts
 * while the beat is enabled; the shells' sheets it builds on are linked by the page
 * itself, once each and before every section sheet. Every class here starts with the
 * beat id, and every rule is scoped by [data-beat]: the frame's variant
 * (audio-to-cues-cuebench) is styled here and nowhere else.
 *
 * Layout: the copy above, the bench below at the full width. Inside the bench, the input
 * side (source, transcript) on the left and Pip large on the right, the timeline across
 * the whole width under both. Narrow: source, transcript, Pip, the scrubber and the
 * downloads, stacked in that order.
 */

.use-case[data-beat="audio-to-cues"] .use-case-mount { margin-top: clamp(24px, 4vh, 40px); }

/* ── Inside the bench ──────────────────────────────────────────────────── */

/* Narrow: the input side first, then Pip, then the timeline. */
[data-beat="audio-to-cues"] .demo-frame-body { grid-template-areas: "main" "stage" "aside"; }

@container demo-frame (min-width: 640px) {
  [data-beat="audio-to-cues"] .demo-frame-body {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 1fr);
    grid-template-areas:
      "main stage"
      "aside aside";
    align-items: start;
  }
}

[data-beat="audio-to-cues"] .demo-frame-slot[data-slot="main"] {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

[data-beat="audio-to-cues"] .demo-frame-slot[data-slot="stage"] {
  display: flex;
  justify-content: center;
}

[data-beat="audio-to-cues"] .audio-to-cues-stage { max-width: 340px; }

/* The timeline is a bench surface of its own: the instrument the cues land on. */
[data-beat="audio-to-cues"] .demo-frame-slot[data-slot="aside"] {
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 55%, var(--panel));
}

/* The primary control is the analysis; once a result is in, Replay is (the module moves
   the accent between them, so this only sets the button's minimum width). */
[data-beat="audio-to-cues"] .audio-to-cues-analyze { min-width: 9.5em; justify-content: center; }
