/*
 * Shared styling for the Page-Type Lab demo pages.
 * Each demo page is a self-contained host page that loads the widget and
 * exercises one architecture. This stylesheet only styles the *demo chrome*
 * (header, observer panel, sample content) — never the widget itself.
 */
:root {
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --surface: #f8fafc;
  --card: #ffffff;
  --accent: #2563eb;
  --ok: #15803d;
  --warn: #b45309;
  --gap: #b91c1c;
  --line: #e2e8f0;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", sans-serif;
  color: var(--ink-900);
  background: var(--surface);
  line-height: 1.65;
}
.lab-wrap { max-width: 920px; margin: 0 auto; padding: 32px 24px 120px; }
.lab-back { font-size: 13px; color: var(--accent); text-decoration: none; }
.lab-back:hover, .lab-back:focus-visible { text-decoration: underline; }
.lab-head { margin: 12px 0 8px; }
.lab-head h1 { font-size: clamp(1.5rem, 1rem + 2.2vw, 2.1rem); margin: 8px 0; letter-spacing: -.02em; }
.lab-arch {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px;
  color: var(--ink-500); background: #f1f5f9; padding: 4px 10px; border-radius: 6px;
  display: inline-block;
}
.lab-lede { max-width: 64ch; color: var(--ink-700); }

/* The fixed observer panel: tells the QA engineer what the widget *should*
   do here, and reports live runtime signals from the page. */
.observer {
  position: fixed; right: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px));
  background: #0f172a; color: #e2e8f0; border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 18px 48px -16px rgba(0,0,0,.5); font-size: 13px; z-index: 2147483000;
  /* Below the widget launcher's own z-index space is fine — this is just QA chrome. */
}
.observer h2 { font-size: 13px; margin: 0 0 8px; letter-spacing: .06em; text-transform: uppercase; color: #93c5fd; }
.observer ul { margin: 0; padding-left: 18px; }
.observer li { margin: 4px 0; }
.observer .k { color: #fbbf24; font-family: ui-monospace, Menlo, monospace; }
.observer .verdict { margin-top: 10px; padding-top: 10px; border-top: 1px solid #1e293b; font-weight: 600; }
.observer .verdict.ok { color: #86efac; }
.observer .verdict.warn { color: #fcd34d; }
.observer .verdict.gap { color: #fca5a5; }

.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
.section h2 { margin-top: 0; font-size: 1.15rem; }
.muted { color: var(--ink-500); font-size: 13px; }
.swatch { padding: 14px; border-radius: 10px; margin: 8px 0; }
button.demo-btn {
  font: inherit; cursor: pointer; border: 1px solid var(--accent); background: var(--accent);
  color: #fff; padding: 10px 16px; border-radius: 10px;
}
button.demo-btn:hover { background: #1d4ed8; }
button.demo-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
