 :root {
  color-scheme: light;
  --bg: #f3f6fb;
  --card: #ffffff;
  --ink: #172033;
  --muted: #5b657a;
  --line: #dbe3f1;
  --brand: #3057d5;
  --brand-2: #6f8cff;
  --good: #107947;
  --warn: #b85f00;
  --danger: #b42318;
  --shadow: 0 14px 40px rgba(28, 42, 87, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #eef3ff, var(--bg) 46%);
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-shell { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-header { margin-bottom: 24px; }
.site-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.site-nav, .footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.card {
  background: var(--card);
  border: 1px solid rgba(219, 227, 241, 0.9);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.hero { margin-bottom: 24px; }
.hero-grid, .results-grid { display: grid; gap: 20px; }
.hero-grid { grid-template-columns: 1.15fr 0.95fr; }
.results-grid { grid-template-columns: 1.05fr 0.95fr; margin-bottom: 20px; }
.wide-grid, .checks-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-span { grid-column: 1 / -1; }
.eyebrow {
  display: inline-block; margin-bottom: 10px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand);
  font-weight: 700;
}
h1, h2 { line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.hero-points, .facts, .summary-list, .source-list { padding-left: 20px; margin: 16px 0 0; }
.hero-points li, .facts li, .summary-list li, .source-list li { margin-bottom: 10px; }
.alert-note, .mini-note, .helper-box {
  border: 1px solid #d6dff8; background: #f6f8ff; border-radius: 18px; padding: 14px 16px;
}
.compact-helper p { margin: 6px 0 0; color: var(--muted); }
.inset { background: linear-gradient(180deg, #fcfdff 0%, #f5f8ff 100%); }
.double-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; margin-bottom: 16px; }
label span { font-size: 0.95rem; }
select, input[type="text"], button {
  font: inherit; border-radius: 14px; border: 1px solid var(--line); padding: 12px 14px; background: #fff; color: var(--ink);
}
input[type="text"] { letter-spacing: 0.02em; text-transform: uppercase; }
button {
  border: none; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; cursor: pointer; width: 100%;
  box-shadow: 0 10px 24px rgba(48, 87, 213, 0.22);
}
button:hover { filter: brightness(1.03); }
.fine-print { margin: 12px 0 0; color: var(--muted); font-size: 0.92rem; }
.more-space { margin-top: 16px; }
.score-line { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.result-title { font-size: 1.45rem; font-weight: 800; }
.outof, .subhead, .summary, .prose p, .prose li, .detail-line { color: var(--muted); }
.detail-line { margin-top: 14px; }
.pill {
  white-space: nowrap; border-radius: 999px; padding: 8px 12px; font-size: 0.84rem; font-weight: 700; background: #edf2ff; color: var(--brand);
}
.pill.good { background: #e9f8f0; color: var(--good); }
.pill.unknown { background: #fff4e5; color: var(--warn); }
.pill.warn { background: #fdeceb; color: var(--danger); }
.check-top { margin-bottom: 8px; }
.warning-list li { color: #9a3412; }
.prose { max-width: 80ch; }
.section-heading { margin-bottom: 14px; }
.status-banner.warn { border-color: #f6c28b; background: #fff8ef; margin-bottom: 20px; }
.chip-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fbfcff;
}
.mini-card strong {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .hero-grid, .results-grid, .checks-grid, .wide-grid, .double-grid { grid-template-columns: 1fr; }
  .site-header, .site-footer { flex-direction: column; align-items: flex-start; }
}
