/*
 * PATCH-6011 — what every section illustration shares: the stage, its boxes
 * and connectors, the drawing as its own pause control, and the quiet row
 * under it (PATCH-6364). A figure's own scene styles stay
 * in its source, films/sections/<name>.html. The build links this file from
 * each page that shows one, at the page's styles marker
 * (scripts/section-spots.mjs), so it comes after the page's own stylesheet.
 */

.section-spot { margin: 0; min-width: 0; }
.section-spot-stage {
  display: flex; flex-direction: column; padding: 20px 14px;
  background: var(--bg-rail); border: 1px solid var(--border-strong); border-radius: var(--r-lg);
}
.section-spot-stage .section-spot-kicker {
  margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); text-align: center;
}
/* The page's paragraph rule (.feature p: margin, colour) does not reach
   inside the stage: this one ties with it and comes later, and the rules
   after it name the stage, so they win over both. */
.section-spot-stage p { margin: 0; color: var(--text); }
.section-spot-node {
  padding: 5px 4px; border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--bg-raised); font-size: 14px; line-height: 1.4; text-align: center;
}
.section-spot-role { display: block; }
.feature .section-spot-stage .section-spot-flow { margin-top: auto; padding-top: 18px; font-size: 14px; line-height: 1.45; color: var(--text-secondary); text-align: center; }
/* PATCH-6364 (owner 2026-11-06, patch-cove:figures-loop-control; Cat's
   spec): while it moves, the drawing is the pause control. Its own border
   takes the accent on hover, and the keyboard's ring stands 4px off it. */
.section-spot-stage[role="button"] { cursor: pointer; }
.section-spot-stage[role="button"]:hover { border-color: var(--accent-text); }
.section-spot-stage[role="button"]:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
/* The duration on the left and the hint on the right (owner 2026-11-05,
   patch-cove:spot-controls-sides), in that order in the markup too, so a
   screen reader meets them as the eye does. A hint that wraps under the
   duration, at a large text size, keeps to the right. */
.section-spot-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-top: 12px; }
.section-spot-duration { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.section-spot-paused { color: var(--text-secondary); }
.section-spot-hint { margin-inline-start: auto; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.feature .section-spot-unavailable { margin: 12px 0 0; font-size: 14px; color: var(--text-secondary); }
.feature .section-spot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.section-spot figcaption:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
