/* coroner.ai — LIGHT THEME (white background, dark lettering). DEFAULT since 2026-10-22 (Joe).
   Applied via html.theme-light + html.light-N set by the head script.
   Default text option: light-2 (charcoal). ?theme=light-1 (pure black) / light-3 (newspaper) / dark. */

html.theme-light { background: #ffffff; }

html.theme-light body {
  --bg: #ffffff;
  --panel: #e8ecf0;
  --panel-solid: #e8ecf0;
  --line: rgba(10, 20, 30, 0.18);
  --line-strong: rgba(10, 20, 30, 0.32);
  --accent: #0a8f80;
  --accent2: #0057b8;
  --confirmed: #0f8a4d;
  --reported: #0057b8;
  --disputed: #b86e00;
  --unknown: #6b7280;
  --danger: #d61f1f;
  background: #ffffff;
}

/* kill the dark HUD layers */
html.theme-light body::before, html.theme-light body::after { display: none; }

html.theme-light .site-header { background: rgba(255, 255, 255, 0.88); border-bottom: 1px solid var(--line); }
html.theme-light .status-strip { background: #f6f8fa; }
html.theme-light .site-footer { background: #f6f8fa; }
html.theme-light .verdict-box { background: #e8ecf0; }
html.theme-light .case-card { background: #e8ecf0; box-shadow: 0 1px 6px rgba(10, 20, 30, 0.1); }
html.theme-light .case-card:hover { box-shadow: 0 3px 14px rgba(10, 20, 30, 0.14); }

/* dark hardcoded panels -> light */
html.theme-light .prompt-block { background: #dfe4ea; }
html.theme-light .file-meta { background: #dfe4ea; }
html.theme-light .floor-derivation { background: #e8ecf0; }

/* headings: solid dark instead of the white->teal gradient */
html.theme-light h1 {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--heading);
}
html.theme-light h2, html.theme-light h3, html.theme-light .case-card h3 { color: var(--heading); }

/* pop colors re-tuned for white: darker, no neon glow */
html.theme-light .confidence-pop, html.theme-light .case-facts .confidence-pop, html.theme-light .box-label.confidence-pop {
  color: #c4008f !important; text-shadow: none;
}
html.theme-light .state-pop { color: #0057b8 !important; text-shadow: none; }
html.theme-light .manner-pop, html.theme-light .case-facts .manner-pop, html.theme-light .ruling-box .manner.manner-pop {
  color: #d61f1f !important; text-shadow: none;
}
/* the % matches the subject-name color (per the dark-mode convention) */
html.theme-light .pct-pop, html.theme-light .case-facts .pct-pop, html.theme-light .verdict-cert .pct-pop, html.theme-light .prob-num.pct-pop {
  color: var(--heading) !important; text-shadow: none;
}
html.theme-light .tier-pop.tier-exposed, html.theme-light .conf-verdict.tier-exposed, html.theme-light .verdict-word.tier-exposed { color: #d61f1f !important; text-shadow: none; }
html.theme-light .tier-pop.tier-questionable, html.theme-light .conf-verdict.tier-questionable, html.theme-light .verdict-word.tier-questionable { color: #b86e00 !important; text-shadow: none; }
html.theme-light .tier-pop.tier-confirmed, html.theme-light .conf-verdict.tier-confirmed, html.theme-light .verdict-word.tier-confirmed { color: #0f8a4d !important; text-shadow: none; }
html.theme-light .termline { text-shadow: none; }
html.theme-light .verdict-word, html.theme-light .conf-verdict { text-shadow: none; }

/* gold accents -> dark amber on white */
html.theme-light .thought-chip { color: #8a5a00; border-color: rgba(184, 110, 0, 0.45); background: rgba(184, 110, 0, 0.08); }
html.theme-light .thought-row .expert-quote { border-left-color: rgba(184, 110, 0, 0.5); }

/* soften neon glows into subtle light-mode shadows */
html.theme-light .coh-chip-impossible { box-shadow: none; }
html.theme-light .status-disputed { box-shadow: none; }
html.theme-light .verdict-deny { box-shadow: 0 0 0 1px rgba(214, 31, 31, 0.25); }
html.theme-light .verdict-confirm { box-shadow: 0 0 0 1px rgba(15, 138, 77, 0.22); }
html.theme-light .verdict-box.verdict-exposed { border-color: rgba(214, 31, 31, 0.45); box-shadow: 0 2px 14px rgba(214, 31, 31, 0.1); }
html.theme-light .verdict-box.verdict-questionable { border-color: rgba(184, 110, 0, 0.45); box-shadow: 0 2px 14px rgba(184, 110, 0, 0.08); }

/* ===== TEXT OPTION 1 — PURE BLACK ===== */
html.light-1 body { --ink: #000000; --muted: #2e2e2e; --faint: #4d4d4d; --heading: #000000; color: #000000; }

/* ===== TEXT OPTION 2 — CHARCOAL (DEFAULT) ===== */
html.light-2 body { --ink: #1f2933; --muted: #52616d; --faint: #7b8794; --heading: #0b1220; color: #1f2933; }

/* ===== TEXT OPTION 3 — NEWSPAPER ===== */
html.light-3 body { --ink: #333333; --muted: #666666; --faint: #8a8a8a; --heading: #000000; color: #333333; }
