/**
 * Kontakt os.
 *
 * logb.dk puts the form and the contact details in a white card that is lifted
 * over the bottom edge of the blue hero band. The band therefore carries extra
 * bottom padding, and the card is pulled back up by roughly the same amount.
 */

body.page-kontakt-os main > .hero.has-bg-gradient {
    padding-top: var(--section-space);
    padding-bottom: var(--contact-band-padding-bottom);
}

body.page-kontakt-os .columns--contact-map {
    position: relative;
    z-index: var(--raised-layer);
    margin-top: calc(-1 * var(--contact-card-pull));
    padding-top: 0;
}

body.page-kontakt-os .columns--contact-map .columns-inner {
    background: var(--body-background-color);
    border-radius: var(--field-radius);
    box-shadow: var(--card-shadow);
    padding: var(--group-space);
    gap: var(--section-space);
}

/* Contact details sit centred next to the left-aligned form, as on logb.dk. */
body.page-kontakt-os .columns--contact-map .column:nth-child(2) {
    text-align: var(--center-align);
}

/* The card's two headings sit side by side, so they share a size. */
body.page-kontakt-os .columns--contact-map .form-title,
body.page-kontakt-os .columns--contact-map .column:nth-child(2) > h2 {
    font-size: var(--heading-4-font-size);
    margin-bottom: var(--item-space);
}

/* Kontakt os direkte / Betalinger / Bestyrelse: a rule under each column head. */
body.page-kontakt-os .columns--contact-details .column > :first-child {
    border-bottom: var(--hairline-width) solid var(--border-color);
    padding-bottom: var(--control-space);
    margin-bottom: var(--tight-space);
}

/*
 * The closing block ("Vi afholder kurser forskellige steder i Danmark" and the
 * link to the locations) is the only top-level heading and link on the page,
 * and logb.dk frames it with a rule above and below.
 */
body.page-kontakt-os main > .heading,
body.page-kontakt-os main > .link {
    max-width: var(--layout-measure);
    margin-inline: auto;
    padding-inline: var(--page-side-padding);
    text-align: var(--center-align);
}

body.page-kontakt-os main > .heading {
    border-top: var(--hairline-width) solid var(--border-color);
    padding-top: var(--section-space);
    margin-top: var(--section-space);
}

body.page-kontakt-os main > .link {
    border-bottom: var(--hairline-width) solid var(--border-color);
    padding-bottom: var(--section-space);
    margin-bottom: var(--section-space);
}

body.page-kontakt-os main > .map {
    max-width: var(--layout-measure);
    margin: 0 auto var(--section-space);
    padding-inline: var(--page-side-padding);
}

@media (max-width: 48rem) {
    body.page-kontakt-os main > .hero.has-bg-gradient {
        padding-bottom: var(--section-space);
    }

    body.page-kontakt-os .columns--contact-map {
        margin-top: 0;
        padding-top: var(--group-space);
    }
}
