/**
 * @license MIT, https://opensource.org/license/MIT
 */

main .heading h1,
main .heading h2,
main .heading h3 {
    margin: 0;
}

main .heading h1,
main .heading h2 {
    text-align: center;
}

:is(.type-page, .type-content) main.has-aimeos-feature-list .cms-content > .heading:first-child {
    border: 0;
    background: var(--pico-contrast-background);
}

:is(.type-page, .type-content) main:is(.has-aimeos-feature-list, .has-aimeos-showcases) .cms-content > .heading:first-child h1,
.type-page main.has-aimeos-case-studies .cms-content > .heading:first-child h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.type-content main.has-aimeos-feature-list .cms-content > .heading:first-child > .container,
.type-page main:is(.has-aimeos-case-studies, .has-aimeos-extension-catalog) .cms-content > .heading:first-child > .container {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

:is(.type-page, .type-content) main.has-aimeos-showcases .cms-content > .heading:first-child > .container {
    padding-top: 2rem;
    padding-bottom: 0;
}

.type-page main.has-aimeos-partners .cms-content > .heading:first-child h1 {
    margin: 0.5em 0;
    font-size: clamp(2.5em, 4vw, 3.5em);
    line-height: 1.2;
}

:is(.type-page, .type-content) main.has-aimeos-periods .cms-content > .heading:first-child > .container {
    padding-top: 2.5rem;
    padding-bottom: 4.5rem;
}

:is(.type-page, .type-content) main.has-aimeos-periods .cms-content > .heading:first-child h1 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.type-content main.has-aimeos-hero .cms-content > .heading {
    background-color: var(--pico-secondary-background);
}

.type-content main.has-aimeos-hero .cms-content > .heading .container {
    padding-block: 1.25rem;
}

@media screen and (max-width: 767px) {
    :is(.type-page, .type-content) main.has-aimeos-periods .cms-content > .heading:first-child > .container {
        padding-bottom: 3rem;
    }
}
