/* ==========================================================================
   Created: 2026-11-20T02:10:00-05:00 | Last Modified: 2026-11-20T02:38:00-05:00 | Project: VeteransVSO
   VeteransVSO™ Canonical Shared Clean-White 2-Row Mega-Header & Specialty Sub-Bar CSS
   Mandatory Visual Palette: Light Blue (#0284c7, #0369a1, #e0f2fe, #f0f9ff),
   Soft Gray (#f8fafc, #f1f5f9, #cbd5e1, #e2e8f0), Red Accents (#dc2626, #b91c1c, #fee2e2, #fff1f2),
   High-Contrast Dark Typography (#0f172a, #334155, #475569).
   Zero Dark Blocks Policy & Clean Specificity (0 override hacks).
   File: /static/css/vso_unified_header.css
   ========================================================================== */

header.vso-uh {
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    background: #ffffff;
    color: #0f172a;
    border-bottom: 3.5px solid #0284c7;
    padding: 10px 22px 12px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 10020;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.35;
    text-align: left;
}

header.vso-uh *,
header.vso-uh *::before,
header.vso-uh *::after {
    box-sizing: border-box;
}

/* Row 1: Brand Crest + Badges + Hotline & Utility Strip */
header.vso-uh .vso-uh-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

header.vso-uh a.vso-uh-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0f172a;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

header.vso-uh img.vso-uh-logo {
    height: 46px;
    width: auto;
    border-radius: 8px;
    border: 1.5px solid #0284c7;
    display: block;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.14);
}

header.vso-uh .vso-uh-title {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    margin: 0;
}

header.vso-uh .vso-uh-title span.vso-uh-red {
    color: #dc2626;
}

header.vso-uh .vso-uh-badge {
    display: inline-block;
    font-size: 10.5px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 3px;
}

header.vso-uh .vso-uh-sub {
    font-size: 10.5px;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-weight: 800;
    display: block;
    margin-top: 2px;
}

header.vso-uh .vso-uh-breach-badge {
    display: none;
    background: #dc2626;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    margin-left: 6px;
    cursor: pointer;
    vertical-align: middle;
    border: 1px solid #991b1b;
}

header.vso-uh .vso-uh-phone-strip {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-left: auto;
}

header.vso-uh a.vso-uh-hotline-red {
    background: #dc2626;
    color: #ffffff;
    border: 1.5px solid #b91c1c;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

header.vso-uh a.vso-uh-hotline-red:hover {
    background: #b91c1c;
    color: #ffffff;
}

header.vso-uh a.vso-uh-hotline-light {
    background: #e0f2fe;
    color: #0369a1;
    border: 1.5px solid #7dd3fc;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

header.vso-uh a.vso-uh-hotline-light:hover {
    background: #bae6fd;
    border-color: #0284c7;
    color: #0369a1;
}

header.vso-uh a.vso-uh-hotline-blue {
    background: #0284c7;
    color: #ffffff;
    border: 1.5px solid #0369a1;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

header.vso-uh a.vso-uh-hotline-blue:hover {
    background: #0369a1;
    color: #ffffff;
}

header.vso-uh button.vso-uh-btn-donate {
    background: #dc2626;
    color: #ffffff;
    border: 1.5px solid #fca5a5;
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.24);
}

header.vso-uh button.vso-uh-btn-donate:hover {
    background: #b91c1c;
    color: #ffffff;
}

header.vso-uh a.vso-uh-btn-crisis {
    background: #dc2626;
    color: #ffffff;
    border: 1.5px solid #991b1b;
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

header.vso-uh a.vso-uh-btn-crisis:hover {
    background: #b91c1c;
    color: #ffffff;
}

header.vso-uh a.vso-uh-btn-admin {
    display: none;
    align-items: center;
    gap: 6px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1.5px solid #0284c7;
    border-radius: 7px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

header.vso-uh a.vso-uh-btn-admin:hover {
    background: #e0f2fe;
    color: #0369a1;
}

header.vso-uh .vso-uh-admin-tag {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    font-size: 9.5px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.4px;
}

body.vso-is-admin header.vso-uh #vsoHeaderAdminBtn {
    display: inline-flex;
}

body:not(.vso-is-admin) header.vso-uh #vsoHeaderAdminBtn,
body:not(.vso-is-admin) header.vso-uh .vso-uh-admin-only {
    display: none;
}

/* Row 2: Mega-Dropdown Navigation & Quick Action Bar */
header.vso-uh nav.vso-uh-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 8px 0 0 0;
    border-top: 1px solid #e2e8f0;
    background: transparent;
}

header.vso-uh .vso-uh-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

header.vso-uh button.vso-uh-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

header.vso-uh button.vso-uh-trigger:hover,
header.vso-uh .vso-uh-dropdown.open > button.vso-uh-trigger {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0369a1;
}

header.vso-uh .vso-uh-caret {
    font-size: 10px;
    color: #475569;
    transition: transform 0.18s ease;
}

header.vso-uh .vso-uh-dropdown.open > button .vso-uh-caret {
    transform: rotate(180deg);
}

/* Action & Utility Pills in Row 2 */
header.vso-uh a.vso-uh-pill-green {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #059669;
    color: #ffffff;
    border: 1.5px solid #047857;
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 900;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

header.vso-uh a.vso-uh-pill-green:hover {
    background: #047857;
    color: #ffffff;
}

header.vso-uh a.vso-uh-pill-red {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dc2626;
    color: #ffffff;
    border: 1.5px solid #b91c1c;
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 900;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

header.vso-uh a.vso-uh-pill-red:hover {
    background: #b91c1c;
    color: #ffffff;
}

header.vso-uh a.vso-uh-pill-blue {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0284c7;
    color: #ffffff;
    border: 1.5px solid #0369a1;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

header.vso-uh a.vso-uh-pill-blue:hover {
    background: #0369a1;
    color: #ffffff;
}

header.vso-uh button.vso-uh-pill-util {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    white-space: nowrap;
}

header.vso-uh button.vso-uh-pill-util:hover,
header.vso-uh button.vso-uh-pill-util[aria-pressed="true"] {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0369a1;
}

header.vso-uh a.vso-uh-pill-signin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0369a1;
    color: #ffffff;
    border: 1.5px solid #0369a1;
    border-radius: 8px;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 900;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

header.vso-uh a.vso-uh-pill-signin:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

/* Mega-Dropdown Panels */
header.vso-uh .vso-uh-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    min-width: 310px;
    max-width: min(400px, 92vw);
    max-height: 78vh;
    overflow-y: auto;
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    border-top: 3.5px solid #0284c7;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
    padding: 6px 0;
    z-index: 10060;
    text-align: left;
}

header.vso-uh .vso-uh-menu.vso-uh-menu-right {
    left: auto;
    right: 0;
}

header.vso-uh .vso-uh-menu.vso-uh-menu-wide {
    min-width: 380px;
    max-width: min(440px, 92vw);
}

header.vso-uh .vso-uh-dropdown.open > .vso-uh-menu {
    display: block;
}

header.vso-uh .vso-uh-group-label {
    font-size: 10.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #0369a1;
    background: #f8fafc;
    padding: 7px 14px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

header.vso-uh .vso-uh-group-label:first-child {
    border-top: none;
}

header.vso-uh .vso-uh-group-label.vso-uh-group-red {
    color: #b91c1c;
    background: #fff1f2;
    border-color: #fecaca;
}

header.vso-uh a.vso-uh-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 14px;
    color: #0f172a;
    text-decoration: none;
    font-size: 12.8px;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    transition: background 0.14s ease;
}

header.vso-uh a.vso-uh-item:last-child {
    border-bottom: none;
}

header.vso-uh a.vso-uh-item:hover {
    background: #f0f9ff;
}

header.vso-uh a.vso-uh-item.vso-uh-item-red {
    border-left: 3.5px solid #dc2626;
}

header.vso-uh a.vso-uh-item.vso-uh-item-blue {
    border-left: 3.5px solid #0284c7;
}

header.vso-uh a.vso-uh-item.vso-uh-item-highlight {
    background: #f0f9ff;
    border-left: 3.5px solid #0284c7;
}

header.vso-uh .vso-uh-item-title {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

header.vso-uh .vso-uh-item-title.vso-uh-item-title-red {
    color: #b91c1c;
}

header.vso-uh .vso-uh-item-title.vso-uh-item-title-blue {
    color: #0369a1;
}

header.vso-uh .vso-uh-item-desc {
    font-size: 11.5px;
    color: #334155;
    margin-top: 2px;
    line-height: 1.35;
}

/* Donate Popover Panel */
header.vso-uh .vso-uh-menu.vso-uh-donate-panel {
    width: 340px;
    min-width: 320px;
    max-width: 92vw;
    padding: 16px;
    border: 2px solid #dc2626;
    border-radius: 12px;
    background: #ffffff;
}

header.vso-uh .vso-uh-donate-title {
    font-size: 13.5px;
    font-weight: 900;
    color: #991b1b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

header.vso-uh .vso-uh-donate-copy {
    font-size: 12.5px;
    color: #334155;
    line-height: 1.55;
    margin: 0 0 12px 0;
    font-weight: 600;
    white-space: normal;
}

header.vso-uh button.vso-uh-paypal-btn {
    width: 100%;
    background: #dc2626;
    color: #ffffff;
    border: 1.5px solid #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 900;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

header.vso-uh button.vso-uh-paypal-btn:hover {
    background: #b91c1c;
}

header.vso-uh .vso-uh-donate-links {
    display: flex;
    gap: 6px;
    justify-content: space-between;
}

header.vso-uh a.vso-uh-donate-link {
    flex: 1;
    text-align: center;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
}

header.vso-uh a.vso-uh-donate-link:hover {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0369a1;
}

/* Signed-In Account Dropdown Trigger Pill */
header.vso-uh button.vso-uh-trigger.vso-uh-account-trigger {
    background: #f0f9ff;
    color: #0f172a;
    border: 1.5px solid #0284c7;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
}

/* Specialty Page Clean Light Control Sub-Bar (Below Canonical Header) */
.vso-uh-subbar {
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
    background: #f8fafc;
    color: #0f172a;
    border-bottom: 1.5px solid #cbd5e1;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    z-index: 9990;
    position: relative;
}

.vso-uh-subbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vso-uh-subbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}

.vso-uh-subbar-btn:hover {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0369a1;
}

.vso-uh-subbar-btn-blue {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1.5px solid #0284c7;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}

.vso-uh-subbar-btn-red {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dc2626;
    color: #ffffff;
    border: 1.5px solid #b91c1c;
    border-radius: 8px;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}

.vso-uh-subbar-btn-red:hover {
    background: #b91c1c;
    color: #ffffff;
}

.vso-uh-subbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 800;
}

.vso-uh-subbar-badge-red {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

/* Mobile Bar Controls Harmony (<= 1024px) */
header.vso-uh .vso-mobile-bar-controls {
    display: none;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}

@media (max-width: 1024px) {
    header.vso-uh {
        position: sticky;
        top: 0;
        padding: 10px 14px;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    header.vso-uh .vso-uh-top {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
    }

    header.vso-uh a.vso-uh-brand {
        min-width: 0;
        flex: 1 1 auto;
        gap: 8px;
    }

    header.vso-uh img.vso-uh-logo {
        height: 36px;
    }

    header.vso-uh .vso-uh-title {
        font-size: 16.5px;
    }

    header.vso-uh .vso-uh-badge {
        display: none;
    }

    header.vso-uh .vso-uh-sub {
        font-size: 9.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 185px;
    }

    header.vso-uh .vso-uh-phone-strip,
    header.vso-uh > nav.vso-uh-nav {
        display: none;
    }

    header.vso-uh > .vso-mobile-bar-controls {
        display: inline-flex;
        flex-shrink: 0;
    }

    .vso-uh-subbar {
        padding: 8px 14px;
    }
}

@media print {
    header.vso-uh,
    .vso-uh-subbar {
        display: none;
    }
}
