/* Custom CSS & JS ? Verpakking heading sizes */
/* Verpakking heading scale. Editable source: Custom CSS & JS.
 * Font sizes only: layout, content, tracking, weights and interactions are preserved.
 * Desktop >1024px; tablet 768–1024px; mobile <=767px.
 */
:root {
    --vpk-heading-section: 36px;
    --vpk-heading-institutional: 24px;
    --vpk-heading-functional: 24px;
    --vpk-heading-subheading: 20px;
    --vpk-heading-cta: 30px;
    --vpk-heading-product-card: 20px;
    --vpk-heading-article-card: 18px;
    --vpk-heading-editorial: 40px;
    --vpk-heading-category: 30px;
    --vpk-heading-accordion: 18px;
    --vpk-heading-timeline: 18px;
    --vpk-heading-footer: 22px;
}
@media (max-width: 1024px) {
    :root {
        --vpk-heading-section: 30px;
        --vpk-heading-institutional: 22px;
        --vpk-heading-functional: 22px;
        --vpk-heading-subheading: 18px;
        --vpk-heading-cta: 28px;
        --vpk-heading-product-card: 18px;
        --vpk-heading-editorial: 34px;
        --vpk-heading-category: 26px;
        --vpk-heading-footer: 20px;
    }
}
@media (max-width: 767px) {
    :root {
        --vpk-heading-section: 26px;
        --vpk-heading-institutional: 20px;
        --vpk-heading-functional: 20px;
        --vpk-heading-cta: 26px;
        --vpk-heading-editorial: 28px;
        --vpk-heading-category: 22px;
        --vpk-heading-accordion: 16px;
        --vpk-heading-timeline: 17px;
    }
}

/* Elementor widgets keep the same values in their builder controls.
 * These role classes also resolve older theme/custom-CSS overrides. */
html body #page :is(.e-vpk-heading-section.e-heading-base, .vpk-heading-section .elementor-heading-title,
    .vpk-homepage-banner-text h2, .vpk-help-finder-card h2,
    .vpk-newsletter:not(.vpk-newsletter--footer):not(.vpk-newsletter--cta) .vpk-newsletter-inner h2,
    .vpk-product-template-related-title, .vpk-related-posts-title,
    .vpk-product-template-title) {
    font-size: var(--vpk-heading-section) !important;
}
html body #page :is(.e-vpk-heading-institutional.e-heading-base, .vpk-heading-institutional .elementor-heading-title) {
    font-size: var(--vpk-heading-institutional) !important;
}
html body #page :is(.e-vpk-heading-functional.e-heading-base, .vpk-heading-functional .elementor-heading-title,
    .vpk-quote-page-heading h3, .vpk-quote-page-empty-shell-message,
    .vpk-ebook-card__content h3) {
    font-size: var(--vpk-heading-functional) !important;
}
html body #page :is(.e-vpk-heading-subheading.e-heading-base, .vpk-heading-subheading .elementor-heading-title) {
    font-size: var(--vpk-heading-subheading) !important;
}
html body #page :is(.e-vpk-heading-cta.e-heading-base, .vpk-heading-cta .elementor-heading-title) {
    font-size: var(--vpk-heading-cta) !important;
}
html body #page :is(.vpk-product-title, .vpk-product-component__title, .vpk-product-template-related-name) {
    font-size: var(--vpk-heading-product-card) !important;
}
html body #page :is(.vpk-blog-card-title, .vpk-blog-card-title a) {
    font-family: 'Metropolis', sans-serif !important;
    font-size: var(--vpk-heading-article-card) !important;
}
html body #page :is(.vpk-featured-article-title, .ast-single-entry-banner[data-post-type='post'] .entry-title),
html body.single-post #page h1.entry-title {
    font-size: var(--vpk-heading-editorial) !important;
}
html body #page .vpk-products-browser-title {
    font-size: var(--vpk-heading-category) !important;
}
html body #page :is(.vpk-product-accordion-title, .vpk-catalog-faq .e-n-accordion-item-title-text) {
    font-size: var(--vpk-heading-accordion) !important;
}
html body #page .vpk-timeline__card h3 {
    font-size: var(--vpk-heading-timeline) !important;
}
html body #colophon .widget-title {
    font-size: var(--vpk-heading-footer) !important;
}

/* Plain WordPress pages and rich-text documents have no separate heading widgets. */
html body.page #page .entry-header > h1.entry-title {
    font-size: var(--vpk-heading-section) !important;
}
html body:is(.page-id-894, .page-id-896, .page-id-2403, .page-id-2406,
    .page-id-2854, .page-id-2883, .page-id-3609, .page-id-3610, .page-id-3749, .page-id-3750)
    #page .entry-content > h2 {
    font-size: var(--vpk-heading-section) !important;
}
html body:is(.page-id-894, .page-id-896, .page-id-2403, .page-id-2406)
    #page .entry-content :is(h3, h4),
html body.single-post #page .entry-content > h3,
html body:is(.page-id-53, .page-id-929) #page .elementor-widget-text-editor h3 {
    font-size: var(--vpk-heading-functional) !important;
}
html body:is(.page-id-894, .page-id-896) #page .entry-content h4,
html body.single-post #page .entry-content > h4 {
    font-size: var(--vpk-heading-subheading) !important;
}

/* PT legal sections 11/12 use H4 markup but have the same role as EN H3 sections. */
html body.page-id-894 #page .entry-content h4.vpk-legal-section-heading {
    font-size: var(--vpk-heading-functional) !important;
}

/* Product names in search results remain headings on every device. */
html body #masthead :is(.vpk-search-title, .vpk-search-title a) {
    font-family: 'Metropolis', sans-serif !important;
}
