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

body {
    margin: 0;
    background: #001a33;
    color: #222328;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

/* =====================================
   SHARED CENTERED SHELL
===================================== */
.page-shell {
    width: 100%;
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
}

/* =====================================
   HEADER / LOTTIE BANNER
===================================== */
.site-header { margin: 0; padding: 0; line-height: 0; }

#animation-container {
    margin: 0 0 -14px;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    width: 100%;
    aspect-ratio: 800 / 122;
}

#animation-container lottie-player {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: top;
}

#header-placeholder img {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: top;
}

.mobile-banner { display: none; }

/* =====================================
   NAVBAR: DESKTOP
===================================== */
#navbar-placeholder { margin: 0; padding: 0; }

#navbar {
    position: relative;
    z-index: 100;
    width: 100%;
    margin: 0;
    padding: 0;
    background: rgba(20, 24, 44, 0.9);
    color: #fff;
    line-height: 1.2;
    border: 1px solid #fff;
    border-bottom-width: 2px;
}

#navbar > .nav-buttons {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
}

#navbar > .nav-buttons > .nav_item {
    position: relative;
    display: block;
    float: none;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    background: #001a33;
    border: 0;
}

#navbar > .nav-buttons > .nav_item + .nav_item {
    border-left: 2px solid #fff;
}

#navbar .nav_item a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: #001a33;
    color: #fff;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease;
}

#navbar > .nav-buttons > .nav_item > a {
    width: 100%;
    height: 100%;
    padding: 12px 2px;
    font-size: 0.96em;
    white-space: nowrap;
}

#navbar .nav_item a:hover,
#navbar .nav_item a:focus {
    background: #b0b3b8;
    color: #222328;
}

#navbar .nav_item a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

/* =====================================
   DROPDOWN MENUS: DESKTOP HOVER
===================================== */
#navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: -2px;
    z-index: 9999;
    display: none;
    width: calc(100% + 2px);
    margin: 0;
    padding: 0;
    background: #001a33;
    border: 2px solid #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#navbar .nav_item:first-child > .dropdown-menu {
    left: 0;
    width: 100%;
}

#navbar .nav_item:hover > .dropdown-menu,
#navbar .nav_item:focus-within > .dropdown-menu {
    display: block;
}

#navbar .dropdown-menu:not(:has(a)) { display: none !important; }

#navbar .dropdown-menu > a {
    width: 100%;
    padding: 10px 2px;
    font-size: 0.9em;
    white-space: normal;
    overflow-wrap: anywhere;
    border-bottom: 2px solid #fff;
}

#navbar .dropdown-menu > a:last-child { border-bottom: 0; }

/* No arrow buttons are needed: menu labels are the controls on mobile. */
#navbar .submenu-toggle { display: none !important; }

/* =====================================
   HEADINGS AND CONTENT
===================================== */
h1 {
    margin-top: 0.5em;
    margin-bottom: 0.6em;
    color: #222328;
    font-family: 'Roboto Slab', serif;
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #e2e4e6;
}

.content-area {
    position: relative;
    z-index: 1;
    display: flow-root;
    padding: 20px 40px 40px;
    background: #e2e4e6;
    color: #222328;
    border-bottom: 3px solid #001a33;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

figure { margin: 0; padding: 0; }

figcaption {
    color: #555;
    font-size: 0.95em;
    font-weight: bold;
    text-align: center;
}

/* =====================================
   FOOTER
===================================== */
#footer-placeholder {
    position: relative;
    z-index: 2;
    margin-top: -3px;
    padding: 30px 40px;
    overflow: hidden;
    background-color: #001a33;
    color: #fff;
    line-height: 1.4;
    text-align: center;
    border: 1px solid #fff;
    border-bottom-width: 2px;
    border-radius: 0;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
}

#footer-placeholder footer {
    display: inline-block;
    width: 100%;
    max-width: 900px;
    margin: 0;
    padding: 20px 24px;
    background: rgba(0, 26, 51, 0.45);
    border: 0;
    box-shadow: none;
}

.footer-left { margin: 0 auto; }
.quote { color: #d0d6dd; }
.quote strong { color: #fff; }
.footer-links { margin-bottom: 14px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a img {
    margin-right: 6px;
    filter: brightness(1.15) grayscale(0.15);
    vertical-align: middle;
}
.footer-company-name { margin-top: 14px; color: #fff; }

/* =====================================
   YOUTUBE PREVIEW
===================================== */
.youtube-launch {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 3px solid #001a33;
    background: #142436;
    color: #fff;
    font: 700 16px Roboto, Arial, sans-serif;
    cursor: pointer;
}

.youtube-launch .youtube-play {
    background: #e62117;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 24px;
}

.youtube-launch:hover,
.youtube-launch:focus-visible { background: #29445f; }

/* =====================================
   TABLET / NARROW DESKTOP
===================================== */
@media only screen and (max-width: 1200px) {
    .page-shell { max-width: min(1100px, 98vw); }
    table { font-size: 0.97em; }
    .content-area { border-bottom-width: 2px; }
    #navbar > .nav-buttons > .nav_item > a {
        padding: 9.6px 2px;
        font-size: 0.8em;
    }
}

/* =====================================
   MOBILE: LABEL-ONLY ACCORDION NAV
   The loader.js click handler toggles .submenu-open.
===================================== */
@media (max-width: 700px) {
    .page-shell { width: 100%; max-width: 100%; }

    #banner-placeholder { display: none !important; }
    .mobile-banner {
        display: block;
        background: #001a33;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

    #navbar > .nav-buttons {
        display: flex;
        flex-direction: column;
    }

    #navbar > .nav-buttons > .nav_item {
        display: block !important;
        width: 100%;
        flex: none;
        border-left: 0 !important;
        border-top: 1px solid #fff;
    }

    #navbar > .nav-buttons > .nav_item:first-child { border-top: 0; }

    #navbar > .nav-buttons > .nav_item > a,
    #navbar > .nav-buttons > .nav_item > a[aria-haspopup="true"] {
        display: flex;
        width: 100% !important;
        height: auto;
        min-height: 44px;
        padding: 13px 16px;
        flex: 1 1 100% !important;
        font-size: 1rem;
    }

    /* Hide separate arrow/button controls regardless of their class. */
    #navbar > .nav-buttons > .nav_item > button,
    #navbar > .nav-buttons > .nav_item > .submenu-toggle,
    #navbar > .nav-buttons > .nav_item > [class*="toggle"] {
        display: none !important;
    }

    /* Hover/focus must not open an accordion by themselves on touch screens. */
    #navbar .nav_item > .dropdown-menu,
    #navbar .nav_item:hover > .dropdown-menu,
    #navbar .nav_item:focus-within > .dropdown-menu {
        display: none;
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        margin: 0;
        padding: 0;
        background: #102c49;
        border: 0;
        box-shadow: none;
    }

    /* Only a click that adds .submenu-open displays the destinations. */
    #navbar .nav_item.submenu-open > .dropdown-menu,
    #navbar .nav_item.submenu-open:hover > .dropdown-menu,
    #navbar .nav_item.submenu-open:focus-within > .dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    #navbar .dropdown-menu:not(:has(a)) { display: none !important; }

    #navbar .dropdown-menu > a {
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 12px;
        background: #102c49;
        font-size: 0.94rem;
        border-bottom: 1px solid #64768a;
    }

    #navbar .dropdown-menu > a:last-child { border-bottom: 0; }

    .content-area { padding: 18px 16px 30px; }
    #footer-placeholder { padding: 20px 12px; }
}
