/* Obsvra · Witness — component styles. Requires the system's tokens.
   Fonts (Google): Source Serif 4 400/600 (+ italic 400), JetBrains Mono 400/700. */
.wt-doc { background: var(--surface); color: var(--ink); font-family: var(--font-display); font-optical-sizing: auto; font-size: 15px; line-height: 1.6; }
.wt-deck { background: var(--surface); color: var(--ink); font-family: var(--font-display); font-optical-sizing: auto; }
.wt-doc a, .wt-deck a { color: var(--accent); text-underline-offset: 2px; }
.wt-doc :focus-visible, .wt-deck :focus-visible { outline: var(--focus-ring) solid var(--accent); outline-offset: 2px; }
.wt-doc code, .wt-deck code { font-family: var(--font-mono); font-size: .86em; }
/* Literal source and values show exactly what is in the file: no ligatures turning == into ═ or <= into ≤ */
.wt-doc code, .wt-deck code, .wt-code, .wt-io, .wt-clause { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }

/* Eyebrow */
.wt-eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0; }
.wt-doc .wt-eyebrow { letter-spacing: .3em; }
.wt-poster .wt-eyebrow { color: var(--on-poster); }
.wt-vellum .wt-eyebrow { color: var(--vellum-accent); }

/* Header lockup + running header/footer (documents). Witness has no mark yet: the name is live type. */
.wt-lockup { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.wt-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.wt-runhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 6px; border-bottom: var(--hairline) solid var(--border); }
.wt-runhead b { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.wt-runfoot { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; border-top: var(--hairline) solid var(--border); }
.wt-runfoot .wt-count { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--ink); }

/* Title block — closes with the double rule */
.wt-titleblock h1 { font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 1.08; letter-spacing: -.015em; margin: 8px 0 20px; text-wrap: balance; }
.wt-titleblock dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding-bottom: 14px; border-bottom: var(--rule-double) double var(--border-strong); }
.wt-titleblock dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.wt-titleblock dd { margin: 6px 0 0; font-family: var(--font-mono); font-size: 13px; }

/* Section (documents) — § mark in the gutter */
.wt-section { display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr); align-items: baseline; }
.wt-section .wt-num { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--accent); }
.wt-section h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: -.005em; margin: 0 0 8px; text-wrap: balance; }
.wt-dashlist { list-style: none; padding: 0; margin: 0; }
.wt-dashlist li { position: relative; padding-left: 26px; margin: 4px 0; }
.wt-dashlist li::before { content: "–"; position: absolute; left: 0; font-family: var(--font-mono); font-weight: 700; color: var(--accent); }

/* Callout (documents): NOTE, and CORRECTION for a dated, kept correction */
.wt-callout { background: var(--surface-raised); padding: 14px 16px; border-radius: var(--radius-none); }
.wt-callout .wt-label { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.wt-callout--correction .wt-label { color: var(--ink); }
.wt-callout--correction .wt-label time { color: var(--ink-muted); font-weight: 400; letter-spacing: .12em; margin-left: 8px; }
.wt-callout--correction del { color: var(--ink-secondary); text-decoration-color: var(--refuted); }

/* Verdict stamp: solid = settled (VERIFIED, REFUTED), hollow = unsettled (UNKNOWN), dashed = needs re-check (STALE) */
.wt-verdict { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-weight: 700; font-size: 11px; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border: var(--hairline) solid transparent; border-radius: var(--radius-stamp); vertical-align: 1px; white-space: nowrap; }
.wt-verdict::before { font-weight: 700; letter-spacing: 0; }
.wt-verdict--verified { background: var(--verified); border-color: var(--verified); color: var(--on-verified); }
.wt-verdict--verified::before { content: "∎"; }
.wt-verdict--refuted { background: var(--refuted); border-color: var(--refuted); color: var(--on-refuted); }
.wt-verdict--refuted::before { content: "×"; }
.wt-verdict--unknown { background: var(--surface); border-color: var(--unknown); color: var(--unknown); }
.wt-verdict--unknown::before { content: "?"; }
.wt-verdict--stale { background: var(--surface); border: var(--hairline) dashed var(--stale); color: var(--stale); }
.wt-verdict--stale::before { content: "~"; }

/* Result block: a verdict with its evidence */
.wt-result { padding: 14px 16px; border-radius: var(--radius-none); display: grid; gap: 8px; }
.wt-result--verified { background: var(--verified-surface); }
.wt-result--refuted { background: var(--refuted-surface); }
.wt-result--unknown { background: var(--unknown-surface); }
.wt-result p { margin: 0; }
.wt-result .wt-io { font-family: var(--font-mono); font-size: 14px; line-height: 1.5; }
.wt-result--refuted .wt-io b { color: var(--refuted); }

/* Example card: one concrete example for the human to confirm */
.wt-example { background: var(--surface-raised); padding: var(--space-4); border-radius: var(--radius-none); display: grid; gap: var(--space-2); }
.wt-deck .wt-example { border: var(--hairline) solid var(--border); }
.wt-example .wt-mode { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.wt-example .wt-io { font-family: var(--font-mono); font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.wt-example .wt-io .wt-arrow { color: var(--accent); }
.wt-example .wt-concern { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-secondary); }
.wt-example .wt-clause { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.wt-example .wt-decision { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.wt-btn { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-none); border: var(--hairline) solid var(--border-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.wt-btn:focus-visible { outline: var(--focus-ring) solid var(--accent); outline-offset: 2px; }
.wt-btn--accept { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.wt-btn--reject { border-color: var(--border-strong); color: var(--ink); }
.wt-decided { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.wt-decided time { color: var(--ink-muted); font-weight: 400; margin-left: 8px; }

/* Code block */
.wt-code { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; background: var(--surface-code); color: var(--ink); padding: 14px 16px; margin: 0; white-space: pre; overflow-x: auto; border: var(--hairline) solid var(--border); border-radius: var(--radius-none); }
.wt-deck .wt-code { border-color: var(--border-strong); padding: 18px; }
.wt-code .wt-code-title { display: block; font-weight: 700; color: var(--highlight); margin-bottom: 8px; }
.wt-code .wt-kw { color: var(--accent); }
.wt-caption { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); margin-top: 8px; }

/* Cards (decks) */
.wt-cards { display: grid; gap: var(--space-3); }
.wt-card { background: var(--surface-raised); border: var(--hairline) solid var(--border); border-radius: var(--radius-none); padding: var(--space-4); }
.wt-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--highlight); margin: 0 0 4px; }
.wt-card p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink); }
.wt-card p.wt-small { font-size: 12px; color: var(--ink-secondary); }
.wt-card .wt-stat { font-weight: 600; letter-spacing: -.02em; font-size: 56px; line-height: 1; color: var(--accent); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.wt-card .wt-stat + h3 { color: var(--ink); }
.wt-takeaway { color: var(--accent); font-size: 17px; margin-top: var(--space-3); }

/* Chips (decks) */
.wt-chip { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--ink); border: var(--hairline) solid var(--border-strong); border-radius: var(--radius-stamp); padding: 5px 12px; }
.wt-chip--accent { font-weight: 700; color: var(--accent); border-color: var(--accent); }

/* Slide shells */
.wt-slide { position: relative; aspect-ratio: 16/9; padding: var(--space-6); box-sizing: border-box; background: var(--surface); color: var(--ink); font-family: var(--font-display); font-optical-sizing: auto; }
.wt-slide h1 { font-weight: 600; font-size: 58px; letter-spacing: -.015em; line-height: 1.08; margin: 0; text-wrap: balance; }
.wt-slide h2 { font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -.01em; margin: 10px 0 0; text-wrap: balance; }
.wt-slide .wt-foot { position: absolute; left: var(--space-6); right: var(--space-6); bottom: 28px; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); }
.wt-poster { background: var(--poster); color: var(--on-poster); }
.wt-poster .wt-foot { color: var(--on-poster-muted); }
.wt-vellum { background: var(--vellum); color: var(--on-vellum); }
.wt-vellum .wt-foot { color: var(--vellum-muted); }
.wt-vellum .wt-takeaway { color: var(--vellum-accent); }

/* Table (vellum slide) */
.wt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wt-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-align: left; font-weight: 700; padding: 6px 8px; color: var(--on-vellum); border-bottom: var(--rule-double) double var(--on-vellum); }
.wt-table td { padding: 6px 8px; border-bottom: var(--hairline) solid var(--border); }
