/* HealthRaw site: system fonts only, no external requests. Light and dark via prefers-color-scheme. */
:root {
  --bg: #ffffff;
  --bg-alt: #fff5f6;
  --text: #3A3A3C;
  --muted: #4a5360;
  --accent: #E8102A;
  --accent-text: #ffffff;
  --border: #d5dbe1;
  --callout: #fff0f2;
  --radius: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111417;
    --bg-alt: #1a1f24;
    --text: #e9edf1;
    --muted: #aab4bf;
    --accent: #FF5A6E;
    --accent-text: #ffffff;
    --border: #2d353d;
    --callout: #322026;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
code.placeholder { background: #fff3c4; color: #4d3800; padding: 0 0.25em; border-radius: 4px; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-text); padding: 0.5rem 1rem; }
.skip:focus { left: 0.5rem; z-index: 10; }

.site-header { border-bottom: 1px solid var(--border); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.site-header ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin: 0; padding: 0; }
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

main { display: block; }
main.prose { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
main.home section { padding: 3rem 0; }
main.home section:nth-of-type(even) { background: var(--bg-alt); }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.6rem; line-height: 1.25; margin: 2.2rem 0 0.8rem; }
main.home h2 { margin-top: 0; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
p, li { max-width: 46rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.small { font-size: 0.85rem; color: var(--muted); }

.hero { padding: 4rem 0 3rem; }
.cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.badge-placeholder {
  display: inline-block; padding: 0.7rem 1.2rem; border: 2px dashed var(--border); border-radius: var(--radius);
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
}
.button { display: inline-block; padding: 0.7rem 1.2rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none; }

.steps, .cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; list-style: none; }
.steps li, .card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.card h3 { margin-top: 0; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); }
thead th { border-bottom: 2px solid var(--border); }
td.yes { font-weight: 600; }

.callout { background: var(--callout); border-radius: var(--radius); padding: 0.4rem 1.25rem; margin: 1.5rem 0; }
.callout ul { padding-left: 1.2rem; }

details { border-bottom: 1px solid var(--border); padding: 0.8rem 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.6rem 0 0; }

.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0 2.5rem; color: var(--muted); }
.site-footer p { margin: 0.4rem 0; }

@media (prefers-color-scheme: dark) {
  code.placeholder { background: #4d3d00; color: #ffe9a3; }
}

.brand { display: inline-flex; gap: 0.6rem; align-items: center; }
.brand img { border-radius: 8px; background: white; }
.hero { background: linear-gradient(135deg, var(--bg) 40%, var(--bg-alt)); }
.hero h1 { max-width: 50rem; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.04em; }
.store-status { padding: 0.65rem 1rem; background: var(--text); color: var(--bg); border-radius: var(--radius); font-weight: 600; }
@media (max-width: 540px) { .site-header ul { gap: 0.35rem 0.9rem; } .header-row { gap: 0.75rem; } }
