/* The demo player (demo-player.js; plan 22, IV47): a dark panel (.on-dark in theme.css gives it the dark grounds and the lighter cobalt), as
   the owner's canvas of 2026-12-01 draws it. Tokens only. What moves: the picture rises, the findings tick in one at a time, the card
   reader makes one pass; each once, never on scroll, and none of it with reduced motion. */
.dp { display: grid; gap: 16px; min-width: 0; padding: 22px; border-radius: var(--radius-lg); }
.try-sec .dp { margin-bottom: 32px; }   /* on a product page, above its card of tests */
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dp-label { font-size: 13px; color: var(--muted); }
.dp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dp-chips button { min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font: 500 13px/1 var(--font); cursor: pointer; }
.dp-chips button:hover { border-color: var(--ink-2); }
.dp-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.dp-body { display: flex; flex-wrap: wrap; gap: 18px; }
.dp-pic { flex: 0 0 210px; height: 250px; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.dp-pic.empty { background: transparent; border: 2px dashed var(--line-strong); }
/* Idle: the frame is short and the scenarios stand out, so it reads as "press one", not as something that did not load. */
.dp.dp-idle .dp-pic { height: 120px; }
.dp.dp-idle .dp-title { font-size: 19px; color: var(--ink-2); }
.dp.dp-idle .dp-chips button { border-color: var(--accent); color: var(--ink); }
.dp-art { display: block; max-width: 86%; height: auto; }
.dp-acc { stroke: var(--accent); }
.dp-thin { stroke-width: 1.2; }
.dp-pt { fill: var(--accent); stroke: none; }
.dp-bad { stroke: var(--seal); stroke-width: 2.5; }
.dp-dash { stroke-width: 2; stroke-dasharray: 3 6; }
.dp-txt { fill: var(--muted); stroke: none; font: 9px var(--mono); letter-spacing: .04em; }
.dp-tile { display: grid; place-items: center; }
.dp-say { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dp-model { min-height: 1.4em; font: 12px/1.4 var(--mono); color: var(--muted); }
.dp-title { margin: 0 0 8px; min-height: 1.15em; font: 500 24px/1.15 var(--display); color: var(--ink); }
.dp-rows { list-style: none; margin: 0; padding: 0; }
.dp-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.dp-k { min-width: 0; }
.dp-v { flex: none; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; white-space: nowrap; }
.dp-v.ok { background: var(--ok-bg); color: var(--ok); }
.dp-v.warn { background: var(--warn-bg); color: var(--warn); }
.dp-v.bad { background: var(--bad-bg); color: var(--bad); }
.dp-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.dp-dot.ok { background: var(--ok); }
.dp-dot.warn { background: var(--warn); }
.dp-foot { display: flex; align-items: center; gap: 12px; }
.dp-foot[hidden] { display: none; }
.dp-dots { display: flex; flex: 1; gap: 6px; }
.dp-dots span { flex: 1; height: 4px; border-radius: 2px; background: var(--line-strong); }
.dp-dots span.on { background: var(--ink); }
/* ‹ Play › as on the workflow Code tab: two arrows either side of Play or Pause. */
.dp-back, .dp-next, .dp-play { min-height: 44px; border-radius: var(--radius-sm); font: 600 15px/1 var(--font); cursor: pointer; }
.dp-back, .dp-next { min-width: 44px; padding: 0 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 20px; }
.dp-back:disabled, .dp-next:disabled { opacity: .45; cursor: default; }
.dp-play { min-width: 84px; padding: 0 16px; border: 0; background: var(--ink); color: var(--bg); }
/* The API response is shut until this opens it, at a decision (owner, 2026-12-04). Ready, it is the accent's filled button, so it is
   easy to find once the player stops; before the decision it is the accent's quiet ground. */
.dp-api { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--font); cursor: pointer; }
.dp-api::before { content: "{ }"; font: 600 14px/1 var(--mono); }
.dp-api:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.dp-api[aria-expanded="true"] { background: transparent; color: var(--ink); }
.dp-api:disabled { background: var(--accent-soft); border-color: var(--accent-line); color: var(--muted); cursor: default; }
/* The answer's box is shown by a class (demo-player.js): only once "View API response" has opened it, at the decision. */
.dp-json { margin: 0; max-height: 260px; overflow: auto; overscroll-behavior: contain; font-size: 13px; background: var(--surface); border-radius: var(--radius); visibility: hidden; opacity: 0; }
.dp-json.dp-on { visibility: visible; opacity: 1; }
.dp .dp-json:not(.dp-on), .dp .codewrap:has(> .dp-json:not(.dp-on)) { display: none; }
.codewrap:has(> .dp-json:not(.dp-on)) > .copy { visibility: hidden; }   /* site.js's copy button, only once there is something to copy */
.dp-note { margin: 0; min-height: 1.3em; font-size: 12.5px; color: var(--muted); }
.dp-more { justify-self: start; color: var(--ink); font-weight: 600; }
.dp-more[hidden] { display: none; }
.dp-rise { animation: dp-rise .4s cubic-bezier(.3, .6, .2, 1) both; }
.dp-tick { animation: dp-tick .3s ease-out both; }
.dp-sweep { animation: dp-sweep .9s ease-in-out .45s both; }
@keyframes dp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dp-tick { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes dp-sweep { 0% { opacity: 0; transform: translateY(-48px); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(48px); } }
@media (prefers-reduced-motion: reduce) { .dp-rise, .dp-tick, .dp-sweep { animation: none; } .dp-sweep { display: none; } }
@media (max-width: 560px) { .dp { padding: 18px 16px; } .dp-pic { flex-basis: 100%; height: 220px; } }

/* The home hero's player keeps one size (owner, 2026-12-03): stepping, another scenario, autoplay and the decision never change its height or
   move the page. The box has a height per width; inside it every part has its place before it is filled: two lines of title, the rows of the
   longest step (they tick into that space), the "View API response" button, the note and the "Run it yourself" link. Opened, the API
   response grows the player and moves the page down (owner, 2026-12-04: fine). The footer and the
   link are kept in place while hidden (site.css hides [hidden] with !important, so these say it the same way). Idle with reduced motion it
   keeps the same frame. The heights are measured: every step of the three stories, at each width (PR of 2026-12-03). */
.dp-fixed { height: 596px; grid-template-rows: auto minmax(0, 1fr) auto auto auto auto auto; overflow: hidden; }
.dp-fixed.dp-open { height: auto; }
.dp-fixed .dp-body { flex-wrap: nowrap; min-height: 0; overflow: hidden; }
.dp-fixed .dp-pic { flex: 0 0 min(210px, 42%); }
.dp-fixed.dp-idle .dp-pic { height: 250px; }
.dp-fixed .dp-title { min-height: 2.3em; }
.dp-fixed .dp-rows { height: 200px; overflow: hidden; }   /* three rows, a label of two lines among them */
.dp-fixed .dp-foot[hidden] { display: flex !important; visibility: hidden; }
.dp-fixed .codewrap { margin: 0; }
.dp-fixed .dp-json { height: 168px; max-height: none; }   /* opened */
.dp-fixed .dp-note { min-height: 2.6em; line-height: 1.3; }
.dp-fixed .dp-more { min-height: 1.5em; line-height: 1.5; }
.dp-fixed .dp-more[hidden] { display: block !important; visibility: hidden; }
@media (max-width: 1100px) { .dp-fixed { height: 628px; } }   /* the scenarios take two lines */
@media (max-width: 920px) { .dp-fixed { height: 596px; } }
@media (max-width: 560px) {
  .dp-fixed { height: 894px; }
  .dp-fixed .dp-body { flex-wrap: wrap; }
  .dp-fixed .dp-pic, .dp-fixed.dp-idle .dp-pic { flex-basis: 100%; height: 200px; }
  .dp-fixed .dp-json { height: 150px; }
}
