/* Scoped demo player styles. Uses the site's existing tokens from public/styles.css when
   present; fallbacks repeat those token values for an isolated preview. No new palette. */
.demo-player{--dp-ink:var(--ink,#22354f);--dp-paper:var(--paper,#eeede7);--dp-panel:var(--panel,#d9e0e6);--dp-line:var(--line,#8793a2);--dp-muted:var(--muted,#46576b);--dp-accent:var(--accent,#294e9d);--dp-focus:var(--focus,#294e9d);color:var(--dp-ink);display:grid;gap:18px;max-width:1100px}
.demo-player .demo-title{font-size:clamp(26px,3.4vw,42px);line-height:1.08;letter-spacing:-1px}
.demo-player .demo-eyebrow{font-size:12px;letter-spacing:.14em;font-weight:700;color:var(--dp-accent)}
.demo-player .demo-intro{max-width:62ch;font-size:17px;line-height:1.5}
.demo-player .demo-fixture{padding:10px 14px;border:2px dashed var(--dp-ink);font-weight:700;max-width:max-content}
.demo-player .demo-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:18px}
.demo-player .demo-choice{border:1px solid var(--dp-line);margin:0;padding:12px 16px 16px;min-width:0}
/* Design 58/89 (board issue 1017): a group of one isn't a choice; the status line and the video's name still say it. */
.demo-player .demo-choice:not(:has(.demo-option + .demo-option)){display:none}
.demo-player legend{font-weight:700;padding:0 6px}
.demo-player .demo-options{display:grid;gap:8px}
.demo-player .demo-option{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;min-height:44px;cursor:pointer}
.demo-player .demo-option input{width:20px;height:20px;margin:0;accent-color:var(--dp-accent)}
.demo-player .demo-option small{grid-column:2;color:var(--dp-muted);font-size:12px}
.demo-player .demo-option .demo-pending{font-weight:700}
.demo-player input:focus-visible,.demo-player video:focus-visible,.demo-player summary:focus-visible{outline:3px solid var(--dp-focus);outline-offset:4px}
.demo-player .demo-stage{background:var(--dp-ink);aspect-ratio:16/9;display:grid;place-items:center;min-width:0}
.demo-player video{width:100%;height:100%;display:block;background:#000}
/* RC3.1 (Design 49, board issue 1017 comment 6937952994): the native controls get a 48 px band under the
   picture, so the burned-in disclosure (about 92% of the frame height) is never under the controls bar.
   The picture keeps its 16:9 frame, pinned to the top. Assumes 16:9 (all RC3 videos are 1920x1080). */
.demo-player .demo-stage{aspect-ratio:auto;container-type:inline-size}
.demo-player video{height:calc(100cqi * 9 / 16 + 48px);object-fit:contain;object-position:50% 0}
.demo-player .demo-unavailable{color:var(--dp-paper);padding:24px;text-align:center;max-width:46ch}
.demo-player .demo-source{font-size:13px;color:var(--dp-muted);overflow-wrap:anywhere}
.demo-player .demo-status{min-height:1.5em}
.demo-player .demo-error:empty{display:none}
.demo-player .demo-error{padding:12px 14px;border-left:4px solid #9a3b25;background:#f7e9e3;color:#5f2617}
.demo-player .demo-sources{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 18px;font-size:13px;margin:0}
.demo-player .demo-sources dt{color:var(--dp-muted)}
.demo-player .demo-sources dd{margin:0;overflow-wrap:anywhere}
.demo-player .demo-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.demo-player .demo-actions:has(> :not([hidden])){min-height:44px}
.demo-player .demo-retry{min-height:44px;padding:0 18px;border:1px solid var(--dp-ink);background:transparent;color:inherit;font-weight:700}
.demo-player .demo-fallback{text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}
.demo-player .demo-retry:focus-visible,.demo-player .demo-fallback:focus-visible{outline:3px solid var(--dp-focus);outline-offset:4px}
.demo-player .demo-transcript summary,.demo-player .demo-about summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}
.demo-player .demo-about>p{margin:0 0 10px}
.demo-player .demo-credit{max-width:72ch;font-size:13px;line-height:1.5;color:var(--dp-muted)}
.demo-player .demo-note{font-size:13px;color:var(--dp-muted)}
.demo-player [hidden]{display:none!important}
.demo-review-page{padding:32px 5%}
@media(max-width:700px){.demo-player .demo-controls{grid-template-columns:1fr}.demo-player .demo-sources{grid-template-columns:1fr}.demo-player .demo-sources dd{margin-bottom:6px}}
@media(prefers-reduced-motion:reduce){.demo-player *{transition:none!important;animation:none!important}}
/* P0 playback (QA, PR209 7186944193): when a film needs a second press (iOS refused the carry-on play after a fallback), its
   "Press play to listen." line shows, even where the film rows hide the status line (home and kit .tf-films). */
.demo-player.demo-player[data-needs-press] .demo-status{position:static!important;width:auto!important;height:auto!important;margin:6px 0!important;padding:0 14px!important;overflow:visible!important;clip:auto!important;white-space:normal!important}
/* P0 (CEO decision c): "Tap to play" sits on the poster, in the picture's own grid cell, until it's pressed. */
.demo-player .demo-stage>video,.demo-player .demo-tap{grid-area:1/1}
.demo-player .demo-tap{z-index:1;align-self:center;justify-self:center;min-height:48px;padding:0 22px;border:0;border-radius:999px;background:#fff;color:#0b1b33;font-family:inherit;font-size:16px;font-weight:600;line-height:1;box-shadow:0 2px 12px rgba(0,0,0,.35);cursor:pointer}
.demo-player .demo-tap[hidden]{display:none}
.demo-player .demo-tap:focus-visible{outline:3px solid #fff;outline-offset:4px;box-shadow:0 0 0 4px #0b1b33,0 2px 12px rgba(0,0,0,.35)}
/* P0 (Design 7201418379): on the film stage (home and kit .tf-films) the picture is drawn at order -2 and the film row at
   -1, so the notice right after the picture in the DOM must share the picture's order to be drawn (and tabbed) under it,
   across the stage's columns. Idle, it adds no space: the status is out of flow, an empty error isn't drawn, and the
   actions have no height without a visible child (the stage's row gap is 0). */
.tf-films .tf-stage .demo-player>.demo-status,.tf-films .tf-stage .demo-player>.demo-error,.tf-films .tf-stage .demo-player>.demo-actions{order:-2!important;grid-column:1/-1}
