/* ============================================================
   SIBIN — one heading scale for every page
   Page heroes share one size; every section heading shares one
   smaller size. Card titles and article sub-heads keep their own.
   ============================================================ */
:root {
  --h-hero: clamp(40px, 4.8vw, 70px);
  --h-section: clamp(32px, 3.7vw, 54px);
}

/* page heroes */
.hero-banner h1,
.subpage-hero h1,
.story-hero h1,
.px-hero .px-title h2.display-l {
  font-size: var(--h-hero) !important;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

/* section headings */
h2.display-l,
h2.display-xl,
h2.display-m:not(.vm-card h2),
#bridge h1.display-l,
.ph-head h2,
.im-arc-content h2 {
  font-size: var(--h-section) !important;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.px-hero .px-title h2.display-l { font-size: var(--h-hero) !important; }

/* header logo: the full SIBIN Learning Cart lockup (mark + two-line wordmark) */
/* the same lockup everywhere, smaller where there's less room */
.site-nav .brand-logo { height: 32px; width: auto; }
.site-footer .brand-logo { height: 36px; width: auto; }
.mobile-menu .brand-logo { height: 28px; width: auto; }
@media (max-width: 1100px) { .site-nav .brand-logo { height: 30px; } }
@media (max-width: 900px) { .site-nav .brand-logo { height: 28px; } .site-footer .brand-logo { height: 32px; } }
@media (max-width: 420px) { .site-nav .brand-logo { height: 25px; } .mobile-menu .brand-logo { height: 25px; } .site-footer .brand-logo { height: 30px; } }
/* over the dark photo heroes the lockup turns white until the nav turns light on scroll */
body.banner-hero .site-nav:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); opacity: 0.95; }
.site-nav .brand-logo { transition: filter 0.3s ease, opacity 0.3s ease; }
