@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("worksans-var-latin.woff2") format("woff2");
}

:root {
  --ink: #172033;
  --body: #475569;
  --muted: #64748b;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --raised: #eef2f7;
  --line: #d8e0ea;
  --cyan-dark: #0e7490;
  --cyan: #0891b2;
  --safe: #047857;
  --safe-wash: #d1fae5;
  --watch: #a16207;
  --watch-wash: #fef3c7;
  --danger: #b91c1c;
  --danger-wash: #fee2e2;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(58rem 58rem at 8% -8%, rgba(251,207,232,.26), transparent 62%),
    radial-gradient(50rem 50rem at 100% 5%, rgba(221,214,254,.38), transparent 60%),
    var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--cyan-dark); text-underline-offset: .18em; }
a:hover { color: #155e75; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(2.45rem,5vw,4.45rem); line-height: 1.03; letter-spacing: -.05em; }
h2 { margin: 54px 0 14px; font-size: clamp(1.42rem,2.5vw,2rem); line-height: 1.18; letter-spacing: -.03em; }
h3 { margin: 26px 0 8px; font-size: 1.05rem; line-height: 1.3; }
p, li { color: var(--body); }
ul { padding-left: 1.15rem; }
li + li { margin-top: .34rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 10; top: -4rem; left: 1rem; padding: .7rem 1rem; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 2; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(148,163,184,.34); backdrop-filter: blur(12px); }
.nav { width: min(var(--max), calc(100% - 40px)); min-height: 64px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand img { width: auto; height: 29px; }
.back-link { color: var(--body); font-size: .9rem; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.page { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0 92px; }
.eyebrow { margin-bottom: 10px; color: var(--cyan-dark); font-size: .84rem; font-weight: 650; }
.lede { max-width: 700px; margin-bottom: 28px; color: var(--body); font-size: 1.08rem; }
.meta { color: var(--muted); font-size: .88rem; }
.notice { margin: 30px 0 4px; padding: 18px 20px; color: var(--body); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.notice strong { color: var(--ink); }
.notice.medical { border-color: #f6caca; background: #fff9f9; }
.notice.medical strong { color: var(--danger); }
.toc { margin: 34px 0 0; padding: 20px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 16px; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ul { margin: 0; columns: 2; }
.section { scroll-margin-top: 90px; }
.table-wrap { margin: 22px 0 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--ink); background: var(--raised); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
td { color: var(--body); }
.action-list { display: grid; gap: 12px; margin: 24px 0; }
.action { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.action strong { display: block; color: var(--ink); }
.action p { margin: 3px 0 0; }
.action.danger { border-color: #f6caca; }
.action.danger strong { color: var(--danger); }
.callout { margin: 24px 0; padding: 18px 20px; background: var(--safe-wash); border: 1px solid #a7e8cf; border-radius: 14px; }
.callout strong { color: #065f46; }
.footer { border-top: 1px solid var(--line); background: #eef2f7; }
.footer-inner { width: min(var(--max), calc(100% - 40px)); margin: auto; padding: 34px 0 48px; display: flex; align-items: start; justify-content: space-between; gap: 28px; }
.footer-copy { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 16px; font-size: .88rem; }

@media (max-width: 640px) {
  .nav, .page, .footer-inner { width: min(100% - 32px, var(--max)); }
  .page { padding: 54px 0 70px; }
  .toc ul { columns: 1; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: start; }
}

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