/* The Wellspring: shared tokens and components for both presentations. Near-black navy, indigo, gold; amber only for emphasis. */
:root { --ws-bg: #0a0e1f; --ws-bg2: #10162e; --ws-panel: #161d36; --ws-raised: #1f2846; --ws-line: #2b3558; --ws-ink: #f1f3fb; --ws-muted: #aab3cf; --ws-faint: #707a9a; --ws-gold: #e3b341; --ws-gold-ink: #1b1400; --ws-indigo: #8fa6ff; --ws-good: #6fe0a6; --ws-warn: #ffb547; --ws-bad: #ff6b7a; --ws-radius: 14px; --ws-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --ws-display: "Fraunces", "Iowan Old Style", Georgia, serif; }
:root[data-contrast="high"] { --ws-bg: #000; --ws-bg2: #000; --ws-panel: #000; --ws-raised: #111; --ws-line: #888; --ws-ink: #fff; --ws-muted: #eee; --ws-faint: #ccc; --ws-gold: #ffd400; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--ws-bg); color: var(--ws-ink); font-family: var(--ws-font); line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
a { color: var(--ws-indigo); }
button { font: inherit; }
h1, h2, h3 { font-family: var(--ws-display); font-weight: 600; line-height: 1.15; margin: 0; }
.ws-btn { background: var(--ws-raised); color: var(--ws-ink); border: 1px solid var(--ws-line); border-radius: 10px; padding: 10px 16px; min-height: 44px; min-width: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center; }
.ws-btn:hover { border-color: #4b587f; } .ws-btn:focus-visible, .ws-toggle:focus-visible, .hotspot:focus-visible, .ws-input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--ws-gold); outline-offset: 2px; }
.ws-btn.primary { background: var(--ws-gold); color: var(--ws-gold-ink); border-color: transparent; font-weight: 700; }
.ws-btn.ghost { background: transparent; } .ws-btn.sm { min-height: 38px; padding: 6px 12px; font-size: 14px; } .ws-btn.block { width: 100%; justify-content: flex-start; text-align: left; }
.ws-btn[disabled], .ws-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.ws-btn.selected { border-color: var(--ws-gold); box-shadow: inset 0 0 0 1px var(--ws-gold); }
.ws-input { background: var(--ws-raised); color: var(--ws-ink); border: 1px solid var(--ws-line); border-radius: 10px; padding: 10px 12px; min-height: 44px; font: inherit; width: 100%; }
.ws-card { background: var(--ws-panel); border: 1px solid var(--ws-line); border-radius: var(--ws-radius); padding: 16px; }
.ws-muted { color: var(--ws-muted); } .ws-faint { color: var(--ws-faint); } .ws-small { font-size: 13px; }
.ws-badge { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 99px; background: var(--ws-raised); color: var(--ws-muted); font-weight: 600; white-space: nowrap; border: 1px solid var(--ws-line); }
.ws-badge.v-confirmed { color: var(--ws-good); border-color: rgba(111,224,166,.4); } .ws-badge.v-reported { color: var(--ws-indigo); border-color: rgba(143,166,255,.4); } .ws-badge.v-interpretive { color: var(--ws-muted); } .ws-badge.v-disputed { color: var(--ws-warn); border-color: rgba(255,181,71,.5); }
.ws-badge.c-documented-influence { color: var(--ws-good); } .ws-badge.c-historical-relationship { color: var(--ws-indigo); } .ws-badge.c-interpretive-parallel { color: var(--ws-muted); } .ws-badge.c-personal-association { color: #d9a3ff; } .ws-badge.c-invented-game-scenario { color: var(--ws-warn); border-style: dashed; }
.ws-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ws-claim { padding: 12px 0; border-top: 1px solid var(--ws-line); } .ws-claim p { margin: 0 0 6px; } .ws-claim .dispute { background: rgba(255,181,71,.08); border-left: 3px solid var(--ws-warn); padding: 8px 10px; border-radius: 6px; margin-top: 6px; font-size: 14px; }
.ws-sources { font-size: 13px; color: var(--ws-faint); margin: 4px 0 0; } .ws-sources li { margin: 2px 0; }
.ws-stack { display: grid; gap: 12px; } .ws-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ws-measures { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ws-measure { background: var(--ws-raised); border-radius: 10px; padding: 10px 12px; } .ws-measure b { display: block; font-size: 20px; } .ws-measure span { font-size: 12px; color: var(--ws-muted); }
.ws-meter { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; font-size: 14px; } .ws-meter .bar { height: 10px; background: var(--ws-raised); border-radius: 5px; position: relative; overflow: hidden; } .ws-meter .bar i { position: absolute; top: 0; bottom: 0; left: 50%; background: var(--ws-gold); border-radius: 5px; }
.ws-evidence { border: 1px solid var(--ws-line); border-radius: 10px; padding: 12px; background: var(--ws-bg2); } .ws-evidence.new { border-color: var(--ws-gold); } .ws-evidence .src { margin-top: 8px; font-size: 13px; color: var(--ws-faint); }
.ws-feedback { border-radius: 10px; padding: 12px 14px; margin-top: 10px; } .ws-feedback.ok { background: rgba(111,224,166,.1); border: 1px solid rgba(111,224,166,.4); } .ws-feedback.no { background: rgba(255,107,122,.08); border: 1px solid rgba(255,107,122,.4); } .ws-feedback.info { background: rgba(143,166,255,.08); border: 1px solid rgba(143,166,255,.35); }
.ws-beat { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--ws-line); border-radius: 10px; background: var(--ws-bg2); } .ws-beat.aside { opacity: .6; border-style: dashed; } .ws-beat .n { font-family: var(--ws-display); font-size: 20px; color: var(--ws-gold); min-width: 28px; } .ws-beat .ctl { display: grid; gap: 4px; } .ws-beat select { margin-top: 6px; max-width: 100%; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 14px; } .ws-table th, .ws-table td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--ws-line); vertical-align: top; } .ws-table th { color: var(--ws-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ws-choice { display: grid; gap: 4px; text-align: left; padding: 12px 14px; } .ws-choice small { color: var(--ws-faint); }
.ws-ending { border: 1px solid var(--ws-gold); background: rgba(227,179,65,.08); border-radius: var(--ws-radius); padding: 16px; } .ws-ending h3 { font-size: 24px; color: var(--ws-gold); }
.ws-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ws-skip { position: absolute; left: -999px; top: 8px; background: var(--ws-gold); color: var(--ws-gold-ink); padding: 8px 12px; border-radius: 8px; z-index: 99; } .ws-skip:focus { left: 8px; }
.ws-legend { display: grid; gap: 8px; } .ws-legend div { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--ws-muted); }
.ws-invented { border: 1px dashed var(--ws-warn); color: var(--ws-warn); border-radius: 8px; padding: 6px 10px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.ws-kbd { display: inline-block; border: 1px solid var(--ws-line); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; font-family: ui-monospace, monospace; font-size: 12px; background: var(--ws-raised); }
details.ws-details { border: 1px solid var(--ws-line); border-radius: 10px; background: var(--ws-panel); } details.ws-details > summary { cursor: pointer; padding: 12px 14px; min-height: 44px; display: flex; align-items: center; gap: 10px; list-style: none; } details.ws-details > summary::-webkit-details-marker { display: none; } details.ws-details > summary::before { content: "▸"; color: var(--ws-gold); } details[open].ws-details > summary::before { content: "▾"; } details.ws-details > .body { padding: 0 14px 14px; }
@media (prefers-reduced-motion: no-preference) { .ws-btn, .hotspot { transition: border-color .15s, background .15s; } }
