/* #demo section on the published Tidepool page (APP-DEMO-SECTION-01). Loaded after
   demo-player.css. It maps the player's tokens onto the live Tidepool roles defined in
   public/styles.css, now Studio × Ember Tide (STUDIO-EMBER-RELEASE-01): sand type on the petrol
   ground, sand plates with petrol ink and red-brown headings for the choices, a dark tray for the
   picture, aqua focus on the ground and red-brown focus on sand. Hairline edges, no drop shadows. */
.demo-section .demo-player{--dp-ink:var(--ink);--dp-paper:var(--ink);--dp-muted:var(--meta);--dp-line:var(--divider);--dp-accent:var(--accent);--dp-focus:var(--accent);
 max-width:none;gap:20px}
.demo-section .demo-eyebrow{font:14px/1.3 var(--mono);letter-spacing:.06em;color:var(--accent);font-weight:400}
.demo-section .demo-title{font:clamp(32px,4vw,56px)/1.02 var(--display);letter-spacing:-.025em;color:var(--ink)}
.demo-section .demo-intro{color:var(--soft);max-width:60ch}
.demo-section .demo-fixture{border-color:var(--ink);color:var(--ink);border-radius:14px}
.demo-section .demo-controls{gap:18px}
.demo-section .demo-choice{background:var(--plate);color:var(--plate-ink);border:1px solid var(--plate-edge);border-radius:var(--r-plate);padding:14px 18px 18px;
 --dp-focus:var(--plate-h);--dp-accent:var(--plate-h)}
/* S1/P2: the legend sits inside the sand plate (a floated legend leaves the fieldset border),
   so its text is always deep teal on sand, never across the sand/teal edge. */
.demo-section .demo-choice legend{float:left;width:100%;margin:0 0 10px;padding:0;font:13px/1.3 var(--mono);color:var(--plate-ink);text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.demo-section .demo-choice legend+*{clear:both}
/* S2: the page is color-scheme:dark, which draws native unchecked radios as dark discs on sand.
   The plate is a light surface, and its radios are drawn explicitly: a sand disc with a
   teal-ink ring when unchecked, a deep-teal centre dot when checked. */
.demo-section .demo-choice{color-scheme:light}
.demo-section .demo-option input[type=radio]{appearance:none;-webkit-appearance:none;width:22px;height:22px;margin:0;border:2px solid var(--plate-ink);border-radius:50%;background:var(--plate);display:grid;place-items:center;cursor:pointer}
.demo-section .demo-option input[type=radio]::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--plate-h);transform:scale(0)}
.demo-section .demo-option input[type=radio]:checked{border-color:var(--plate-h)}
.demo-section .demo-option input[type=radio]:checked::before{transform:scale(1)}
@media (forced-colors:active){.demo-section .demo-option input[type=radio]{appearance:auto;-webkit-appearance:auto}.demo-section .demo-option input[type=radio]::before{content:none}}
.demo-section .demo-option{font:17px/1.2 var(--display)}
.demo-section .demo-option small{font:14px/1.35 var(--text);color:var(--plate-body)}
.demo-section .demo-option .demo-pending{color:var(--plate-meta);font-weight:700}
.demo-section .demo-stage{background:var(--tray);border-radius:var(--r-tray);overflow:hidden}
.demo-section .demo-unavailable{color:var(--ink);font:17px/1.4 var(--display)}
.demo-section .demo-source,.demo-section .demo-note{color:var(--meta)}
.demo-section .demo-status{color:var(--soft)}
.demo-section .demo-retry{border:2px solid var(--pc-edge);border-radius:var(--r-ctl);color:var(--ink);font:16px/1 var(--display)}
.demo-section .demo-fallback{color:var(--accent)}
.demo-section .demo-about summary,.demo-section .demo-transcript summary{font:17px/1.2 var(--display);color:var(--ink)}
.demo-section .demo-about>p{color:var(--soft)}
.demo-section .demo-sources dt{color:var(--meta)}
.demo-section .demo-sources dd{color:var(--ink)}
.demo-section .demo-cta{margin-left:0}
.demo-fixture-banner{margin:0;padding:10px clamp(16px,4vw,48px);background:var(--tray);color:var(--ink);font:14px/1.4 var(--mono);border-bottom:2px dashed var(--divider)}
