/*
    About page, restyled to sit with the maintenance page: same column, headings, rules and card tops.
    Loaded after maintenance.css; every rule starts with .page-about so it outranks the 2024 rules in spectron.css,
    which sized the columns and photos in vw/vh and centred all the text.
*/

.page-about .about-body {
    display: block;
    margin-top: 0;
    padding: 2.5rem 24px 4rem;
    text-align: left;
}

/* ------------------------------------------------------------ Who We Are */
/* one centred column: the Lookout Mountain banners give the page its picture */
.page-about .company-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
}

.page-about .about-text {
    display: block;
    width: auto;
    max-width: 72ch;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

    .page-about .about-text h2,
    .page-about .about-text h3 {
        text-align: center;
    }

.page-about .about-text p {
    margin-left: auto;
    margin-right: auto;
    font-size: 1.15rem;
}

/* the 2024 markup spaces the subheading with two <br>s; the h3 margin does that job here */
.page-about .about-text br {
    display: none;
}

.page-about h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.page-about .about-text h3 {
    margin: 2.5rem auto 1rem;
}

/* the Colorado flag sits small beside "Who We Are", right above "Founded and based in Colorado"; the border keeps its
   white stripe from disappearing into the page */
.page-about .about-text h2 .about-flag {
    display: inline-block;
    height: 0.8em;
    margin: 0 0.45em 0 0;
    vertical-align: -0.02em;
    border: 1px solid var(--sp-rule);
}

/* ------------------------------------------------------------ Awards */
.page-about .award-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 0;
}

/* the page's only h1 heads a section, so it takes the section heading style to match the h2 above it */
.page-about .award-body h1 {
    grid-column: 1 / -1;
    margin: 0 0 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--sp-ink);
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
}

.page-about .award-section {
    margin: 0;
    text-align: left;
}

    .page-about .award-section h3 {
        margin: 0 0 0.75rem;
        line-height: 1.3;
    }

    .page-about .award-section p {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
    }

    /* pushed to the bottom so both certificates line up even when the captions differ in length */
    .page-about .award-section img {
        display: block;
        width: 100%;
        max-width: none;
        aspect-ratio: 4 / 3;
        margin: auto 0 0;
        object-fit: contain;
        background: var(--sp-surface);
        padding: 1rem;
    }

/* ------------------------------------------------------------ narrow screens */
@media (max-width: 900px) {
    .page-about .company-body,
    .page-about .award-body {
        grid-template-columns: 1fr;
    }

    .page-about .about-text {
        width: auto;
        gap: 0;
    }
}

@media (max-width: 600px) {
    .page-about .award-body h1 {
        font-size: 1.8rem;
    }

    .page-about .award-section img {
        padding: 0.5rem;
    }
}

/* ------------------------------------------------------------ photo credit */
/* the credit for the banner photo: small and quiet at the foot of the column, and only where the photo shows */
.page-about .photo-credit {
    display: none;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 2rem;
    color: var(--sp-muted);
    font-size: 0.85rem;
}

    .page-about .photo-credit a {
        color: inherit;
    }

@media (min-width: 1240px) {
    .page-about .photo-credit {
        display: block;
    }
}
