/* ==========================================================================
   BloodAI Analytics — content design system
   --------------------------------------------------------------------------
   Loaded last, after public/static/tokens.css, on every generated homepage
   (/zh /ru /ja /id /ko /vi /hi /he), every article, every blog index and
   every biomarker hub, in all sixteen languages. Arabic and Hebrew render
   dir="rtl" with bootstrap.rtl.min.css swapped in ahead of this file.

   tokens.css owns the palette, the type/space/shape/motion scale, the reset,
   base typography, focus rings, the skip link and reduced-motion handling.
   Nothing here repeats it — this file owns components only: the sticky nav,
   the one card material every surface shares, section rhythm, the homepage
   sections, the blog index, the article reading experience and the
   biomarker/condition hub. Rewritten from a clean slate after two rejected
   passes that kept stacking a stylesheet on top of the last one until
   `!important` was the only way to make a rule win — this is the only
   component file in the cascade, so nothing here should ever need it.

   Logical properties throughout (margin-inline, inset-inline-*, text-align:
   start/end, …) so the whole file works unmodified under dir="rtl". A past
   bug used a negative physical offset to hide the skip link and added 10,000
   px of scroll width that opened every Arabic page blank — tokens.css fixed
   that one; the rule here is the same: no bare left/right, ever.
   ========================================================================== */

/* ---------------------------------------------------- 0. local, derived tokens
   Everything below is computed from tokens.css's own custom properties via
   color-mix() — never a literal colour — so it tracks whichever palette is
   active. --brand-solid is the one place that genuinely needs a *structural*
   dark-mode override: tokens.css deliberately makes --brand/--brand-700
   lighter in dark mode (right, for text and icons on a dark page), but a few
   places here fill a solid surface with white text on top of it — a button,
   the CTA band, a badge — and a lightened fill would drop that text below
   4.5:1. --brand-solid mixes --brand with black instead of reading --brand-700,
   so it stays a deep, saturated indigo in both schemes. */
:root {
  --gap: clamp(1rem, 2.5vw, 2rem);
  --brand-solid: var(--brand-700);
  --grad-brand: linear-gradient(135deg, var(--brand-solid) 0%, color-mix(in srgb, var(--brand-solid) 82%, black) 100%);

  /* Pure-CSS hero texture, no images: a soft brand/accent mesh plus a fine
     diagonal grain. Both read from --brand/--accent/--ink, so they re-tint
     automatically wherever those tokens change — no separate dark block. */
  --mesh: radial-gradient(46% 60% at 10% 8%, color-mix(in srgb, var(--brand) 12%, transparent) 0%, transparent 60%),
    radial-gradient(50% 55% at 92% 4%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 62%);
  --grain: repeating-linear-gradient(115deg,
      color-mix(in srgb, var(--ink) 4%, transparent) 0px,
      color-mix(in srgb, var(--ink) 4%, transparent) 1px,
      transparent 1px, transparent 3px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --brand-solid: color-mix(in srgb, var(--brand) 55%, black);
  }
}
:root[data-theme='dark'] {
  --brand-solid: color-mix(in srgb, var(--brand) 55%, black);
}

/* Scripts tokens.css doesn't already own a face for (it only special-cases
   Arabic and Hebrew). Self-hosting megabytes of CJK/Devanagari is slower and
   less legible than the reader's own system font. */
html[lang='zh-Hans'], html[lang='zh'] { --sans: system-ui, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; --display: var(--sans); }
html[lang='ja'] { --sans: system-ui, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, 'Noto Sans JP', sans-serif; --display: var(--sans); }
html[lang='ko'] { --sans: system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; --display: var(--sans); }
html[lang='hi'] { --sans: system-ui, 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', sans-serif; --display: var(--sans); }
html[lang='ru'], html[lang='vi'] { --sans: 'Plus Jakarta Sans', system-ui, sans-serif; }

/* Bootstrap's container gutter is 0.75rem (--bs-gutter-x: 1.5rem, halved) —
   4px short of the 16px minimum at 360px. */
:where(.container) { padding-inline: 1rem; }

/* ---------------------------------------------------------------- 1. buttons */
.btn {
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease),
    background-color var(--base) var(--ease), border-color var(--base) var(--ease), color var(--base) var(--ease);
}
.btn:focus { box-shadow: none; }
.btn:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; box-shadow: none; }

.btn-primary {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-primary:hover, .btn-primary:focus-visible { color: #fff; transform: translateY(-1px); box-shadow: var(--sh-3); }
.btn-primary:active { transform: translateY(0); }

.btn-outline-primary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline-primary:hover, .btn-outline-primary:focus-visible { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* Always sits on the CTA band's own gradient (which is itself deliberately
   theme-invariant via --brand-solid), so this button is too. */
.btn-light { background: rgba(255, 255, 255, 0.95); border-color: transparent; color: var(--brand-solid); box-shadow: var(--sh-1); }
.btn-light:hover, .btn-light:focus-visible { background: #fff; color: var(--brand-solid); transform: translateY(-1px); }

/* ------------------------------------------------------------------ 2. nav */
html { scroll-padding-top: 5.5rem; }

.ds-nav {
  /* 82% let article text read straight through the bar while scrolling — blur
     does not hide text at that opacity. Near-opaque, with a solid fallback for
     engines without backdrop-filter. */
  background-color: var(--surface);
  background-color: color-mix(in srgb, var(--surface) 96%, transparent);
  border-block-end: 1px solid var(--line);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: none; /* beats Bootstrap's .shadow-sm utility class in the markup — same specificity, later source wins */
}
.ds-nav .navbar-brand { font-family: var(--display); letter-spacing: var(--tight); }
/* The logotype's two-tone colour is baked into the generated markup as
   inline `style="color:#…"` on nested <span>s, so it never picked up a theme
   change. This is the one deliberate !important in the file: it exists only
   to beat inline styles this stylesheet cannot otherwise reach, not to win a
   fight with another stylesheet. */
.ds-nav .navbar-brand span[style] { color: var(--ink) !important; }
.ds-nav .navbar-brand span[style] span[style] { color: var(--brand) !important; }

.ds-nav .nav-link { color: var(--ink-2); font-weight: 500; }
.ds-nav .nav-link:hover, .ds-nav .nav-link:focus-visible { color: var(--ink); }
.ds-nav .nav-link[aria-current], .ds-nav .nav-link.active { color: var(--brand); font-weight: 600; }

.ds-nav .dropdown-menu { background-color: var(--surface); border-color: var(--line); border-radius: var(--r); box-shadow: var(--sh-3); }
.ds-nav .dropdown-item { color: var(--ink-2); }
.ds-nav .dropdown-item:hover, .ds-nav .dropdown-item:focus, .ds-nav .dropdown-item.active { background-color: var(--surface-3); color: var(--ink); }

.ds-nav .navbar-toggler { border-color: var(--line); }
.ds-nav .navbar-toggler:focus { box-shadow: none; }
.ds-nav .navbar-toggler:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Bootstrap paints the hamburger as a fixed-colour SVG background-image;
   masking it instead lets a background-color token drive the colour, so it
   follows the theme rather than staying black on a dark bar. */
.ds-nav .navbar-toggler-icon {
  background-image: none;
  background-color: var(--ink-2);
  mask: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath stroke='%23000' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  -webkit-mask: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath stroke='%23000' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------- 3. accordion (FAQ)
   Shared by .article-faq, .home-faq (homepage + hub). Bootstrap bakes its
   chevron as a fixed-hex data-URI (#212529 closed, #052c65 open) that never
   adapts under our prefers-color-scheme approach — Bootstrap only ships a
   dark variant behind [data-bs-theme=dark], an attribute this site never
   sets. Masking the same shape with a background-color token fixes it in
   both schemes with no extra selector. Equal-specificity rules loading after
   Bootstrap's own win the cascade normally, so none of this needs !important. */
.accordion-item { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: var(--s-3); overflow: hidden; background: var(--surface); transition: box-shadow var(--base) var(--ease); }
/* Bootstrap gives the first/last item in a joined accordion group only their
   outer corners, at higher specificity than a plain .accordion-item rule
   (:first-of-type/:last-of-type carry weight). Every FAQ here is a stack of
   separate rounded cards, not one joined group, so both corners need it —
   matching those selectors (and loading after Bootstrap's own) wins them
   without !important. */
.accordion-item:first-of-type, .accordion-item:last-of-type { border-radius: var(--r); }
.accordion-button { font-weight: 600; background: var(--surface); color: var(--ink); font-size: var(--t-base); text-align: start; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-button:focus-visible { box-shadow: 0 0 0 3px var(--brand-ring); z-index: 2; }
.accordion-button::after {
  background-image: none;
  background-color: var(--ink-2);
  mask: no-repeat center / 62%
    url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2 5L8 11L14 5'/%3E%3C/svg%3E");
  -webkit-mask: no-repeat center / 62%
    url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2 5L8 11L14 5'/%3E%3C/svg%3E");
}
.accordion-button:not(.collapsed)::after { background-image: none; background-color: var(--brand); }
.accordion-body { color: var(--ink-2); line-height: 1.7; text-align: start; }

/* ------------------------------------------------------- 4. card material
   One hover language for every card-like surface: flat and bordered at
   rest, lifts 2px with --sh-2 on hover, a brand→accent top edge switches on
   like a status indicator. Components below add only layout. */
.ds-card, .post-card, .home-plan, .home-step, .home-stat, .hub-condition, .related-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: none;
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease), border-color var(--base) var(--ease);
}
.ds-card::before, .post-card::before, .home-plan::before, .home-step::before, .home-stat::before, .hub-condition::before, .related-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  border-start-start-radius: min(var(--r-lg), 8px);
  border-start-end-radius: min(var(--r-lg), 8px);
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity var(--base) var(--ease);
  pointer-events: none;
}
.ds-card:hover, .post-card:hover, .home-plan:hover, .home-step:hover, .home-stat:hover, .hub-condition:hover, .related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.ds-card:hover::before, .post-card:hover::before, .home-plan:hover::before, .home-step:hover::before,
.home-stat:hover::before, .hub-condition:hover::before, .related-card:hover::before { opacity: 1; }

/* ------------------------------------------------------- 5. section rhythm */
.ds-section { padding-block: var(--section-y); background: var(--surface); color: var(--ink); }
.ds-section--tint { background: var(--surface-2); border-block-end: 1px solid var(--line); }

.ds-kicker { font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--wide); text-transform: uppercase; color: var(--brand); margin-bottom: var(--s-2); }
.ds-title { font-size: var(--t-3xl); line-height: 1.12; margin-bottom: var(--s-3); max-width: 30ch; }
.ds-lead { font-size: var(--t-lg); line-height: 1.6; color: var(--ink-2); max-width: 74ch; margin-bottom: clamp(1.25rem, 3vw, 2rem); text-wrap: pretty; }

.ds-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.ds-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.ds-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
/* auto-fit leaves a six-card set as 4+2 on a wide screen; pin the column
   count above the breakpoint where there is room for it, so rows stay even. */
@media (min-width: 992px) {
  .ds-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .ds-grid--3, .ds-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ds-card { padding: clamp(1.4rem, 2.4vw, 1.9rem); text-align: start; }
.ds-card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s-4);
  border-radius: var(--r);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.15rem;
  transition: transform var(--base) var(--ease);
}
.ds-card:hover .ds-card__icon { transform: scale(1.08); }
.ds-card__title { font-size: var(--t-md); font-weight: 700; margin-bottom: var(--s-2); color: var(--ink); text-align: start; text-wrap: balance; }
.ds-card__text { color: var(--ink-2); font-size: var(--t-base); line-height: 1.65; margin-bottom: 0; text-align: start; text-wrap: pretty; }

.ds-group-title { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); margin: 1.75rem 0 var(--s-3); }
.ds-group-title:first-child { margin-top: 0; }

.ds-chip-grid { display: block; }
.ds-chip {
  display: inline-block;
  margin-inline-end: var(--s-2);
  margin-block-end: var(--s-2);
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.ds-chip:hover { border-color: var(--brand-ring); color: var(--brand); background: var(--brand-soft); }

.ds-compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-sm); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ds-compare th, .ds-compare td { padding: 0.9rem 1.1rem; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; color: var(--ink); font-variant-numeric: tabular-nums; }
.ds-compare tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.ds-compare thead th { background: var(--surface-3); font-weight: 700; font-size: var(--t-xs); white-space: nowrap; position: sticky; inset-block-start: 0; z-index: 1; }
.ds-compare thead th:last-child { background: var(--brand-soft); color: var(--brand); }
.ds-compare tbody th { font-weight: 600; color: var(--ink-2); width: 22%; }
.ds-compare tbody tr:last-child th, .ds-compare tbody tr:last-child td { border-block-end: 0; }
.ds-compare td:last-child { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); font-weight: 500; }

.ds-fineprint { margin-top: var(--s-5); font-size: var(--t-xs); color: var(--ink-3); max-width: var(--measure); }

/* Latest-from-the-blog band, generated by build.mjs. */
.ds-posts { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.ds-post {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.ds-post:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--sh-2); }
.ds-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-3); transition: transform 420ms var(--ease); }
.ds-post:hover img { transform: scale(1.04); }
.ds-post__body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.4rem; text-align: start; }
.ds-post__kicker { font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--wide); text-transform: uppercase; color: var(--brand); }
.ds-post__title { font-size: 1.03rem; font-weight: 700; line-height: 1.35; margin: 0; text-wrap: balance; }
.ds-post__meta { font-size: var(--t-xs); color: var(--ink-3); margin-top: auto; }

/* Footer language list — a wrapping row, so sixteen labels never push past
   the viewport edge (they overflowed the leading edge under RTL). */
.footer-langs { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.footer-langs a { white-space: nowrap; transition: opacity var(--fast) var(--ease); }
.footer-langs a:hover { opacity: 0.75; }

/* --------------------------------------------------------- 6. blog index */
.blog-hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--grain), var(--mesh), linear-gradient(140deg, var(--brand-soft) 0%, var(--surface) 78%);
  border-block-end: 1px solid var(--line);
}
.blog-hero h1 { font-size: var(--t-4xl); margin-bottom: var(--s-3); max-width: 30ch; }
.blog-hero__lead { font-size: var(--t-lg); color: var(--ink-2); max-width: 74ch; margin: 0; text-wrap: pretty; }

.post-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); margin-block: clamp(2rem, 5vw, 3rem); }

.post-card { overflow: hidden; }
.post-card:hover { border-color: var(--line-2); }
.post-card--lead { grid-column: 1 / -1; }
.post-card--lead .post-card__link { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.post-card--lead .post-card__title { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
@media (max-width: 767.98px) { .post-card--lead .post-card__link { grid-template-columns: 1fr; } }

.post-card__link { display: block; text-decoration: none; color: inherit; height: 100%; }
.post-card__media { background: var(--surface-3); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform 420ms var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card--lead .post-card__media img { aspect-ratio: auto; min-height: 100%; }
.post-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: var(--s-2); height: 100%; text-align: start; }
.post-card__kicker { font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--wide); text-transform: uppercase; color: var(--brand); }
.post-card__title { font-size: var(--t-md); font-weight: 700; line-height: 1.35; margin: 0; color: var(--ink); text-wrap: balance; }
.post-card__excerpt { color: var(--ink-2); font-size: var(--t-base); line-height: 1.6; margin: 0; text-wrap: pretty; }
.post-card__meta { font-size: var(--t-xs); color: var(--ink-3); }
.post-card__cta { font-weight: 600; color: var(--brand); font-size: 0.92rem; margin-top: auto; display: inline-flex; align-items: center; gap: 0.35rem; }
.post-card__cta::after { content: '\2192'; transition: transform var(--fast) var(--ease); }
html[dir='rtl'] .post-card__cta::after { content: '\2190'; }
.post-card:hover .post-card__cta::after { transform: translateX(4px); }
html[dir='rtl'] .post-card:hover .post-card__cta::after { transform: translateX(-4px); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chip--lg { padding: 0.7rem 1.3rem; font-size: 1rem; }

.lang-switch { margin-block: clamp(2rem, 5vw, 3rem); }

/* -------------------------------------------------------- 7. article page */
.article-hero, .hub-hero {
  position: relative;
  padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(1.5rem, 3vw, 2.25rem);
  background: var(--grain), var(--mesh), linear-gradient(150deg, var(--brand-soft) 0%, var(--surface) 72%);
  border-block-end: 1px solid var(--line);
}
.article-hero h1 { font-size: var(--t-4xl); line-height: 1.16; margin: var(--s-2) 0 var(--s-3); max-width: 24ch; }
.article-hero__lead { font-size: var(--t-lg); color: var(--ink-2); max-width: 62ch; margin-bottom: var(--s-5); text-wrap: pretty; }

.hub-hero h1 { font-size: var(--t-4xl); line-height: 1.14; margin: var(--s-2) 0 var(--s-3); max-width: 30ch; }

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-1);
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.article-breadcrumb li + li::before { content: '/'; margin-inline-end: var(--s-2); color: var(--ink-3); }
.article-breadcrumb a { color: var(--ink-2); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--brand); text-decoration: underline; }

.article-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: var(--t-sm); color: var(--ink-2); }

.article-body { max-width: 52rem; padding-block: clamp(1.75rem, 4vw, 2.75rem); }

/* Table of contents. Tracked by enhance.js via IntersectionObserver, which
   toggles aria-current="true" on the link whose heading is on screen — the
   only thing this file owns is what that state looks like. */
.article-toc {
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand);
  border-radius: var(--r);
  background: var(--surface-2);
  padding: 1.15rem 1.4rem;
  margin-bottom: var(--s-6);
}
.article-toc__title { font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-2); margin-bottom: 0.6rem; }
.article-toc ol { margin: 0; padding-inline-start: 1.2rem; columns: 2; column-gap: var(--s-6); }
.article-toc li { margin-bottom: var(--s-2); break-inside: avoid; }
.article-toc a { color: var(--ink); text-decoration: none; font-size: 0.93rem; transition: color var(--fast) var(--ease); }
.article-toc a:hover { color: var(--brand); text-decoration: underline; }
.article-toc a[aria-current='true'] { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 575.98px) { .article-toc ol { columns: 1; } }

.article-prose { font-size: 1.06rem; line-height: 1.78; color: var(--ink); max-width: var(--measure); text-align: start; }
.article-prose > * + * { margin-top: var(--s-5); }
.article-prose h2 {
  font-size: var(--t-2xl);
  line-height: 1.25;
  margin-top: 2.85rem;
  margin-bottom: var(--s-3);
  padding-block-start: 0.9rem;
  border-block-start: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}
.article-prose h3 { font-size: clamp(1.1rem, 2vw, 1.28rem); margin-top: 1.9rem; margin-bottom: 0.6rem; scroll-margin-top: 5.5rem; }
.article-prose p { margin-bottom: 0; text-align: start; text-wrap: pretty; }
.article-prose ul, .article-prose ol { padding-inline-start: 1.4rem; text-align: start; }
.article-prose li { margin-bottom: var(--s-2); }
.article-prose li::marker { color: var(--brand); }
.article-prose strong { font-weight: 700; color: var(--ink); }
.article-prose a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-prose a:hover { color: color-mix(in srgb, var(--brand) 75%, var(--ink)); }
.article-prose blockquote {
  border-inline-start: 3px solid var(--brand);
  border-radius: var(--r-sm);
  padding: 1.1rem 1.4rem;
  margin-inline-start: 0;
  background: var(--surface-2);
  color: var(--ink-2);
  font-style: italic;
  font-size: 1.06em;
  line-height: 1.7;
  text-align: start;
}
.article-prose blockquote p:first-of-type::before { content: '\201C'; margin-inline-end: 0.15em; font-style: normal; font-weight: 700; color: var(--brand); }
.article-prose blockquote p:last-of-type::after { content: '\201D'; margin-inline-start: 0.1em; font-style: normal; font-weight: 700; color: var(--brand); }

/* Reference tables. A sticky header survives a long table's scroll, and the
   scroll-shadow affordance shows an edge fade only while there is more table
   in that direction — the two radial shadows are pinned to the viewport
   while the fades ride with the content, and the effect is direction-
   agnostic so it is correct unmodified under RTL. */
.table-wrap {
  position: relative;
  overflow-x: auto;
  margin-block: var(--s-6);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  -webkit-overflow-scrolling: touch;
  background-color: var(--surface);
  background-image:
    linear-gradient(to right, var(--surface) 30%, transparent),
    linear-gradient(to right, transparent, var(--surface) 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--ink) 20%, transparent), transparent),
    radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--ink) 20%, transparent), transparent) 100% 0;
  background-repeat: no-repeat;
  background-size: 32px 100%, 32px 100%, 12px 100%, 12px 100%;
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-attachment: local, local, scroll, scroll;
}
.table-ref { width: 100%; min-width: 32rem; border-collapse: separate; border-spacing: 0; font-size: 0.94rem; background: transparent; margin: 0; }
.table-ref caption { caption-side: top; padding: 0.85rem 1rem 0.25rem; text-align: start; font-size: var(--t-xs); color: var(--ink-3); }
.table-ref th, .table-ref td { padding: 0.8rem 1.1rem; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; font-variant-numeric: tabular-nums; }
.table-ref thead th { background: var(--surface-3); font-weight: 700; font-size: 0.85rem; white-space: nowrap; position: sticky; inset-block-start: 0; z-index: 1; box-shadow: 0 1px 0 var(--line); }
.table-ref tbody th { font-weight: 600; color: var(--ink); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.table-ref tbody tr:last-child td, .table-ref tbody tr:last-child th { border-block-end: 0; }
.table-ref tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table-ref tbody tr:hover { background: var(--surface-3); }

/* Callouts. Three real variants, distinguished by both colour and the
   inline-start accent, never by colour alone. */
.callout {
  border-radius: var(--r-sm);
  padding: 1.05rem 1.25rem;
  margin-block: var(--s-6);
  border: 1px solid var(--line);
  border-inline-start-width: 4px;
  background: var(--surface-2);
  font-size: var(--t-base);
  text-align: start;
}
.callout > :last-child { margin-bottom: 0; }
.callout--note { border-inline-start-color: var(--brand); background: var(--brand-soft); }
.callout--warn { border-inline-start-color: var(--accent); background: var(--accent-soft); }
.callout--tip { border-inline-start-color: var(--ok); background: var(--ok-soft); }

.stat-row { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); margin-block: var(--s-6); }
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  text-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-block-start: 2px solid var(--brand);
  border-radius: var(--r-sm);
}
.stat__value { display: block; font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--brand); line-height: 1.05; letter-spacing: var(--tight); font-variant-numeric: tabular-nums; }
.stat__label { display: block; font-size: var(--t-xs); color: var(--ink-2); }

/* Figures sit as deliberate objects — bordered, captioned, never bleeding to
   the edge of the measure. */
.fig { margin-block: var(--s-6); }
.fig img { width: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); display: block; }
.fig figcaption { font-size: var(--t-xs); line-height: 1.55; color: var(--ink-3); margin-top: var(--s-3); padding-block-start: 0.6rem; border-block-start: 1px solid var(--line); text-align: start; }

.article-faq { margin-block: var(--s-7); }
.article-faq h2 { font-size: var(--t-2xl); margin-bottom: var(--s-5); }

.article-sources { margin-block: var(--s-7); padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.article-sources h2 { font-size: 1.05rem; margin-bottom: 0.9rem; }
.article-sources ul { margin: 0; padding-inline-start: 1.2rem; text-align: start; }
.article-sources li { margin-bottom: var(--s-2); font-size: var(--t-base); }
.article-sources a { color: var(--brand); }

.article-cta {
  position: relative;
  margin-block: var(--s-7);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--r-xl);
  background: var(--grain), var(--grad-brand);
  color: #fff;
  text-align: start;
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.article-cta h2 { font-size: var(--t-2xl); margin-bottom: var(--s-2); max-width: 34ch; color: #fff; }
.article-cta p { color: rgba(255, 255, 255, 0.88); max-width: 46ch; margin: 0 0 var(--s-5); text-wrap: pretty; }

.article-author { display: flex; gap: var(--s-4); align-items: flex-start; margin-block: var(--s-7); padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.article-author__avatar {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
}

.article-related { margin-block: var(--s-7); }
.article-related h2 { font-size: var(--t-xl); margin-bottom: var(--s-4); }
.related-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.related-card { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 1.25rem; text-decoration: none; text-align: start; }
.related-card__kicker { font-size: var(--t-xs); font-weight: 700; letter-spacing: var(--wide); text-transform: uppercase; color: var(--brand); }
.related-card__title { font-size: var(--t-md); font-weight: 600; color: var(--ink); line-height: 1.4; text-wrap: balance; }

.article-disclaimer { margin-block: var(--s-6) 0; padding: 0.9rem 1.15rem; border-radius: var(--r-sm); background: var(--surface-3); color: var(--ink-2); font-size: var(--t-sm); }

/* ------------------------------------------- 8. reading progress indicator */
.reading-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 1080;
  pointer-events: none;
}
/* transform-origin only accepts physical keywords — there is no logical
   equivalent yet — so the RTL flip has to be an explicit override. */
html[dir='rtl'] .reading-progress { transform-origin: right center; }

/* ------------------------------------------- 9. generated homepage sections */
@keyframes ds-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.home-hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--grain), var(--mesh), linear-gradient(150deg, var(--brand-soft) 0%, var(--surface) 70%);
  border-block-end: 1px solid var(--line);
}
.home-hero__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
@media (max-width: 900px) { .home-hero__grid { grid-template-columns: 1fr; } .home-hero__art { order: -1; } }

.home-hero__title { font-size: var(--t-4xl); line-height: 1.12; margin: 0.4rem 0 0.9rem; max-width: 18ch; }
.home-hero__lead { font-size: var(--t-lg); color: var(--ink-2); max-width: 54ch; text-wrap: pretty; }
.home-hero__points { list-style: none; padding: 0; margin: var(--s-5) 0 clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: 0.6rem; }
.home-hero__points li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink); }
.home-hero__points i { color: var(--ok); margin-top: 0.28rem; flex: 0 0 auto; }
.home-hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.home-hero__art { position: relative; }
/* The illustration is a transparent PNG with the wordmark baked into it — the
   drop mark, "BloodAI Analytics" in dark navy and grey, and the vial. On the
   hero that lettering sits on the band at poor contrast and repeats the
   wordmark already in the navbar. Crop to the vial: `cover` on a tall box with
   the focus pushed toward the end shows the right-hand 39% of the source,
   which is the vial alone, and leaves the lettering outside the window. The
   hand-authored pages do the same thing in home.css. */
.home-hero__art img {
  display: block;
  position: relative;
  margin-inline: auto;
  width: clamp(240px, 30vw, 430px);
  height: auto;
  max-width: 100%;
  /* No drop-shadow: it is rasterised before the mask, so the shadow of the
     masked-away lettering survives as hard rectangles. The bloom behind the
     image supplies the depth instead. */
  /* Keep the drop mark and the vial, drop the baked-in wordmark.
     Measured off the asset rather than guessed: in the left half of the image
     the drop mark occupies y 38-58%, "BloodAI" y 63-73% and "Analytics"
     y 77-86%. So the lettering is exactly the region x < 52% AND y > 61%.
     The mask is the union of "right of 52%" and "above 61%", which keeps both
     graphics and removes only the text. Cropping to the vial alone — the
     previous attempt — left a lone floating tube. */
  --wordmark-mask:
    linear-gradient(to right, transparent 0 52%, #000 52%),
    linear-gradient(to bottom, #000 0 61%, transparent 61%);
  -webkit-mask-image: var(--wordmark-mask);
  mask-image: var(--wordmark-mask);
  -webkit-mask-composite: source-over;
  mask-composite: add;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.home-hero__art::before {
  content: '';
  position: absolute;
  inset: 8%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 26%, transparent), transparent 72%);
  filter: blur(32px);
  border-radius: var(--r-xl);
  animation: ds-drift 9s var(--ease) infinite;
}

.home-stats { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); margin-top: clamp(2rem, 5vw, 3rem); }
.home-stat { border-block-start: 2px solid var(--brand); padding: 1.1rem 1.25rem; text-align: start; }
.home-stat__value { display: block; font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2rem); font-weight: 700; color: var(--brand); letter-spacing: var(--tight); font-variant-numeric: tabular-nums; }
.home-stat__label { display: block; font-size: var(--t-xs); color: var(--ink-2); margin-top: 0.2rem; }

.home-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); counter-reset: step; }
.home-step { padding: 1.5rem 1.4rem 1.4rem; text-align: start; }
.home-step__n {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.85rem;
}
.home-step__title { font-size: var(--t-md); font-weight: 700; margin-bottom: 0.4rem; text-wrap: balance; }
.home-step__text { color: var(--ink-2); font-size: var(--t-base); line-height: 1.6; margin: 0; text-wrap: pretty; }

.home-plans { align-items: stretch; }
.home-plan { display: flex; flex-direction: column; gap: 0.75rem; padding: clamp(1.5rem, 3vw, 2.1rem); text-align: start; }
.home-plan--featured { border-color: var(--brand); }
.home-plan--featured::before { opacity: 1; }
.home-plan--featured:hover { box-shadow: var(--sh-3); }
.home-plan__badge {
  position: absolute;
  inset-block-start: -0.75rem;
  inset-inline-start: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--brand-solid);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: var(--wide);
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-pill);
}
.home-plan__name { font-size: var(--t-md); font-weight: 700; margin: 0; }
.home-plan__price { margin: 0; display: flex; align-items: baseline; gap: 0.4rem; }
.home-plan__price strong { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--brand); line-height: 1; letter-spacing: var(--tight); font-variant-numeric: tabular-nums; }
.home-plan__price span { color: var(--ink-3); font-size: 0.9rem; }
.home-plan__features { list-style: none; padding: 0; margin: 0.35rem 0 1.1rem; display: grid; gap: 0.5rem; }
.home-plan__features li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--t-base); color: var(--ink-2); }
.home-plan__features i { color: var(--ok); margin-top: 0.3rem; flex: 0 0 auto; }
.home-plan a { margin-top: auto; }

.home-sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.home-sources a { color: var(--brand); font-weight: 500; }

/* --------------------------------------- 10. biomarker / condition hub
   The hub is a reference surface, not another article: forty-plus markers
   need to scan fast, so the cards run denser than a normal .ds-card, the
   abbreviation is its own badge rather than a colour change in running
   text, and the group jump-links are large, wrapping chips. */
.hub-hero__lead { font-size: var(--t-lg); color: var(--ink-2); max-width: 76ch; margin-bottom: var(--s-4); text-wrap: pretty; }

.hub-jump { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }

.hub-group { margin-bottom: clamp(2rem, 4vw, 2.75rem); scroll-margin-top: 6rem; }
.hub-group__title { font-size: var(--t-xl); font-weight: 700; color: var(--ink); padding-bottom: 0.6rem; margin-bottom: var(--s-4); border-block-end: 2px solid var(--brand-soft); }

.hub-markers { display: grid; gap: 0.65rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); margin: 0; }
.hub-marker {
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--brand);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.95rem;
  background: var(--surface);
  text-align: start;
  transition: border-color var(--base) var(--ease), box-shadow var(--base) var(--ease), transform var(--base) var(--ease);
}
.hub-marker:hover { border-inline-start-color: var(--accent); box-shadow: var(--sh-1); transform: translateY(-1px); }
.hub-marker dt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; font-size: 0.95rem; }
.hub-marker dd { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.5; }
/* The abbreviation as printed on a lab report — set apart from the marker's
   full name as its own badge, not just a colour change in the same line. */
.hub-marker__abbr {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hub-marker__more { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.3rem; font-size: var(--t-xs); font-weight: 600; color: var(--brand); text-decoration: none; }
.hub-marker__more:hover { text-decoration: underline; }

.hub-conditions { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.hub-condition { padding: 1.25rem 1.4rem; text-align: start; scroll-margin-top: 6rem; }
.hub-condition__title { font-size: var(--t-md); font-weight: 700; margin-bottom: 0.45rem; text-wrap: balance; }
.hub-condition__text { color: var(--ink-2); font-size: var(--t-base); line-height: 1.6; margin-bottom: 0.75rem; text-wrap: pretty; }
.hub-condition__markers { margin: 0; }

.hub-trial__note { color: rgba(255, 255, 255, 0.85); font-size: var(--t-sm); margin: var(--s-4) 0 0; }

/* --------------------------------------------------------- 11. rtl behaviour
   Everything above is written with logical properties and already flips
   correctly. What's left are the handful of things CSS logical properties
   don't cover: physical keyword values, and Font Awesome glyphs that are
   inherently directional (an arrow) rather than symmetric. */
html[dir='rtl'] .fa-arrow-right { transform: scaleX(-1); }

/* ------------------------------------ 12. script-specific line breaking
   `ch` is the width of a "0" glyph, so a title box sized in ch fits far
   fewer Han/Kana characters than Latin ones at the same value, and a
   heading orphans its last character on a line of its own. These scripts
   need a wider effective measure; Korean also reads far better when a line
   never breaks inside a word. */
html[lang='ja'] .ds-title, html[lang='ko'] .ds-title, html[lang^='zh'] .ds-title,
html[lang='ja'] .home-hero__title, html[lang='ko'] .home-hero__title, html[lang^='zh'] .home-hero__title,
html[lang='ja'] .article-hero h1, html[lang='ko'] .article-hero h1, html[lang^='zh'] .article-hero h1,
html[lang='ja'] .blog-hero h1, html[lang='ko'] .blog-hero h1, html[lang^='zh'] .blog-hero h1,
html[lang='ja'] .hub-hero h1, html[lang='ko'] .hub-hero h1, html[lang^='zh'] .hub-hero h1 {
  max-width: 38ch;
  line-break: strict;
}
html[lang='ja'] .ds-lead, html[lang='ko'] .ds-lead, html[lang^='zh'] .ds-lead,
html[lang='ja'] .home-hero__lead, html[lang='ko'] .home-hero__lead, html[lang^='zh'] .home-hero__lead {
  max-width: 46em;
}
html[lang='ko'] .ds-title, html[lang='ko'] .home-hero__title, html[lang='ko'] .ds-card__title, html[lang='ko'] .home-step__title {
  word-break: keep-all;
}
html[lang='ja'] .article-prose, html[lang='ko'] .article-prose, html[lang^='zh'] .article-prose, html[lang='hi'] .article-prose {
  max-width: 44em;
}

/* Devanagari sits taller than Latin; give it a little more leading. */
html[lang='hi'] .article-prose, html[lang='hi'] .accordion-body, html[lang='hi'] .ds-card__text { line-height: 1.75; }
html[lang='hi'] .ds-title, html[lang='hi'] .home-hero__title { line-height: 1.3; max-width: 26ch; }

/* ---------------------------------------------- 13. print (saved lab notes) */
@media print {
  .ds-nav, .article-cta, .ds-post, .chip-row, .hub-jump, footer, .skip-link, .reading-progress { display: none !important; }
  .article-hero, .home-hero, .blog-hero, .hub-hero { background: none; border: 0; }
  .home-hero__art::before { display: none; }
  .article-prose { font-size: 11pt; }
  .article-prose a::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
  .table-wrap { overflow: visible; background-image: none; border-color: #999; }
  .table-ref thead th { position: static; box-shadow: none; }
}

/* ---- Homepage tuning (src/lib/home-tune.mjs) ---- */
.ht-jump {
  max-inline-size: 1140px;
  margin-inline: auto;
  padding: 0.75rem 1rem;
}
.ht-jump ul {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0 0 0.25rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ht-jump li { flex: 0 0 auto; }
.ht-jump a {
  display: inline-block;
  min-block-size: 44px;
  max-inline-size: 16rem;
  box-sizing: border-box;
  padding: 0 0.95rem;
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.06);
  color: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 42px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ht-jump a:hover { background: rgba(79, 70, 229, 0.14); border-color: rgba(79, 70, 229, 0.55); }
.ht-jump a:focus-visible {
  outline: 3px solid #7c3aed;
  outline-offset: 2px;
}
@media (min-width: 992px) {
  .ht-jump ul { flex-wrap: wrap; justify-content: center; overflow: visible; }
}
/* Anchor targets clear the sticky navbar. */
section[id] { scroll-margin-block-start: 5rem; }
