/* ---------------------- HIMAA Governance Page --------------------- */
:root {
    /* Brand guide (HIMAA 2022) */
    --himaa-indigo-dye: #004174;
    --himaa-princeton-orange: #F57F36;
    --himaa-un-blue: #598DEC;
    --himaa-cultured: #F1F2F2;

    /* Neutral + layout */
    --text: #2A2E33;
    --muted: #5B626A;
    --surface: #FFFFFF;
    --surface-2: var(--himaa-cultured);
    --border: rgba(0, 65, 116, 0.14);
    --container: 1140px;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--surface);
}

#footer-main {
    margin-top: 0 !important;
}

.jumbotron.generic-banner {
    margin-bottom: 40px !important;
}

.page-gov-custom-himaa a {
    color: var(--himaa-indigo-dye);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-gov-custom-himaa a:hover {
    color: var(--himaa-un-blue);
}

.page-gov-custom-himaa {
    padding: 0;
}

.container-gov-custom-himaa {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.page-title-gov-custom-himaa {
    margin: 0 0 16px;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--himaa-indigo-dye);
}

p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 1rem;
}

.hero-gov-custom-himaa {
    padding: 12px 0 56px;
    position: relative;
}

.hero__grid-gov-custom-himaa {
    display: block;
}

.hero__copy-gov-custom-himaa {
    background: radial-gradient(900px 220px at 20% 0%, rgba(0, 65, 116, 0.10), rgba(0, 65, 116, 0) 60%),
        radial-gradient(720px 260px at 80% 10%, rgba(66, 133, 244, 0.10), rgba(66, 133, 244, 0) 62%),
        linear-gradient(180deg, rgba(241, 242, 242, 0.86), rgba(241, 242, 242, 0.25));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 30px 26px;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.hero__copy-gov-custom-himaa::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--himaa-indigo-dye), var(--himaa-un-blue));
}

.hero__copy-gov-custom-himaa > p {
    font-size: 1.03rem;
    line-height: 1.55;
}

.facts-gov-custom-himaa {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 65, 116, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fact-gov-custom-himaa {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 65, 116, 0.12);
    border-radius: 12px;
    padding: 10px 12px;
    flex: 1 1 160px;
    min-width: 160px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.fact__kicker-gov-custom-himaa {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.fact__value-gov-custom-himaa {
    margin: 2px 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--himaa-indigo-dye);
}

.section-gov-custom-himaa {
    padding: 56px 0;
}

.section--tight-gov-custom-himaa {
    padding-top: 24px;
    background: #fff !important;
}

.section--alt-gov-custom-himaa {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #00345c 0%, var(--himaa-indigo-dye) 45%, #0a5cad 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* HIMAA watermark pattern (same asset as other blue HIMAA sections) */
.section--alt-gov-custom-himaa::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/himaa-assets/bg_pattern-himaa-lowres.png");
    background-repeat: repeat;
    background-size: 980px auto;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.section--alt-gov-custom-himaa::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -35%;
    width: 50%;
    height: 130%;
    background: radial-gradient(ellipse at center, rgba(89, 141, 236, 0.2), transparent 68%);
    pointer-events: none;
    z-index: 0;
}

.section--alt-gov-custom-himaa .container-gov-custom-himaa {
    position: relative;
    z-index: 1;
}

.section--alt-gov-custom-himaa .section__title-gov-custom-himaa {
    color: #ffffff !important;
}

.section--alt-gov-custom-himaa .section__subtitle-gov-custom-himaa {
    color: rgba(255, 255, 255, 0.88) !important;
}

.section__header-gov-custom-himaa {
    text-align: center;
    margin: 0 0 28px;
}

.section__title-gov-custom-himaa {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--himaa-indigo-dye);
    font-weight: 800 !important;
}

.section__subtitle-gov-custom-himaa {
    margin: 0;
    color: var(--muted);
}

.people-grid-gov-custom-himaa {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.people-grid--single-gov-custom-himaa {
    justify-content: center;
}

.person-card-gov-custom-himaa {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 16px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    text-align: center;
    flex: 1 1 220px;
    max-width: 320px;
    position: relative;
    overflow: hidden;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
    list-style: none !important;
}

@media (min-width: 1100px) {
    /* 5-up layout on wide screens (1140px container) */
    .people-grid-gov-custom-himaa .person-card-gov-custom-himaa {
        flex: 0 1 calc((100% - (18px * 4)) / 5);
        max-width: calc((100% - (18px * 4)) / 5);
    }
}

.people-grid-gov-custom-himaa li::before {
    display: inline !important;
    min-width: stretch;
}

/* Stripe sits on the border box top: offset by -1px so it covers the 1px top border and aligns
   with the same outer border-radius as the card (overflow:hidden clips to the curve). */
.person-card-gov-custom-himaa::before {
    content: "" !important;
    position: absolute !important;
    top: -1px !important;
    left: -1px !important;
    right: -1px !important;
    width: auto !important;
    height: 4px !important;
    border-top-left-radius: var(--radius) !important;
    border-top-right-radius: var(--radius) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    background: linear-gradient(90deg, #ff9a52, var(--himaa-princeton-orange), #e56d22) !important;
    opacity: 0.95 !important;
    z-index: 2 !important;
    pointer-events: none !important;
    box-shadow: 0 1px 0 0 rgba(0, 65, 116, 0.1) !important;
}

.person-card-gov-custom-himaa:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 65, 116, 0.22);
}

.person-card-gov-custom-himaa .person-card__image-gov-custom-himaa {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover !important;
    object-position: center;
    border-radius: calc(var(--radius) - 6px);
    background: var(--surface-2);
    border: 1px solid rgba(0, 65, 116, 0.10);
}

/* Desktop: portrait / odd-ratio shots still fill the frame (previous behaviour before contain won). */
@media (min-width: 901px) {
    .person-card-gov-custom-himaa .person-card__image-gov-custom-himaa.person-card__image--contain-gov-custom-himaa {
        object-fit: cover !important;
        object-position: center top !important;
    }

    .person-card-gov-custom-himaa .person-card__image-gov-custom-himaa.person-card__image--focus-top-gov-custom-himaa {
        object-fit: cover !important;
        object-position: center 12% !important;
    }
}

.person-card__name-gov-custom-himaa {
    margin: 14px 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--himaa-indigo-dye);
}

.person-card__title-gov-custom-himaa {
    margin: 4px 0 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.cta-gov-custom-himaa {
    margin-top: 24px;
    padding: 40px 0;
    background: var(--himaa-indigo-dye);
    color: #fff;
}

.cta__inner-gov-custom-himaa {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.cta__copy-gov-custom-himaa {
    flex: 1 1 520px;
}

.cta__title-gov-custom-himaa {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
    font-weight: bolder !important;
}

.cta__text-gov-custom-himaa {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.cta__actions-gov-custom-himaa {
    flex: 0 0 auto;
}

.button-gov-custom-himaa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--himaa-princeton-orange);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    transition: transform 140ms ease, filter 140ms ease;
}

a.button-gov-custom-himaa {
    color: rgba(255, 255, 255, 1);
}

.page-gov-custom-himaa a.button-gov-custom-himaa {
    text-decoration: none;
}

.button-gov-custom-himaa:visited,
.button-gov-custom-himaa:hover,
.button-gov-custom-himaa:active,
.button-gov-custom-himaa:focus {
    color: #fff;
    text-decoration: none;
}

.page-gov-custom-himaa a.button-gov-custom-himaa:visited,
.page-gov-custom-himaa a.button-gov-custom-himaa:hover,
.page-gov-custom-himaa a.button-gov-custom-himaa:active,
.page-gov-custom-himaa a.button-gov-custom-himaa:focus {
    color: #fff;
    text-decoration: none;
}

.button-gov-custom-himaa:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
    color: #fff;
}

@media (max-width: 900px) {
    .person-card-gov-custom-himaa {
        max-width: 100%;
    }

    /*
     * Full-width cards + fixed 190px height = very wide photo slots; object-fit: cover scales
     * portrait headshots to fill width and crops heavily (zoomed look). Taller slot + top bias
     * reduces crop on generic cover shots.
     */
    .person-card__image-gov-custom-himaa {
        height: clamp(200px, 52vw, 260px) !important;
        object-position: center top !important;
    }

    /* Mobile / narrow: show full frame for flagged portraits (CEO + board contain shots). */
    .person-card-gov-custom-himaa .person-card__image-gov-custom-himaa.person-card__image--contain-gov-custom-himaa {
        object-fit: contain !important;
        object-position: center !important;
    }

    .person-card-gov-custom-himaa .person-card__image-gov-custom-himaa.person-card__image--focus-top-gov-custom-himaa {
        object-fit: contain !important;
        object-position: center 8% !important;
    }

    .cta__inner-gov-custom-himaa {
        align-items: stretch;
    }

    .cta__actions-gov-custom-himaa {
        width: 100%;
    }

    .button-gov-custom-himaa {
        width: 100%;
    }
}