/* Markdown headings are link targets (the anchor plugin gives each an id).
   The sticky top bar sits inside the scroll container, so a heading scrolled
   to the container's top edge would be hidden under it: stop it just below.
   Used by the browser's own in-page anchor jumps and by $lib/utils/hashScroll
   for deep links. */
.markdown-body :is(h1, h2, h3, h4, h5, h6)[id] {
  scroll-margin-top: calc(var(--topbar-h, 4rem) + 1rem);
}
/* Our documents in Hebrew in the brochure's type (the owner, 2026-11-06:
   "more luxurious, the fonts of the /e/ pages"): Bellefair's high-contrast
   display for the headings, Assistant's open sans for the reading text.
   The fonts are loaded by the page (HEBREW_MARKDOWN_FONTS). */
.md-he .carta-renderer,
.md-he .markdown-body {
  font-family: Assistant, 'Work Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.8;
}

.md-he :is(h1, h2, h3, h4) {
  /* Arial after Georgia: should Google Fonts be blocked, Hebrew gets a clean sans, not the old default serif. */
  font-family: Bellefair, 'Frank Ruhl Libre', georgia, arial, 'Arial Hebrew', helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.md-he h1 {
  font-size: 2.3rem;
}

.md-he h2 {
  font-size: 1.75rem;
}

.md-he h3 {
  font-size: 1.35rem;
}

.md-he :is(strong, b) {
  font-weight: 600;
}
