/* TitrateLab — article visual + micro-interaction component system.
 *
 * Reusable, markdown-droppable data-visualization + micro-interaction
 * components for long-form research articles rendered through
 * templates/research_article.html. Progressive enhancement: every
 * component ships a server-rendered textual/tabular fallback inside its
 * markup (see article-enhance.js), so no-JS readers, crawlers, and screen
 * readers always get the real numbers. JS only makes the data vivid.
 *
 * Built on the shared design tokens in titratelab_tokens.css — palette,
 * spacing, radii, and the mono/serif/sans families all reuse --tl-* so
 * these components evolve the existing dark editorial aesthetic rather
 * than introduce a new one.
 *
 * Accuracy firewall: all data graphics are CODE-GENERATED from the real
 * numbers embedded in the markup. No AI imagery touches anything with data.
 *
 * Conventions (drop any of these into any article's markdown body):
 *   <figure class="tl-chart" data-chart="evidence-map" data-series='[...]'>
 *   <figure class="tl-chart" data-chart="bars"         data-series='[...]'>
 *   <div class="tl-grade-meter" data-grade="..." data-scale="...">
 *   <span class="tl-countup" data-to="16">16</span>
 *   <... class="tl-reveal">                  (scroll-reveal any block)
 *   <span class="tl-cite" data-tip="...">...</span>  (hover/focus tooltip)
 */

/* ── Scroll-reveal ────────────────────────────────────────────
 * A block tagged .tl-reveal starts slightly lowered + transparent and
 * eases in when scrolled into view (JS adds .is-revealed). The default
 * (no-JS) state is the FINAL state so content is never hidden without JS,
 * and reduced-motion users get the final state immediately (see @media).
 */
.tl-reveal {
  opacity: 1;
  transform: none;
}
/* Only arm the hidden start-state once JS has marked the document as
   enhancement-capable. Without the .tl-js gate, a no-JS reader would see
   permanently-hidden content. */
.tl-js .tl-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.tl-js .tl-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* ── Count-up numerals ────────────────────────────────────────
 * Server text inside the span is the real, correct value. JS counts from
 * a start value up to data-to when scrolled into view. tabular-nums keeps
 * the width stable so the line doesn't reflow as digits change. */
.tl-countup {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.tl-countup.is-counting {
  color: var(--tl-gold);
}

/* ── Chart figure shell (shared by evidence-map + bars) ──────── */
.tl-chart {
  margin: var(--tl-space-10) 0;
  padding: 0;
  background: var(--tl-navy-soft);
  border: 1px solid var(--tl-border);
  border-radius: var(--tl-radius-md);
  overflow: hidden;
}
.tl-chart-head {
  padding: var(--tl-space-5) var(--tl-space-6) var(--tl-space-3);
  border-bottom: 1px solid var(--tl-border);
}
.tl-chart-eyebrow {
  font-family: var(--tl-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--tl-gold);
  margin: 0 0 var(--tl-space-2);
}
.tl-chart-title {
  font-family: var(--tl-serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--tl-paper);
  margin: 0;
  letter-spacing: -0.2px;
}
/* The host of the rendered SVG. Hidden until JS draws into it so the
   server fallback is the only thing crawlers/no-JS readers see. */
.tl-chart-canvas {
  display: none;
  padding: var(--tl-space-5) var(--tl-space-4) var(--tl-space-2);
}
.tl-js .tl-chart-canvas.is-drawn {
  display: block;
}
/* When JS has drawn the SVG, collapse the verbose server fallback table
   to a screen-reader-only / crawler-only state (still in the DOM, still
   accessible, just visually replaced by the richer SVG). */
.tl-js .tl-chart.is-drawn .tl-chart-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tl-chart-fallback {
  padding: var(--tl-space-4) var(--tl-space-6) var(--tl-space-5);
}
.tl-chart figcaption {
  padding: var(--tl-space-4) var(--tl-space-6) var(--tl-space-5);
  border-top: 1px solid var(--tl-border);
  font-family: var(--tl-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--tl-muted);
}
.tl-chart figcaption strong { color: var(--tl-paper); }

/* SVG primitives — shared look for both chart types. */
.tl-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tl-chart svg text { font-family: var(--tl-mono); fill: var(--tl-muted); }
.tl-chart .tl-axis-line { stroke: var(--tl-border); stroke-width: 1; }
.tl-chart .tl-grid-line { stroke: var(--tl-border-muted); stroke-width: 1; stroke-dasharray: 2 4; }
.tl-chart .tl-axis-label { font-size: 10px; letter-spacing: 0.5px; fill: var(--tl-muted); }
.tl-chart .tl-axis-title { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; fill: var(--tl-muted); }

/* Evidence-map dots: a subtle entrance pop when the chart reveals. */
.tl-chart .tl-dot {
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tl-js .tl-chart-canvas .tl-dot {
  opacity: 0;
  transform: scale(0.2);
  transform-origin: center;
  transform-box: fill-box;
}
.tl-js .tl-chart-canvas.is-drawn .tl-dot {
  opacity: 1;
  transform: scale(1);
}
.tl-chart .tl-dot:hover,
.tl-chart .tl-dot:focus { outline: none; }
.tl-chart .tl-dot:focus-visible circle,
.tl-chart .tl-dot:hover circle { stroke: var(--tl-paper); stroke-width: 2; }
.tl-chart .tl-dot-label { font-size: 9px; fill: var(--tl-muted); pointer-events: none; }

/* Bars: grow from baseline on reveal. */
.tl-chart .tl-bar { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.tl-js .tl-chart-canvas .tl-bar { transform: scaleY(0); transform-origin: bottom; }
.tl-js .tl-chart-canvas.is-drawn .tl-bar { transform: scaleY(1); }
.tl-chart .tl-bar-rect { cursor: pointer; }
.tl-chart .tl-bar-group:hover .tl-bar-rect,
.tl-chart .tl-bar-group:focus-visible .tl-bar-rect { filter: brightness(1.25); outline: none; }
.tl-chart .tl-bar-value { font-size: 11px; font-weight: 600; }
.tl-chart .tl-bar-cat { font-size: 10px; fill: var(--tl-muted); }

/* Result-class color legend (shared evidence-map). Driven by JS via the
   --tl-c-* token map, mirrored here for the server fallback swatches. */
.tl-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tl-space-4);
  padding: 0 var(--tl-space-6) var(--tl-space-4);
  font-family: var(--tl-mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--tl-muted);
}
.tl-chart-legend-item { display: flex; align-items: center; gap: 6px; }
.tl-chart-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.tl-chart-legend-kind {
  display: inline-flex; align-items: center; gap: 6px;
}
.tl-chart-legend-kind svg { width: 14px; height: 14px; }

/* ── Floating tooltip (shared by dots + citations) ──────────── */
.tl-tip {
  position: fixed;
  z-index: 9500;
  max-width: 280px;
  padding: 10px 12px;
  background: #05080d;
  border: 1px solid rgba(88, 166, 255, 0.45);
  border-radius: var(--tl-radius-sm);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  font-family: var(--tl-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--tl-paper);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.tl-tip.is-visible { opacity: 1; transform: translateY(0); }
.tl-tip strong { color: var(--tl-gold); }
.tl-tip .tl-tip-meta {
  display: block;
  margin-top: 4px;
  font-family: var(--tl-mono);
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--tl-muted);
}

/* ── Citation marker — a hoverable/focusable underline on a study name ── */
.tl-cite {
  border-bottom: 1px dotted var(--tl-gold);
  cursor: help;
  text-underline-offset: 3px;
}
.tl-cite:focus-visible {
  outline: 2px solid var(--tl-gold);
  outline-offset: 2px;
  border-radius: 1px;
}

/* ── Evidence-grade meter ─────────────────────────────────────
 * A labeled segmented scale (None → Preliminary/Low → Moderate → Strong)
 * with the active segment highlighted. Server-rendered: the active
 * segment is marked in the markup via data-grade so it's correct without
 * JS; JS only adds the sweep-in animation + aria niceties. */
.tl-grade-meter {
  margin: var(--tl-space-10) 0;
  padding: var(--tl-space-5) var(--tl-space-6);
  background: var(--tl-navy-soft);
  border: 1px solid var(--tl-border);
  border-radius: var(--tl-radius-md);
}
.tl-grade-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--tl-space-4);
  margin-bottom: var(--tl-space-4);
  flex-wrap: wrap;
}
.tl-grade-meter-label {
  font-family: var(--tl-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--tl-gold);
}
.tl-grade-meter-value {
  font-family: var(--tl-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tl-caution-amber);
}
.tl-grade-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
}
.tl-grade-seg {
  position: relative;
  height: 10px;
  border-radius: 2px;
  background: var(--tl-border-muted);
  overflow: hidden;
}
.tl-grade-seg::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
}
.tl-js .tl-grade-seg.is-active::after { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.tl-grade-seg.is-active::after { transform: scaleX(1); }
/* Segment hues climb from neutral → amber (the active "preliminary/low"
   stop) so the meter reads as "low on the scale" at a glance. */
.tl-grade-seg.grade-none     { color: var(--tl-muted); }
.tl-grade-seg.grade-low      { color: var(--tl-caution-amber); }
.tl-grade-seg.grade-moderate { color: var(--tl-gold); }
.tl-grade-seg.grade-strong   { color: var(--tl-signal-green); }
.tl-grade-seg:not(.is-active) { opacity: 0.35; }
.tl-grade-seg:not(.is-active)::after { transform: scaleX(1); opacity: 0.4; }
.tl-grade-scale {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  margin-top: var(--tl-space-2);
}
.tl-grade-scale span {
  font-family: var(--tl-mono);
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--tl-muted);
  text-align: center;
}
.tl-grade-scale span.is-active { color: var(--tl-caution-amber); font-weight: 700; }
.tl-grade-meter-note {
  margin: var(--tl-space-4) 0 0;
  font-family: var(--tl-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--tl-muted);
}
.tl-grade-meter-note strong { color: var(--tl-paper); }

@media (max-width: 560px) {
  .tl-chart-title { font-size: 17px; }
  .tl-grade-scale span { font-size: 8px; letter-spacing: 0; }
  .tl-chart-legend { gap: var(--tl-space-3); font-size: 10px; }
}

/* ── Reduced-motion: honor the OS/browser preference ──────────
 * Disable count-ups, scroll-reveal travel, dot/bar entrance, and meter
 * sweep. Everything snaps straight to its final, correct state — no
 * animation, no movement — while the rendered SVG charts still show. */
@media (prefers-reduced-motion: reduce) {
  .tl-js .tl-reveal,
  .tl-js .tl-reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .tl-js .tl-chart-canvas .tl-dot,
  .tl-js .tl-chart-canvas.is-drawn .tl-dot {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .tl-js .tl-chart-canvas .tl-bar,
  .tl-js .tl-chart-canvas.is-drawn .tl-bar {
    transform: none !important;
    transition: none !important;
  }
  .tl-grade-seg.is-active::after { transition: none !important; }
  .tl-tip { transition: none !important; }
}

/* ════════════════════════════════════════════════════════════════
 * READING-RHYTHM COMPONENTS (2026-06-20)
 *
 * A restrained set of editorial "rhythm" primitives that break up long
 * walls of prose without shouting: a punchline highlighter, a set-off
 * pull-quote, an inline stat chip, a per-section takeaway box, and the
 * "evidence snippet" receipt cards that replace the old evidence-map
 * figure. All markdown-droppable, all on the same --tl-* token system.
 *
 * Design lens: highlighting everything = highlighting nothing. The
 * boldness is spent on the snippet cards + pull-quotes; the highlighter
 * stays a quiet single-phrase wash. No JS required for any of these
 * (purely declarative styling) — they degrade to plain semantic HTML.
 *
 * Conventions (drop into any article's markdown body):
 *   <mark class="tl-hl">the one punchline phrase</mark>
 *   <blockquote class="tl-pullquote">…</blockquote>  (or .tl-pullquote div)
 *   <span class="tl-stat">n=16</span>                (inline bordered chip)
 *   <div class="tl-takeaway"><strong>Bottom line</strong> …</div>
 *   <div class="tl-snippet-grid"> <figure class="tl-snippet" …> </figure> </div>
 * ════════════════════════════════════════════════════════════════ */

/* ── Punchline highlighter ───────────────────────────────────────
 * <mark class="tl-hl"> is a SUBTLE low-opacity amber/gold wash for the
 * single most-quotable phrase in a dense paragraph. The base .tl-body mark
 * (in research_article.html) is a blue marker; this variant warms it to
 * the caution-amber the grade-meter already uses, so a highlighted phrase
 * reads as "TitrateLab's editorial emphasis" rather than a link tint.
 * Spend it sparingly — one per paragraph at most. */
.tl-body mark.tl-hl {
  background: linear-gradient(180deg, transparent 52%, rgba(227, 179, 65, 0.28) 52%);
  color: inherit;
  padding: 0 2px;
  border-radius: 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.tl-body strong mark.tl-hl,
.tl-body mark.tl-hl strong { color: var(--tl-paper); }

/* ── Inline stat chip ────────────────────────────────────────────
 * Upgrades the existing inline .tl-body .tl-stat (mono gold numeral) into
 * a bordered "chip" so key numbers (n=16, 7–8 min, 49 years) read as
 * discrete data tokens inside running serif prose. Kept low-contrast so a
 * paragraph with three of them doesn't strobe. .tl-countup numerals can
 * also wear it. */
.tl-body .tl-stat {
  display: inline-block;
  font-family: var(--tl-mono);
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--tl-gold);
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.28);
  border-radius: var(--tl-radius-sm);
  padding: 0.02em 0.42em;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}
/* An "amber" stat chip for numbers that carry a caution/negative read
 * (e.g. a weak n, a short half-life). Same shape, warmer hue. */
.tl-body .tl-stat.tl-stat-amber {
  color: var(--tl-caution-amber);
  background: rgba(227, 179, 65, 0.08);
  border-color: rgba(227, 179, 65, 0.30);
}

/* ── Section takeaway box ────────────────────────────────────────
 * A "bottom line for this section" panel, visually distinct from
 * .tl-callout (which is a left-rule accent strip). The takeaway is a full
 * bordered card with a mono eyebrow, so it reads as a deliberate STOP-here
 * summary rather than an inline aside. Use one at the close of a major
 * section, not after every H3. */
.tl-body .tl-takeaway {
  position: relative;
  margin: var(--tl-space-10) 0;
  padding: var(--tl-space-5) var(--tl-space-6) var(--tl-space-5) var(--tl-space-8);
  background: linear-gradient(90deg, rgba(88, 166, 255, 0.10) 0%, rgba(88, 166, 255, 0.035) 100%);
  border: 1px solid rgba(88, 166, 255, 0.30);
  border-radius: var(--tl-radius-md);
  font-family: var(--tl-sans);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(250, 250, 247, 0.94);
}
.tl-body .tl-takeaway::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--tl-radius-md) 0 0 var(--tl-radius-md);
  background: var(--tl-gold);
}
.tl-body .tl-takeaway > strong:first-child {
  display: block;
  font-family: var(--tl-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--tl-gold);
  margin-bottom: var(--tl-space-2);
  font-weight: 600;
}
.tl-body .tl-takeaway p { margin: 0 0 var(--tl-space-2); color: inherit; }
.tl-body .tl-takeaway p:last-child { margin-bottom: 0; }
.tl-body .tl-takeaway strong { color: var(--tl-paper); }

/* ── Evidence snippet cards (the "receipts") ─────────────────────
 * A .tl-snippet is one card styled like a highlighted excerpt clipped from
 * a paper: a verbatim quote (or paper title), the study citation + year, a
 * result tag (positive / weak / null / negative), and a "View on PubMed →"
 * link. Several sit in a .tl-snippet-grid. This is the accuracy-firewall
 * way to show "what the trials found" — the quotes are hand-verified text
 * in the markup; no model and no chart approximate them. */
.tl-body .tl-snippet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--tl-space-5);
  margin: var(--tl-space-10) 0;
}
@media (min-width: 680px) {
  .tl-body .tl-snippet-grid { grid-template-columns: 1fr 1fr; }
}

.tl-body .tl-snippet {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--tl-space-5) var(--tl-space-5) var(--tl-space-4);
  background: var(--tl-navy-soft);
  border: 1px solid var(--tl-border);
  border-left: 3px solid var(--tl-muted);
  border-radius: 0 var(--tl-radius-md) var(--tl-radius-md) 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tl-body .tl-snippet:hover { transform: translateY(-2px); }

/* The verbatim clipping. Serif + a hanging open-quote glyph so it reads as
 * lifted from the source, not paraphrased by us. */
.tl-body .tl-snippet blockquote,
.tl-body .tl-snippet .tl-snippet-quote {
  position: relative;
  margin: 0 0 var(--tl-space-4);
  padding: 0;
  border: 0;
  font-family: var(--tl-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--tl-paper);
}
.tl-body .tl-snippet blockquote::before,
.tl-body .tl-snippet .tl-snippet-quote::before {
  content: "\201C";
  position: absolute;
  left: -2px;
  top: -16px;
  font-family: var(--tl-serif);
  font-style: normal;
  font-size: 46px;
  line-height: 1;
  color: rgba(88, 166, 255, 0.35);
  pointer-events: none;
}
.tl-body .tl-snippet .tl-snippet-quote { padding-top: var(--tl-space-3); }

/* Citation line (author + journal-year) in mono, muted. */
.tl-body .tl-snippet .tl-snippet-cite {
  font-family: var(--tl-mono);
  font-size: 12px;
  letter-spacing: 0.2px;
  line-height: 1.5;
  color: var(--tl-muted);
  margin-bottom: var(--tl-space-3);
}
.tl-body .tl-snippet .tl-snippet-cite strong {
  color: var(--tl-paper);
  font-weight: 600;
}

/* Footer row: result tag chip + PubMed link, pushed to the card bottom so
 * a grid of mismatched-height cards still aligns its actions. */
.tl-body .tl-snippet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--tl-space-3);
  margin-top: auto;
  padding-top: var(--tl-space-3);
  border-top: 1px solid var(--tl-border);
}

/* Result tag — a small mono pill. Hue maps to the verdict; the left card
 * rule is tinted to match via the .result-* class on the card. */
.tl-body .tl-snippet-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tl-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(139, 148, 158, 0.14);
  color: var(--tl-muted);
  border: 1px solid rgba(139, 148, 158, 0.3);
}
.tl-body .tl-snippet-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

/* Verdict color map — mirrors the evidence-map RESULT_COLORS so the whole
 * site speaks one result vocabulary. Tints the tag AND the card's left rule. */
.tl-body .tl-snippet.result-positive       { border-left-color: var(--tl-signal-green); }
.tl-body .tl-snippet.result-positive .tl-snippet-tag {
  color: var(--tl-signal-green); background: rgba(63, 185, 80, 0.12); border-color: rgba(63, 185, 80, 0.35);
}
.tl-body .tl-snippet.result-weak-positive   { border-left-color: var(--tl-caution-amber); }
.tl-body .tl-snippet.result-weak-positive .tl-snippet-tag {
  color: var(--tl-caution-amber); background: rgba(227, 179, 65, 0.12); border-color: rgba(227, 179, 65, 0.35);
}
.tl-body .tl-snippet.result-mixed           { border-left-color: var(--tl-caution-amber); }
.tl-body .tl-snippet.result-mixed .tl-snippet-tag {
  color: var(--tl-caution-amber); background: rgba(227, 179, 65, 0.12); border-color: rgba(227, 179, 65, 0.35);
}
.tl-body .tl-snippet.result-null            { border-left-color: var(--tl-muted); }
.tl-body .tl-snippet.result-null .tl-snippet-tag {
  color: var(--tl-muted); background: rgba(139, 148, 158, 0.14); border-color: rgba(139, 148, 158, 0.3);
}
.tl-body .tl-snippet.result-weak-negative   { border-left-color: #f0883e; }
.tl-body .tl-snippet.result-weak-negative .tl-snippet-tag {
  color: #f0883e; background: rgba(240, 136, 62, 0.12); border-color: rgba(240, 136, 62, 0.35);
}
.tl-body .tl-snippet.result-negative        { border-left-color: var(--tl-alert-red); }
.tl-body .tl-snippet.result-negative .tl-snippet-tag {
  color: var(--tl-alert-red); background: rgba(248, 81, 73, 0.12); border-color: rgba(248, 81, 73, 0.35);
}

/* PubMed link — a quiet mono action with a trailing arrow. */
.tl-body .tl-snippet-pubmed {
  font-family: var(--tl-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--tl-gold);
  text-decoration: none;
  white-space: nowrap;
}
.tl-body .tl-snippet-pubmed:hover { color: var(--tl-gold-soft); text-decoration: underline; }
.tl-body .tl-snippet-pubmed .tl-snippet-arrow { transition: transform 0.15s ease; display: inline-block; }
.tl-body .tl-snippet-pubmed:hover .tl-snippet-arrow { transform: translateX(3px); }

@media (max-width: 560px) {
  .tl-body .tl-snippet blockquote,
  .tl-body .tl-snippet .tl-snippet-quote { font-size: 16px; }
  .tl-body .tl-takeaway { font-size: 15px; padding-left: var(--tl-space-6); }
}

/* Reduced-motion: kill the snippet hover-lift + arrow nudge. */
@media (prefers-reduced-motion: reduce) {
  .tl-body .tl-snippet,
  .tl-body .tl-snippet:hover { transform: none !important; transition: none !important; }
  .tl-body .tl-snippet-pubmed .tl-snippet-arrow { transition: none !important; }
}
