/* ==========================================================================
   Team member profile — /team/<name>/
   Photograph beside the person's roles, qualifications and profile text.
   The photograph frame and role styling follow the team cards.
   ========================================================================== */

.profile {
    padding: 100px 0;
    background-color: var(--color-white);
}

.profile__inner {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 15px;
}

.profile__photo {
    width: 100%;
    height: auto;
    padding: 3px;
    background-color: var(--color-card-bg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.profile__role {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.profile__quals {
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
}

.profile__title {
    margin: 36px 0 20px;
}

.profile__text {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
}

/* Written in the blog's editor, so it uses the tags an article does, styled
   as css/pages/blog-post.css styles them */
.profile__text p,
.profile__text ul,
.profile__text ol,
.profile__text blockquote,
.profile__text table {
    margin-bottom: 20px;
}

.profile__text > *:last-child {
    margin-bottom: 0;
}

.profile__text h2,
.profile__text h3,
.profile__text h4 {
    margin: 36px 0 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-maroon-dark);
}

.profile__text > *:first-child {
    margin-top: 0;
}

.profile__text h2 {
    font-size: 28px;
}

.profile__text h3 {
    font-size: 23px;
}

.profile__text h4 {
    font-size: 20px;
}

/* The reset strips list markers, so put them back inside prose */
.profile__text ul,
.profile__text ol {
    padding-left: 24px;
    list-style: disc;
}

.profile__text ol {
    list-style: decimal;
}

.profile__text li {
    margin-bottom: 8px;
}

.profile__text strong,
.profile__text b {
    font-weight: 600;
    color: var(--color-secondary);
}

.profile__text a {
    color: var(--color-maroon-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.profile__text a:hover,
.profile__text a:focus-visible {
    color: var(--color-secondary);
}

.profile__text blockquote {
    padding-left: 22px;
    border-left: 3px solid var(--color-maroon-dark);
    font-style: italic;
}

.profile__button {
    margin-top: 36px;
}

@media (max-width: 1024px) {

    .profile {
        padding: 80px 0;
    }

    .profile__inner {
        grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 767px) {

    .profile {
        padding: 60px 0;
    }

    .profile__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .profile__media {
        max-width: 340px;
    }

    .profile__text {
        font-size: 17px;
    }
}
