/* Shared demo-site page: one docs column, dark first. wopr/pi.css styles the pi link and the WOPR modal. */
:root { --bg: #15171b; --text: #e3e6ea; --dim: #99a1ac; --line: #2a2e35; --soft: #1d2025; --accent: #8ab4ff; --hit: #3ecf8e; --miss: #f0b43c; --empty: #262a31; --err: #6b7280; --mono: ui-monospace, Menlo, Consolas, monospace; color-scheme: dark; }
@media (prefers-color-scheme: light) {
  :root { --bg: #fff; --text: #1d2127; --dim: #5b6470; --line: #e3e6ea; --soft: #f4f6f8; --accent: #0b62d6; --hit: #137a4a; --miss: #e0a232; --empty: #e6e9ed; --err: #9aa1ab; color-scheme: light; }
}
html, body { min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 0.9rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
code, .mono { font-family: var(--mono); }
.details { box-sizing: border-box; max-width: 44rem; padding: 3rem 3rem 3.5rem; }
h1 { margin: 0; font-size: 1.6rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pattern { display: inline-block; margin: 0.6rem 0 0; padding: 0.1rem 0.45rem; border-radius: 4px; background: var(--soft); font-size: 0.8rem; color: var(--dim); }
.what { margin: 1rem 0 0; font-size: 1rem; max-width: 62ch; }
h2 { margin: 1.6rem 0 0.4rem; font-size: 0.9rem; font-weight: 650; }
/* Each section reads as a term with its items indented under a thin rule. */
.stack { margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); list-style: none; }
.stack li + li { margin-top: 0.15rem; }
.stack ul { margin: 0.05rem 0 0.25rem; padding-left: 1.1rem; font-size: 0.82rem; color: var(--dim); list-style: disc; }
.notice { margin: 1rem 0 0; padding: 0.6rem 0.9rem; border-left: 3px solid var(--miss); background: var(--soft); font-weight: 600; }
.live { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.live p { margin: 0; font-size: 0.82rem; color: var(--dim); }
output { display: block; margin-top: 0.3rem; font: 600 1.8rem/1.2 var(--mono); color: var(--hit); }
.polls { display: flex; gap: 3px; margin: 0.75rem 0 0.5rem; padding: 0; list-style: none; }
.polls li { flex: 1; height: 1.5rem; border-radius: 2px; background: var(--empty); }
.polls li.hit { background: var(--hit); }
.polls li.miss { background: var(--miss); }
.polls li.err { background: var(--err); }
.tally { font-size: 0.75rem; color: var(--dim); }
.key { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 0.5rem; font-size: 0.75rem; color: var(--dim); }
.key span::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.35em; border-radius: 2px; background: var(--hit); }
.key span.m::before { background: var(--miss); }
/* Panel extras, such as the Django demo block. */
.details dl { margin: 0; padding-left: 1rem; border-left: 2px solid var(--line); }
.details dt { font-size: 0.82rem; color: var(--dim); }
.details dd { margin: 0 0 0.4rem; overflow-wrap: anywhere; }
.details form { margin-top: 0.75rem; }
.details button { padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); font: inherit; color: var(--text); cursor: pointer; }
.meta { margin: 2rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--dim); }
@media (max-width: 48rem) {
  .details { padding: 1.5rem max(1rem, env(safe-area-inset-right, 0px)) 3.5rem max(1rem, env(safe-area-inset-left, 0px)); }
  h1 { font-size: 1.25rem; }
  output { font-size: 1.5rem; }
}
