/* IH Board Archive v1.1.0 — approved Board Page v1.0.9 visual base */

/* Hide Kadence automatic page title only on the page that contains our shortcode. */
.ih-board-page-active .entry-hero.page-hero-section,
.ih-board-page-active .entry-hero-container-inner {
    display: none !important;
}

.ih-board-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 42px 24px 60px;
    color: #173d5d;
}

.ih-board-page *,
.ih-board-page *::before,
.ih-board-page *::after {
    box-sizing: border-box;
}

.ih-board-intro {
    background: linear-gradient(135deg, #eef7fd 0%, #ffffff 100%);
    border: 1px solid #dce8f0;
    border-radius: 22px;
    padding: 28px 32px;
    margin-bottom: 28px;
}

.ih-board-eyebrow {
    color: #3676a5;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ih-board-intro h1 {
    margin: 0 0 10px;
    color: #0d4f80;
    font-size: 30px;
    line-height: 1.5;
}

.ih-board-period {
    display: inline-block;
    background: #eaf4fb;
    color: #0d5b91;
    border: 1px solid #cfe3f1;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
}

.ih-board-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 22px 2px 16px;
}

.ih-board-section-head h2 {
    margin: 0 0 3px;
    color: #0d4f80;
    font-size: 25px;
    line-height: 1.5;
}

.ih-board-section-head span {
    color: #8697a4;
    font-size: 13px;
}

.ih-board-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.ih-board-card {
    grid-column: span 2;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8e5ed;
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(24, 68, 99, 0.05);
}

.ih-board-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.ih-board-card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* Desktop member portraits:
 * Use the same physical portrait size as the inspector photo (150x170).
 * This fixes the previous issue where contain changed the crop/position
 * but the portrait still occupied the full 170px height and felt too large.
 */
.ih-board-photo {
    height: 194px;
    overflow: hidden;
    background: #f7fafc;
}

.ih-board-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

@media (min-width: 761px) {
    .ih-board-photo {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
    }

    .ih-board-photo img {
        width: 150px;
        max-width: 150px;
        height: 170px;
        max-height: 170px;
        object-fit: cover;
        object-position: center 18%;
        border-radius: 12px;
    }
}

.ih-board-card-body {
    padding: 14px 16px 18px;
    text-align: center;
}

.ih-board-role {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf6fc;
    color: #0d5b91;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.ih-board-card-body h3,
.ih-board-inspector-copy h3 {
    color: #173d5d;
}

.ih-board-card-body h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.5;
}

.ih-board-card-body p {
    margin: 0;
    color: #778995;
    font-size: 13px;
    line-height: 1.7;
}

.ih-board-inspector-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #dbe7ef;
}

.ih-board-inspector-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #d8e5ed;
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(24, 68, 99, 0.05);
}

.ih-board-inspector-photo {
    height: 170px;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ih-board-inspector-photo img {
    display: block;
    width: 150px;
    max-width: 150px;
    height: 170px;
    max-height: 170px;
    object-fit: cover;
    object-position: center 16%;
    border-radius: 12px;
}

.ih-board-role-inspector {
    background: #edf6fc;
    color: #0d5b91;
}

.ih-board-inspector-copy h3 {
    margin: 3px 0 6px;
    font-size: 20px;
    line-height: 1.5;
}

.ih-board-inspector-copy p {
    margin: 0;
    color: #778995;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 760px) {
    .ih-board-page {
        padding: 24px 12px 40px;
    }

    .ih-board-intro {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .ih-board-intro h1 {
        font-size: 25px;
    }

    .ih-board-section-head {
        display: block;
    }

    .ih-board-section-head h2 {
        margin-bottom: 3px;
        font-size: 22px;
    }

    .ih-board-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Mobile portrait size intentionally preserved from the approved preview. */
    .ih-board-card,
    .ih-board-card:nth-child(4),
    .ih-board-card:nth-child(5) {
        display: grid;
        grid-column: auto;
        grid-template-columns: 112px 1fr;
        align-items: stretch;
    }

    .ih-board-photo {
        height: 142px;
    }

    .ih-board-card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 14px 12px;
        text-align: right;
    }

    .ih-board-role {
        align-self: flex-start;
        margin-bottom: 7px;
    }

    .ih-board-card-body h3 {
        font-size: 16px;
    }

    .ih-board-card-body p {
        font-size: 12px;
        line-height: 1.7;
    }

    .ih-board-inspector-card {
        grid-template-columns: 105px 1fr;
        gap: 14px;
        padding: 12px;
    }

    .ih-board-inspector-photo {
        height: 135px;
        padding: 0;
        background: transparent;
    }

    .ih-board-inspector-photo img {
        width: 96px;
        max-width: 96px;
        height: 124px;
        max-height: 124px;
        object-fit: cover;
        object-position: center 16%;
        border-radius: 10px;
    }

    .ih-board-inspector-copy h3 {
        font-size: 16px;
    }

    .ih-board-inspector-copy p {
        font-size: 12px;
    }
}

/* IH Board Archive v1.1.0 — additions only. Approved member/inspector card styling above is preserved. */
.ih-board-archive-active .entry-hero.page-hero-section,
.ih-board-archive-active .entry-hero-container-inner {
    display: none !important;
}

.ih-board-history {
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid #dbe7ef;
}

.ih-board-history-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ih-board-history-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #cfe3f1;
    border-radius: 999px;
    background: #ffffff;
    color: #0d5b91;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ih-board-history-link:hover,
.ih-board-history-link:focus,
.ih-board-history-link.is-selected {
    background: #eaf4fb;
    color: #0d4f80;
    text-decoration: none;
}

.ih-board-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #8ba0ae;
    background: #f1f6f9;
    font-size: 12px;
}

@media (max-width: 760px) {
    .ih-board-history-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ih-board-history-link {
        justify-content: center;
        border-radius: 12px;
    }
}

/* v1.1.0 — optional alternate members and inspector groups. */
.ih-board-alternate-section {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid #dbe7ef;
}

.ih-board-grid-alternate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 740px;
    margin: 0 auto;
}

.ih-board-grid-alternate .ih-board-card,
.ih-board-grid-alternate .ih-board-card:nth-child(4),
.ih-board-grid-alternate .ih-board-card:nth-child(5) {
    grid-column: auto;
}

.ih-board-grid-alternate.is-single {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
}

.ih-board-inspector-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}

.ih-board-inspector-list.is-single {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

.ih-board-inspector-list .ih-board-inspector-card {
    width: 100%;
    max-width: none;
    margin: 0;
}

@media (max-width: 760px) {
    .ih-board-grid-alternate,
    .ih-board-grid-alternate.is-single,
    .ih-board-inspector-list,
    .ih-board-inspector-list.is-single {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

