.woasf-tnb {
    --woasf-navy: #10263d;
    --woasf-navy-deep: #0b1c2e;
    --woasf-navy-rail: #0e2236;
    --woasf-menu-panel: #3f6b94;
    --woasf-menu-rail: #173f67;
    --woasf-menu-active: #173f67;
    --woasf-menu-hover: #829eb8;
    --woasf-gold: #c5a05c;
    --woasf-btn-gold: #c4a058;
    --woasf-btn-blue: #406b95;
    --woasf-white: #ffffff;
    --woasf-muted: rgba(255, 255, 255, 0.78);
    --woasf-line: rgba(255, 255, 255, 0.22);
    /* Logo matches the header mockup: ~1.75× the Apply/Donate button height */
    --woasf-bar-height: 124px;
    --woasf-logo-max-width: 152px;
    --woasf-logo-max-height: 96px;
    position: relative;
    z-index: 1200;
    width: 100%;
    box-sizing: border-box;
    font-family: Montserrat, "Open Sans", Lato, Helvetica, Arial, sans-serif;
    color: var(--woasf-navy);
    line-height: 1.4;
    text-align: left;
    text-transform: none;
}

.woasf-tnb *,
.woasf-tnb *::before,
.woasf-tnb *::after {
    box-sizing: border-box;
}

.woasf-tnb-shell {
    width: 100%;
    position: relative;
    z-index: 1200;
    overflow: visible;
}

.woasf-tnb__bar {
    position: relative;
    z-index: 1220;
    background: var(--woasf-white);
    border-bottom: 1px solid rgba(16, 38, 61, 0.08);
}

.woasf-tnb__bar--sticky,
.woasf-tnb.is-open .woasf-tnb__bar {
    position: sticky;
    top: 0;
    z-index: 1220;
}

.woasf-tnb__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--woasf-bar-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    box-sizing: border-box;
}

.woasf-tnb__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    text-decoration: none !important;
    color: var(--woasf-navy) !important;
}

.woasf-tnb__logo {
    display: block;
    flex: 0 0 auto;
}

/* Beat theme `div.ccm-page img { max-width: 100% }` which otherwise ignores our size caps */
div.ccm-page .woasf-tnb .woasf-tnb__logo img,
.ccm-page .woasf-tnb .woasf-tnb__logo img,
.woasf-tnb .woasf-tnb__logo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: var(--woasf-logo-max-width) !important;
    max-height: var(--woasf-logo-max-height) !important;
    object-fit: contain;
}

.woasf-tnb__logo-transparent {
    display: none;
}

/* Concrete edit overlays (click-proxy ~500) sit under our live z-index 1200+.
   Drop stacking in edit mode so the Top Navigation Bar can be selected. */
html.ccm-edit-mode .woasf-tnb-shell,
html.ccm-edit-mode .woasf-tnb,
.ccm-page-edit .woasf-tnb-shell,
.ccm-page-edit .woasf-tnb,
.ccm-page-edit .woasf-tnb__bar,
.ccm-page-edit .woasf-tnb__panel,
.ccm-block-edit .woasf-tnb,
.ccm-block-edit .woasf-tnb__bar,
.ccm-block-edit .woasf-tnb__panel {
    z-index: auto !important;
    position: relative !important;
}

html.ccm-edit-mode .woasf-tnb__bar--sticky,
.ccm-page-edit .woasf-tnb__bar--sticky,
.ccm-page-edit .woasf-tnb.is-open .woasf-tnb__bar,
.ccm-block-edit .woasf-tnb__bar--sticky,
.ccm-block-edit .woasf-tnb.is-open .woasf-tnb__bar {
    position: relative !important;
    top: auto !important;
}

html.ccm-edit-mode .woasf-tnb[data-transparency="navbar"],
.ccm-page-edit .woasf-tnb[data-transparency="navbar"],
.ccm-block-edit .woasf-tnb[data-transparency="navbar"] {
    display: block !important;
}

.woasf-tnb__brand-text {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--woasf-navy);
}

.woasf-tnb__tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    margin-left: auto;
}

.woasf-tnb__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 6px;
    border: 0;
    color: var(--woasf-white) !important;
    text-decoration: none !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.woasf-tnb__cta i,
.woasf-tnb__cta .fas,
.woasf-tnb__cta .fa {
    font-size: 18px;
    line-height: 1;
}

.woasf-tnb__cta--apply {
    background: var(--woasf-btn-gold);
}

.woasf-tnb__cta--donate {
    background: var(--woasf-btn-blue);
}

.woasf-tnb__cta:hover,
.woasf-tnb__cta:focus {
    filter: brightness(1.05);
    color: var(--woasf-white) !important;
    text-decoration: none !important;
}

.woasf-tnb__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.woasf-tnb__toggle-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
}

.woasf-tnb__toggle-box span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--woasf-btn-blue);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.woasf-tnb.is-open .woasf-tnb__toggle-box span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.woasf-tnb.is-open .woasf-tnb__toggle-box span:nth-child(2) {
    opacity: 0;
}

.woasf-tnb.is-open .woasf-tnb__toggle-box span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.woasf-tnb__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    background: var(--woasf-menu-rail);
    color: var(--woasf-white);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.woasf-tnb__panel[hidden] {
    display: none !important;
}

.woasf-tnb__panel-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.woasf-tnb__menu {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: stretch;
    min-height: 320px;
    background: var(--woasf-menu-rail);
}

.woasf-tnb__rail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--woasf-menu-rail);
}

.woasf-tnb__panels {
    position: relative;
    background: var(--woasf-menu-panel);
    min-height: 100%;
}

.woasf-tnb__panels::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: max(0px, calc((100vw - 1200px) / 2));
    background: var(--woasf-menu-panel);
}

.woasf-tnb__rail-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 16px 22px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--woasf-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.woasf-tnb__rail-btn.is-active,
.woasf-tnb__rail-btn:hover,
.woasf-tnb__rail-btn:focus {
    background: transparent;
    border-left-color: transparent;
    outline: none;
}

.woasf-tnb__rail-btn:hover,
.woasf-tnb__rail-btn:focus {
    color: var(--woasf-menu-hover);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.woasf-tnb__rail-chevron {
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.woasf-tnb__section {
    padding: 36px 40px 42px;
    background: var(--woasf-menu-panel);
}

.woasf-tnb__section[hidden] {
    display: none !important;
}

/* Beat theme typography (e.g. WOAF div.ccm-page h2) without depending on Modena. */
.ccm-page .woasf-tnb .woasf-tnb__section-title,
.woasf-tnb .woasf-tnb__section-title {
    margin: 0 0 12px !important;
    padding: 0;
    font-family: Montserrat, "Open Sans", Lato, Helvetica, Arial, sans-serif !important;
    font-size: clamp(2rem, 3vw, 2.75rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    text-transform: none !important;
    color: var(--woasf-white) !important;
}

.ccm-page .woasf-tnb .woasf-tnb__section-title a,
.woasf-tnb .woasf-tnb__section-title a {
    color: var(--woasf-white) !important;
    text-decoration: none !important;
}

.ccm-page .woasf-tnb .woasf-tnb__section-title a:hover,
.ccm-page .woasf-tnb .woasf-tnb__section-title a:focus,
.woasf-tnb .woasf-tnb__section-title a:hover,
.woasf-tnb .woasf-tnb__section-title a:focus {
    color: var(--woasf-menu-hover) !important;
    text-decoration-line: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 4px;
}

.ccm-page .woasf-tnb .woasf-tnb__section-desc,
.woasf-tnb .woasf-tnb__section-desc {
    margin: 0 0 28px;
    max-width: 42rem;
    color: var(--woasf-muted) !important;
    font-family: "Open Sans", Lato, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    text-transform: none;
}

.woasf-tnb__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 40px;
}

.woasf-tnb__link-col {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woasf-tnb__link-col li + li {
    border-top: 1px solid var(--woasf-line);
}

.ccm-page .woasf-tnb .woasf-tnb__link-col a,
.woasf-tnb .woasf-tnb__link-col a {
    display: block;
    padding: 14px 0;
    color: var(--woasf-white) !important;
    text-decoration: none !important;
    font-family: "Open Sans", Lato, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    text-transform: none;
}

.ccm-page .woasf-tnb .woasf-tnb__link-col a:hover,
.ccm-page .woasf-tnb .woasf-tnb__link-col a:focus,
.woasf-tnb .woasf-tnb__link-col a:hover,
.woasf-tnb .woasf-tnb__link-col a:focus {
    color: var(--woasf-menu-hover) !important;
    text-decoration-line: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 4px;
}

.ccm-page .woasf-tnb .woasf-tnb__link-col a.is-active,
.ccm-page .woasf-tnb .woasf-tnb__link-col a.is-path,
.woasf-tnb .woasf-tnb__link-col a.is-active,
.woasf-tnb .woasf-tnb__link-col a.is-path {
    color: var(--woasf-menu-hover) !important;
}

.woasf-tnb__section-empty {
    margin: 0;
}

.ccm-page .woasf-tnb .woasf-tnb__section-empty a,
.woasf-tnb .woasf-tnb__section-empty a {
    color: var(--woasf-gold) !important;
}

.ccm-page .woasf-tnb .woasf-tnb__visit,
.woasf-tnb .woasf-tnb__visit {
    display: inline-block;
    margin: 2px 0 22px;
    color: #fff !important;
    font-family: Montserrat, "Open Sans", Lato, Helvetica, Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-decoration: none !important;
    text-transform: uppercase;
}

.ccm-page .woasf-tnb .woasf-tnb__visit:hover,
.ccm-page .woasf-tnb .woasf-tnb__visit:focus,
.woasf-tnb .woasf-tnb__visit:hover,
.woasf-tnb .woasf-tnb__visit:focus {
    color: #fff !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.woasf-tnb__onpage {
    margin-top: 8px;
}

.woasf-tnb__onpage[hidden] {
    display: none !important;
}

.woasf-tnb__onpage-title {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.78);
    font-family: Montserrat, "Open Sans", Lato, Helvetica, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.woasf-tnb__onpage-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ccm-page .woasf-tnb .woasf-tnb__onpage-list a,
.woasf-tnb .woasf-tnb__onpage-list a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff !important;
    text-decoration: none !important;
    font-family: "Open Sans", Lato, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
}

.ccm-page .woasf-tnb .woasf-tnb__onpage-list a:hover,
.ccm-page .woasf-tnb .woasf-tnb__onpage-list a:focus,
.woasf-tnb .woasf-tnb__onpage-list a:hover,
.woasf-tnb .woasf-tnb__onpage-list a:focus {
    color: var(--woasf-menu-hover, #fff) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.woasf-tnb__search,
.woasf-tnb__languages {
    padding: 16px 24px 24px;
    background: var(--woasf-menu-panel);
}

.woasf-tnb__languages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ccm-page .woasf-tnb .woasf-tnb__languages a,
.woasf-tnb .woasf-tnb__languages a {
    color: var(--woasf-white) !important;
}

.woasf-tnb .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html.woasf-tnb-open,
body.woasf-tnb-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* If the block is still inside a Bootstrap column (pre-shell layouts), go full-bleed. */
.container > .row > [class*="col-"] > .woasf-tnb,
.headerbg .container > .row > [class*="col-"] > .woasf-tnb {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

@media (max-width: 64em) {
    .woasf-tnb {
        --woasf-bar-height: 96px;
        --woasf-logo-max-width: 126px;
        --woasf-logo-max-height: 76px;
    }

    .woasf-tnb__bar-inner {
        padding: 8px 12px;
        gap: 10px;
        min-height: var(--woasf-bar-height);
    }

    div.ccm-page .woasf-tnb .woasf-tnb__logo img,
    .ccm-page .woasf-tnb .woasf-tnb__logo img,
    .woasf-tnb .woasf-tnb__logo img {
        max-width: var(--woasf-logo-max-width) !important;
        max-height: var(--woasf-logo-max-height) !important;
    }

    .woasf-tnb__brand-text {
        font-size: 12px;
        line-height: 1.2;
        max-width: 42vw;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .woasf-tnb__tools {
        gap: 8px;
    }

    .woasf-tnb__cta span {
        display: none;
    }

    .woasf-tnb__cta {
        width: 48px;
        min-height: 48px;
        padding: 0;
    }

    .woasf-tnb__panel {
        position: fixed;
        top: var(--woasf-bar-offset, var(--woasf-bar-height));
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1210;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .woasf-tnb__panel-inner {
        max-width: none;
        min-height: 100%;
    }

    .woasf-tnb__menu {
        display: flex;
        flex-direction: column;
        min-height: 0;
        background: var(--woasf-menu-panel);
    }

    /* Flatten rail + panels so order can interleave button / section pairs */
    .woasf-tnb__rail,
    .woasf-tnb__panels {
        display: contents;
        background: transparent;
        min-height: 0;
    }

    .woasf-tnb__rail-btn {
        order: calc(var(--woasf-tnb-i, 0) * 2);
        min-height: 52px;
        padding: 16px 18px;
        border-left: 3px solid transparent;
        background: var(--woasf-menu-rail);
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .woasf-tnb__rail-chevron {
        display: inline-block;
        transform: rotate(45deg);
    }

    .woasf-tnb__rail-btn.is-active {
        border-left-color: transparent;
        background: var(--woasf-menu-rail);
        color: var(--woasf-white);
    }

    .woasf-tnb__rail-btn:hover,
    .woasf-tnb__rail-btn:focus {
        color: var(--woasf-menu-hover);
    }

    .woasf-tnb__rail-btn.is-active .woasf-tnb__rail-chevron {
        transform: rotate(225deg);
        margin-top: 4px;
    }

    .woasf-tnb__section {
        order: calc(var(--woasf-tnb-i, 0) * 2 + 1);
        position: static;
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 8px 18px 20px;
        background: var(--woasf-menu-panel);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .woasf-tnb__section-head {
        display: block;
        padding: 4px 4px 12px;
    }

    .ccm-page .woasf-tnb .woasf-tnb__section-title,
    .woasf-tnb .woasf-tnb__section-title {
        margin: 0 0 8px !important;
        font-size: 1.35rem !important;
        letter-spacing: -0.01em;
    }

    .ccm-page .woasf-tnb .woasf-tnb__section-desc,
    .woasf-tnb .woasf-tnb__section-desc {
        margin: 0 0 12px;
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .woasf-tnb__links {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .woasf-tnb__link-col + .woasf-tnb__link-col {
        border-top: 0;
    }

    .woasf-tnb__link-col li + li {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .ccm-page .woasf-tnb .woasf-tnb__link-col a,
    .woasf-tnb .woasf-tnb__link-col a {
        padding: 14px 4px;
        font-size: 1.05rem;
    }

    .woasf-tnb__section-empty {
        padding: 8px 4px 12px;
    }

    .woasf-tnb__search,
    .woasf-tnb__languages {
        padding: 16px 18px 28px;
    }
}

@media (max-width: 34em) {
    .woasf-tnb {
        --woasf-logo-max-width: 108px;
        --woasf-logo-max-height: 64px;
    }

    .woasf-tnb__brand-text {
        display: none;
    }
}


