:root {
  color-scheme: light;
  --ink: #12211d;
  --muted: #5f6f69;
  --paper: #f5f7f1;
  --card: #ffffff;
  --line: #d9e1db;
  --green: #146c4a;
  --green-dark: #0d4e35;
  --mint: #dff4e9;
  --amber: #9a5b0c;
  --amber-bg: #fff5dc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
h1, h2, h3, .symptom-card, .breadcrumbs, .related-links a { overflow-wrap: anywhere; min-width: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
:focus-visible { outline: 3px solid #007cc2; outline-offset: 4px; }
.skip-link { position: absolute; left: 12px; top: -100px; padding: 12px; background: white; z-index: 10; }
.skip-link:focus { top: 8px; }
.brand-dot { color: var(--green); }
.breadcrumbs { padding-top: 28px; color: var(--muted); font-size: .85rem; }
.secondary-link { margin-left: 18px; }
.test-card label:not(.check-option) { display: block; margin-top: 16px; font-weight: 700; }
.test-card input:not([type=checkbox]), .test-card select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: white; color: var(--ink); }
.check-option { display: flex; gap: 10px; padding: 15px 0; align-items: flex-start; }
.check-option input { margin-top: 6px; }
.text-button { border: 0; color: var(--green); background: transparent; font: inherit; cursor: pointer; text-decoration: underline; }
.site-footer { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
#run-result, #diagnosis-app { display: grid; gap: 18px; margin-top: 24px; }
#run-result .result-section { box-shadow: none; padding: 18px; }
.observation { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.observation table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.observation th, .observation td { text-align: left; padding: 7px; border-bottom: 1px solid var(--line); }
.observation caption { text-align: left; padding: 10px 0; color: var(--muted); }
.result-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.result-controls .secondary { margin-top: 0; }
.result-lead { font-size: 1.4rem; line-height: 1.4; font-weight: 700; }
progress { width: 100%; height: 10px; accent-color: var(--green); }
.content-section h2:not(:first-child) { margin-top: 36px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }
.site-header { height: 68px; padding: 0 max(16px, calc((100% - 1040px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(245,247,241,.92); }
.site-footer { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.status-pill, .source-tag, .confidence { display: inline-flex; width: fit-content; border-radius: 999px; padding: 4px 9px; font-size: .76rem; font-weight: 750; background: var(--mint); color: var(--green-dark); }
.hero { padding: 84px 0; }
.intro { padding: 66px 0 30px; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.25rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.055em; }
h2 { margin-top: 0; letter-spacing: -.025em; }
.lede { max-width: 700px; color: var(--muted); font-size: 1.18rem; }
.symptom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.symptom-card { min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); text-decoration: none; }
.symptom-card span { display: block; margin-bottom: 22px; color: var(--green); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.symptom-card strong { display: block; font-size: 1.3rem; line-height: 1.2; }
.symptom-card p { color: var(--muted); }
.symptom-card.active:hover { border-color: var(--green); transform: translateY(-2px); }
.symptom-card.pending { opacity: .56; }
.test-layout, .diagnosis-layout { padding-bottom: 80px; }
.test-card, .question-card, .result-section { max-width: 760px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: 0 14px 40px rgba(26, 55, 44, .05); }
.primary-button, .choice-button, .action-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--green); color: white; font: inherit; font-weight: 760; text-decoration: none; cursor: pointer; }
.primary-button:hover, .choice-button:hover, .action-button:hover { background: var(--green-dark); }
.primary-button:disabled { cursor: wait; opacity: .56; }
.primary-button.secondary { margin-top: 18px; background: var(--ink); }
.boundary-note { max-width: 760px; padding: 16px 18px; border-left: 4px solid var(--amber); border-radius: 8px; background: var(--amber-bg); color: #694211; }
.progress { color: var(--muted); }
.result-card { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.metric { padding: 14px; border-radius: 12px; background: var(--paper); }
.metric span, .metric strong { display: block; }
.metric span { color: var(--muted); font-size: .8rem; }
.metric strong { margin-top: 4px; }
.content-section { max-width: 760px; padding: 50px 0; }
.content-section details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.content-section summary { cursor: pointer; font-weight: 750; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.related-links a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; }
.hero-test-trigger { margin: 10px 0 20px; }
.diagnosis-layout { padding-top: 54px; }
.diagnosis-intro { max-width: 760px; margin-bottom: 30px; }
.diagnosis-layout #diagnosis-app { display: grid; gap: 18px; max-width: 760px; }
.diagnosis-layout h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); }
.muted { color: var(--muted); }
.choices { display: grid; gap: 10px; margin-top: 22px; }
.choice-button { justify-content: flex-start; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.choice-button:hover { color: white; border-color: var(--green-dark); }
.evidence-list { padding-left: 20px; }
.evidence-list li { margin: 12px 0; }
.source-tag { margin-right: 6px; }
.area-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.area-card:last-child { border-bottom: 0; }
.confidence.weak { background: var(--amber-bg); color: var(--amber); }
.confidence.unknown { background: #edf0ee; color: var(--muted); }
.actions { display: grid; gap: 12px; }
.action-button { justify-content: flex-start; text-align: left; }
.website-form label { display: block; margin-bottom: 8px; font-weight: 760; }
.input-row { display: flex; gap: 10px; }
.input-row input { min-width: 0; flex: 1; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font: inherit; }
.input-row input:focus { outline: 3px solid var(--mint); border-color: var(--green); }
.ad-slot { display: none; width: 100%; min-height: 250px; margin-top: 28px; contain: layout; }
.ad-slot[data-enabled="true"] { display: grid; place-items: center; }

@media (max-width: 720px) {
  .secondary-link { display: inline-block; margin: 8px 0 0; }
  .hero { padding: 54px 0; }
  .symptom-grid, .metrics { grid-template-columns: 1fr; }
  .test-card, .question-card, .result-section { padding: 22px; border-radius: 16px; }
  .area-card { align-items: flex-start; flex-direction: column; }
  .input-row { align-items: stretch; flex-direction: column; }
}
