/* site.css: generated in Phase 0 step 0.4 from the four inline <style> variants.
   Each section is scoped to a page type set on <html class="pt-..."> with :where(),
   which adds no specificity, so every page computes exactly the styles it had inline.
   See reports/CSS_MERGE_PLAN.md. Page types:
     pt-base     drug, class hub, glossary, policy/legal pages (base block only)
     pt-reviewer about, reviewer (base block + reviewer rules)
     pt-compare  comparison, tracker, switching guide, label log (base block + section 3)
     pt-home     index (independent block) */

/* ===== 1. Base block (all pages except index) ===== */

:root:where(.pt-base,.pt-reviewer,.pt-compare) {
  --canvas: #F7F9FB;
  --text: #0F172A;
  --accent: #1D4ED8;
  --border: #D1D5DB;
  --grid: rgba(29, 78, 216, 0.06);
}
:where(.pt-base,.pt-reviewer,.pt-compare), :where(.pt-base,.pt-reviewer,.pt-compare) * { box-sizing: border-box; margin: 0; padding: 0; }
:where(.pt-base,.pt-reviewer,.pt-compare) body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--canvas);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}
:where(.pt-base,.pt-reviewer,.pt-compare) header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(4px);
}
:where(.pt-base,.pt-reviewer,.pt-compare) .logo { display: flex; align-items: center; line-height: 0; }
:where(.pt-base,.pt-reviewer,.pt-compare) .logo img { display: block; height: 32px; width: auto; }
:where(.pt-base,.pt-reviewer,.pt-compare) nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:where(.pt-base,.pt-reviewer,.pt-compare) nav a:hover { color: var(--accent); }
:where(.pt-base,.pt-reviewer,.pt-compare) main { max-width: 780px; margin: 0 auto; padding: 2.5rem 1.5rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .crumbs { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: #475569; margin-bottom: 0.6rem; overflow-wrap: anywhere; }
:where(.pt-base,.pt-reviewer,.pt-compare) .crumbs a, :where(.pt-base,.pt-reviewer,.pt-compare) .crumbs a:hover { margin: 0; padding: 0; font-size: inherit; letter-spacing: inherit; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
:where(.pt-base,.pt-reviewer,.pt-compare) .crumbs a:hover { color: var(--accent); }
:where(.pt-base,.pt-reviewer,.pt-compare) h1 { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .subtitle {
  color: #475569;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .badges { margin-bottom: 1.25rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .badge {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-right: 0.4rem;
  margin-bottom: 0.3rem;
  background: white;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .badge.brand { border-color: var(--accent); color: var(--accent); }
:where(.pt-base,.pt-reviewer,.pt-compare) .badge.generic { border-color: #059669; color: #047857; }
:where(.pt-base,.pt-reviewer,.pt-compare) .badge.savings { border-color: var(--accent); color: var(--accent); }
:where(.pt-base,.pt-reviewer,.pt-compare) .badge.available { border-color: #059669; color: #047857; }
:where(.pt-base,.pt-reviewer,.pt-compare) .badge.shortage { border-color: #B45309; color: #B45309; }
:where(.pt-base,.pt-reviewer,.pt-compare) .meta {
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 1.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:where(.pt-base,.pt-reviewer,.pt-compare) h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  text-transform: uppercase;
}
:where(.pt-base,.pt-reviewer,.pt-compare) p { margin-bottom: 1rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .view-toggle {
  display: inline-flex;
  background: white;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 1.75rem;
  overflow: hidden;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .view-toggle button {
  background: transparent;
  border: none;
  padding: 0.65rem 1.25rem;
  margin: 0;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  color: #475569;
  transition: background 0.12s, color 0.12s;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .view-toggle button:hover {
  background: #F1F5F9;
  color: var(--text);
}
/* 2.3: the pressed button follows the view class on <html> (set before first paint by the
   inline script in the head partial); site.js keeps aria-pressed and .active in step. */
html:not(.view-clinician):where(.pt-base,.pt-reviewer,.pt-compare) .view-toggle button[data-view="patient"],
html.view-clinician:where(.pt-base,.pt-reviewer,.pt-compare) .view-toggle button[data-view="clinical"] {
  background: var(--accent);
  color: white;
}
html:not(.view-clinician):where(.pt-base,.pt-reviewer,.pt-compare) .view-toggle button[data-view="patient"]:hover,
html.view-clinician:where(.pt-base,.pt-reviewer,.pt-compare) .view-toggle button[data-view="clinical"]:hover {
  background: #1e40af;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .view-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
:where(.pt-base,.pt-reviewer,.pt-compare) .view-toggle button[aria-pressed="true"]:focus-visible { outline-color: #FFFFFF; }
/* 2.3: clinician-only content is hidden only when JavaScript runs and the patient view is on.
   Without JavaScript both views show and the toggle (which would do nothing) is hidden. */
html.js:not(.view-clinician):where(.pt-base,.pt-reviewer,.pt-compare) .clinical { display: none; }
html:not(.js) .view-toggle { display: none; }
:where(.pt-base,.pt-reviewer,.pt-compare) table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) th, :where(.pt-base,.pt-reviewer,.pt-compare) td { text-align: left; padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--border); }
:where(.pt-base,.pt-reviewer,.pt-compare) th { font-weight: 600; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) a { color: var(--accent); }
:where(.pt-base,.pt-reviewer,.pt-compare) .disclaimer {
  background: white;
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  margin: 2rem 0;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .answer-first {
  background: white;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 1.75rem;
  border-radius: 2px;
  font-size: 1.02rem;
  line-height: 1.55;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .author-block {
  font-size: 0.85rem;
  color: #475569;
  margin: 0.5rem 0 1.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .author-block strong { color: var(--text); }
:where(.pt-base,.pt-reviewer,.pt-compare) .sources {
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .sources li { margin-bottom: 0.4rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .resources a { display: block; margin-bottom: 0.45rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .chart-container {
  background: white;
  border: 1px solid var(--border);
  padding: 1.25rem 1rem 1rem;
  margin: 1rem 0;
  border-radius: 2px;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .chart-label {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: #475569;
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.4;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .receptor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .receptor-card {
  border: 1px solid var(--border);
  padding: 0.75rem;
  background: white;
  border-radius: 2px;
  font-size: 0.9rem;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .receptor-card strong {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
}
:where(.pt-base,.pt-reviewer,.pt-compare) .faq { margin: 1rem 0; }
:where(.pt-base,.pt-reviewer,.pt-compare) .faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .faq summary {
  cursor: pointer;
  font-weight: 500;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .brand-logo {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0.5rem 0;
}
:where(.pt-base,.pt-reviewer,.pt-compare) footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  font-size: 0.85rem;
  color: #475569;
  margin-top: 3rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (max-width: 520px) {
  :where(.pt-base,.pt-reviewer,.pt-compare) .day-timeline > div:nth-child(3) { grid-template-columns: 1fr !important; }
  :where(.pt-base,.pt-reviewer,.pt-compare) #timelineBar { height: 110px !important; }
  :where(.pt-base,.pt-reviewer,.pt-compare) main { padding: 1.5rem 1rem; }
  :where(.pt-base,.pt-reviewer,.pt-compare) h1 { font-size: 1.75rem; }
  /* 2026-10-28: wide tables scroll inside their own box instead of widening the page */
  :where(.pt-base,.pt-reviewer,.pt-compare) table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
:where(.pt-base,.pt-reviewer,.pt-compare) .mechanism-figure {
  margin: 1.5rem 0;
  text-align: center;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .mechanism-figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: white;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .mechanism-figure figcaption {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: #475569;
  margin-top: 0.5rem;
}
/* Installed in templates/_styles.css (2026-10-28) for the "Clinical evidence" section.
   Uses existing variables (--accent, --border, --text) and the .clinical view toggle. */
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-note {
  border-left: 3px solid var(--accent);
  background: #F8FAFC;
  padding: 0.6rem 0.9rem;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.9rem;
  color: #334155;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-note p { margin: 0.3rem 0; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence h3 {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence details.ev-group {
  border-top: 1px solid var(--border);
  padding: 0.6rem 0;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence details.ev-group:last-of-type { border-bottom: 1px solid var(--border); }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence details.ev-group > summary {
  cursor: pointer;
  font-weight: 600;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-count { font-weight: 400; color: #64748B; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence details.ev-group > summary { padding: 0.25rem 0; min-height: 44px; display: list-item; line-height: 1.6; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-groupnote { font-size: 0.85rem; color: #475569; margin: 0.5rem 0 0; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-groupnote a { color: var(--accent); }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-cite a, :where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-cite { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  :where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-item { padding: 0.65rem 0.7rem; }
  :where(.pt-base,.pt-reviewer,.pt-compare) .evidence details.ev-group > summary { font-size: 0.85rem; }
}
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  margin: 0 0 0.75rem;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-tags { margin-bottom: 0.35rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-tag {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid #64748B;
  color: #475569;
  border-radius: 3px;
  padding: 0.05rem 0.4rem;
  margin-right: 0.3rem;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-type-ma, :where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-type-nma { border-color: var(--accent); color: var(--accent); }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-type-rct { border-color: #059669; color: #047857; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-type-case_series, :where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-type-pharmacovigilance,
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-type-consensus, :where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-type-open_label { border-color: #B45309; color: #B45309; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-offlabel { border-color: #B91C1C; color: #B91C1C; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-applies { font-size: 0.8rem; color: #64748B; margin: 0 0 0.25rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-finding { margin: 0 0 0.4rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-pagenote { font-size: 0.85rem; font-style: italic; color: #475569; margin: 0 0 0.4rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-detail {
  font-size: 0.85rem;
  color: #334155;
  background: #F8FAFC;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  margin: 0.25rem 0 0.4rem;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-detail p { margin: 0; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-funding { font-size: 0.8rem; color: #92400E; margin: 0 0 0.3rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-cite { font-size: 0.78rem; color: #475569; margin: 0; line-height: 1.45; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-cite a { color: var(--accent); }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-also { margin-top: 0.2rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-reviewed { font-size: 0.8rem; color: #64748B; margin-top: 1rem; }
/* 2026-10-29 SEO phase 1: key facts box, label line, glossary links, footer links, simple pages */
:where(.pt-base,.pt-reviewer,.pt-compare) .keyfacts {
  background: white;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem 0.85rem;
  margin: 0 0 1.5rem;
  border-radius: 2px;
}
:where(.pt-base,.pt-reviewer,.pt-compare) .keyfacts h2 { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.6rem; padding: 0; border: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #475569; }
:where(.pt-base,.pt-reviewer,.pt-compare) .keyfacts dl { display: grid; grid-template-columns: 1fr; gap: 0; }
:where(.pt-base,.pt-reviewer,.pt-compare) .keyfacts .kf { display: grid; grid-template-columns: 11.5rem 1fr; gap: 0.75rem; padding: 0.45rem 0; border-top: 1px solid #E5E7EB; font-size: 0.92rem; line-height: 1.45; }
:where(.pt-base,.pt-reviewer,.pt-compare) .keyfacts .kf:first-child { border-top: 0; }
:where(.pt-base,.pt-reviewer,.pt-compare) .keyfacts dt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: #475569; padding-top: 0.15rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .keyfacts dd { margin: 0; overflow-wrap: anywhere; }
:where(.pt-base,.pt-reviewer,.pt-compare) .label-checked { margin: 0.7rem 0 0; padding-top: 0.6rem; border-top: 1px solid #E5E7EB; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.75rem; color: #475569; line-height: 1.5; }
:where(.pt-base,.pt-reviewer,.pt-compare) .label-checked.kf-disclaimer { margin-top: 0.35rem; padding-top: 0; border-top: 0; }
:where(.pt-base,.pt-reviewer,.pt-compare) a.gl { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
:where(.pt-base,.pt-reviewer,.pt-compare) a.gl:hover { color: var(--accent); }
:where(.pt-base,.pt-reviewer,.pt-compare) .page-note { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8rem; color: #475569; margin: 0.25rem 0 1.5rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) dl.glossary dt { font-weight: 600; margin-top: 1.25rem; scroll-margin-top: 1rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) dl.glossary dd { margin: 0.25rem 0 0; }
:where(.pt-base,.pt-reviewer,.pt-compare) dl.glossary dd p { margin: 0.25rem 0; }
:where(.pt-base,.pt-reviewer,.pt-compare) dl.glossary .gsrc, :where(.pt-base,.pt-reviewer,.pt-compare) dl.glossary .gex { font-size: 0.85rem; color: #475569; }
@media (max-width: 520px) {
  :where(.pt-base,.pt-reviewer,.pt-compare) .keyfacts .kf { grid-template-columns: 1fr; gap: 0.1rem; }
}
:where(.pt-base,.pt-reviewer,.pt-compare) .footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-top: 0.85rem; font-size: 0.78rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .footer-links a { color: #475569; }
:where(.pt-base,.pt-reviewer,.pt-compare) .footer-links a:hover { color: var(--accent, #1D4ED8); }

/* logo header: mobile */
@media (max-width: 520px) {
  :where(.pt-base,.pt-reviewer,.pt-compare) header { padding: 0.85rem 1rem; }
  :where(.pt-base,.pt-reviewer,.pt-compare) .logo img { height: 26px; }
  :where(.pt-base,.pt-reviewer,.pt-compare) nav a { margin-left: 0.85rem; font-size: 0.78rem; }
}
/* mobile nav (2026-10-30): <=520px. No JS: logo row + one full-width nav row. With JS: MENU toggle (aria-expanded) opens a stacked list. */
:where(.pt-base,.pt-reviewer,.pt-compare) .nav-toggle { display: none; }
@media (max-width: 520px) {
  :where(.pt-base,.pt-reviewer,.pt-compare) header { flex-wrap: wrap; row-gap: 0.55rem; }
  :where(.pt-base,.pt-reviewer,.pt-compare) header > nav { flex: 1 0 100%; display: flex; justify-content: space-between; }
  :where(.pt-base,.pt-reviewer,.pt-compare) header > nav a { margin-left: 0; padding: 0.35rem 0; }
  :where(.pt-base,.pt-reviewer,.pt-compare) header.nav-js .nav-toggle {
    display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.8rem;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.78rem; letter-spacing: 0.04em;
    color: var(--text); background: white; border: 1px solid var(--border); border-radius: 2px; cursor: pointer;
  }
  :where(.pt-base,.pt-reviewer,.pt-compare) header.nav-js .nav-toggle:hover, :where(.pt-base,.pt-reviewer,.pt-compare) header.nav-js .nav-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
  :where(.pt-base,.pt-reviewer,.pt-compare) header.nav-js { row-gap: 0; }
  :where(.pt-base,.pt-reviewer,.pt-compare) header.nav-js > nav { display: none; }
  :where(.pt-base,.pt-reviewer,.pt-compare) header.nav-js.nav-open > nav { display: flex; flex-direction: column; margin-top: 0.75rem; border-top: 1px solid var(--border); }
  :where(.pt-base,.pt-reviewer,.pt-compare) header.nav-js.nav-open > nav a { padding: 0.75rem 0; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
  :where(.pt-base,.pt-reviewer,.pt-compare) header.nav-js.nav-open > nav a:last-child { border-bottom: 0; padding-bottom: 0.25rem; }
  :where(.pt-base,.pt-reviewer,.pt-compare) .nav-toggle:focus-visible, :where(.pt-base,.pt-reviewer,.pt-compare) header > nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}
/* 2026-11-04: yellow "NEW" note style (same rule as lib/sitemeta.py PHOTO_CSS) */
:where(.pt-base,.pt-reviewer,.pt-compare) .new-pending { border-left: 3px solid #F59E0B; background: #FFFBEB; padding: 0.4rem 0.75rem; font-size: 0.8rem; color: #78350F; margin: 0.75rem 0; }
/* 2026-11-09: inline and evidence-summary variants of the yellow NEW note (same colours as .new-pending) */
:where(.pt-base,.pt-reviewer,.pt-compare) .new-pending-inline { display: block; border-left: 3px solid #F59E0B; background: #FFFBEB; padding: 0.2rem 0.6rem; font-size: 0.8rem; color: #78350F; margin: 0 0 0.3rem; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-new { display: inline-block; border: 1px solid #F59E0B; background: #FFFBEB; color: #78350F; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; padding: 0 0.35rem; margin-left: 0.3rem; border-radius: 2px; }
:where(.pt-base,.pt-reviewer,.pt-compare) .evidence .ev-item .new-pending { margin: 0 0 0.4rem; }

/* ===== 2. Reviewer rules (appended after base on about, reviewer) ===== */

:where(.pt-reviewer) .reviewer-head { display: flex; gap: 1.1rem; align-items: flex-start; margin: 0.5rem 0 1rem; }
:where(.pt-reviewer) .reviewer-head p { margin-top: 0; }
:where(.pt-reviewer) .reviewer-photo { flex: 0 0 auto; }
:where(.pt-reviewer) .reviewer-photo img, :where(.pt-reviewer) .reviewer-photo.photo-pending { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 8px; background: #E5E7EB; }
:where(.pt-reviewer) .reviewer-photo.photo-pending { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.75rem; color: #475569; border: 1px dashed #94A3B8; box-sizing: border-box; padding: 0.5rem; }
:where(.pt-reviewer) .new-pending { border-left: 3px solid #F59E0B; background: #FFFBEB; padding: 0.4rem 0.75rem; font-size: 0.8rem; color: #78350F; margin: 0.75rem 0; }
@media (max-width: 480px) { :where(.pt-reviewer) .reviewer-photo img, :where(.pt-reviewer) .reviewer-photo.photo-pending { width: 88px; height: 88px; } }

/* ===== 3. Comparison/tracker rules (second inline block on pt-compare pages) ===== */

/* 2026-10-29 SEO phase 2 pages */
:where(.pt-compare) .cmp-table { table-layout: fixed; }
:where(.pt-compare) .cmp-table th:first-child, :where(.pt-compare) .cmp-table td:first-child { width: 28%; }
:where(.pt-compare) .cmp-table td, :where(.pt-compare) .cmp-table th { overflow-wrap: break-word; hyphens: auto; vertical-align: top; font-size: 0.9rem; }
:where(.pt-compare) .callout { background: white; border: 1px solid var(--border); border-left: 3px solid #B45309; padding: 0.9rem 1rem; margin: 1.25rem 0; border-radius: 2px; }
:where(.pt-compare) .callout.caveat { border-left-color: #B91C1C; }
:where(.pt-compare) .callout p { margin: 0.35rem 0; }
:where(.pt-compare) .trk-card { background: white; border: 1px solid var(--border); border-radius: 2px; padding: 0.8rem 0.95rem; margin: 0.9rem 0; scroll-margin-top: 1rem; }
:where(.pt-compare) .trk-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
:where(.pt-compare) .trk-card dl { margin: 0; display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.3rem 0.8rem; font-size: 0.9rem; line-height: 1.45; }
:where(.pt-compare) .trk-card dt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #475569; padding-top: 0.15rem; }
:where(.pt-compare) .trk-card dd { margin: 0; overflow-wrap: anywhere; }
:where(.pt-compare) .trk-asof { color: #475569; font-size: 0.82rem; }
:where(.pt-compare) .trk-flag { border-left: 3px solid #B45309; }
:where(.pt-compare) .log-entry { border-top: 1px solid var(--border); padding: 0.8rem 0; scroll-margin-top: 1rem; }
:where(.pt-compare) .log-entry h3 { margin: 0 0 0.3rem; font-size: 1.02rem; }
:where(.pt-compare) .log-date { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.78rem; color: #475569; }
:where(.pt-compare) .sw-item { border-top: 1px solid var(--border); padding: 0.8rem 0; scroll-margin-top: 1rem; }
:where(.pt-compare) .sw-item h3 { margin: 0 0 0.3rem; font-size: 1.02rem; }
:where(.pt-compare) .mini-table td, :where(.pt-compare) .mini-table th { font-size: 0.88rem; }
:where(.pt-compare) .rel-list a { white-space: normal; }
@media (max-width: 520px) {
  :where(.pt-compare) table.cmp-table { display: table; }
  :where(.pt-compare) .cmp-table td, :where(.pt-compare) .cmp-table th { font-size: 0.8rem; padding: 0.4rem 0.35rem; }
  :where(.pt-compare) .cmp-table th:first-child, :where(.pt-compare) .cmp-table td:first-child { width: 24%; }
}
@media (max-width: 520px) { :where(.pt-compare) .trk-card dl { grid-template-columns: 1fr; gap: 0.1rem; } :where(.pt-compare) .trk-card dd { margin-bottom: 0.35rem; } }

/* ===== 4. Home page (index.html) ===== */

:root:where(.pt-home) {
  --canvas: #F7F9FB;
  --text: #0F172A;
  --accent: #1D4ED8;
  --border: #D1D5DB;
  --grid: rgba(29, 78, 216, 0.06);
}
:where(.pt-home), :where(.pt-home) * { box-sizing: border-box; margin: 0; padding: 0; }
:where(.pt-home) body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--canvas);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}
:where(.pt-home) header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(4px);
}
:where(.pt-home) .logo { display: flex; align-items: center; line-height: 0; }
:where(.pt-home) .logo img { display: block; height: 32px; width: auto; }
:where(.pt-home) nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:where(.pt-home) nav a:hover, :where(.pt-home) nav a.active { color: var(--accent); }
:where(.pt-home) main { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; }
:where(.pt-home) h1 {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  line-height: 1.15;
}
:where(.pt-home) .lead { font-size: 1.1rem; max-width: 62ch; margin-bottom: 2rem; }
:where(.pt-home) .search-filters { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
:where(.pt-home) input[type="search"], :where(.pt-home) select {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: white;
  font: inherit;
  color: var(--text);
  min-width: 170px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
}
:where(.pt-home) input[type="search"]:focus, :where(.pt-home) select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
:where(.pt-home) .med-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
:where(.pt-home) .med-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.2rem;
  background: white;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}
:where(.pt-home) .med-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
:where(.pt-home) .med-card h3 { margin: 0 0 0.3rem; font-size: 1.15rem; font-weight: 600; }
:where(.pt-home) .med-card .meta {
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 0.6rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:where(.pt-home) .tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-right: 0.3rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}
:where(.pt-home) .tag.stim { border-color: var(--accent); color: var(--accent); }
:where(.pt-home) .tag.status { border-color: #B45309; color: #92400E; background: #FFFBEB; margin-top: 0.3rem; }
:where(.pt-home) .result-count { align-self: center; font-size: 0.8rem; color: #475569; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
:where(.pt-home) .empty-state { border: 1px dashed var(--border); background: white; padding: 1.5rem 1.2rem; border-radius: 2px; }
:where(.pt-home) .empty-state[hidden] { display: none; }
:where(.pt-home) .empty-state p { margin-bottom: 0.8rem; }
:where(.pt-home) .clear-filters {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: white;
  color: var(--accent);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  cursor: pointer;
}
:where(.pt-home) .clear-filters:hover { background: #EFF6FF; }
:where(.pt-home) .clear-filters:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:where(.pt-home) .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(.pt-home) footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  font-size: 0.85rem;
  color: #475569;
  margin-top: 3rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:where(.pt-home) .disclaimer {
  background: white;
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  margin: 2.25rem 0;
}
:where(.pt-home) .footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-top: 0.85rem; font-size: 0.78rem; }
:where(.pt-home) .footer-links a { color: #475569; }
:where(.pt-home) .footer-links a:hover { color: var(--accent, #1D4ED8); }
:where(.pt-home) .class-hubs { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; margin: 0 0 1.5rem; font-size: 0.85rem; }
:where(.pt-home) .class-hubs span { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.75rem; color: #475569; letter-spacing: 0.04em; }
:where(.pt-home) .class-hubs a { border: 1px solid var(--border); padding: 0.2rem 0.6rem; border-radius: 2px; background: white; text-decoration: none; }
/* logo header: mobile */
@media (max-width: 520px) {
  :where(.pt-home) header { padding: 0.85rem 1rem; }
  :where(.pt-home) .logo img { height: 26px; }
  :where(.pt-home) nav a { margin-left: 0.85rem; font-size: 0.78rem; }
}
/* mobile nav (2026-10-30): <=520px. No JS: logo row + one full-width nav row. With JS: MENU toggle (aria-expanded) opens a stacked list. */
:where(.pt-home) .nav-toggle { display: none; }
@media (max-width: 520px) {
  :where(.pt-home) header { flex-wrap: wrap; row-gap: 0.55rem; }
  :where(.pt-home) header > nav { flex: 1 0 100%; display: flex; justify-content: space-between; }
  :where(.pt-home) header > nav a { margin-left: 0; padding: 0.35rem 0; }
  :where(.pt-home) header.nav-js .nav-toggle {
    display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.8rem;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.78rem; letter-spacing: 0.04em;
    color: var(--text); background: white; border: 1px solid var(--border); border-radius: 2px; cursor: pointer;
  }
  :where(.pt-home) header.nav-js .nav-toggle:hover, :where(.pt-home) header.nav-js .nav-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
  :where(.pt-home) header.nav-js { row-gap: 0; }
  :where(.pt-home) header.nav-js > nav { display: none; }
  :where(.pt-home) header.nav-js.nav-open > nav { display: flex; flex-direction: column; margin-top: 0.75rem; border-top: 1px solid var(--border); }
  :where(.pt-home) header.nav-js.nav-open > nav a { padding: 0.75rem 0; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
  :where(.pt-home) header.nav-js.nav-open > nav a:last-child { border-bottom: 0; padding-bottom: 0.25rem; }
  :where(.pt-home) .nav-toggle:focus-visible, :where(.pt-home) header > nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}
:where(.pt-home) .new-pending { border-left: 3px solid #F59E0B; background: #FFFBEB; padding: 0.4rem 0.75rem; font-size: 0.8rem; color: #78350F; margin: 0.75rem 0; }

/* ===== Phase 1 additions ===== */
/* 1.5 minimum text size: sub/sup keep the browser's 'smaller' ratio but never go below 12px. */
sub, sup { font-size: max(0.75rem, 0.8333em); }
/* 1.5: the result-box labels of the drug-page timelines are written by each page's inline
   timeline script with an inline font-size of 0.7rem. The scripts are left untouched, so the
   minimum size is enforced here; !important is needed only because the value is inline. */
#keyTimes > div > div:first-child { font-size: 0.75rem !important; }
/* 1.6 contrast: two text colours are written inline by the drug-page timeline scripts (left
   untouched), so they are darkened here, same hue: amber #D97706 -> #B45309 (result-box label
   "LIKELY WEARING OFF" / warning cards, 2.9:1 -> 4.6:1) and green #059669 -> #047857 (timeline
   summary line, 3.6:1 -> 5.2:1). */
#keyTimes [style*="color:#D97706"] { color: #B45309 !important; }
#timelineSummary [style*="color:#059669"] { color: #047857 !important; }
/* 1.7 tables: every table sits in a focusable scroll region (div.table-wrap) that scrolls
   sideways when the table is wider than the column. The region takes the table's margin so
   spacing is unchanged; the table keeps display:table inside it. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; max-width: 100%; }
.table-wrap > table { margin: 0; }
@media (max-width: 520px) { .table-wrap > table { display: table; } }
.table-wrap:focus-visible { outline: 2px solid var(--accent, #1D4ED8); outline-offset: 2px; }
/* 1.8 skip link: first focusable element on every page; hidden until focused. */
.skip-link { position: absolute; left: 0.5rem; top: -100px; z-index: 1000; padding: 0.5rem 0.85rem; background: #FFFFFF; color: #1D4ED8; border: 2px solid #1D4ED8; border-radius: 2px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9rem; text-decoration: none; }
.skip-link:focus { top: 0.5rem; outline: 2px solid #1D4ED8; outline-offset: 2px; }
main:focus { outline: none; }

/* 1.8 print: content only, both views, every <details> expanded. */
@media print {
  header, .skip-link, footer .footer-links, .view-toggle, .search-filters, .empty-state,
  .day-timeline > div:has(input), .day-timeline input { display: none !important; }
  html body { background: #FFFFFF !important; background-image: none !important; }
  main { max-width: none !important; padding: 0 !important; }
  .clinical { display: block !important; }
  p.clinical { display: block !important; }
  details > *:not(summary) { display: block; }
  details::details-content { display: block; content-visibility: visible; }
  details > summary { list-style: none; }
  details > summary::-webkit-details-marker { display: none; }
  .sources a[href^="http"]::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; word-break: break-all; font-size: 0.85em; color: #334155; }
  .keyfacts .kf, .evidence .ev-item, tr, .trk-card, .med-card { break-inside: avoid; page-break-inside: avoid; }
  h1, h2, h3, summary { break-after: avoid; page-break-after: avoid; }
  .table-wrap { overflow: visible !important; }
  a { color: inherit; }
}

/* 2.2 "On this page" navigation (generated by tools/toc.py) and "Back to top".
   One markup for both layouts: <nav class="toc"><details class="toc-box">.
   Below 1100px it is an inline, collapsed <details>. From 1100px it is a sticky sidebar in
   the right gutter beside the 780px main column: the nav keeps zero height in the flow (the
   article's layout is unchanged) and the box is positioned beside it; its content is shown
   open by CSS (::details-content) and also by site.js (open attribute) for older browsers. */
.toc { margin: 0; }
.toc-box { margin: 1.5rem 0; background: #FFFFFF; border: 1px solid var(--border, #D1D5DB); border-radius: 2px; }
.toc-box > summary { display: list-item; cursor: pointer; min-height: 44px; padding: 0.6rem 1rem; line-height: 1.6;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--text, #0F172A); }
.toc-box > summary:focus-visible { outline: 2px solid var(--accent, #1D4ED8); outline-offset: 2px; }
.toc-list { list-style: none; margin: 0; padding: 0 0.75rem 0.75rem; }
.toc-list li { margin: 0; padding: 0; }
.toc .toc-list a { display: block; margin: 0; padding: 0.45rem 0.6rem; border-left: 2px solid transparent;
  font-family: inherit; font-size: 0.9rem; line-height: 1.4; color: var(--text, #0F172A); text-decoration: none; }
.toc .toc-list a:hover { color: var(--accent, #1D4ED8); text-decoration: underline; }
.toc .toc-list a:focus-visible { outline: 2px solid var(--accent, #1D4ED8); outline-offset: -2px; }
.toc .toc-list a[aria-current="true"] { border-left-color: var(--accent, #1D4ED8); color: var(--accent, #1D4ED8); font-weight: 600; }
.toc-count-patient { display: none; }
html.js:not(.view-clinician) .toc .toc-clinical, html.js:not(.view-clinician) .toc .toc-count-split { display: none; }
html.js:not(.view-clinician) .toc .toc-count-patient { display: inline; }
@media (min-width: 1100px) {
  .toc { position: sticky; top: 1rem; height: 0; z-index: 5; }
  .toc-box { position: absolute; top: 0; left: calc(100% + 1.75rem); margin: 0;
    width: min(16rem, calc((100vw - 100%) / 2 - 3.25rem)); max-height: calc(100vh - 6.5rem); overflow-y: auto; overscroll-behavior: contain; }
  .toc-box::details-content { content-visibility: visible; }
  .toc-box > summary { list-style: none; cursor: default; pointer-events: none; min-height: 0; padding: 0.6rem 0.75rem 0.4rem; font-size: 0.75rem; color: #475569; }
  .toc-box > summary::-webkit-details-marker { display: none; }
  .toc-box .toc-count { display: none !important; }
  .toc-list { padding: 0 0.5rem 0.6rem; }
  .toc .toc-list a { font-size: 0.8rem; padding: 0.3rem 0.5rem; }
}
/* anchored sections: a little room above the heading after a jump */
h2[id], .section[id], .keyfacts[id] { scroll-margin-top: 1rem; }
h2[tabindex="-1"]:focus { outline: none; }
h2[tabindex="-1"]:focus-visible { outline: 2px solid var(--accent, #1D4ED8); outline-offset: 4px; }
/* Back to top: present in the HTML at the end of <main>; shown by site.js once the reader is
   past the first screen. Without JavaScript it stays hidden. */
.back-to-top { display: none; }
html.js .back-to-top { display: inline-flex; align-items: center; justify-content: center; position: fixed; right: 1rem; bottom: 1rem; z-index: 20;
  min-width: 44px; min-height: 44px; padding: 0 0.9rem; background: #FFFFFF; color: var(--accent, #1D4ED8);
  border: 1px solid var(--accent, #1D4ED8); border-radius: 2px; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8rem; letter-spacing: 0.04em; text-decoration: none;
  visibility: hidden; opacity: 0; transition: opacity 0.15s, visibility 0.15s; }
html.js .back-to-top.is-shown { visibility: visible; opacity: 1; }
html.js .back-to-top:hover { background: #EFF6FF; }
html.js .back-to-top:focus-visible { outline: 2px solid var(--accent, #1D4ED8); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html.js .back-to-top { transition: none; } }
@media print { .toc, .back-to-top { display: none !important; } }
/* Phase 2 accessibility pass: the timeline time inputs had no focus outline of their own (only
   Chrome's highlight of the focused hour/minute field). Inputs are static HTML; the timeline
   scripts are untouched. */
.day-timeline input:focus { outline: 2px solid var(--accent, #1D4ED8); outline-offset: 1px; }
