:root {
    --brand: #d60016;
    --green: #d60016;
    --green-dark: #a90011;
    --green-soft: #fff1f2;
    --gold: #d60016;
    --gold-soft: #fff1f2;
    --ink: #151515;
    --line: #e9e9e9;
    --content-max: 1440px
}

* {
    box-sizing: border-box
}

a {
    color: inherit;
    text-decoration: none
}

.shell {
    width: min(calc(100% - 64px), var(--content-max));
    margin-inline: auto
}

.site-header {
    height: 92px !important;
    position: sticky !important;
    inset: 0 0 auto !important;
    z-index: 1000;
    background: #fff !important;
    color: var(--ink) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    transition: none !important
}

.site-header.is-scrolled {
    position: fixed !important;
    color: var(--ink) !important;
    background: #fff !important;
    box-shadow: none !important
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 35px;
    /* background: #fff; */

}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 8px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    font-size: 25px;
    font-weight: 900;
    line-height: 1
}

.brand-copy strong {
    display: block;
    font-size: 18px;
    line-height: 1.05
}

.brand-copy small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: .08em;
    opacity: .82
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 34px;
    height: 100%
}

.desktop-nav a,
.desktop-nav .nav-group>span {
    position: relative;
    display: grid;
    place-items: center;
    white-space: nowrap;
    font-size: 18px !important;
    font-weight: 400
}

.nav-group {
    position: relative;
    display: flex;
    align-items: stretch
}

.nav-group>a,
.nav-group>span {
    display: flex;
    align-items: center;
    gap: 5px
}

.desktop-nav>a:hover,
.nav-group:hover>span,
.nav-group:focus-within>span,
.desktop-nav a.active,
.desktop-nav span.active {
    color: var(--brand)
}

.desktop-nav a:after,
.desktop-nav .nav-group>span:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--brand);
    display: block !important;
    transition: none
}

.desktop-nav>a:hover:after,
.nav-group:hover>span:after,
.nav-group:focus-within>span:after,
.desktop-nav a.active:after,
.desktop-nav span.active:after {
    width: 100% !important
}

.header-inner {
    position: relative;
    z-index: 1;
    /* background: #fff */
}

.site-header:has(.nav-group:hover)::before,
.site-header:has(.nav-group:focus-within)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgb(255 255 255 / 62%);
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.nav-submenu {
    position: fixed;
    inset: 92px 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 68px;
    padding: 0 max(32px, calc((100vw - var(--content-max))/2));
    color: var(--ink);
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: none !important;
    opacity: 0;
    pointer-events: none;
    z-index: 1040
}

.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu {
    opacity: 1;
    pointer-events: auto
}

.nav-submenu a {
    display: flex;
    align-items: center;
    min-height: 68px;
    font-size: 17px !important;
    white-space: nowrap
}

.nav-submenu a:hover {
    color: var(--brand)
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    white-space: nowrap
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.language-switch a.active,
.language-switch a:hover {
    color: var(--brand)
}

.header-divider {
    width: 1px;
    height: 18px;
    background: currentColor;
    opacity: .45
}

.header-tools .lucide {
    width: 18px;
    height: 18px
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: currentColor
}

.mobile-menu {
    display: none
}

.site-footer {
    padding: 56px 0 0 !important;
    background: #20272b !important;
    color: #fff !important
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(7, 1fr);
    gap: 30px
}

.footer-col h3 {
    margin: 8px 0 16px;
    font-size: 14px
}

.footer-col a {
    display: block;
    margin: 8px 0;
    color: #c0c6c9;
    font-size: 12px
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid rgb(255 255 255 / 18%);
    color: #aeb7bc;
    font-size: 12px
}

.site-footer .footer-grid {
    gap: 30px !important
}

.site-footer .footer-col {
    border: 0 !important;
    padding: 0 !important
}

/* All formal inner-page heroes share one fixed height. Homepage banner is excluded. */
.page-hero,
.content-hero {
    height: 300px !important;
    min-height: 300px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important
}

.page-hero>.container,
.content-hero>.container {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    padding-top: 0 !important;
    padding-bottom: 0 !important
}

.page-hero,
.content-hero {
    position: relative;
    overflow: hidden;
    background: #eef2f3 !important
}

.page-hero:before,
.content-hero:before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: url("assets/hero-banner.png") center/cover no-repeat !important
}

.page-hero>.container,
.content-hero>.container {
    position: relative;
    z-index: 1
}

@media(max-width:1100px) {
    .desktop-nav {
        gap: 18px
    }

    .header-inner {
        gap: 20px
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media(max-width:760px) {
    .page-hero,
    .content-hero {
        height: 240px !important;
        min-height: 240px !important;
        padding: 0 20px !important
    }

    .shell {
        width: min(calc(100% - 32px), var(--content-max))
    }

    .site-header {
        height: 66px !important
    }

    .desktop-nav {
        display: none !important
    }

    .header-tools {
        display: flex !important;
        gap: 0;
        margin-left: auto;
        font-size: 15px
    }

    .header-tools .header-divider,
    .header-tools>.lucide {
        display: none !important
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 12px
    }

    .mobile-menu {
        display: block;
        position: fixed;
        inset: 66px 0 0;
        height: calc(100vh - 66px);
        height: calc(100dvh - 66px);
        padding: 12px 16px 20px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        color: var(--ink);
        box-shadow: none !important;
        transform: translateY(-130%);
        transition: transform .25s;
        z-index: 999
    }

    .mobile-menu.is-open {
        transform: translateY(0)
    }

    .mobile-menu a {
        display: block;
        padding: 13px 4px;
        border-bottom: 1px solid #eee
    }

    .mobile-menu .mobile-link,
    .mobile-menu .mobile-group-toggle {
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 13px 4px;
        border: 0;
        border-bottom: 1px solid #e9e9e9;
        background: transparent;
        color: inherit;
        font: inherit;
        text-align: left;
        text-decoration: none;
        cursor: pointer
    }

    .mobile-menu .mobile-link .lucide,
    .mobile-menu .mobile-group-toggle .lucide {
        width: 24px;
        height: 24px;
        flex: 0 0 auto;
        color: #666;
        stroke-width: 1.35
    }

    .mobile-menu .mobile-submenu {
        display: none;
        padding: 0 0 0 20px;
        border-bottom: 1px solid #e9e9e9
    }

    .mobile-menu .mobile-group.is-open .mobile-submenu {
        display: block
    }

    .mobile-menu .mobile-submenu a {
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 10px 4px;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid #f0f0f0;
        color: #555;
        font-size: 15px
    }

    .mobile-menu .mobile-submenu a .lucide {
        width: 21px;
        height: 21px;
        flex: 0 0 auto;
        color: #555 !important;
        stroke-width: 1.35
    }

    .mobile-menu .mobile-submenu a:last-child {
        border-bottom: 0
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px
    }

    .footer-brand {
        grid-column: span 2
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px
    }
}

/* Shared content tabs, matching the News Center UI. */
.news-v2-tabs {
    padding: 40px 0 20px
}

.news-v2-tabbar {
    display: flex;
    gap: 56px;
    border: 0
}

.news-v2-tab {
    position: relative;
    padding: 10px;
    border: 0;
    background: none;
    color: #666;
    font-size: 26px
}

.news-v2-tab.active {
    color: var(--brand)
}

.news-v2-tab.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 2em;
    height: 2px;
    transform: translateX(-50%);
    background: var(--brand)
}

@media(max-width:760px) {
    .news-v2-tabbar {
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto
    }

    .news-v2-tab {
        white-space: nowrap;
        font-size: 20px
    }
}
