/* Single owner of frontend typography. Sizes and rhythm live in tokens.css.
   Font family overrides from the admin remain inherited through CSS variables. */
body {
    font-family: var(--font-body);
    font-size: var(--text-body-size);
    font-weight: var(--weight-regular);
    line-height: var(--line-body);
    letter-spacing: var(--tracking-body);
}
:where(h1, h2, h3, h4) {
    font-family: var(--font-ui);
    font-weight: var(--heading-weight);
    line-height: var(--line-heading);
    letter-spacing: var(--tracking-heading);
}
:where(h1) { font-size: var(--heading-page-size); }
:where(h2) { font-size: var(--heading-section-size); }
:where(h3) { font-size: var(--heading-card-size); }
:where(h4) { font-size: var(--heading-compact-size); }
:where(button, input, select, textarea) { font: inherit; }

/* Page, section and conversion headings use the same hierarchy. */
.bright-page-hero h1 { font-size: var(--heading-page-size); text-transform: var(--heading-case); }
.bright-section-title, .bright-about h2, .values-section__title, .why-bright__title {
    font-size: var(--heading-section-size);
    text-transform: var(--heading-case);
}
.registration-card__title, .bright-enquiry h2 {
    font-size: var(--heading-form-size);
    text-transform: var(--heading-case);
}
.bright-enquiry h2 strong { font-weight: inherit; }
.site-footer__title { font-size: var(--heading-footer-size); text-transform: var(--heading-case); }
.bright-welcome__text, .bright-about__intro { font-size: var(--text-lead-size); line-height: var(--line-lead); }
.bright-welcome h2 { font: inherit; letter-spacing: var(--tracking-body); }
.bright-about__intro { font-weight: var(--weight-medium); }
.bright-about__mission, .bright-program-card p, .bright-admission-fee p,
.bright-tuition__included, .site-footer__group p { font-size: var(--text-body-size); line-height: var(--line-body); }
.bright-page-hero__subtitle { font-family: var(--font-ui); font-size: var(--heading-subtitle-size); font-weight: var(--heading-weight); line-height: var(--line-heading); }
.bright-page-hero__description p { font-size: var(--text-body-size); line-height: var(--line-body); }

/* Card copy, labels and the intentionally compact values pills. */
.bright-program-card h3, .bright-admission-fee h3, .bright-school-card__heading h3 {
    font-size: var(--heading-card-size);
    text-transform: var(--card-heading-case);
}
.bright-program-card h3, .bright-admission-fee h3, .why-bright__card h3 { margin-bottom: var(--heading-copy-gap); }
.bright-school-card__heading p { font-family: var(--font-ui); font-size: var(--heading-card-size); font-weight: var(--weight-semibold); line-height: var(--line-label); }
.bright-school-card__subjects { font-size: var(--text-body-size); line-height: var(--line-body); }
.why-bright__card { font-size: var(--text-card-size); line-height: var(--line-body); }
.why-bright__card h3, .site-footer__group h3 { font-size: var(--heading-compact-size); }
.bright-admission-step__label { font-family: var(--font-ui); font-size: var(--text-body-size); font-weight: var(--weight-semibold); line-height: var(--line-label); }
.bright-tuition__price { font-family: var(--font-ui); font-size: var(--heading-card-size); font-weight: var(--heading-weight); line-height: var(--line-label); }
.bright-tuition__included li { line-height: var(--line-label); }
.bright-home .value-card h3 { margin-bottom: var(--value-title-gap); font-size: var(--heading-value-size); line-height: var(--line-value-heading); letter-spacing: var(--tracking-body); text-transform: var(--heading-case); }
.bright-home .value-card p { font-size: var(--text-base); line-height: var(--line-value-body); }

/* Blog uses the same type roles; editorial titles retain natural case. */
.bright-blog, .bright-article, .bright-content-page, .bright-page-extra { font-family: var(--font-body); font-size: var(--text-body-size); line-height: var(--line-body); }
.bright-blog h1, .bright-article h1, .bright-content-page h1, .bright-prose h2, .bright-prose h3, .bright-prose h4, .bright-blog h2, .bright-post-card__title, .bright-posts-block__title { font-family: var(--font-ui); font-weight: var(--heading-weight); line-height: var(--line-heading); letter-spacing: var(--tracking-heading); text-transform: none; }
.bright-blog-masthead h1 { font-size: var(--heading-blog-size); }
.bright-article h1, .bright-content-page h1 { font-size: var(--heading-article-size); }
.bright-prose h2, .bright-posts-block__title, .bright-blog-empty h2 { font-size: var(--heading-card-size); }
.bright-prose h3 { font-size: var(--text-xl); }
.bright-prose h4 { font-size: var(--text-lg); }
.bright-blog-intro, .bright-article__lead { font-size: var(--text-lead-size); line-height: var(--line-lead); }
.bright-post-card__title, .bright-prose .bright-post-card__title { font-size: var(--text-xl); }
.bright-post-card__excerpt { font-size: var(--text-card-size); line-height: var(--line-body); }
.bright-blog-eyebrow, .bright-post-meta, .bright-article__cover figcaption { font-size: var(--text-sm); line-height: var(--line-label); }
.bright-blog-eyebrow, .bright-post-card__read { font-weight: var(--weight-semibold); }
.bright-post-card__placeholder, .bright-blog-empty__mark { font-family: var(--font-ui); font-size: var(--heading-article-size); font-weight: var(--heading-weight); line-height: var(--line-heading); }
.bright-blog-categories, .bright-blog-search, .bright-blog-search input, .bright-blog-search button, .bright-blog-button, .bright-post-card__read, .bright-comments input, .bright-comments textarea { font-family: var(--font-control); font-size: var(--text-button-size); line-height: var(--line-body); }

/* One FAQ on every page: same case, weight, size and paragraph spacing. */
.faq-item summary { font-family: var(--font-ui); font-size: var(--heading-faq-size); font-weight: var(--faq-question-weight); line-height: var(--faq-question-line); letter-spacing: var(--tracking-body); text-transform: var(--faq-case); }
.faq-item__answer { font-family: var(--font-body); font-size: var(--faq-answer-size); font-weight: var(--weight-regular); line-height: var(--faq-answer-line); }
.faq-item__answer p + p { margin-top: var(--paragraph-gap); }

/* Navigation and controls retain distinct, consistent roles. */
.main-menu, .mobile-menu, .mobile-menu__phone { font-family: var(--font-ui); }
.main-menu > ul > li > a { font-size: var(--text-sm); font-weight: var(--weight-bold); line-height: var(--line-label); text-transform: var(--button-case); }
.main-menu .sub-menu a, .bright-mobile-links .sub-menu a { font-size: var(--text-base); font-weight: var(--weight-medium); line-height: var(--line-label); }
.mobile-menu__nav a { font-size: var(--text-lg); font-weight: var(--weight-bold); line-height: var(--line-label); }
.mobile-menu__phone { font-size: var(--text-md); }
.mobile-menu__contact { font-size: var(--text-sm); font-weight: var(--weight-bold); }
.contact-button, .hero-button, .bright-page-hero__button, .bright-school-card__button,
.registration-form button, .bright-enquiry__submit {
    font-family: var(--font-ui);
    font-size: var(--text-button-size);
    font-weight: var(--weight-semibold);
    line-height: var(--line-label);
    text-transform: var(--button-case);
}
.registration-form input, .bright-enquiry input { font-family: var(--font-control); font-size: var(--text-base); line-height: var(--line-label); }
.registration-form__message, .bright-enquiry__message { font-family: var(--font-control); font-size: var(--text-body-size); line-height: var(--line-body); }
.bright-video-toggle { font-family: var(--font-control); font-size: var(--text-xs); line-height: var(--line-label); }

/* Decorative numerals and icons are not part of the reading scale. */
.bright-admission-step__number { font-family: var(--font-ui); font-size: var(--step-number-size); line-height: var(--line-solid); }
.why-bright__number { font-family: var(--font-ui); font-size: var(--benefit-number-size); font-weight: var(--weight-regular); line-height: var(--line-solid); }
.values-gallery__arrow, .mobile-menu__close { font-size: var(--icon-large-size); line-height: var(--line-solid); }
.hero-button__icon, .contact-button__icon { font-size: var(--text-xl); font-weight: var(--weight-regular); line-height: var(--line-solid); }
.site-footer__socials a, .mobile-menu__languages a { font-family: var(--font-ui); font-size: var(--icon-size); font-weight: var(--weight-bold); line-height: var(--line-solid); }
