/**
 * TITLE: UDS Shared Header and Footer Styles
 * VERSION: 1.0.0 — September 26, 2026
 * USES: uds_site_header.php; uds_site_footer.php; uds-site.js.
 * PURPOSE: Scoped navy typography, responsive navigation and full footer.
 */
.uds-shell-header, .uds-shell-footer {
    --shell-navy: #003366;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--shell-navy);
    font-size: 13px;
    line-height: 1.6;
}

.uds-shell-announcement {
    background: #003366;
    color: white;
}
.uds-shell-announcement .uds-shell-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 9px 0;
}
.uds-shell-announcement span {
    font-size: 12px;
    font-weight: 600;
}
.uds-shell-announcement nav {
    display: flex;
    gap: 8px;
}
.uds-shell-announcement nav a {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: #ffffff20;
    font-weight: 600;
}
.uds-shell-header *, .uds-shell-footer * {
    box-sizing: border-box;
}

.uds-shell-header a, .uds-shell-footer a {
    color: inherit;
    text-decoration: none;
}

.uds-shell-header a:hover, .uds-shell-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.uds-shell-header :focus-visible, .uds-shell-footer :focus-visible {
    outline: 2px solid #ad8155;
    outline-offset: 5px;
}

.uds-shell-width {
    width: min(1500px, 92%);
    margin: auto;
}

.uds-shell-header {
    position: relative;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #dce2e8;
}

.uds-shell-top {
    background: #f4f6f7;
    border-bottom: 1px solid #e5e9ed;
}

.uds-shell-top .uds-shell-width {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uds-shell-top span {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1.7px;
}

.uds-shell-top i {
    font-style: normal;
    opacity: .4;
    margin: 0 10px;
}

.uds-shell-top a {
    background: var(--shell-navy);
    color: white;
    padding: 9px 20px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.uds-shell-navrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 94px;
}

.uds-shell-brand {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    line-height: 1;
}

.uds-shell-brand > span {
    font: 600 58px/.78 'Cormorant Garamond', Georgia, serif;
    letter-spacing: -4px;
}

.uds-shell-brand > small {
    font-size: 6.5px;
    letter-spacing: .45px;
    margin-top: 9px;
    font-weight: 600;
}

#udsMainNav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 25px);
}

#udsMainNav > a, #udsMainNav summary {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

#udsMainNav details {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
}

#udsMainNav summary {
    list-style: none;
}

#udsMainNav summary::-webkit-details-marker {
    display: none;
}

#udsMainNav summary::after {
    content: '⌄';
    margin-left: 6px;
}

.uds-shell-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    left: -16px;
    min-width: 250px;
    max-height: 70vh;
    overflow-y: auto;
    background: white;
    box-shadow: 0 12px 32px #00336620;
    border: 1px solid #e0e7eb;
    padding: 16px;
}

.uds-shell-dropdown a {
    display: block;
    padding: 8px;
    font-size: 12px;
}

.uds-shell-search .uds-shell-dropdown {
    left: auto;
    right: 0;
}

.uds-shell-dropdown input {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #b8c6d4;
    font: inherit;
}

.uds-shell-dropdown button {
    background: #036;
    color: white;
    border: 0;
    padding: 10px;
    font: inherit;
    cursor: pointer;
}

.uds-shell-toggle {
    display: none;
    background: white;
    border: 1px solid #ccd7e1;
    color: #036;
    padding: 10px 14px;
    font: inherit;
}

.uds-shell-footer {
    display: block;
    background: #f1f4f6;
    padding: 0;
    margin-top: 60px;
    border-top: 4px solid #036;
}

.uds-shell-footer-intro {
    position: relative;
    padding: 48px 0 36px;
    border-bottom: 1px solid #cdd7df;
}

.uds-shell-footer-intro > p {
    font-size: 10px;
    letter-spacing: 2px;
}

.uds-shell-footer-intro h2 {
    font: 600 clamp(32px,4vw,48px)/1.12 'Cormorant Garamond', Georgia, serif;
    margin: 14px 0;
    color: #036;
}

.uds-shell-footer-intro > a {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
}

.uds-shell-footer-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.15fr 1.4fr;
    gap: 40px;
    padding: 44px 0;
}

.uds-shell-footer h3 {
    font: 600 12px/1.5 'Montserrat',Arial,sans-serif;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 17px;
    color: #036;
}

.uds-shell-footer-grid a:not(.uds-shell-brand) {
    display: block;
    margin-bottom: 10px;
}

.uds-shell-footer address {
    margin: 25px 0;
    font-style: normal;
}

.uds-shell-footer p {
    color: #345777;
}

.uds-shell-outline {
    padding: 10px 14px;
    border: 1px solid #9eb1c2;
    width: fit-content;
}

.uds-shell-outline + h3 {
    margin-top: 30px;
}

.uds-shell-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid #cdd7df;
    border-bottom: 1px solid #cdd7df;
}

.uds-shell-social > span {
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 1px;
    margin-right: auto;
}

.uds-shell-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0 30px;
    font-size: 10px;
}

.uds-shell-bottom p {
    margin: 0 0 8px;
}

.uds-shell-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.uds-shell-partner {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #003366;
    padding: 12px 16px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
}

.uds-planned {
    max-width: 950px;
    min-height: 45vh;
    margin: auto;
    padding: 70px 5%;
    color: #036;
    font-family: 'Montserrat',Arial,sans-serif;
}

.uds-planned h1 {
    font-family: 'Cormorant Garamond',Georgia,serif;
    font-size: 48px;
}

@media (max-width: 1120px) {
    .uds-shell-navrow {
        flex-wrap: wrap;
        padding: 20px 0;
        gap: 20px;
    }
    .uds-shell-toggle {
        display: block;
        cursor: pointer;
    }
    #udsMainNav {
        display: none;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }
    #udsMainNav.uds-shell-open {
        display: flex;
    }
    #udsMainNav > a, #udsMainNav summary {
        display: block;
        padding: 12px 0;
    }
    .uds-shell-dropdown {
        position: static;
        box-shadow: none;
        border: 0;
        padding: 0 10px 15px;
        max-height: none;
    }
    .uds-shell-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .uds-shell-top span {
        font-size: 8px;
        letter-spacing: .2px;
    }
    .uds-shell-top i {
        margin: 0 3px;
    }
    .uds-shell-top a {
        padding: 10px;
        font-size: 8px;
    }
    .uds-shell-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .uds-shell-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
    .uds-shell-social {
        gap: 15px;
    }
    .uds-shell-social > span {
        width: 100%;
    }
    .uds-shell-partner {
        align-self: flex-end;
    }
}

@media print {
    .uds-shell-header, .uds-shell-footer {
        display: none;
    }
}
