section.cards {
    padding: 0 var(--margin-m);
    margin: var(--margin-m) auto;
    width: 100%;
}

.dark-band section.cards {
    padding: 0;
}

.dark-band section.cards .cards-description {
    color: var(--white) !important;
}

section.cards .cards-header {
    max-width: 840px;
    margin: 0 auto var(--margin-m) auto;
}

section.cards .cards-header h1 {
    font-stretch: normal;
    font-style: normal;
    letter-spacing: normal;
    line-height: 1.25;
    color: var(--scarlet);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 23px;
    font-weight: bold;
}

.dark-band section.cards .cards-header h1 {
    font-weight: normal;
    color: var(--white);
    font-size: 20px;
    text-align: center;
}

section.cards .cards-description {
    font-family: 'Red Hat Text', sans-serif;
    font-size: 18px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.5;
    letter-spacing: normal;
    color: var(--charcoal-grey);
    padding: 0;
    margin-top: var(--margin-s);
}

section.cards .cards-description:last-child {
    margin-bottom: 0;
}


@media screen and (max-width: 767px) {


    section.cards .card-grid .card {
        flex-grow: 1;
        margin: var(--margin-m) 0;
    }

}

@media screen and (min-width: 768px) {

    .sidebar-layout-main-content section.cards {
        padding: 0;
    }

    section.cards .cards-header h1 {
        font-size: 30px;
        line-height: 1.13;
    }

    section.cards .cards-header h1 {
        text-align: center;
    }

    section.cards .cards-description {
        text-align: center;
    }

    .sidebar-layout-main-content section.cards .cards-header h1,
    .sidebar-layout-main-content section.cards .cards-description {
        text-align: left;
    }

    section.cards.columns-one .card-grid {
        display: flex;
        flex-wrap: wrap;
        -webkit-box-pack: start;
        justify-content: flex-start;
    }

    section.cards.columns-two .card-grid {
        margin: 0 calc(var(--margin-s) * -1);
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

}

@media screen and (min-width: 1024px) {
    section.cards {
        max-width: calc(1344px);
    }

}
