/*
 MERCERBRIDGE | Shared heading hierarchy
 Loaded LAST on every website page, including Advisor Network.
 Adjust these tokens here rather than adding page-specific heading overrides.
*/
:root {
  --mb-type-h1: clamp(2.75rem, 3.7vw, 3.25rem);
  --mb-type-h2: clamp(2.25rem, 2.8vw, 2.5rem);
  --mb-type-h3: clamp(1.5rem, 1.9vw, 1.75rem);
  --mb-type-h4: clamp(1.125rem, 1.4vw, 1.375rem);
}
/* Page titles: more prominent than any section title, without giant stacked lines. */
body h1:not(.mb-footer h1) {
  font-size: var(--mb-type-h1) !important;
  line-height: 1.13 !important;
  letter-spacing: -.025em !important;
  font-weight: 400 !important;
  overflow-wrap: normal;
  word-break: normal;
}
/* Content section headings. Exclude footer, embedded booking widgets and small UI headings. */
body h2:not(.mb-footer h2):not(.an-simplybook h2):not(.mbbk-calendar h2) {
  font-size: var(--mb-type-h2) !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
  font-weight: 400 !important;
}
/* Subheadings, cards and process stages stay subordinate to the H2. */
body h3:not(.mb-footer h3):not(.an-simplybook h3):not(.mbbk-calendar h3) {
  font-size: var(--mb-type-h3) !important;
  line-height: 1.28 !important;
}
body h4:not(.mb-footer h4):not(.an-simplybook h4) {
  font-size: var(--mb-type-h4) !important;
  line-height: 1.35 !important;
}
/* Keep existing navy/white/gold treatments, and existing page layout/spacing. */
@media (max-width: 767px) {
  :root {
    --mb-type-h1: clamp(2.25rem, 8vw, 2.75rem);
    --mb-type-h2: clamp(1.875rem, 6.4vw, 2.125rem);
    --mb-type-h3: clamp(1.3125rem, 4.8vw, 1.5rem);
  }
}
