/* Styles only the live site needs on top of the design canvas styles (tokens, design-system, site, components). */
html { background: var(--background); }
body.ws-page { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Work-in-progress banner. */
.ws-wip { background: var(--panel); border-bottom: 1px solid var(--faint-rule); font-size: 13px; line-height: 18px; color: var(--muted); }
.ws-wip__inner { max-width: 1200px; margin: 0 auto; padding: 8px 48px; display: flex; align-items: center; gap: 10px; box-sizing: border-box; }

/* Phone menu. */
@media (max-width: 760px) {
  .ws-wip__inner { padding: 8px 16px; }
  .ws-nav { position: relative; }
  .ws-nav--open .ws-nav__links { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; z-index: 10; padding: 8px 16px 16px; background: var(--background); border-bottom: 1px solid var(--faint-rule); }
}

/* The 3D case viewer in the hero. */
.ws-stage__frame--viewer model-viewer { width: 100%; height: 100%; background: transparent; --poster-color: transparent; }

/* Links and steps that are not written yet. */
.ws-side-link--soon { color: var(--muted); cursor: default; }
.ws-side-link--soon:hover { background: none; }
.ws-pager__soon { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px dashed var(--faint-rule); border-radius: 12px; color: var(--muted); text-align: right; }
.ws-pager__soon span { font-size: 13px; }
.ws-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Shape3D steps: each key carries its heights as --h-flat, --h-raised and --h-cap. */
.s3 .s3__key { --h: var(--h-cap); }
.s3[data-step="0"] .s3__key, .s3[data-step="1"] .s3__key { --h: var(--h-flat); }
.s3[data-step="2"] .s3__key { --h: var(--h-raised); }
.s3__plane { transform: translate(-50%, -50%) rotateX(52deg) rotateZ(-9deg) translateY(3cqw); }
.s3[data-step="0"] .s3__plane { transform: translate(-50%, -50%); }
.s3__face--top { transform: translateZ(var(--h)); }
.s3__face--front { top: calc(100% - var(--h)); height: var(--h); }
.s3__face--back { top: 0; height: var(--h); }
.s3__face--left { left: 0; width: var(--h); }
.s3__face--right { left: calc(100% - var(--h)); width: var(--h); }
.s3[data-step="3"] .s3__face--top { background: var(--ink); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .s3__plane, .s3__face { transition: none !important; } }

/* Keys the viewer only displays. */
.ws-board .ws-key { cursor: default; }
[data-keymap] .ws-board .ws-key { cursor: pointer; }
