/* app2/ui/next.css — legacy: what is left of the experience pass (2026-09-23) once R1b retired its
   screens: the self-playing demo (ui/demo-player.js) the landing and its clips use. */

/* ---------- 2. the self-playing demo (ui/demo-player.js) ---------- */
.dp{position:relative; display:flex; flex-direction:column; min-width:0; min-height:0; background:var(--bg); border:1px solid var(--line); border-radius:14px; overflow:hidden}
.dp[tabindex]{outline:none; transition:border-color .15s, box-shadow .15s}
.dp[tabindex]:focus-within{border-color:var(--accent)}
.dp[tabindex]:focus-visible{box-shadow:0 30px 68px -32px rgba(0,0,0,.42)}   /* the lift only: the ring is the kit's (UI-71) */
/* reduced motion: the demo waits on its first frame with a way to start it */
.dp-play{position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); z-index:5; box-shadow:0 10px 34px var(--accent-glow)}

/* the demo's poster (C2, item 9): a still of the real lesson, painted at once; the live demo replaces it */
.dp-poster{display:flex; flex-direction:column}
.dp-poster-img{position:relative; flex:1 1 auto; min-height:0; overflow:hidden; background:var(--sheet)}
/* the still one to one from the top, its sheet tabs held to the frame's foot: a frame cut to any whole row draws it as the live demo will (ui/demo-poster.js) */
.dp-poster-img img{display:block; position:absolute; left:0; top:0; width:100%; height:auto; color:var(--muted); font-family:var(--mono); font-size:var(--fs-1)}
.dp-poster-foot{position:absolute; left:0; right:0; bottom:0; height:var(--dp-foot); overflow:hidden; background:var(--sheet)}
.dp-poster-foot img{top:auto; bottom:0}
.dp-poster-note{flex:none; margin:var(--s2)}   /* the still's line when the live demo did not load: the note kit's quiet note (components.css .ui-note) */
/* the loading skeleton (C2, item 9): the page's shape while its module arrives */
.sk{max-width:1340px; margin:var(--s2) auto var(--s6); display:flex; flex-direction:column; gap:var(--s3)}
.sk-sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}
@keyframes skShimmer{0%{opacity:.55} 50%{opacity:1} 100%{opacity:.55}}
.sk-bar, .sk-grid{background:color-mix(in srgb, var(--line) 55%, var(--surface)); border-radius:8px; animation:skShimmer 1.2s ease-in-out infinite}
.sk-bar{height:12px}
.sk-bar.sk-short{width:55%}
.sk-bar.sk-cap{width:30%; height:10px; margin-bottom:var(--s2)}
.sk-bar.sk-strip{height:40px; border-radius:10px}
.sk-bar.sk-title{height:26px; width:38%}
.sk-bar.sk-sub{height:14px; width:60%}
/* the placeholder cards are the kit's card (.ui-card); this stylesheet loads before the kit's, so its own rhythm takes the page's root */
.sk .sk-card{gap:var(--s2)}
.sk-card .sk-bar{background:color-mix(in srgb, var(--line) 70%, var(--surface))}
.sk-card.sk-tall{min-height:220px}
.sk-col{display:flex; flex-direction:column; gap:var(--s3); min-width:0; flex:1 1 0}
.sk-halves{display:grid; grid-template-columns:3fr 2fr; gap:var(--s4)}
.sk .sk-frame{gap:0; padding:0}   /* a card (.ui-card) whose ribbon, bar and grid run to its edges */
.sk-frame{position:relative; min-height:clamp(420px, calc(100vh - 230px), 820px); overflow:hidden}
.sk-frame .sk-bar{border-radius:0}
.sk-bar.sk-ribbon{height:98px; animation:none; background:var(--surface2); border-bottom:1px solid var(--line)}
.sk-bar.sk-fbar{height:30px; animation:none; background:var(--surface); border-bottom:1px solid var(--line)}
.sk-frame .sk-grid{flex:1 1 auto; border-radius:0; background:repeating-linear-gradient(0deg, transparent 0 19px, var(--line) 19px 20px), repeating-linear-gradient(90deg, transparent 0 63px, var(--line) 63px 64px); opacity:.5}
.sk-float{position:absolute; right:24px; top:150px; width:360px}
.sk-dr{display:grid; grid-template-columns:280px 1fr; gap:var(--s4)}
.sk-hero{display:grid; grid-template-columns:minmax(0, .92fr) minmax(0, 1.08fr); gap:var(--s12); align-items:center; padding:var(--s10) 0 var(--s12)}
.sk-bar.sk-h1{height:40px; width:88%; border-radius:10px}
.sk-bar.sk-h1.sk-short{width:60%}
.sk-bar.sk-cta{height:44px; width:200px; border-radius:11px; margin-top:var(--s4)}
.sk-card.sk-demo{height:clamp(320px, 42vh, 460px)}
.sk-card.sk-fr{width:min(1180px, 100%); height:clamp(560px, calc(100vh - 150px), 760px); align-self:center}
@media (prefers-reduced-motion: reduce){ .sk-bar, .sk-card, .sk-grid{animation:none} }

/* the narrow-screen notice: a gap under its cap, and the lesson's brief readable */
.narrow-msg h1{margin-top:var(--s4)}

/* the workspace fills the window and the page does not scroll under it (archived SITE_SPEC §4: the sheet never scrolls off screen).
   One flex column from <body> down to the frame: whatever the nav, the strip and the density take, the frame gets the rest,
   with no hand-tuned heights. The nav stays where it is on every page (no jump entering a lesson); only the gap under it
   tightens, and the strip sits closer (experience pass C, item 5). */
body[data-route="lesson"], body[data-route="due"]{height:100vh; min-height:0; padding-bottom:0; display:flex; flex-direction:column; overflow:hidden}
body[data-route="lesson"] > *, body[data-route="due"] > *{flex:none}

body[data-route="lesson"] .site-footer, body[data-route="due"] .site-footer, body[data-route="lesson"] #footMount, body[data-route="due"] #footMount{display:none}
body[data-route="lesson"] > .app, body[data-route="due"] > .app{flex:1 1 auto; min-height:0; display:flex; flex-direction:column; padding-bottom:var(--s2)}
body[data-route="lesson"] #root, body[data-route="due"] #root{flex:1 1 auto; min-height:0; display:flex; flex-direction:column}

/* the drill and Daily workspace: no footer under the sheet, and the sheet takes the room the footer left (critic pass) */
body[data-route="drill"] .site-footer, body[data-route="drill"] #footMount{display:none}
body[data-route="drill"] .drill-page .stage-row{min-height:clamp(400px, calc(100vh - 304px), 900px)}
html[data-density="compact"] body[data-route="drill"] .drill-page .stage-row{min-height:clamp(400px, calc(100vh - 284px), 900px)}
