/* Light institutional band. Shared by the public page header. */
:root {
    --brand-band-height: clamp(100px, 8.2vw, 170px);
    --brand-band-ink: #144e8a;
}

.nav-header.brand-band {
    height: var(--brand-band-height);
    background: #f4faff url('/public/images/brand-band-network.svg') center / cover no-repeat;
    border-top: 1px solid #e0edf7;
    border-bottom: 1px solid #c4deef;
    box-shadow: 0 2px 10px rgb(26 73 110 / 5%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.brand-band .header-inner {
    height: 100%;
    padding: 0 clamp(20px, 2.2vw, 48px);
    gap: clamp(24px, 3vw, 64px);
}

.brand-band .nav-header-logo {
    min-width: 0;
    flex: 0 0 clamp(190px, 18vw, 380px);
}

.brand-band .nav-header-logo a {
    display: block;
    position: relative;
    width: 100%;
}

.brand-band .nav-header-logo a::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: var(--brand-band-ink);
    -webkit-mask: url('/public/images/logoicits5.png') center / contain no-repeat;
    mask: url('/public/images/logoicits5.png') center / contain no-repeat;
}

.brand-band .nav-header-logo img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none;
    opacity: 0;
}

/* Preserve each institution's original artwork, including on hover. */
.nav-header.brand-band a img,
.nav-header.brand-band a:hover img {
    filter: none;
    -webkit-filter: none;
}

.brand-band .nav-header-info {
    flex: 1 1 auto;
    margin-left: clamp(20px, 3vw, 64px);
    display: flex;
    align-items: stretch;
    min-width: 0;
    gap: 0;
    justify-content: center;
}

.brand-band .nav-header-contact {
    flex: 0 1 auto;
    display: grid;
    grid-template-columns: clamp(28px, 2.2vw, 44px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(8px, .8vw, 17px);
    padding: 0 clamp(12px, .9vw, 18px);
    min-width: 0;
}

.brand-band .nav-header-contact + .nav-header-contact {
    border-left: 1px solid #bdcedf;
}

.brand-band .nav-header-contact:first-child {
    padding-right: calc(clamp(12px, .9vw, 18px) + clamp(6px, .6vw, 12px));
}

.brand-band .nav-header-contact:first-child .contact-icon,
.brand-band .nav-header-contact:first-child .contact-text {
    position: relative;
    left: clamp(6px, .6vw, 12px);
}

.brand-band .contact-icon {
    width: clamp(28px, 2.2vw, 44px);
    height: 44px;
    color: var(--brand-band-ink);
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: clamp(23px, 1.65vw, 33px);
}

.brand-band .contact-text strong {
    margin-bottom: 4px;
    color: var(--brand-band-ink);
    font-size: clamp(11px, .84vw, 17px);
    line-height: 1.25;
    white-space: nowrap;
}

.brand-band .contact-text span {
    max-width: none;
    overflow: visible;
    color: #5c728e;
    font-size: clamp(10px, .73vw, 15px);
    line-height: 1.45;
    text-overflow: clip;
    white-space: nowrap;
}

.brand-band .nav-header-contact:first-child .contact-text span {
    max-width: none;
    white-space: nowrap;
}

.brand-band .contact-text a {
    color: inherit;
    text-decoration: none;
}

.brand-band .contact-text a:hover {
    color: var(--brand-band-ink);
    text-decoration: underline;
}

.brand-band a:focus-visible {
    outline: 2px solid var(--brand-band-ink);
    outline-offset: 5px;
    border-radius: 2px;
}

.brand-band .nav-header-actions {
    flex: 0 0 auto;
    gap: 0;
    position: relative;
    left: clamp(8px, .7vw, 16px);
}

.brand-band .nav-header-actions > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(14px, 1.5vw, 32px);
    min-height: clamp(50px, 4vw, 82px);
}

.brand-band .nav-header-actions > a:first-child {
    padding-left: 0;
}

.brand-band .nav-header-actions > a:last-child {
    padding-left: clamp(6px, .6vw, 12px);
    padding-right: clamp(8px, .9vw, 20px);
}

.brand-band .nav-header-actions > a + a {
    border-left: 1px solid #bdcedf;
}

.brand-band .nav-header-actions > a img {
    display: block;
    width: auto;
    height: clamp(52px, 4.3vw, 90px);
    object-fit: contain;
}

@media (min-width: 992px) {
    .secondary-nav { top: calc(26px + var(--brand-band-height)); }
    .secondary-nav.nav-scrolled { top: 26px; }
    .main-content { margin-top: calc(68px + var(--brand-band-height)); }
}

@media (min-width: 992px) and (max-width: 1280px) {
    .brand-band .header-inner { padding: 0 18px; gap: 18px; }
    .brand-band .nav-header-logo { flex-basis: 180px; }
    .brand-band .nav-header-contact { grid-template-columns: 24px minmax(0, 1fr); padding: 0 10px; gap: 7px; }
    .brand-band .nav-header-contact:first-child { padding-right: 16px; }
    .brand-band .nav-header-contact:first-child .contact-icon,
    .brand-band .nav-header-contact:first-child .contact-text { left: 6px; }
    .brand-band .contact-icon { width: 24px; font-size: 22px; }
    .brand-band .contact-text strong { font-size: 11px; }
    .brand-band .contact-text span { font-size: 10px; }
    .brand-band .nav-header-actions > a { padding: 0 12px; }
    .brand-band .nav-header-actions > a:first-child { padding-left: 0; }
    .brand-band .nav-header-actions > a:last-child { padding-left: 6px; padding-right: 6px; }
    .brand-band .nav-header-actions > a img { height: 50px; }
}
