/* ============================================================
   citations.css — inline citation superscripts + footer ref list.
   Sits atop styles.css / guide-helpers.css. Rendered by citations.js.
   ============================================================ */

/* Inline superscript. line-height:0 keeps it from expanding the
   line box (preserves the guides' 0px page-fit in dense cards). */
cite.cite{
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-style:normal;
  font-weight:700;
  font-size:.66em;
  line-height:0;
  vertical-align:super;
  color:var(--guide-red);
  white-space:nowrap;          /* "2,3" must never wrap */
  margin-left:1px;
  letter-spacing:.02em;
}
cite.cite a{ color:inherit; text-decoration:none; cursor:pointer; }
cite.cite a:hover{ text-decoration:underline; }
/* un-rendered <cite> (before JS, or no data-ref) shows nothing */
cite:not(.cite){ display:none; }

.page > .chapter-evidence{
  margin:18px 0 8px;padding:12px 0;border-top:1px solid var(--rule);
  font-size:15px;line-height:1.45;
}
.chapter-evidence a{color:var(--guide-red-deep);font-weight:700}
.chapter-evidence a:focus-visible{outline:2px solid currentColor;outline-offset:4px}

/* Evidence-governance note injected by chrome.js. This lives here (rather
   than only in the shared base stylesheet) because several legacy guides
   carry their own complete print stylesheet but all load citations.css. */
.evidence-notice{
  display:flex;align-items:flex-start;gap:8px;margin:5px 0 3px;padding:5px 8px;
  border-left:3px solid var(--warn,#c26a00);background:var(--tint-amber,#fff4e6);
  color:var(--ink-2,#30343a);font-size:6.6pt;line-height:1.3;
}
.evidence-notice b{
  flex:none;color:var(--stop,#9b2226);font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:6pt;letter-spacing:.08em;
}

/* Footer numbered reference list (fills chrome.js's .reflist-inline) */
.pfoot .reflist-inline{ margin-top:1.5px; }
.pfoot .reflist-inline:empty{ display:none; }
.pfoot .reflist-inline b{
  color:var(--guide-red); font-weight:800; letter-spacing:.04em;
  text-transform:uppercase; font-size:6.6pt; margin-right:5px;
}
.pfoot .rf{ white-space:nowrap; margin-right:7px; color:var(--ink-3); }
.pfoot .rf .rn{
  font-family:"JetBrains Mono",ui-monospace,monospace; font-weight:700;
  color:var(--guide-red); font-size:5.8pt; vertical-align:super;
  line-height:0; margin-right:2px;
}

/* Print: keep citations legible and uncluttered (no link affordance,
   numbers stay red so superscripts map to the footer list). */
@media print{
  .page > .chapter-evidence{display:none!important}
  cite.cite a{ color:var(--guide-red); text-decoration:none; }
  .page:not(:first-child) > .evidence-notice{display:none}
}
.drug-study-sources{display:block;margin-top:.45em;font-size:.9em}
@media print{.drug-study-sources{display:none!important}}
