/* Public Uway typography. Section and editorial headings share one scale. */
.uway-heading-scale {
    --uway-heading-font: Inter, sans-serif;
    --uway-page-title-size: 50px;
    --uway-page-title-line: 57px;
    --uway-section-title-size: 40px;
    --uway-section-title-line: 48px;
    --uway-subheading-size: 26px;
    --uway-subheading-line: 34px;
    --uway-small-heading-size: 20px;
    --uway-small-heading-line: 28px;
    --uway-card-title-size: 18px;
    --uway-card-title-line: 24px;
}

@media (max-width: 900px) {
    .uway-heading-scale {
        --uway-page-title-size: 40px;
        --uway-page-title-line: 48px;
        --uway-section-title-size: 34px;
        --uway-section-title-line: 42px;
    }
}

@media (max-width: 560px) {
    .uway-heading-scale {
        --uway-page-title-size: 30px;
        --uway-page-title-line: 37px;
        --uway-section-title-size: 24px;
        --uway-section-title-line: 34px;
        --uway-subheading-size: 20px;
        --uway-subheading-line: 28px;
        --uway-small-heading-size: 18px;
        --uway-small-heading-line: 26px;
        --uway-card-title-size: 16px;
        --uway-card-title-line: 22px;
    }
}

.uway-heading-scale body :is(
    h1,
    .blog-hero h1.blog-hero__title,
    .events-cover .main-block__title h1,
    .rq-layout .rq-intro h1
) {
    font-family: var(--uway-heading-font);
    font-size: var(--uway-page-title-size);
    font-weight: 900;
    line-height: var(--uway-page-title-line);
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.uway-heading-scale body :is(
    h2,
    .section-header__title:not(h1),
    .blog-agenda h2,
    .youtube-preview h2,
    .fr-agenda h2,
    .visa-leaf h2,
    .service-online-selection__copy h2,
    .blog__content h2,
    .case__content-text h2,
    .case__related h2,
    .legal-page__content h2,
    .sitemap-section__title,
    .cooperation-block__title,
    .events-shell h2,
    .uway-calc .uw-head h2,
    .rq-layout .rq-step h2,
    .rq-layout .rq-success h2
) {
    font-family: var(--uway-heading-font);
    font-size: var(--uway-section-title-size);
    font-weight: 900;
    line-height: var(--uway-section-title-line);
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.uway-heading-scale body :is(
    h3,
    .blog__content h3,
    .case__content-text h3,
    .legal-page__content h3,
    .events-shell .seo-copy h3,
    .service-section__reading h3,
    .cooperation-partner-preview__cards h3,
    .sitemap-group__title,
    .rq-note h3,
    .about__advantage-title,
    .catalog-questionnaire__copy h3
) {
    font-family: var(--uway-heading-font);
    font-size: var(--uway-subheading-size);
    font-weight: 700;
    line-height: var(--uway-subheading-line);
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.uway-heading-scale body :is(h4, h5, h6),
.uway-heading-scale body :is(
    .blog__content,
    .case__content-text,
    .legal-page__content,
    .rq-layout .rq-result-group
) :is(h4, h5, h6),
.uway-heading-scale body :is(.blog-country-directory .blog-hero__navigation-heading h2, .rq-result-group h3, .rq-contact-head h3, .uway-calc .uw-results h3) {
    font-family: var(--uway-heading-font);
    font-size: var(--uway-small-heading-size);
    font-weight: 700;
    line-height: var(--uway-small-heading-line);
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.uway-heading-scale body :is(
    .our-articles__item h3.catalog-card-title,
    .our-articles__item a.our-articles__item-title,
    .our-news__item a.our-news__item-title,
    .new-preview a.new-preview__title,
    .our-cases__item a.our-cases__item-title,
    .events-shell .card h3,
    .events-shell .event-picture-copy h3,
    .partner-card h3,
    .after-support__card-title
) {
    font-family: var(--uway-heading-font);
    font-size: var(--uway-card-title-size);
    font-weight: 700;
    line-height: var(--uway-card-title-line);
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.uway-heading-scale h3.catalog-card-title {
    margin: 0;
}

.uway-heading-scale body :is(
    .main-block__title h1,
    h1.about-hero__title,
    .home-questionnaire__copy h2,
    .blog-agenda h2,
    .sitemap-section__title,
    .our-articles__item-title
) > :is(a, em, strong, span):not(:where([aria-hidden="true"], .section-header__title-num)) {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

/* Two case headings have line spacing stored inline in editorial content. */
.uway-heading-scale .case__content-text h2[style*="line-height"] {
    line-height: var(--uway-section-title-line) !important;
}

/* Heading counters are positioned labels and must stay on one line. */
.uway-heading-scale .section-header__title-num {
    width: max-content;
    white-space: nowrap;
    overflow-wrap: normal;
    line-height: 1.2;
}
