/*
    Contact page, restyled to match maintenance.css: it reuses .sp-page, .sp-section, .sp-split, .sp-prose,
    .sp-contact and .sp-footnote, so only the gaps between those pieces are set here.
    The old .contact-body / .contact-section rules in spectron.css no longer match anything on this page;
    they sized the column in vw, which left the text 22vw wide and hid the photo below 1400px.
*/

.page-contact .sp-page-header h1 {
    margin-bottom: 3rem;
}

/* the text column lines up with the top of the photo, not the middle */
.page-contact .contact-split {
    align-items: start;
    margin-bottom: 0;
}

.page-contact .contact-lead {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* .sp-contact uses margin-top: auto to sit at the foot of a repair-path card; here it follows the text */
.page-contact .contact-details {
    margin: 0 0 2rem;
    padding: 1.5rem 1.75rem;
    gap: 0.35rem;
}

.page-contact .contact-line {
    font-size: 1.2rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* the <br>s that spaced the old layout would add uneven gaps inside a flex panel; the address gets a rule instead */
.page-contact .contact-details br {
    display: none;
}

.page-contact .contact-address {
    margin-top: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--sp-rule);
    font-weight: 400;
}

/* the photo is decorative stock, so it may crop a little at the edges to keep a steady 3:2 frame */
.page-contact .contact-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

@media (max-width: 900px) {
    .page-contact .contact-split {
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .page-contact .sp-page-header h1 {
        margin-bottom: 2rem;
    }

    .page-contact .contact-details {
        padding: 1.25rem;
    }

    .page-contact .contact-line {
        font-size: 1.1rem;
    }
}

/* ------------------------------------------------------------ centred */
/* the headings centred, the text in the middle of its space, and the text and photo lined up through the middle */
.page-contact h2 {
    text-align: center;
}

.page-contact .sp-prose {
    margin-left: auto;
    margin-right: auto;
}

.page-contact .sp-split {
    align-items: center;
}

    .page-contact .sp-split > * {
        justify-self: center;
    }
