:root {
    --ia-midnight: #102c4c;
    --ia-midnight-deep: #0a1e34;
    --ia-sapphire: #2b6cb0;
    --ia-ivory: #f5f2ea;
    --ia-line: #dbe1e6;
}

/* Two-level header: utility bar first, complete editorial navigation below. */
.ia-navigation {
    --ia-header-menu-height: 58px;
    --ia-header-top-height: 84px;
    height: calc(var(--ia-header-top-height) + var(--ia-header-menu-height));
    background: var(--ia-ivory);
    color: var(--ia-midnight);
    border-bottom: 1px solid var(--ia-line);
}

/* The base theme gives the homepage header a fixed single-row height. Keep the
   full two-row header in the document flow so the menu never overlaps content. */
#gh-navigation.ia-navigation {
    height: calc(var(--ia-header-top-height) + var(--ia-header-menu-height));
}

.ia-navigation .gh-navigation-inner {
    display: grid;
    height: 100%;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: var(--ia-header-top-height) var(--ia-header-menu-height);
    column-gap: 24px;
    row-gap: 0;
    align-content: start;
}

.ia-navigation-search {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    grid-column: 1;
    grid-row: 1;
}

.ia-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ia-inline-search {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    width: min(250px, 100%);
}

.ia-inline-search__submit {
    flex: 0 0 32px;
}

.ia-inline-search__input {
    width: 100%;
    height: 38px;
    padding: 0 15px;
    color: var(--ia-midnight);
    background: rgb(255 255 255 / .58);
    border: 1px solid rgb(16 44 76 / .24);
    border-radius: 999px;
    outline: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.ia-inline-search__input::placeholder {
    color: rgb(16 44 76 / .58);
}

.ia-inline-search__input:focus {
    background: #fff;
    border-color: var(--ia-sapphire);
    box-shadow: 0 0 0 3px rgb(43 108 176 / .12);
}

.ia-inline-search__results {
    position: absolute;
    top: calc(100% + 12px);
    left: 40px;
    z-index: 20;
    width: min(390px, calc(100vw - 48px));
    padding: 10px;
    background: #fff;
    border: 1px solid var(--ia-line);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgb(10 30 52 / .18);
}

.ia-inline-search__results[hidden] {
    display: none;
}

.ia-inline-search__status {
    padding: 7px 10px 9px;
    color: rgb(16 44 76 / .62);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ia-inline-search__results ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.ia-inline-search__results a {
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 6px;
}

.ia-inline-search__results a:hover,
.ia-inline-search__results a:focus {
    background: var(--ia-ivory);
    opacity: 1;
    outline: none;
}

.ia-inline-search__results span {
    color: var(--ia-sapphire);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ia-inline-search__results strong {
    color: var(--ia-midnight);
    font-size: 1.4rem;
    line-height: 1.3;
}

.ia-navigation .gh-navigation-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
}

.ia-navigation .gh-navigation-logo img {
    width: auto;
    max-height: 48px;
}

.ia-navigation .gh-navigation-actions,
.ia-navigation.has-accent-color .gh-navigation-actions {
    grid-column: 3;
    grid-row: 1;
    background: transparent;
}

.ia-navigation .gh-navigation-menu {
    display: flex;
    width: 100%;
    margin: 0 !important;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 7px 0 3px;
    background: var(--ia-ivory) !important;
    border-top: 1px solid rgb(16 44 76 / .12);
    box-sizing: border-box;
}

.ia-navigation .gh-navigation-menu .nav {
    gap: 32px;
    justify-content: center;
}

.ia-navigation .nav-home {
    display: none;
}

.ia-navigation .nav a {
    position: relative;
}

.ia-navigation .nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: var(--ia-sapphire);
    content: "";
    opacity: 0;
    transform: scaleX(.65);
    transition: opacity .2s ease, transform .2s ease;
}

.ia-navigation .nav a:hover::after,
.ia-navigation .nav-current a::after {
    opacity: 1;
    transform: scaleX(1);
}

.home-template .ia-navigation {
    background: var(--ia-ivory);
    color: var(--ia-midnight);
}

.home-template #gh-navigation.ia-navigation.is-scrolled {
    --ia-header-top-height: 66px;
    height: calc(var(--ia-header-top-height) + var(--ia-header-menu-height));
    box-shadow: 0 8px 24px rgb(10 30 52 / .12);
}

/* The lead story keeps the same footprint with or without a feature image. */
.ia-lead-card > a {
    position: relative;
    min-height: 490px;
    overflow: hidden;
    background: var(--ia-midnight);
}

.ia-lead-card:not(.ia-lead-card--text) .ia-lead-card__image {
    position: absolute;
    inset: 0;
    min-height: 0;
    aspect-ratio: auto;
    background: var(--ia-midnight-deep);
}

.ia-lead-card:not(.ia-lead-card--text) .ia-lead-card__image::after {
    inset: 0;
    height: 100%;
    background: linear-gradient(180deg, rgb(10 30 52 / .04) 24%, rgb(10 30 52 / .94) 100%);
}

.ia-lead-card__image img,
.ia-news-card__image img,
.gh-card-image img {
    display: block;
}

.ia-lead-card:not(.ia-lead-card--text) .ia-lead-card__content {
    position: relative;
    z-index: 1;
    align-self: end;
    padding: clamp(30px, 4vw, 54px);
    color: #fff;
}

.ia-lead-card:not(.ia-lead-card--text) .ia-card-label {
    color: #9bc7f5;
}

.ia-lead-card:not(.ia-lead-card--text) .ia-card-meta {
    color: rgb(255 255 255 / .72);
}

/* Explicit ratios reserve image space before files load and prevent layout shift. */
.ia-news-card__image,
.gh-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #edf0f2;
}

.ia-news-card__image img,
.gh-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Prominent but deliberately compact next-session countdown. */
.ia-session-ticker {
    background: var(--ia-midnight-deep);
    color: #fff;
}

.ia-session-ticker[hidden] {
    display: none;
}

.ia-session-ticker__inner {
    display: grid;
    min-height: 76px;
    grid-template-columns: auto minmax(220px, 1fr) auto auto;
    gap: clamp(20px, 3vw, 48px);
    align-items: center;
}

.ia-session-ticker__label {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #9bc7f5;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ia-session-ticker__label > span {
    width: 8px;
    height: 8px;
    background: #ef3d46;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(239 61 70 / .14);
}

.ia-session-ticker__session strong,
.ia-session-ticker__session time {
    display: block;
}

.ia-session-ticker__session strong {
    overflow: hidden;
    font-size: 1.55rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ia-session-ticker__session time {
    margin-top: 3px;
    color: rgb(255 255 255 / .66);
    font-size: 1.15rem;
}

.ia-session-ticker__countdown {
    min-width: 148px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: clamp(2rem, 2.3vw, 3rem);
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    letter-spacing: -.04em;
    text-align: right;
}

.ia-session-ticker a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 750;
    white-space: nowrap;
}

/* Social identity is reserved below the footer logo until links are connected. */
.ia-footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    flex-direction: column;
}

.ia-footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ia-footer-socials span {
    display: grid;
    width: 30px;
    height: 30px;
    color: currentColor;
    opacity: .58;
    place-items: center;
}

.ia-footer-socials svg {
    width: 17px;
    height: 17px;
}

.gh-footer-menu {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
}

.ia-footer-contact {
    font-weight: 650;
}

.ia-error-page {
    display: grid;
    min-height: 58vh;
    padding-block: 8rem;
    place-items: center;
}

.ia-error-page__inner {
    text-align: center;
}

.ia-error-page__code {
    margin: 0 0 1.2rem;
    color: var(--ia-sapphire);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ia-error-page h1 {
    margin: 0;
    color: var(--ia-midnight);
    font-size: clamp(3.8rem, 8vw, 7.2rem);
}

.ia-error-page .is-body {
    max-width: 62rem;
    margin: 2rem auto 0;
    font-size: clamp(1.7rem, 2.2vw, 2rem);
}

.ia-error-page__actions {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin-top: 3.2rem;
    flex-wrap: wrap;
}

.ia-error-page__actions > a:not(.gh-button) {
    color: var(--ia-midnight);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--ia-sapphire);
    text-underline-offset: .4rem;
}

@media (max-width: 900px) {
    .ia-session-ticker__inner {
        grid-template-columns: auto 1fr auto;
    }

    .ia-session-ticker a {
        display: none;
    }
}

@media (max-width: 767px) {
    #gh-navigation.ia-navigation,
    .home-template #gh-navigation.ia-navigation,
    .home-template #gh-navigation.ia-navigation.is-scrolled {
        --ia-header-menu-height: 0px;
        --ia-header-top-height: 68px;
        position: relative;
        height: 68px;
        box-shadow: none;
    }

    #gh-navigation.ia-navigation .gh-navigation-inner {
        position: relative;
        display: grid;
        height: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: 68px 1fr auto;
        gap: 34px;
    }

    #gh-navigation.ia-navigation .ia-navigation-search {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        height: 68px;
    }

    #gh-navigation.ia-navigation .ia-inline-search {
        width: 32px;
    }

    #gh-navigation.ia-navigation .ia-inline-search__input {
        width: 0;
        padding: 0;
        visibility: hidden;
        border: 0;
    }

    #gh-navigation.ia-navigation .ia-inline-search.is-expanded {
        width: calc(100vw - 96px);
        padding-right: 8px;
        background: var(--ia-ivory);
    }

    #gh-navigation.ia-navigation .ia-inline-search.is-expanded .ia-inline-search__input {
        width: 100%;
        padding: 0 15px;
        visibility: visible;
        border: 1px solid rgb(16 44 76 / .24);
    }

    #gh-navigation.ia-navigation .ia-inline-search__results {
        top: calc(100% + 8px);
        left: 0;
    }

    #gh-navigation.ia-navigation .gh-navigation-brand {
        position: relative;
        display: flex;
        height: 68px;
        justify-content: center;
        grid-column: 1;
        grid-row: 1;
    }

    #gh-navigation.ia-navigation .gh-burger {
        position: absolute;
        right: 0;
    }

    #gh-navigation.ia-navigation .gh-navigation-logo img {
        max-width: min(210px, 56vw);
        max-height: 38px;
    }

    #gh-navigation.ia-navigation .gh-navigation-menu {
        width: auto;
        padding: 0;
        background: transparent !important;
        border-top: 0;
        grid-column: 1;
        grid-row: 2;
    }

    #gh-navigation.ia-navigation .gh-navigation-actions {
        grid-column: 1;
        grid-row: 3;
    }

    #gh-navigation.ia-navigation.is-open {
        position: fixed;
        height: 100%;
    }

    .ia-lead-card > a {
        min-height: 420px;
    }

    .ia-lead-card:not(.ia-lead-card--text) .ia-lead-card__content {
        padding: 28px 24px;
    }

    .ia-session-ticker__inner {
        min-height: 88px;
        padding-block: 14px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
    }

    .ia-session-ticker__label {
        grid-column: 1 / -1;
    }

    .ia-session-ticker__session strong {
        font-size: 1.35rem;
    }

    .ia-session-ticker__countdown {
        min-width: 112px;
        font-size: 2rem;
    }

    .ia-footer-brand {
        align-items: center;
    }

    .gh-footer-menu {
        flex-wrap: wrap;
    }
}
