/* Shared styles for demo wrapper pages (the demos hub and each demo's landing
   page). The streamed documents shown inside the iframe use stream.css. */

:root { color-scheme: light; }

body { font: 16px/1.6 system-ui, -apple-system, sans-serif; max-width: 760px; margin: 2rem auto; padding: 0 1rem; color: #1a1a1a; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; margin-top: 2rem; }
a { color: #2563eb; }
code { font-family: ui-monospace, monospace; background: #f1f5f9; padding: .1em .3em; border-radius: 4px; font-size: .9em; }
ul { padding-left: 1.2rem; }
li { margin: .6rem 0; }
.muted { color: #64748b; }

/* demo page chrome */
.flag-note { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: .75rem 1rem; margin: 1rem 0; }
.frame-wrap { border: 1px solid #cbd5e1; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.frame-bar { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: .5rem .75rem; font: 13px ui-monospace, monospace; color: #64748b; display: flex; justify-content: space-between; align-items: center; }
iframe { width: 100%; height: 340px; border: 0; display: block; background: #fff; }
button { font: inherit; padding: .35rem .8rem; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; cursor: pointer; }
button:hover { background: #f1f5f9; }
.status { font: 13px ui-monospace, monospace; color: #64748b; margin-top: .5rem; }
details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 600; }

/* feature-detection banners */
.warning { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; border-radius: 8px; padding: .75rem 1rem; margin: 1rem 0; }
.ok { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; border-radius: 8px; padding: .75rem 1rem; margin: 1rem 0; }

/* demo: source code stacked above the live result */
.demo-stack { display: grid; gap: 1.25rem; }

/* code panel — indigo-tinted header to set it apart from the live frame */
.code-panel { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }
.code-panel .panel-label { background: #eef2ff; border-bottom: 1px solid #e0e7ff; padding: .5rem .75rem; font: 13px ui-monospace, monospace; color: #4f46e5; }
.code-panel pre.shiki { margin: 0; padding: .85rem 1rem; overflow-x: auto; font-size: 13px; line-height: 1.55; }

/* live frame — a green dot marks it as the running result */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #10b981; margin-right: 4px; vertical-align: middle; }
