/* Respond website demos. Built by demos-src/tools/build.mjs from demos-src. Do not edit. */
/* Respond website demos: page-level styles. The apps' own stylesheets live in shadow roots. */

/* The desktop app's face since 1 October 2026 is Inter 4, named Respond Sans inside the app. */
@font-face{font-family:'Respond Sans';src:url('fonts/InterVariable.woff2') format('woff2');font-weight:100 900;font-display:swap}

/* ---------------------------------------------------------------- desktop stage */
/* A film does not answer the visitor's pointer: no hover states inside it (pointer-events inherits into the shadow roots). */
.rd-desk{position:relative;width:100%;overflow:hidden;contain:layout paint;-webkit-user-select:none;user-select:none;pointer-events:none}
.rd-desk-stage{position:absolute;left:0;top:0;transform-origin:0 0;overflow:hidden;background:#fff}
.rd-desk-app{position:absolute;inset:0}
.rd-desk-over{position:absolute;inset:0;pointer-events:none}
.rd-desk-layer{position:absolute;left:0;top:0;pointer-events:none}
.rd-desk-fx{position:absolute;inset:0;pointer-events:none;z-index:10}
.rd-veil{position:absolute;inset:0;background:#fff;pointer-events:none}

/* ---------------------------------------------------------------- the cursor */
.rd-cursor{position:absolute;left:0;top:0;width:0;height:0;will-change:transform;transform-origin:0 0}
.rd-desk .rd-cursor-glyph{position:absolute;width:32px;height:32px;overflow:visible;filter:drop-shadow(0 1px 1.4px rgba(0,0,0,.32))}

/* ---------------------------------------------------------------- keycaps */
.rd-keys{position:absolute;left:50%;bottom:26px;display:flex;align-items:center;gap:7px;padding:8px 10px;border-radius:16px;background:rgba(23,25,28,.82);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 10px 30px -10px rgba(0,0,0,.45);opacity:0;will-change:transform,opacity}
.rd-key{min-width:38px;height:36px;padding:0 11px;border-radius:9px;background:linear-gradient(#ffffff,#eceef2);color:#17191c;font:600 15px/36px 'Respond Sans',system-ui,sans-serif;text-align:center;box-shadow:0 2px 0 #aeb4be,0 3px 6px -2px rgba(0,0,0,.3);transition:none}
.rd-key:empty,.rd-key:empty~*{display:none}
.rd-keys[data-pressed] .rd-key{transform:translateY(2px);box-shadow:0 0 0 #aeb4be,0 1px 3px -1px rgba(0,0,0,.3)}
.rd-key-plus{color:#fff;opacity:.62;font:500 15px 'Respond Sans',system-ui,sans-serif}
.rd-keys[data-single] .rd-key-plus{display:none}

/* ---------------------------------------------------------------- on the page (index.html) */
/* Chris, 5 October 2026: corners "slightly less rounded" than the site's 23 px. */
.desktop-stage.rd-stage{min-height:0;overflow:hidden;background:#fff;border-radius:14px}
@media (max-width:700px){.desktop-stage.rd-stage{border-radius:12px}}
.rd-film-host{position:relative;width:100%}
/* A playlist's films sit on top of each other, all laid out; only the one playing is visible. */
.rd-playlist{display:grid}
.rd-playlist>.rd-part{grid-area:1/1;min-width:0}
.rd-phone-host{width:340px;max-width:100%;margin:0 auto}
@media (min-width:701px) and (max-width:960px){.rd-phone-host{width:306px}}
@media (max-width:370px){.rd-phone-host{width:292px}}
.rd-phone{display:block;width:100%;pointer-events:none;-webkit-user-select:none;user-select:none}
/* Hold each film's space before it is built (films build as they come near the screen), so nothing below
   jumps and links like #iphone land in the right place. A phone is 430×932 inside a 4px frame. */
.desktop-stage.rd-stage .rd-film-host:empty{aspect-ratio:1440/900}
/* On a phone the desktop films show a 4:5 window that follows the action (desktop/stage.js). */
@media (max-width:700px){.desktop-stage.rd-stage .rd-film-host:empty{aspect-ratio:4/5}}
[data-rd-stage=iphone] .rd-film-host:empty::before,.ondy-device.rd-film-host:empty::before{content:'';display:block;box-sizing:content-box;padding:4px;aspect-ratio:430/932}

/* ---------------------------------------------------------------- choosing a film (index.html)
   Chris, 5 October 2026: the tabs and pills did not say they were different demos, or make anyone want to press them.
   Each film is now a card: what it shows, a play mark, and a line that fills while it plays. The films move on by
   themselves (site.js). launch.js gives every card one of the site's pastel pairs (--box, --box-ink) for when it is on. */
.rd-chapters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:30px 0 14px}
.rd-chapter{position:relative;display:flex;flex-direction:column;justify-content:flex-start;gap:14px;min-width:0;min-height:108px;margin:0;padding:14px 16px 26px;border:0;border-radius:14px;background:#f1f3f6;color:#4d5661;font:inherit;text-align:left;cursor:pointer;overflow:hidden;-webkit-tap-highlight-color:transparent;transition:background-color .24s cubic-bezier(.23,1,.32,1),color .24s cubic-bezier(.23,1,.32,1),transform .2s cubic-bezier(.23,1,.32,1)}
.rd-chapter[aria-selected=true]{background:var(--box,#bcd9fe);color:var(--box-ink,#03376d)}
.rd-chapter-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rd-chapter-text{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.rd-chapter-title{display:block;font-size:15px;font-weight:500;line-height:1.3;letter-spacing:-.005em;color:inherit}
.rd-chapter .tag{margin:0}
.rd-chapter[aria-selected=true] .tag{background:rgba(255,255,255,.62);color:var(--box-ink,#03376d)}
.rd-badge{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;background:#fff;color:#2a313a}
.rd-badge svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[aria-selected=true]>.rd-chapter-top>.rd-badge,.rd-row[aria-selected=true]>.rd-badge{background:rgba(255,255,255,.62);color:var(--box-ink,#03376d)}
/* The play mark: on every film but the one playing. */
.rd-cue{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#fff;color:#4d5661;transition:background-color .2s,color .2s,transform .2s cubic-bezier(.23,1,.32,1)}
.rd-cue svg{width:11px;height:11px;fill:currentColor;stroke:currentColor;stroke-width:2;stroke-linejoin:round;transform:translateX(1px)}
[aria-selected=true] .rd-cue{visibility:hidden}
/* The line that fills while the film plays; the films before it stay full. */
.rd-progress{position:absolute;left:16px;right:16px;bottom:12px;height:3px;border-radius:2px;background:rgba(20,34,52,.09);overflow:hidden}
.rd-progress>i{position:absolute;inset:0;border-radius:inherit;background:currentColor;transform:scaleX(0);transform-origin:0 50%}
[data-rd-state=past] .rd-progress>i{opacity:.3}
[aria-selected=true] .rd-progress{background:rgba(255,255,255,.6)}
@media (hover:hover) and (pointer:fine){
 .rd-chapter:not([aria-selected=true]):hover{background:#e8ecf1;color:#1d232a}
 .rd-chapter:not([aria-selected=true]):hover .rd-cue,.rd-list .rd-row:not([aria-selected=true]):hover .rd-cue{background:#1d232a;color:#fff;transform:scale(1.08)}
}
.rd-chapter:active,.rd-list .rd-row:active{transform:scale(.985)}
@media (max-width:700px){
 .rd-chapters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:24px 0 12px}
 .rd-chapter{min-height:100px;gap:12px;padding:12px 12px 24px;border-radius:12px}
 .rd-chapter-title{font-size:14px}
 .rd-progress{left:12px;right:12px;bottom:11px}
}

/* The iPhone list: the same idea down the side of the phone, every film's line of description showing. */
.mobile-features.rd-list{display:flex;flex-direction:column;gap:10px;margin-top:30px}
.rd-list .mobile-feature.rd-row{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:14px;align-items:start;width:100%;margin:0;padding:16px 16px 26px;border:0;border-radius:14px;background:#fff;color:#4d5661;text-align:left;box-shadow:0 1px 2px rgba(16,24,40,.04),0 6px 18px rgba(16,24,40,.05);cursor:pointer;overflow:hidden;-webkit-tap-highlight-color:transparent;transition:background-color .24s cubic-bezier(.23,1,.32,1),color .24s cubic-bezier(.23,1,.32,1),box-shadow .24s,transform .2s cubic-bezier(.23,1,.32,1)}
.rd-list .mobile-feature.rd-row[aria-selected=true]{background:var(--box,#bcd9fe);color:var(--box-ink,#03376d);box-shadow:none}
.rd-row>.rd-badge{width:38px;height:38px;border-radius:11px;background:#f1f3f6}
.rd-row>.rd-badge svg{width:19px;height:19px}
.rd-row-text{display:flex;flex-direction:column;gap:5px;min-width:0;padding-top:1px}
.rd-list .rd-row .feature-title{display:block;margin:0;font-size:16px;font-weight:500;line-height:1.35;letter-spacing:-.005em;color:inherit}
.rd-list .rd-row .feature-description{display:block;max-width:none;margin:0;padding:0;font-size:13.5px;line-height:1.5;color:inherit;opacity:.8}
.rd-row>.rd-cue{align-self:center;background:#f1f3f6}
.rd-row .rd-progress{left:16px;right:16px;bottom:12px}
@media (hover:hover) and (pointer:fine){.rd-list .mobile-feature.rd-row:not([aria-selected=true]):hover{color:#1d232a;box-shadow:0 1px 2px rgba(16,24,40,.05),0 10px 24px rgba(16,24,40,.08)}}
/* On a phone the list sits above the phone, so it stays short: titles only (the intro above says what each does). */
@media (max-width:700px){.mobile-features.rd-list{gap:8px;margin-top:24px}.rd-list .mobile-feature.rd-row{align-items:center;padding:12px 14px 22px;column-gap:12px}.rd-list .rd-row .feature-title{font-size:15px}.rd-list .rd-row .feature-description{display:none}.rd-row>.rd-badge{width:34px;height:34px;border-radius:10px}.rd-row>.rd-badge svg{width:17px;height:17px}.rd-row .rd-progress{left:14px;right:14px;bottom:10px}}

/* Pause and play: one round button under each film. */
.rd-controls{display:flex;justify-content:flex-end;margin-top:14px}
.rd-controls.rd-center{justify-content:center;margin-top:18px}
.rd-toggle{display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:rgba(20,34,52,.07);color:#1b2026;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .2s,transform .2s cubic-bezier(.23,1,.32,1)}
.rd-toggle svg{width:16px;height:16px;fill:currentColor;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.rd-toggle[aria-pressed=true] svg{transform:translateX(1px)}
@media (hover:hover) and (pointer:fine){.rd-toggle:hover{background:rgba(20,34,52,.12)}}
.rd-toggle:active{transform:scale(.94)}
.rd-toggle:focus-visible,.rd-chapter:focus-visible,.rd-list .rd-row:focus-visible{outline:2px solid #1875d8;outline-offset:3px}
