/* Internal marketing pages only. Homepage and the full product catalogue keep
   their existing scale; form headings, cards, navigation and footer are untouched. */
.ymed_main:not(:has(> .home-page, > .products-page)) {
    --internal-hero-title-size: clamp(34px, 4vw, 56px);
    --internal-section-title-size: clamp(28px, 3.1vw, 42px);
    --site-title-size: var(--internal-hero-title-size);
}

.ymed_main:not(:has(> .home-page, > .products-page)) :is(
    .product-single__hero h1,
    .specialty-hero h1,
    .editorial-hero h1,
    .specialties-hero h1,
    .specialty-detail-hero h1,
    .policy-hero h1,
    .ymed_page_hero h1,
    .how-hero h1,
    .support-hero h1,
    .demo-header h1,
    .media-hero h1,
    .media-article h1
) {
    font-size: var(--internal-hero-title-size);
    line-height: 1.1;
}

.ymed_main:not(:has(> .home-page, > .products-page)) :is(
    .product-single__center-copy h2,
    .product-single__split-heading h2,
    .product-single__imaging h2,
    .product-single__future-heading h2,
    .product-single__clinical-heading h2,
    .product-single__details-copy h2,
    .product-single__accessory-showcase-heading h2,
    .product-views__intro h2,
    .specialty-showcase__copy h2,
    .specialty-highlights__intro h2,
    .specialty-recommendations .products-section-heading h2,
    .specialty-performance__content > h2,
    .specialty-device-panels__heading h2,
    .specialty-device-panels__mid-title,
    .specialty-engagement__heading h2,
    .editorial-heading h2,
    .editorial-form-grid h2,
    .editorial-story h2,
    .editorial-empty-state h2,
    .editorial-closing h2,
    .specialty-products h2,
    .specialties-manifesto h2,
    .specialties-technology h2,
    .specialties-final h2,
    .specialty-cinema__copy h2,
    .specialty-detail-intro h2,
    .specialty-practice h2,
    .how-heading h2,
    .how-story h2,
    .how-cinema h2,
    .how-devices h2,
    .how-ending h2,
    .demo-specialists h2,
    .demo-final-cta h2,
    .media-feature h2,
    .media-list h2,
    .media-archive h2,
    .media-connect h2
) {
    font-size: var(--internal-section-title-size);
    line-height: 1.15;
}

/* These sections already used a smaller editorial scale. Reduce gently rather
   than promoting them to the main section-heading size. */
.ymed_main:not(:has(> .home-page, > .products-page)) :is(
    .support-feature-copy h2,
    .support-ending h2,
    .contact-section-heading h2,
    .demo-feature h2
) {
    font-size: clamp(26px, 2.5vw, 32px);
    line-height: 1.18;
}

@media (max-width: 1024px) {
    .ymed_main:not(:has(> .home-page, > .products-page)) {
        --internal-hero-title-size: clamp(34px, 4.7vw, 48px);
        --internal-section-title-size: clamp(28px, 3.8vw, 36px);
    }
}

@media (max-width: 767px) {
    .ymed_main:not(:has(> .home-page, > .products-page)) {
        --internal-hero-title-size: clamp(30px, 8.3vw, 36px);
        --internal-section-title-size: clamp(26px, 7vw, 30px);
    }
}
