/* ==========================================================================
   kurkuma.sk — design system
   ========================================================================== */

:root {
  --bg: #fffdf9;
  --bg-alt: #fdf6ea;
  --surface: #ffffff;
  --surface-2: #faf3e6;
  --ink: #1b1712;
  --ink-2: #453d33;
  --muted: #6f6558;
  --line: #e9dfcd;
  --line-strong: #d9c9ac;
  --accent: #a75c08;
  --accent-2: #cf8412;
  --accent-soft: #fdf0d8;
  --accent-ink: #6d3b02;
  --ok: #1f6b4a;
  --ok-soft: #e6f4ec;
  --warn: #9a4a08;
  --warn-soft: #fdefe2;
  --info: #1c5570;
  --info-soft: #e7f1f7;
  --shadow-sm: 0 1px 2px rgba(48, 33, 10, .06), 0 2px 6px rgba(48, 33, 10, .04);
  --shadow: 0 2px 6px rgba(48, 33, 10, .06), 0 12px 32px rgba(48, 33, 10, .07);
  --shadow-lg: 0 4px 12px rgba(48, 33, 10, .08), 0 28px 64px rgba(48, 33, 10, .12);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --bg: #12100c;
  --bg-alt: #171410;
  --surface: #1c1915;
  --surface-2: #221e18;
  --ink: #f5f0e8;
  --ink-2: #ddd4c7;
  --muted: #a69c8d;
  --line: #2e2921;
  --line-strong: #423a2e;
  --accent: #e8a13c;
  --accent-2: #f2b558;
  --accent-soft: #2b2114;
  --accent-ink: #f7d49a;
  --ok: #6fd3a3;
  --ok-soft: #16281f;
  --warn: #f0a765;
  --warn-soft: #2a1d12;
  --info: #7fc0e3;
  --info-soft: #14232c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 2px 8px rgba(0, 0, 0, .45), 0 16px 40px rgba(0, 0, 0, .35);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, .5), 0 32px 72px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.45rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.42rem); }
h4 { font-size: 1.06rem; font-family: var(--font-body); font-weight: 650; letter-spacing: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

strong { font-weight: 650; color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.wrap-narrow { max-width: var(--wrap-narrow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name { font-family: var(--font-display); font-weight: 650; font-size: 1.22rem; letter-spacing: -.02em; }
.brand-tag {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); border-left: 1px solid var(--line-strong);
  padding-left: 10px; margin-left: 2px; font-weight: 600;
}

.nav-main { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 13px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 520; font-size: .95rem;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav-list a:hover { background: var(--surface-2); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.header-tools { display: flex; align-items: center; gap: 6px; margin-left: 8px; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  border-radius: var(--r-sm); cursor: pointer; padding: 0;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }

.lang-switch { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 11px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-weight: 600; font-size: .85rem; cursor: pointer;
  letter-spacing: .02em;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.lang-current:hover { border-color: var(--line-strong); color: var(--ink); }
.lang-current svg { width: 14px; height: 14px; opacity: .6; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 190px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 6px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.lang-switch[data-open="true"] .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 520;
}
.lang-menu a:hover { background: var(--surface-2); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--accent); font-weight: 640; }
.lang-menu .code { font-size: .74rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: .04em; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-main {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px clamp(18px, 4vw, 40px) 22px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav-main[data-open="true"] { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 12px 14px; font-size: 1.02rem; }
  .brand-tag { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(48px, 7vw, 96px);
}
.hero-copy { max-width: 40rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 13px; border-radius: var(--r-pill); margin-bottom: 20px;
}
.kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin-bottom: .4em; }
.hero-dek { font-size: clamp(1.05rem, .98rem + .35vw, 1.24rem); color: var(--ink-2); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 620; font-size: .96rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-2); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 17px; height: 17px; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: -14px; bottom: 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 11px; max-width: 260px;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-badge span { font-size: .82rem; line-height: 1.4; color: var(--ink-2); font-weight: 560; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-badge { left: 12px; bottom: 12px; }
}

/* ---------- stats ---------- */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin-top: clamp(28px, 4vw, 44px);
}
.stat { background: var(--surface); padding: 22px 24px; }
.stat .value { font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 650; line-height: 1; color: var(--accent); }
.stat .label { font-size: .84rem; color: var(--muted); margin-top: 7px; letter-spacing: .01em; }
@media (max-width: 640px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(52px, 7vw, 92px); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; }
.eyebrow {
  font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 12px;
}

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-tag {
  position: absolute; left: 12px; top: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--accent-ink); font-size: .7rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.card-body { padding: 20px 21px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .45em; font-size: 1.16rem; line-height: 1.28; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--muted); font-size: .93rem; line-height: 1.6; margin-bottom: 14px; }
.card-meta {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  font-size: .78rem; color: var(--muted); padding-top: 13px; border-top: 1px solid var(--line);
}
.card-meta .dotsep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.card-plain { padding: 24px; }
.card-plain h3 { font-size: 1.05rem; }
.card-plain .icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.card-plain .icon svg { width: 19px; height: 19px; }

.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-sm); padding: 20px 22px;
}
.fact h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 650; margin-bottom: .45em; }
.fact p { font-size: .91rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* ---------- method band ---------- */
.method-band {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center;
}
.method-band h2 { margin-bottom: .4em; }
.method-band p { color: var(--ink-2); }
@media (max-width: 760px) { .method-band { grid-template-columns: 1fr; } }

/* ---------- article index ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.filter-label { font-size: .82rem; font-weight: 650; color: var(--muted); margin-right: 4px; }
.chip {
  padding: 7px 15px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: .87rem; font-weight: 560;
  cursor: pointer; font-family: inherit; transition: all .16s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-spacer { margin-left: auto; }
.select {
  padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: .87rem; font-family: inherit;
  cursor: pointer;
}
.empty-state { padding: 56px 0; text-align: center; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- article page ---------- */
.article-hero { padding-block: clamp(34px, 5vw, 60px) clamp(24px, 3vw, 36px); }
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; opacity: .5; }
.article-hero h1 { max-width: 22ch; }
.article-dek { font-size: clamp(1.06rem, 1rem + .4vw, 1.22rem); color: var(--ink-2); max-width: 46rem; margin-bottom: 22px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  font-size: .78rem; font-weight: 560;
}
.pill-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); font-weight: 650; }

.article-figure { margin: 0 0 clamp(28px, 4vw, 44px); }
.article-figure img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.article-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 11px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(30px, 4vw, 58px); align-items: start; }
@media (max-width: 1040px) { .article-layout { grid-template-columns: 1fr; } }

.article-body { max-width: 40rem; font-size: 1.045rem; }
.article-body h2 { margin-top: 1.9em; margin-bottom: .5em; scroll-margin-top: calc(var(--header-h) + 20px); }
.article-body h2:first-child { margin-top: 0; }
.article-body ul, .article-body ol { margin: 0 0 1.25em; padding-left: 1.25em; }
.article-body li { margin-bottom: .5em; }
.article-body li::marker { color: var(--accent); }

.article-body a { font-weight: 550; }

.takeaways {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--r); padding: 24px 26px; margin-bottom: 34px;
}
.takeaways h2 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 14px;
}
.takeaways ul { margin: 0; padding-left: 1.15em; }
.takeaways li { margin-bottom: .6em; font-size: .96rem; line-height: 1.6; }
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::marker { color: var(--accent); font-weight: 700; }

.callout {
  border-radius: var(--r); padding: 20px 22px; margin: 26px 0;
  border: 1px solid var(--line); background: var(--surface-2);
  border-left: 3px solid var(--muted);
}
.callout .co-title {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 680; font-size: .95rem; margin-bottom: 8px;
}
.callout .co-title svg { width: 17px; height: 17px; flex-shrink: 0; }
.callout p { font-size: .94rem; line-height: 1.62; margin: 0; color: var(--ink-2); }
.callout-evidence { background: var(--info-soft); border-left-color: var(--info); }
.callout-evidence .co-title { color: var(--info); }
.callout-warning { background: var(--warn-soft); border-left-color: var(--warn); }
.callout-warning .co-title { color: var(--warn); }
.callout-tip { background: var(--ok-soft); border-left-color: var(--ok); }
.callout-tip .co-title { color: var(--ok); }
.callout-note { background: var(--surface-2); border-left-color: var(--muted); }
.callout-note .co-title { color: var(--ink-2); }

.callout-evidence .co-title::after {
  content: ""; margin-left: auto; font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; opacity: .7;
}

.faq-item {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 15px 18px; font-weight: 600; font-size: .98rem;
  list-style: none; display: flex; align-items: center; gap: 12px; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 10px; height: 10px; flex-shrink: 0;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s var(--ease); margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 15px 18px 18px; font-size: .94rem; color: var(--ink-2); line-height: 1.65; }
.faq-answer p:last-child { margin-bottom: 0; }

.sources-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.source-item {
  display: flex; gap: 13px; padding: 15px 17px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.source-item:hover { border-color: var(--line-strong); transform: translateX(2px); }
.source-num {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-size: .76rem; font-weight: 700;
}
.source-item a { font-weight: 570; font-size: .93rem; text-decoration: none; display: block; line-height: 1.45; }
.source-item a:hover { text-decoration: underline; }
.source-org { font-size: .79rem; color: var(--muted); margin-top: 4px; display: block; }

.medical-note {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent);
  border-radius: var(--r); padding: 17px 19px; margin: 30px 0; font-size: .9rem; color: var(--ink-2); line-height: 1.6;
}
.medical-note svg { width: 19px; height: 19px; color: var(--warn); flex-shrink: 0; margin-top: 2px; }

/* ---------- sidebar ---------- */
.sidebar { position: sticky; top: calc(var(--header-h) + 22px); }
.sidebar-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 21px; margin-bottom: 18px; }
.sidebar-box h2 { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 13px; }
.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin-bottom: 2px; }
.toc a {
  display: block; padding: 7px 10px 7px 12px; border-left: 2px solid var(--line);
  color: var(--muted); text-decoration: none; font-size: .875rem; line-height: 1.45;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: .84rem; font-weight: 560;
  cursor: pointer; font-family: inherit; text-decoration: none;
  transition: all .16s var(--ease);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn svg { width: 15px; height: 15px; }

/* ---------- article nav ---------- */
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: clamp(38px, 5vw, 60px); padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.anav-card {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); text-decoration: none; display: block;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.anav-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.anav-card .dir { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.anav-card h3 { font-size: 1rem; margin: 0; line-height: 1.35; color: var(--ink); }
.anav-next { text-align: right; }
@media (max-width: 640px) { .article-nav { grid-template-columns: 1fr; } .anav-next { text-align: left; } }

/* ---------- page hero (inner) ---------- */
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 24ch; }
.page-head .lead { font-size: clamp(1.03rem, .98rem + .35vw, 1.18rem); color: var(--ink-2); max-width: 44rem; }

/* ---------- about / contact ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 4vw, 54px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; }
.contact-card h2 { font-size: 1.1rem; margin-bottom: .5em; }
.contact-card p { font-size: .93rem; color: var(--muted); }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  font-family: var(--font-display); font-size: 1.24rem; font-weight: 600;
  text-decoration: none; color: var(--accent); word-break: break-all;
}
.contact-email svg { width: 19px; height: 19px; flex-shrink: 0; }
.operator-list { list-style: none; margin: 14px 0 0; padding: 0; font-size: .92rem; color: var(--muted); }
.operator-list li { padding: 4px 0; }

/* ---------- newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--accent) 0%, #8a4a06 100%);
  border-radius: var(--r-lg); padding: clamp(30px, 4vw, 52px);
  color: #fff; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.newsletter h2 { color: #fff; position: relative; }
.newsletter p { color: rgba(255, 255, 255, .88); position: relative; max-width: 34rem; }
.newsletter-form { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; position: relative; }
.newsletter-form input {
  flex: 1; min-width: 220px; padding: 13px 18px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .14);
  color: #fff; font-size: .96rem; font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .65); }
.newsletter-form input:focus { outline-color: #fff; }
.newsletter-form button {
  padding: 13px 26px; border-radius: var(--r-pill); border: 0;
  background: #fff; color: var(--accent); font-weight: 650; font-size: .96rem;
  cursor: pointer; font-family: inherit; transition: transform .16s var(--ease);
}
.newsletter-form button:hover { transform: translateY(-1px); }
.newsletter-note { font-size: .82rem; color: rgba(255, 255, 255, .72); margin-top: 13px; position: relative; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px) 30px; margin-top: clamp(50px, 7vw, 90px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(26px, 4vw, 54px); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--muted); font-size: .91rem; max-width: 26rem; margin-top: 12px; }
.footer-col h2 { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: .91rem; }
.footer-col a:hover { color: var(--accent); }
.footer-disclaimer {
  margin-top: clamp(30px, 4vw, 46px); padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .84rem; color: var(--muted); max-width: 58rem;
}
.footer-base {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: .83rem; color: var(--muted);
}
.footer-op { display: grid; gap: 2px; }

/* ---------- search ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 150; display: none;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: clamp(60px, 12vh, 130px) 20px 20px;
}
.search-overlay[data-open="true"] { display: block; }
.search-panel {
  max-width: 640px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; animation: pop .22s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-12px) scale(.985); } }
.search-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-head svg { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; }
.search-head input {
  flex: 1; border: 0; background: transparent; font-size: 1.08rem;
  font-family: inherit; color: var(--ink); padding: 6px 0;
}
.search-head input:focus { outline: none; }
.search-head input::placeholder { color: var(--muted); }
.search-results { max-height: min(56vh, 520px); overflow-y: auto; padding: 8px; }
.search-result { display: block; padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; color: inherit; }
.search-result:hover, .search-result:focus-visible { background: var(--surface-2); }
.search-result .sr-title { font-weight: 620; font-size: .97rem; color: var(--ink); margin-bottom: 3px; }
.search-result .sr-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.search-result mark { background: var(--accent-soft); color: var(--accent-ink); border-radius: 3px; padding: 0 2px; }
.search-foot { padding: 11px 20px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); display: flex; gap: 16px; }
.search-empty { padding: 34px 20px; text-align: center; color: var(--muted); font-size: .92rem; }

/* ---------- progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2.5px; z-index: 120;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  width: 0; transition: width .08s linear;
}

/* ---------- misc ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.notfound { text-align: center; padding-block: clamp(70px, 12vw, 140px); }
.notfound h1 { font-size: clamp(3.4rem, 2rem + 8vw, 6.5rem); color: var(--accent); margin-bottom: .1em; line-height: 1; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 90px);
  background: var(--ink); color: var(--bg); padding: 11px 22px; border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-lg);
  transition: transform .3s var(--ease); z-index: 160; pointer-events: none;
}
.toast[data-show="true"] { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}



/* ---------- template helpers ---------- */
.all-articles-cta { margin-top: 32px; }
.article-section { margin-top: 44px; }
.section-lead { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.related-list a {
  text-decoration: none; color: var(--ink-2); font-size: .9rem;
  font-weight: 550; line-height: 1.4; display: block;
}
.related-list a:hover { color: var(--accent); }
.footer-note { font-size: .91rem; color: var(--muted); margin: 0; }
.contact-sub { margin-top: 26px; }
.operator-foot { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.notfound p { color: var(--muted); max-width: 34rem; margin-inline: auto; }
.notfound-cta { margin-top: 26px; }

@media print {
  .site-header, .site-footer, .sidebar, .article-nav, .share-row, .search-overlay, .progress { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .article-layout { grid-template-columns: 1fr; }
}
