/* ── MODAL TITLE CONTROLS ────────────────────────────────────────────────
 * The one place to change the modal title look. Every modal title on the
 * dashboards reads these three values. They accept a raw value (e.g. 30px)
 * or any brand token (e.g. var(--gf-text-card)); size/leading/weight are
 * the only properties standardized, colours stay with each modal.
 * Defaults come from the brand.css role (currently 28/36, medium). */
:root {
  --modal-title-size: var(--gf-text-title-modal);
  --modal-title-leading: var(--gf-leading-title-modal);
  --modal-title-weight: var(--gf-weight-medium);
}

/* Canonical modal title size.
 *
 * Every modal's primary title renders one size (currently flat 28/36,
 * medium — see the control block below), instead of the mix of card (20),
 * section (28) and body (16) sizes the modal surface had accumulated.
 *
 * The class below (`dashboard-modal-title`) is the standard going forward —
 * new modals should put it on their title element. The extra selectors are
 * legacy per-modal classes whose rules set their own size elsewhere; they
 * stay listed so existing markup picks the standard up without a rename.
 *
 * `!important` is deliberate, same as glass-backdrops.css: several of these
 * titles carry legacy inline `style="font-size: …"` attributes, and inline
 * styles only lose to an important declaration. Colour and margin are left
 * to each modal — only size, leading and weight are standardized here. */
.dashboard-modal-title,
.alltime-modal-title,
.wallet-earnings-title,
.referrals_modal_title,
.campaign_mgmt_title,
.campaign_analytics_title,
.edit_ad_title,
.create_campaign_title,
.premium_modal_title,
.analytics_profile_name,
.founders_dashboard_deactivate_modal_title,
.founders_dashboard_subscription_modal_title,
.feedback-title,
.event-booking-title-left,
.event-booking-success-title,
.contacts-sidebar-title,
.badge-detail-title,
.cd-modal-title,
.jb-modal-title,
.jb-wizard-title,
.deck-title-text,
.tut-checkout-title,
.create_event_modal_header h2,
.verify-modal-header h2,
.share-modal-header h2,
.founders_dashboard_messages_share_head h2 {
  font-size: var(--modal-title-size) !important;
  line-height: var(--modal-title-leading) !important;
  font-weight: var(--modal-title-weight) !important;
}
