/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Oct 26 2026 | 22:28:10 */
/* ==========================================================
   FIN — NAVIGATION | F-029 Brand States v0.1.1 TEST
   2026-10-26 | REPLACE full CSS item #146

   PRESERVED: desktop/tablet/mobile layout, duplicate Feed hiding,
   gold hover treatment, accessible focus, reduced motion.
   NEW: current-page fallback for SureDash Feeds & Members routes.
   Dependency: FIN — Header (#145). Keep unchanged.
   ========================================================== */

/* HEADER NAVIGATION — DESKTOP */
.fin-header-nav .wp-block-navigation {
    display: flex !important;
    justify-content: center !important;
    width: max-content;
    max-width: 100%;
}

.fin-header-nav .wp-block-navigation__container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 24px !important;
}

.fin-header-nav .wp-block-navigation-item {
    white-space: nowrap !important;
}

/* TABLET / MOBILE */
@media (max-width: 1199px) {
    .fin-header-nav .wp-block-navigation {
        width: 100% !important;
        justify-content: center !important;
    }

    .fin-header-nav .wp-block-navigation__container {
        justify-content: center !important;
        gap: 24px !important;
    }
}

/* SMALL PHONES */
@media (max-width: 600px) {
    .fin-header-nav .wp-block-navigation__container {
        gap: 24px !important;
    }

    .fin-header-nav .wp-block-navigation-item {
        font-size: 14px;
    }
}

/* PRESERVE HIDDEN DUPLICATE SUREDASH FEED LINK */
.portal-aside-feed.portal-feeds {
    display: none !important;
}

/* TOP NAVIGATION VISUAL STATES */
.fin-header-nav .wp-block-navigation-item__content {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.fin-header-nav .wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -6px;
    height: 3px;
    border-radius: 999px;
    background: #FFC72C;
    opacity: 0;
    transform: scaleX(0.45);
    transform-origin: center;
    pointer-events: none;
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

/* Hover / keyboard focus */
.fin-header-nav .wp-block-navigation-item__content:hover::after,
.fin-header-nav .wp-block-navigation-item__content:focus-visible::after {
    opacity: 0.65;
    transform: scaleX(1);
}

/* Native WordPress active-page states */
.fin-header-nav
:is(.current-menu-item, .current_page_item)
> .wp-block-navigation-item__content,
.fin-header-nav
.wp-block-navigation-item__content[aria-current="page"] {
    font-weight: 700;
}

.fin-header-nav
:is(.current-menu-item, .current_page_item)
> .wp-block-navigation-item__content::after,
.fin-header-nav
.wp-block-navigation-item__content[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ==========================================================
   SUREDASH ROUTE FALLBACKS

   HOME: existing FIN body class identifies the Feeds page.
   MEMBERS: native directory container identifies the directory.
   Match actual link routes rather than menu order.
   Prevent dual highlighting if Home class persists.
   ========================================================== */

/* Active text weight */
body.fin-feed-home:not(:has(.portal-membership-directory-wrap))
.fin-header-nav .wp-block-navigation-item__content:is(
    [href$="/feeds/"],
    [href$="/feeds"]
),
body:has(.portal-membership-directory-wrap)
.fin-header-nav .wp-block-navigation-item__content:is(
    [href$="/members/"],
    [href$="/members"]
) {
    font-weight: 700;
}

/* Active gold underline */
body.fin-feed-home:not(:has(.portal-membership-directory-wrap))
.fin-header-nav .wp-block-navigation-item__content:is(
    [href$="/feeds/"],
    [href$="/feeds"]
)::after,
body:has(.portal-membership-directory-wrap)
.fin-header-nav .wp-block-navigation-item__content:is(
    [href$="/members/"],
    [href$="/members"]
)::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Accessible keyboard focus */
.fin-header-nav
.wp-block-navigation-item__content:focus-visible {
    outline: 2px solid
        var(--portal-heading-color, #1f2937);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fin-header-nav
    .wp-block-navigation-item__content::after {
        transition: none;
    }
}

/* ==========================================================
   FIN — NAVIGATION | F-029 Header Contrast v0.1.2 TEST
   APPEND ONLY to FIN — Navigation (#146).
   Theme-aware Home/Members text; preserves gold underline.
   ========================================================== */

/* Light mode, including initial loads without a palette class. */
body:not(.palette-dark) .fin-header-nav
.wp-block-navigation-item__content {
    color: #1F2937 !important;
}

/* Dark mode uses light text against the charcoal top bar. */
body.palette-dark .fin-header-nav
.wp-block-navigation-item__content {
    color: #F5F5F5 !important;
}