/* ==========================================================================
   WAI Membership – bookmark / jump nav (WWP sub-nav style)
   ========================================================================== */

.waim-nav {
    width: 100%;
    background: #f4f6f8;
    border-bottom: 1px solid #e2e8f0;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    z-index: 50;
}

/* Collapse the empty <p> WordPress' auto-formatter can drop between stacked
   shortcodes (e.g. banner + nav in the same box), which shows as a gap. */
.waim-banner + p:empty,
.waim-nav + p:empty,
p:empty + .waim-nav {
    display: none !important;
    margin: 0 !important;
}

.waim-nav.is-sticky {
    position: sticky;
}

.waim-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 44px;
}

.waim-nav-align-center .waim-nav-inner { justify-content: center; }
.waim-nav-align-left   .waim-nav-inner { justify-content: flex-start; }
.waim-nav-align-right  .waim-nav-inner { justify-content: flex-end; }

.waim-nav-link {
    position: relative;
    display: inline-block;
    padding: 18px 4px;
    color: #b5121b;            /* WAI red, like the WWP sub-nav links */
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}

.waim-nav-link::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 0;
    height: 3px;
    background: #b5121b;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.waim-nav-link:hover,
.waim-nav-link.is-active {
    color: #920e16;
}

.waim-nav-link:hover::after,
.waim-nav-link.is-active::after {
    transform: scaleX(1);
}

.waim-nav-link:focus-visible {
    outline: 3px solid #003161;
    outline-offset: 2px;
}

/* Targets clear a fixed header when jumped to */
.waim-section,
.waim-benefits-section {
    scroll-margin-top: 96px;
}

@media (max-width: 767px) {
    .waim-nav-inner {
        gap: 4px 24px;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .waim-nav-link {
        padding: 14px 4px;
        font-size: .76rem;
    }
}

/* Combined hero bar: no divider line (matches the standalone banner). */
.waim-nav.waim-nav-flush { border-bottom: none; }
