:root {
  --navy: #1e293b;
  --med: #0284c7;
  --alert: #dc2626;
  --paper: #f8fafc;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.6;
}

html body h1,
html body h2,
html body h3,
html body h4,
html body .font-display {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  nav[data-nav] {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    flex-direction: column;
    gap: 0.75rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1rem 1.25rem;
    box-shadow: 0 12px 24px rgba(30, 41, 59, 0.08);
  }

  nav[data-nav].is-open { display: flex; }
}

@media (min-width: 768px) {
  nav[data-nav] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
  }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: #fff;
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

.skip:focus { top: 0.5rem; }

:focus-visible {
  outline: 2px solid var(--med);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

[data-checker],
#content section[id] { scroll-margin-top: 8rem; }

.urgent-box {
  border-left: 4px solid var(--alert);
  background: #fef2f2;
  color: #7f1d1d;
}

.rogue-box {
  border-left: 4px solid #b45309;
  background: #fffbeb;
  color: #78350f;
}

.rich a {
  color: #0369a1;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich ul, .rich ol { padding-left: 1.25rem; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li + li { margin-top: 0.35rem; }

.result-alert { border-color: #dc2626; background: #fef2f2; }
.result-urgent { border-color: #d97706; background: #fffbeb; }
.result-info { border-color: #0284c7; background: #f0f9ff; }
.result-calm { border-color: #cbd5e1; background: #fff; }

details.faq {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

details.faq + details.faq { margin-top: 0.75rem; }

details.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 1rem 1.25rem;
  list-style: none;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "+";
  float: right;
  color: #0284c7;
  font-weight: 700;
}

details.faq[open] summary {
  border-bottom: 1px solid #e2e8f0;
}

details.faq[open] summary::after { content: "–"; }

details.faq .answer { padding: 1rem 1.25rem 1.25rem; }

.checker-option {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
}

.checker-option:hover { border-color: #0284c7; background: #f0f9ff; }

.filter-btn {
  background: #fff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.filter-on {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  a { text-decoration: underline; }
}
