/* ---------------------------------------------------------------------------
   Meet The Instructors (page 90)
   Rewritten 2026-10-20 for the 10/16 notes: six instructors, two rows of three,
   boxed bios, left-justified, rotating blue/orange card stripe.

   This file was rewritten rather than appended to. The previous version had
   grown four layers of overrides for a card structure that no longer exists
   (modal bios, four people, centred text).
   --------------------------------------------------------------------------- */

/* --- Hero ------------------------------------------------------------------ */

.in-hero {
    background: linear-gradient(105deg, #2B7FC4 0%, #1B4A7A 100%);
    padding: 4rem 1.5rem !important;
    display: block !important;
}

.in-hero__title .uagb-heading-text {
    color: #fff;
    font-size: 2.3rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    line-height: 1.25;
}

.in-body {
    background: #fff;
    padding: 4.5rem 1.5rem !important;
    display: block !important;
}

/* --- Grid: three across, two rows ------------------------------------------ */

.in-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1140px;
    margin: 0 auto !important;
    padding: 0 !important;
    align-items: stretch;
}

/* --- The card -------------------------------------------------------------- */

.in-card {
    display: flex !important;
    flex-direction: column;
    position: relative;
    background: #fff;
    border: 1px solid rgba(27, 46, 75, .12);
    border-radius: 12px;
    padding: 2rem 1.6rem 1.6rem !important;
    box-shadow: 0 4px 18px rgba(27, 46, 75, .07);
    overflow: hidden;
    text-align: left;
}

/*
 * The stripe is a pseudo-element, not border-top: a border does not follow the
 * rounded corners and leaves square ends sticking out past the radius.
 * Blue, orange, blue across each row of three.
 */
.in-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #267CC0;
}

.in-card:nth-child(3n + 2)::before {
    background: #F58331;
}

/* --- Photo ----------------------------------------------------------------- */

.in-card__photo {
    margin: 0 auto 1.1rem !important;
    width: 150px !important;
    height: 150px;
}

.in-card__photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
}

/*
 * Stand-in until a real headshot arrives, so the row still reads as six.
 *
 * Spectra generates a per-page rule forcing every container child to
 * width: 100%, at a specificity that beats a plain class. On the cards with a
 * real photo that does not show, because the <img> inside is its own 150px and
 * centred. Here the wrapper IS the visible circle, so without this it renders
 * as a 373px ellipse.
 */
.in-card__photo--placeholder {
    width: 150px !important;
    height: 150px !important;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #267CC0 0%, #1B4A7A 100%);
    color: #fff;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
}

/* --- Name, credentials, title ---------------------------------------------- */

.in-card__name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1B2E4B;
    text-align: center;
    margin: 0 0 .35rem;
    line-height: 1.3;
}

/*
 * Each credential is wrapped in .ma-cred so a single one never splits across
 * two lines. Laureen has seven, several hyphenated, and RH-CBS would otherwise
 * break at the hyphen.
 */
.ma-cred {
    white-space: nowrap;
}

.in-card__creds {
    font-size: .86rem;
    font-weight: 400;
    color: #6B7A8D;
    text-align: center;
    margin: 0 0 .6rem;
    line-height: 1.6;
}

/* Keeps the band aligned for the person with no credentials listed. */
.in-card__creds--empty {
    min-height: 1.6em;
}

.in-card__role {
    font-size: .95rem;
    font-weight: 700;
    color: #F58331;
    text-align: center;
    margin: 0 0 1rem;
    line-height: 1.55;
}

.in-card__aapc {
    color: #267CC0;
}

/* --- Bio expander ---------------------------------------------------------- */

/*
 * Native <details>, so the cards stay the same height whether or not somebody
 * has a bio, with no JavaScript. Three of the six have bios and three do not.
 */
.in-card__bio {
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px solid rgba(27, 46, 75, .10);
}

.in-card__bio summary {
    cursor: pointer;
    list-style: none;
    font-size: .92rem;
    font-weight: 700;
    color: #267CC0;
    text-align: center;
    padding: .15rem 0;
}

.in-card__bio summary::-webkit-details-marker {
    display: none;
}

.in-card__bio summary::after {
    content: " \25BE";
}

.in-card__bio[open] summary::after {
    content: " \25B4";
}

.in-card__bio summary:hover {
    color: #1B2E4B;
}

.in-card__bio summary:focus-visible {
    outline: 3px solid #F58331;
    outline-offset: 3px;
}

/* Left-justified, per the notes: easier to read than centred. */
.in-card__bio-body {
    padding-top: .85rem;
    text-align: left;
}

.in-card__bio-body p {
    font-size: .92rem;
    line-height: 1.7;
    color: #383838;
    margin: 0 0 .85rem;
}

.in-card__bio-body p:last-child {
    margin-bottom: 0;
}

/* --- Hidden profiles -------------------------------------------------------- */

/*
 * Merikay is hidden, not deleted, per the 10/16 notes. The markup and media
 * references stay on the page so restoring her is moving one block.
 */
.in-hidden {
    display: none !important;
}

/* --- Responsive ------------------------------------------------------------- */

@media (max-width: 1024px) {
    .in-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Two per row, so alternate every other card instead of every third. */
    .in-card:nth-child(3n + 2)::before {
        background: #267CC0;
    }

    .in-card:nth-child(even)::before {
        background: #F58331;
    }
}

@media (max-width: 640px) {
    .in-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .in-hero {
        padding: 3rem 1.25rem !important;
    }

    .in-hero__title .uagb-heading-text {
        font-size: 1.7rem;
    }

    .in-body {
        padding: 3rem 1.25rem !important;
    }

    /* One per row: alternate down the column. */
    .in-card:nth-child(3n + 2)::before,
    .in-card:nth-child(even)::before {
        background: #267CC0;
    }

    .in-card:nth-child(even)::before {
        background: #F58331;
    }
}
