/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 12 2026 | 16:54:58 */
/* ==========================================================
   FIN — HEADER | FEATURE INDEX
   CURRENT VERSION: v1.3.0 TEST
   ==========================================================

   HEADER / DESKTOP LAYOUT
   - Three-column header grid
   - Left page title, centered navigation, right utilities
   - WordPress Row sizing resets
   - Header width, alignment and spacing

   PAGE TITLE / DYNAMIC HEADING
   - Dynamic page title and breadcrumb-style link
   - Single-line title display
   - Long title truncation with ellipsis
   - Responsive title sizing

   HEADER NAVIGATION / PLACEMENT
   - Center navigation within desktop header
   - Move navigation beneath title and utilities on tablet
   - Full-width navigation slot on smaller screens

   HEADER ACTIONS / UTILITIES
   - Right-aligned header actions
   - Utility alignment and spacing
   - Tablet and mobile positioning

   TABLET / MOBILE
   - Two-row header layout below 1200px
   - Title and utilities on first row
   - Navigation on second row
   - Small-phone padding and spacing below 601px
   - Small-phone title typography

   MOBILE UTILITY VISIBILITY — v1.1.0 TEST
   - Profile shortcut visible on phones only
   - Search and Notification hidden in phone header
   - Color Switcher preserved
   - Native bottom footer preserved

   DESKTOP MESSAGES — v1.2.0 TEST
   - Messages shortcut visible in desktop header only
   - Native Better Messages sidebar, mobile icon and
     badges preserved

   DESKTOP UNREAD BADGE — v1.3.0 TEST
   - Badge presentation linked to native Better Messages updates

   ========================================================== */


/* =========================================
   FIN COMMUNITY HEADER — COMPLETE
   Classic Layout / Desktop / Tablet / Mobile
   ========================================= */


/* MAIN HEADER — DESKTOP */

body .portal-no-space-wrapper .fin-community-header {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        max-content
        minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 24px !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Reset WordPress Row sizing */

.fin-community-header > .fin-header-title,
.fin-community-header > .fin-header-nav,
.fin-community-header > .fin-header-actions {
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
}

/* LEFT: DYNAMIC PAGE TITLE */

.fin-community-header > .fin-header-title {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    max-width: 100% !important;
}

.fin-header-title h1,
.fin-header-title .portal-sub-item-link {
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

/* CENTER: PRIMARY NAVIGATION */

.fin-community-header > .fin-header-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}


/* RIGHT: UTILITIES */

.fin-community-header > .fin-header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    white-space: nowrap !important;
}

/* =========================================
   TABLET AND MOBILE
   Navigation moves beneath header
   ========================================= */

@media (max-width: 1199px) {

    body .portal-no-space-wrapper .fin-community-header {
        grid-template-columns:
            minmax(0, 1fr) max-content !important;
        grid-template-rows: auto auto !important;
        column-gap: 12px !important;
        row-gap: 10px !important;
    }

    /* Title: first row, left */

    .fin-community-header > .fin-header-title {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Utilities: first row, right */

    .fin-community-header > .fin-header-actions {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        width: max-content !important;
    }

    /* Navigation: second row, full width */

    .fin-community-header > .fin-header-nav {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

}

/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 600px) {

    body .portal-no-space-wrapper .fin-community-header {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-top: 12px !important;
        padding-bottom: 10px !important;
        row-gap: 12px !important;
    }

    .fin-header-title h1,
    .fin-header-title .portal-sub-item-link {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }

    .fin-community-header > .fin-header-actions {
        gap: 12px !important;
    }

}


/* ==========================================================
   FIN — HEADER PHONE + TABLET UTILITY VISIBILITY | v1.1.4 TEST

   Through 1025px:
   - Hide header Search and Notifications
   - Show mobile Profile shortcut
   - Preserve Color Switcher and native bottom navigation

   At 1026px and above:
   - Restore header Search and Notifications
   - Hide mobile-only Profile shortcut
   ========================================================== */

/* Hide mobile Profile shortcut by default. */

.fin-header-actions .fin-mobile-header-profile {
    display: none !important;
}

/* Match the source-confirmed SureDash footer breakpoint. */

@media (max-width: 1025px) {

    .fin-header-actions .wp-social-link-Search,
    .fin-header-actions .wp-block-suredash-notification {
        display: none !important;
    }

    .fin-header-actions .fin-mobile-header-profile {
        display: block !important;
    }
}



/* ==========================================================
   FIN — DESKTOP MESSAGES HEADER ICON | v1.2.3 TEST

   Show Messages when the native mobile bottom navigation
   is no longer available, starting at 1026px.

   Existing unread badge and Better Messages PHP unchanged.
   ========================================================== */

/* Hidden wherever the mobile footer is available. */

.fin-header-actions .fin-desktop-header-messages {
    display: none !important;
}

/* Restore Messages in the header at 1026px and above. */

@media (min-width: 1026px) {

    .fin-header-actions .fin-desktop-header-messages {
        display: inline-block !important;
    }
}


/* ==========================================================
   FIN — DESKTOP MESSAGES NATIVE UNREAD BADGE | v1.3.0 TEST

   Dependencies:
   - Header Dynamic Icon: fin-desktop-header-messages
   - PHP: FIN — Desktop Header Better Messages Unread Badge v0.1.0
   - Better Messages 3.1.3 native unread counter

   Adds presentation only; does not count or fetch messages.
   ========================================================== */

.fin-header-actions .fin-desktop-header-messages > a {
    position: relative;
}



/* ==========================================================
   FIN — DESKTOP MESSAGES NATIVE UNREAD BADGE | v1.3.2 TEST

   Matches SureDash's native Notifications badge styling.
   Preserves existing desktop placement and unread behavior.
   ========================================================== */

/* Support SureDash's nested Messages icon link. */

.fin-header-actions .fin-desktop-header-messages a {
    position: relative;
}

/* Match native SureDash notification badge. */

.fin-header-actions .fin-desktop-header-messages .fin-desktop-header-unread {
    position: absolute;
    top: -4px;
    right: -3px;
    z-index: 2;

    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    border: 0;
    border-radius: 9999px;
    box-shadow: none;

    background: #dc2626;
    color: #ffffff;

    font-size: 12px;
    font-weight: 500;
    line-height: 24px;
    white-space: nowrap;

    pointer-events: none;
}


/* ==================================================
   FIN — Weekly Wrap-Up Header Navigation Safety
   v0.1.0 TEST
   Hide custom history arrows on Weekly Wrap-Up only.
   ================================================== */

body.postid-265 #fin-header-history-v020 .fin-history-back,
body.postid-265 #fin-header-history-v020 .fin-history-forward {
    display: none !important;
}
