/* Shared layout for Day 9 interactives. Responsive page; ?static=1 renders the 1920x1080 fallback. */
body { min-height: 100vh; background: linear-gradient(160deg, #f7f9fc 0%, #edf1f8 100%); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 40px 24px 56px; }
.wrap > header .eyebrow { font-size: 14px; }
.wrap > header h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.wrap > header h1 .accent { color: var(--blue); }
.wrap > header p { font-size: clamp(16px, 1.6vw, 19px); color: var(--sec); margin-top: 10px; line-height: 1.5; max-width: 760px; }

.seg { display: inline-flex; padding: 5px; gap: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.seg button { font: inherit; font-weight: 700; font-size: 16px; border: 0; background: transparent; color: var(--sec); padding: 10px 22px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg button:focus-visible, .btn:focus-visible, .tog:focus-visible, .node-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.btn { font: inherit; font-weight: 700; font-size: 16px; border-radius: 999px; padding: 11px 22px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }

details.text-version { margin-top: 28px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; font-size: 15px; color: var(--sec); line-height: 1.6; }
details.text-version summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details.text-version ul, details.text-version ol { padding-left: 20px; margin-top: 8px; }

.sig { margin-top: 26px; }
.sig img { display: block; width: 72px; height: 72px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* static fallback canvas */
body.static { width: 1920px; height: 1080px; overflow: hidden; }
body.static .wrap { max-width: none; width: 1920px; height: 1080px; padding: 72px 112px 60px; position: relative; }
body.static .wrap::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: linear-gradient(90deg, var(--blue), var(--indigo)); }
body.static .wrap > header .eyebrow { font-size: 20px; }
body.static .wrap > header h1 { font-size: 58px; }
body.static .wrap > header p { font-size: 24px; max-width: 1400px; }
body.static .seg, body.static details.text-version, body.static .no-static { display: none !important; }
body.static .sig { position: absolute; right: 104px; bottom: 18px; margin: 0; }
body.static .sig img { width: 96px; height: 96px; }
