@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-regular.woff2') format('woff2');
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-medium.woff2') format('woff2');
  font-style: normal; font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-semibold.woff2') format('woff2');
  font-style: normal; font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('/assets/fonts/lora-bold.woff2') format('woff2');
  font-style: normal; font-weight: 700; font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #1D2939;
  --muted: #475467;
  --secondary: #0E7A6B;
  --secondary-light: rgba(14, 122, 107, 0.08);
  --bg: #FCFBFA;
  --surface: #FFFFFF;
  --border: #E5E2DE;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg); color: var(--primary);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}

/* Nav */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 251, 250, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 12px;
}
.nav-logo { font-size: 20px; font-weight: 600; color: var(--primary); text-decoration: none; }
.nav-spacer { flex: 1; }
.nav-link {
  font-size: 14px; color: var(--muted); text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
}
.nav-link:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff; text-decoration: none;
  padding: 10px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
}
.nav-cta:hover { opacity: 0.85; }

/* Layout */
.wrap { max-width: 1280px; margin: 0 auto; padding: 96px 24px 64px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--secondary); }
.cp-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px;
  align-items: start;
}
@media (max-width: 1020px) {
  .cp-grid { grid-template-columns: 1fr; }
  aside { position: static !important; }
}
aside { position: sticky; top: 88px; }

h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; }
h2 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.lead { font-size: 16px; color: var(--muted); max-width: 720px; margin-bottom: 24px; }
.muted { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px; margin-bottom: 20px;
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font-size: 12px; font-weight: 600; color: var(--secondary);
  background: var(--secondary-light); padding: 4px 12px; border-radius: 20px;
}
.chip-rx { color: #B91C1C; background: rgba(185, 28, 28, 0.07); }

/* Chart */
.chart-card h2 { margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 12px; }
.legend-item { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.legend-item em { opacity: 0.8; }
.legend-swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-caption { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.55; }
.dose-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.dose-note-alt { display: none; }

/* CSS-only variant tabs */
.tabs { margin-top: 4px; }
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.tab-label {
  display: inline-block; font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 7px 16px; border: 1px solid var(--border); border-radius: 10px;
  margin: 0 8px 12px 0; cursor: pointer; user-select: none;
  background: var(--bg); transition: color 0.15s, border-color 0.15s;
}
.tab-label:hover { border-color: var(--muted); }
.tab-panel { display: none; }
#v-std:checked ~ .tab-label[for="v-std"],
#v-load:checked ~ .tab-label[for="v-load"] {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
#v-std:checked ~ .panel-std { display: block; }
#v-load:checked ~ .panel-load { display: block; }
#v-std:checked ~ .dose-note { display: block; }
#v-std:checked ~ .dose-note-alt { display: none; }
#v-load:checked ~ .dose-note { display: none; }
#v-load:checked ~ .dose-note-alt { display: block; }

/* Facts table */
.facts { display: grid; grid-template-columns: 1fr; }
.fact {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px;
}
.fact:last-child { border-bottom: none; }
.fact dt { color: var(--muted); font-weight: 500; flex-shrink: 0; }
.fact dd { text-align: right; }

/* Interactions */
.interactions { list-style: none; }
.interactions li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.interactions li:last-child { border-bottom: none; }
.inter-body strong { font-size: 14px; }
.inter-body a { color: var(--secondary); text-decoration: none; }
.inter-body a:hover { text-decoration: underline; }
.inter-body p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.meta { display: block; font-size: 12px; color: var(--muted); font-style: italic; }
.sev {
  flex-shrink: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 12px;
  height: fit-content; margin-top: 2px; white-space: nowrap;
}
.sev-danger { color: #B91C1C; background: rgba(185, 28, 28, 0.08); }
.sev-warn { color: #92610A; background: rgba(194, 133, 12, 0.12); }
.sev-watch { color: var(--muted); background: rgba(71, 84, 103, 0.1); }
.sev-info { color: var(--secondary); background: var(--secondary-light); }

/* Studies */
.studies { list-style: none; counter-reset: study; }
.studies li {
  counter-increment: study; padding: 12px 0 12px 34px;
  border-bottom: 1px dashed var(--border); position: relative;
}
.studies li:last-child { border-bottom: none; }
.studies li::before {
  content: counter(study); position: absolute; left: 0; top: 14px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--secondary-light); color: var(--secondary);
  font-size: 11px; font-weight: 700; display: flex; align-items: center;
  justify-content: center;
}
.studies strong { font-size: 13.5px; font-weight: 600; }
.studies a { color: var(--secondary); text-decoration: none; }
.studies a:hover { text-decoration: underline; }
.studies p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* Aside: download banner */
.cta-card {
  background: var(--primary); color: #fff; border-radius: 14px;
  padding: 22px 24px; margin-bottom: 20px;
}
.cta-card h2 { color: #fff; font-size: 17px; }
.cta-card p { font-size: 13px; color: rgba(255, 255, 255, 0.82); margin-bottom: 16px; line-height: 1.55; }
.cta-btn {
  display: block; text-align: center; background: #fff; color: var(--primary);
  font-weight: 600; font-size: 14px; text-decoration: none;
  padding: 12px 20px; border-radius: 10px; margin-bottom: 10px;
}
.cta-btn-alt { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.cta-btn:hover { opacity: 0.88; }
.cta-note { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); text-align: center; }

/* Synergies */
.syn-card h2 { margin-bottom: 6px; }
.synergies { list-style: none; }
.synergies li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.synergies li:last-child { border-bottom: none; }
.synergies a { color: var(--primary); font-weight: 600; font-size: 14px; text-decoration: none; }
.synergies a:hover { color: var(--secondary); }
.synergies p { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Search */
.search-card h2 { margin-bottom: 10px; }
.cp-search { display: flex; gap: 8px; }
.cp-search input {
  flex: 1; min-width: 0; font-family: 'Lora', Georgia, serif; font-size: 14px;
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--primary);
}
.cp-search input:focus { outline: none; border-color: var(--secondary); }
.cp-search button {
  font-family: 'Lora', Georgia, serif; font-size: 14px; font-weight: 600;
  background: var(--primary); color: #fff; border: none; border-radius: 10px;
  padding: 11px 18px; cursor: pointer;
}
.cp-search button:hover { opacity: 0.88; }
.cp-search-hero { max-width: 560px; margin: 0 0 36px; }

/* Library index */
.lib-cat { margin-bottom: 28px; }
.lib-cat .count { color: var(--muted); font-weight: 500; font-size: 14px; }
.lib-links {
  list-style: none; columns: 3; column-gap: 32px; margin-top: 10px;
}
@media (max-width: 900px) { .lib-links { columns: 2; } }
@media (max-width: 560px) { .lib-links { columns: 1; } }
.lib-links li { break-inside: avoid; padding: 3px 0; }
.lib-links a { font-size: 13.5px; color: var(--primary); text-decoration: none; }
.lib-links a:hover { color: var(--secondary); }

/* Footer */
footer {
  border-top: 1px solid var(--border); padding: 28px 24px;
  text-align: center; font-size: 12.5px; color: var(--muted);
}
footer p { max-width: 640px; margin: 0 auto 8px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--primary); }
