/* =========================================================
   THE MARITIME BROTHERHOOD
   GLOBAL BOTTOM NAVIGATION
   Responsive • Minimize • Restore • Destroy Mode
   ========================================================= */


@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500;700;800;900&family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap");


/* =========================================================
   GLOBAL VARIABLES
   ========================================================= */

:root {
    --nav-green: #4caf50;
    --nav-green-soft: #9ee3a2;

    --nav-text: #b5b5bb;
    --nav-text-active: #ffffff;

    --nav-border: rgba(255,255,255,.08);
    --nav-active-border: rgba(76,175,80,.34);

    --nav-bg-top: rgba(28,28,31,.98);
    --nav-bg-bottom: rgba(11,11,13,.99);

    --nav-width-gap: 28px;
    --nav-max-width: 820px;

    --nav-height: 74px;
    --nav-padding: 7px;

    --nav-bottom:
        max(
            12px,
            env(safe-area-inset-bottom)
        );

    /* Top control dimensions */
    --nav-tab-width: 50px;
    --nav-tab-height: 32px;
    --nav-tab-overlap: 16px;

    /*
       Previous gap = 6px
       5% larger = 6.3px
    */
    --nav-tab-gap: 6.3px;

    /*
       Perfect centering offset.

       50px button
       + 6.3px gap
       = 56.3px between button centres

       Half = 28.15px
    */
    --nav-tab-pair-offset: 28.15px;

}


/* =========================================================
   BOX SIZING
   ========================================================= */

.menu-bar,
.menu-bar *,
.nav-minimize-btn,
.nav-minimize-btn *,
.nav-destroy-btn,
.nav-destroy-btn *,
.nav-restore-btn,
.nav-restore-btn * {
    box-sizing: border-box !important;
}


/* =========================================================
   PAGE SPACE
   ========================================================= */

body {
    padding-bottom:
        calc(
            112px +
            env(safe-area-inset-bottom)
        ) !important;

    transition:
        padding-bottom .3s ease;
}


/* =========================================================
   MAIN NAVIGATION BAR
   ========================================================= */

.menu-bar {
    position: fixed !important;

    left: 50% !important;
    bottom: var(--nav-bottom) !important;

    transform:
        translateX(-50%) !important;

    width:
        calc(
            100% -
            var(--nav-width-gap)
        ) !important;

    max-width:
        var(--nav-max-width) !important;

    height:
        var(--nav-height) !important;

    min-height:
        var(--nav-height) !important;

    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    margin:
        0 !important;

    padding:
        var(--nav-padding) !important;

    background:
        linear-gradient(
            145deg,
            var(--nav-bg-top),
            var(--nav-bg-bottom)
        ) !important;

    border:
        1px solid
        var(--nav-border) !important;

    border-radius:
        20px !important;

    backdrop-filter:
        blur(22px)
        saturate(110%) !important;

    -webkit-backdrop-filter:
        blur(22px)
        saturate(110%) !important;

    box-shadow:
        0 18px 45px rgba(0,0,0,.62),
        0 5px 16px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.05) !important;

    overflow:
        hidden !important;

    isolation:
        isolate !important;

    opacity:
        1 !important;

    visibility:
        visible !important;

    z-index:
        99999 !important;

    transition:
        transform .36s cubic-bezier(.22,1,.36,1),
        opacity .24s ease,
        visibility .36s !important;
}


/* =========================================================
   REMOVE OLD NAV DECORATION
   ========================================================= */

.menu-bar::before,
.menu-bar::after {
    content:
        none !important;

    display:
        none !important;
}


/* =========================================================
   NAV ITEMS
   ========================================================= */

.menu-bar .menu-item {
    position:
        relative !important;

    flex:
        1 1 0 !important;

    width:
        auto !important;

    min-width:
        0 !important;

    height:
        60px !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


/* =========================================================
   NAV LINKS
   ========================================================= */

.menu-bar .menu-item > a {
    position:
        relative !important;

    width:
        100% !important;

    height:
        100% !important;

    display:
        flex !important;

    flex-direction:
        column !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    gap:
        5px !important;

    margin:
        0 !important;

    padding:
        6px 2px !important;

    background:
        transparent !important;

    color:
        var(--nav-text) !important;

    font-family:
        "Roboto",
        Arial,
        Helvetica,
        sans-serif !important;

    font-size:
        10px !important;

    font-style:
        normal !important;

    font-weight:
        700 !important;

    line-height:
        1 !important;

    text-align:
        center !important;

    text-decoration:
        none !important;

    border:
        1px solid
        transparent !important;

    border-radius:
        14px !important;

    box-shadow:
        none !important;

    transition:
        background .22s ease,
        border-color .22s ease,
        color .22s ease,
        transform .18s ease,
        box-shadow .22s ease !important;

    -webkit-tap-highlight-color:
        transparent !important;
}


/* =========================================================
   NAV ICONS
   ========================================================= */

.menu-bar .menu-item > a i {
    position:
        relative !important;

    display:
        block !important;

    margin:
        0 !important;

    padding:
        0 !important;

    font-size:
        20px !important;

    line-height:
        1 !important;

    color:
        inherit !important;

    transition:
        color .22s ease,
        transform .22s ease,
        filter .22s ease !important;
}


/* =========================================================
   NAV LABELS
   ========================================================= */

.menu-bar .menu-item > a span {
    display:
        block !important;

    width:
        100% !important;

    margin:
        0 !important;

    padding:
        0 !important;

    overflow:
        hidden !important;

    white-space:
        nowrap !important;

    text-overflow:
        ellipsis !important;

    color:
        inherit !important;

    font-family:
        "Roboto",
        Arial,
        Helvetica,
        sans-serif !important;

    font-size:
        10px !important;

    font-style:
        normal !important;

    font-weight:
        800 !important;

    line-height:
        1 !important;

    letter-spacing:
        .25px !important;

    text-align:
        center !important;

    text-transform:
        uppercase !important;

    text-shadow:
        none !important;
}


/* =========================================================
   ACTIVE PAGE
   ========================================================= */

.menu-bar .menu-item > a.nav-active {
    color:
        var(--nav-text-active) !important;

    background:
        linear-gradient(
            145deg,
            rgba(76,175,80,.16),
            rgba(76,175,80,.045)
        ) !important;

    border-color:
        var(--nav-active-border) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 5px 18px rgba(0,0,0,.22) !important;
}


/* Active icon */

.menu-bar .menu-item > a.nav-active i {
    color:
        var(--nav-green) !important;

    filter:
        drop-shadow(
            0 0 6px
            rgba(76,175,80,.30)
        ) !important;
}


/* Active text */

.menu-bar .menu-item > a.nav-active span {
    color:
        #ffffff !important;
}


/* Remove active underline */

.menu-bar .menu-item > a.nav-active::after {
    content:
        none !important;

    display:
        none !important;
}


/* =========================================================
   DESKTOP NAV HOVER
   ========================================================= */

@media (hover:hover) and (pointer:fine) {

    .menu-bar .menu-item > a:hover {
        color:
            var(--nav-green-soft) !important;

        background:
            rgba(255,255,255,.035) !important;

        border-color:
            rgba(255,255,255,.07) !important;

        transform:
            translateY(-1px) !important;
    }


    .menu-bar .menu-item > a:hover i {
        color:
            var(--nav-green) !important;

        transform:
            translateY(-2px)
            scale(1.04) !important;
    }
}


/* =========================================================
   TAP FEEDBACK
   ========================================================= */

.menu-bar .menu-item > a:active {
    transform:
        scale(.96) !important;
}


/* =========================================================
   TOP CONTROL BUTTONS
   Minimize + Destroy
   ========================================================= */

.nav-minimize-btn,
.nav-destroy-btn {
    position:
        fixed;

    left:
        50%;

    bottom:
        calc(
            var(--nav-bottom) +
            var(--nav-height) -
            var(--nav-tab-overlap)
        );

    width:
        var(--nav-tab-width);

    height:
        var(--nav-tab-height);

    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        center;

    margin:
        0;

    padding:
        4px 0 0;

    background:
        transparent !important;

    border:
        0 !important;

    border-radius:
        0 !important;

    box-shadow:
        none !important;

    color:
        var(--nav-green-soft);

    cursor:
        pointer;

    opacity:
        1;

    visibility:
        visible;

    z-index:
        100001;

    appearance:
        none;

    -webkit-appearance:
        none;

    -webkit-tap-highlight-color:
        transparent;

    transition:
        opacity .2s ease,
        transform .22s ease,
        color .2s ease;
}


/* =========================================================
   PERFECTLY CENTER BOTH BUTTONS AS ONE PAIR
   ========================================================= */

.nav-minimize-btn {
    transform:
        translateX(
            calc(
                -50% -
                var(--nav-tab-pair-offset)
            )
        );
}


.nav-destroy-btn {
    transform:
        translateX(
            calc(
                -50% +
                var(--nav-tab-pair-offset)
            )
        );
}


/* =========================================================
   VISIBLE TOP OF BOTH CONTROLS
   ========================================================= */

.nav-minimize-btn::before,
.nav-destroy-btn::before {
    content: "";

    position:
        absolute;

    top:
        0;

    left:
        0;

    right:
        0;

    height:
        calc(
            var(--nav-tab-height) -
            var(--nav-tab-overlap)
        );

    background:
        linear-gradient(
            145deg,
            rgba(29,29,32,1),
            rgba(13,13,15,1)
        );

    border-top:
        1px solid
        rgba(255,255,255,.09);

    border-left:
        1px solid
        rgba(255,255,255,.09);

    border-right:
        1px solid
        rgba(255,255,255,.09);

    border-bottom:
        0 !important;

    border-radius:
        15px 15px 0 0;

    box-shadow:
        0 -7px 18px
        rgba(0,0,0,.28);

    pointer-events:
        none;

    z-index:
        1;
}


/* =========================================================
   NO LOWER BLACK OVERLAP
   ========================================================= */

.nav-minimize-btn::after,
.nav-destroy-btn::after {
    content:
        none !important;

    display:
        none !important;
}


/* =========================================================
   CHEVRONS
   ========================================================= */

.nav-chevron {
    position:
        relative;

    display:
        block;

    width:
        9px;

    height:
        9px;

    border-right:
        2px solid
        currentColor;

    border-bottom:
        2px solid
        currentColor;

    z-index:
        2;
}


.nav-chevron-down {
    transform:
        rotate(45deg);
}


.nav-chevron-up {
    transform:
        rotate(225deg);
}


/* =========================================================
   DESTROY TAB - OPTICAL ARROW ALIGNMENT
   ========================================================= */

/*
   Both chevrons use the same 9px square and 2px borders.
   Rotating that border corner by 225deg makes the visible
   UP arrow sit about 6px higher than the DOWN arrow.
   Offset only the Destroy tab icon; leave Restore unchanged.
*/
.nav-destroy-btn > .nav-chevron-up {
    transform: translateY(4.5px) rotate(225deg);
}


/* =========================================================
   DESTROY MODE - MATCHING UP ARROW
   Uses the same .nav-chevron shape and size as Minimize.
   No SVG, masks, asterisk, or additional icon overrides.
   ========================================================= */

/* =========================================================
   TOP CONTROL HOVER
   ========================================================= */

@media (hover:hover) and (pointer:fine) {

    .nav-minimize-btn:hover,
    .nav-destroy-btn:hover {
        color:
            #ffffff;
    }


    .nav-minimize-btn:hover {
        transform:
            translateX(
                calc(
                    -50% -
                    var(--nav-tab-pair-offset)
                )
            )
            translateY(-2px);
    }


    .nav-destroy-btn:hover {
        transform:
            translateX(
                calc(
                    -50% +
                    var(--nav-tab-pair-offset)
                )
            )
            translateY(-2px);
    }


    .nav-minimize-btn:hover::before,
    .nav-destroy-btn:hover::before {
        background:
            linear-gradient(
                145deg,
                rgba(34,34,37,1),
                rgba(15,15,17,1)
            );

        border-color:
            rgba(255,255,255,.14);
    }
}


/* =========================================================
   MINIMIZED NAVIGATION
   ========================================================= */

.menu-bar.nav-minimized {
    transform:
        translateX(-50%)
        translateY(
            calc(
                100% +
                40px +
                env(safe-area-inset-bottom)
            )
        ) !important;

    opacity:
        0 !important;

    visibility:
        hidden !important;

    pointer-events:
        none !important;
}


/* =========================================================
   HIDE TOP CONTROLS
   ========================================================= */

.nav-minimize-btn.nav-control-hidden,
.nav-destroy-btn.nav-control-hidden {
    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;
}


.nav-minimize-btn.nav-control-hidden {
    transform:
        translateX(
            calc(
                -50% -
                var(--nav-tab-pair-offset)
            )
        )
        translateY(18px);
}


.nav-destroy-btn.nav-control-hidden {
    transform:
        translateX(
            calc(
                -50% +
                var(--nav-tab-pair-offset)
            )
        )
        translateY(18px);
}



/* =========================================================
   RESTORE / MENU BUTTON
   ========================================================= */

.nav-restore-btn {
    position:
        fixed;

    left:
        50%;

    bottom:
        max(
            8px,
            env(safe-area-inset-bottom)
        );

    transform:
        translateX(-50%)
        translateY(25px);

    min-width:
        92px;

    height:
        42px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    margin:
        0;

    padding:
        0 17px;

    background:
        linear-gradient(
            145deg,
            rgba(29,29,32,.99),
            rgba(12,12,14,.99)
        );

    color:
        var(--nav-text);

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius:
        999px;

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:
        0 12px 30px rgba(0,0,0,.58),
        inset 0 1px 0 rgba(255,255,255,.05);

    font-family:
        "Roboto",
        Arial,
        Helvetica,
        sans-serif !important;

    font-style:
        normal !important;

    font-weight:
        800 !important;

    line-height:
        1 !important;

    letter-spacing:
        .25px !important;

    text-transform:
        uppercase !important;

    cursor:
        pointer;

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    z-index:
        100000;

    transition:
        opacity .22s ease,
        transform .3s cubic-bezier(.22,1,.36,1),
        background .2s ease,
        border-color .2s ease,
        color .2s ease;

    appearance:
        none;

    -webkit-appearance:
        none;

    -webkit-tap-highlight-color:
        transparent;
}


/* =========================================================
   RESTORE BUTTON VISIBLE
   ========================================================= */

.nav-restore-btn.nav-restore-visible {
    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================================
   RESTORE ARROW
   ========================================================= */

.nav-restore-btn
.nav-chevron-up {
    color:
        var(--nav-green-soft) !important;
}


/* =========================================================
   RESTORE MENU TEXT
   ========================================================= */

.nav-restore-text {
    color:
        var(--nav-text) !important;

    font-family:
        "Roboto",
        Arial,
        Helvetica,
        sans-serif !important;

    font-size:
        10px !important;

    font-style:
        normal !important;

    font-weight:
        800 !important;

    line-height:
        1 !important;

    letter-spacing:
        .25px !important;

    text-transform:
        uppercase !important;

    text-shadow:
        none !important;
}


/* =========================================================
   RESTORE HOVER
   ========================================================= */

@media (hover:hover) and (pointer:fine) {

    .nav-restore-btn:hover {
        background:
            rgba(255,255,255,.06);

        border-color:
            rgba(76,175,80,.35);
    }


    .nav-restore-btn:hover
    .nav-restore-text {
        color:
            var(--nav-green-soft) !important;
    }


    .nav-restore-btn:hover
    .nav-chevron-up {
        color:
            var(--nav-green) !important;
    }
}


/* =========================================================
   PAGE SPACE WHEN NAV IS MINIMIZED
   ========================================================= */

body.nav-is-minimized {
    padding-bottom:
        calc(
            62px +
            env(safe-area-inset-bottom)
        ) !important;
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width:900px) {

    :root {
        --nav-width-gap: 22px;

        --nav-height: 72px;
        --nav-padding: 6px;

        --nav-bottom:
            max(
                10px,
                env(safe-area-inset-bottom)
            );

        --nav-tab-width: 50px;
        --nav-tab-height: 32px;
        --nav-tab-overlap: 16px;

        --nav-tab-gap: 6.3px;
        --nav-tab-pair-offset: 28.15px;
    }


    body {
        padding-bottom:
            calc(
                108px +
                env(safe-area-inset-bottom)
            ) !important;
    }


    body.nav-is-minimized {
        padding-bottom:
            calc(
                62px +
                env(safe-area-inset-bottom)
            ) !important;
    }


    .menu-bar {
        border-radius:
            19px !important;
    }


    .menu-bar
    .menu-item {
        height:
            58px !important;
    }


    .menu-bar
    .menu-item > a {
        gap:
            4px !important;

        border-radius:
            13px !important;
    }


    .menu-bar
    .menu-item > a i {
        font-size:
            19px !important;
    }


    .menu-bar
    .menu-item > a span {
        font-size:
            9.5px !important;

        font-weight:
            800 !important;

        letter-spacing:
            .20px !important;
    }
}


/* =========================================================
   PHONES
   Destroy icon slightly smaller
   ========================================================= */

@media (max-width:600px) {

    :root {
        --nav-width-gap: 16px;

        --nav-height: 68px;
        --nav-padding: 5px;

        --nav-bottom:
            max(
                7px,
                env(safe-area-inset-bottom)
            );

        --nav-tab-width: 48px;
        --nav-tab-height: 30px;
        --nav-tab-overlap: 15px;

        /*
           Previous gap = 5px
           +5% = 5.25px
        */
        --nav-tab-gap: 5.25px;

        /*
           (48 + 5.25) / 2
        */
        --nav-tab-pair-offset: 26.625px;

    }


    body {
        padding-bottom:
            calc(
                100px +
                env(safe-area-inset-bottom)
            ) !important;
    }


    body.nav-is-minimized {
        padding-bottom:
            calc(
                58px +
                env(safe-area-inset-bottom)
            ) !important;
    }


    .menu-bar {
        border-radius:
            17px !important;
    }


    .menu-bar
    .menu-item {
        height:
            56px !important;
    }


    .menu-bar
    .menu-item > a {
        gap:
            4px !important;

        padding:
            5px 1px !important;

        border-radius:
            12px !important;
    }


    .menu-bar
    .menu-item > a i {
        font-size:
            18px !important;
    }


    .menu-bar
    .menu-item > a span {
        font-size:
            8.5px !important;

        font-weight:
            800 !important;

        letter-spacing:
            .12px !important;
    }


    .nav-minimize-btn,
    .nav-destroy-btn {
        padding-top:
            3px;
    }


    .nav-minimize-btn::before,
    .nav-destroy-btn::before {
        border-radius:
            14px 14px 0 0;
    }




    .nav-restore-btn {
        min-width:
            86px;

        height:
            40px;

        padding:
            0 15px;

        gap:
            7px;
    }


    .nav-restore-text {
        font-size:
            8.5px !important;

        letter-spacing:
            .12px !important;
    }
}


/* =========================================================
   SMALL PHONES
   Destroy icon smaller again
   ========================================================= */

@media (max-width:390px) {

    :root {
        --nav-width-gap: 12px;

        --nav-padding: 4px;

        --nav-tab-width: 46px;
        --nav-tab-height: 30px;
        --nav-tab-overlap: 15px;

        /*
           Previous gap = 4px
           +5% = 4.2px
        */
        --nav-tab-gap: 4.2px;

        /*
           (46 + 4.2) / 2
        */
        --nav-tab-pair-offset: 25.1px;

    }


    .menu-bar
    .menu-item > a {
        gap:
            3px !important;
    }


    .menu-bar
    .menu-item > a i {
        font-size:
            17px !important;
    }


    .menu-bar
    .menu-item > a span {
        font-size:
            7.8px !important;

        font-weight:
            800 !important;

        letter-spacing:
            .04px !important;
    }




    .nav-restore-text {
        font-size:
            7.8px !important;

        letter-spacing:
            .04px !important;
    }
}


/* =========================================================
   VERY SMALL DEVICES
   ========================================================= */

@media (max-width:340px) {

    .menu-bar
    .menu-item > a span {
        display:
            none !important;
    }


    .menu-bar
    .menu-item > a i {
        font-size:
            20px !important;
    }


    .nav-restore-text {
        display:
            block !important;

        font-size:
            8px !important;
    }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width:1200px) {

    :root {
        --nav-height: 76px;
        --nav-bottom: 18px;

        --nav-tab-width: 50px;
        --nav-tab-height: 32px;
        --nav-tab-overlap: 16px;

        --nav-tab-gap: 6.3px;
        --nav-tab-pair-offset: 28.15px;
    }


    body {
        padding-bottom:
            120px !important;
    }


    .menu-bar
    .menu-item {
        height:
            60px !important;
    }


    .menu-bar
    .menu-item > a i {
        font-size:
            20px !important;
    }


    .menu-bar
    .menu-item > a span {
        font-size:
            10px !important;

        font-weight:
            800 !important;

        letter-spacing:
            .30px !important;
    }


    .nav-restore-text {
        font-size:
            10px !important;

        letter-spacing:
            .30px !important;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.menu-bar
.menu-item > a:focus-visible,

.nav-minimize-btn:focus-visible,

.nav-destroy-btn:focus-visible,

.nav-restore-btn:focus-visible {

    outline:
        2px solid
        var(--nav-green) !important;

    outline-offset:
        2px !important;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion:reduce) {

    body,

    .menu-bar,

    .menu-bar
    .menu-item > a,

    .menu-bar
    .menu-item > a i,

    .nav-minimize-btn,

    .nav-destroy-btn,

    .nav-restore-btn {

        transition:
            none !important;
    }
}


/* =========================================================
   THE MARITIME BROTHERHOOD — GLOBAL PAGE HEADINGS
   Does not modify navigation styles.
   ========================================================= */


/* Main hero title, or the primary heading in a page header. */
.hero > h1,
header.hero h1,
.page-header h1,
.page-hero h1,
.hero-title,
.page-title,
.mb-page-title {
    font-family:"Manrope",Inter,system-ui,sans-serif !important;
    font-weight:800 !important;
    font-size:clamp(1.85rem,4.1vw,3.35rem) !important;
    line-height:1.14 !important;
    letter-spacing:-.035em !important;
    max-width:100% !important;
    overflow-wrap:normal;
    color:#f5fff6 !important;
    background-image:linear-gradient(110deg,#f5fff6 0%,#f5fff6 32%,#70e98a 48%,#ffffff 55%,#f5fff6 72%,#f5fff6 100%) !important;
    background-size:260% 100% !important;
    -webkit-background-clip:text !important;
    background-clip:text !important;
    -webkit-text-fill-color:transparent !important;
    text-shadow:none !important;
    filter:drop-shadow(0 3px 15px rgba(76,175,80,.16));
    animation:tmb-title-reveal .85s both, tmb-title-shine 6s linear 1.1s infinite !important;
}

/* Only the subtitle directly associated with the page heading. */
.hero > h1 + p,
.page-header h1 + p,
.page-hero h1 + p,
.hero-subtitle,
.page-subtitle,
.mb-page-subtitle {
    font-family:Inter,system-ui,sans-serif !important;
    font-weight:600 !important;
    font-size:clamp(.95rem,1.8vw,1.2rem) !important;
    letter-spacing:.055em !important;
    line-height:1.5 !important;
    color:#a4edaf !important;
    text-shadow:0 0 16px rgba(76,175,80,.35) !important;
    animation:tmb-subtitle-reveal 1s .22s both, tmb-subtitle-glow 4s 1.3s ease-in-out infinite !important;
}

@keyframes tmb-title-reveal {
    from { opacity:0; transform:translateY(12px); }
    to { opacity:1; transform:translateY(0); }
}
@keyframes tmb-title-shine {
    from { background-position:130% 50%; }
    to { background-position:-130% 50%; }
}
@keyframes tmb-subtitle-reveal {
    from { opacity:0; transform:translateY(8px); }
    to { opacity:1; transform:translateY(0); }
}
@keyframes tmb-subtitle-glow {
    0%,100% { text-shadow:0 0 9px rgba(76,175,80,.20); }
    50% { text-shadow:0 0 23px rgba(76,175,80,.52); }
}
@media(max-width:480px) {
    .hero > h1,header.hero h1,.page-header h1,.page-hero h1,.hero-title,.page-title,.mb-page-title {
        font-size:clamp(1.65rem,7vw,2.2rem) !important;
        letter-spacing:-.045em !important;
    }
}
/* =========================================================
   MOBILE HEADING REFINEMENT — V5
   Typography only; existing navigation remains untouched.
   ========================================================= */
@media (max-width:900px) {
    .hero > h1, header.hero h1, .page-header h1, .page-hero h1,
    .hero-title, .page-title, .mb-page-title {
        width:100% !important;
        max-width:100% !important;
        font-size:clamp(1.7rem, 5.4vw, 2.65rem) !important;
        line-height:1.2 !important;
        letter-spacing:-.025em !important;
        text-wrap:balance;
        overflow-wrap:break-word !important;
        hyphens:none;
        padding-inline:0 !important;
        background-size:220% 100% !important;
        animation:tmb-title-reveal .7s both, tmb-title-shine 8s linear 1s infinite !important;
    }
    .hero > h1 + p, .page-header h1 + p, .page-hero h1 + p,
    .hero-subtitle, .page-subtitle, .mb-page-subtitle {
        max-width:100% !important;
        font-size:clamp(.92rem, 2.7vw, 1.08rem) !important;
        line-height:1.5 !important;
        letter-spacing:.015em !important;
        text-wrap:balance;
        overflow-wrap:break-word;
        margin-inline:auto;
    }
}
@media (max-width:480px) {
    .hero > h1, header.hero h1, .page-header h1, .page-hero h1,
    .hero-title, .page-title, .mb-page-title {
        font-size:clamp(1.55rem, 7.3vw, 2.05rem) !important;
        letter-spacing:-.035em !important;
        line-height:1.18 !important;
        filter:drop-shadow(0 2px 8px rgba(76,175,80,.12));
    }
    .hero > h1 + p, .page-header h1 + p, .page-hero h1 + p,
    .hero-subtitle, .page-subtitle, .mb-page-subtitle {
        font-size:clamp(.88rem, 3.8vw, 1rem) !important;
        letter-spacing:0 !important;
        text-shadow:0 0 10px rgba(76,175,80,.26) !important;
    }
}
@media (max-width:360px) {
    .hero > h1, header.hero h1, .page-header h1, .page-hero h1,
    .hero-title, .page-title, .mb-page-title {
        font-size:clamp(1.4rem, 7.1vw, 1.65rem) !important;
    }
}

@media(prefers-reduced-motion:reduce) {
    .hero > h1,header.hero h1,.page-header h1,.page-hero h1,.hero-title,.page-title,.mb-page-title,
    .hero > h1 + p,.page-header h1 + p,.page-hero h1 + p,.hero-subtitle,.page-subtitle,.mb-page-subtitle {
        animation:none !important;
    }
}




/* =========================================================
   MOBILE — HEAVIER NAVIGATION TEXT
   ========================================================= */
@media (max-width: 900px) {
    .menu-bar .menu-item > a,
    .menu-bar .menu-item > a span,
    .nav-restore-btn,
    .nav-restore-text {
        font-family: "Roboto", Arial, sans-serif !important;
        font-weight: 900 !important;
        font-synthesis: weight !important;
    }

    .menu-bar .menu-item > a span,
    .nav-restore-text {
        -webkit-text-stroke: 0.16px currentColor;
    }
}

/* Privacy item fallback when no working icon font or SVG is available. */
.menu-bar .menu-item > a[href*="privacy.php"]:not(.tmb-privacy-icon-repaired):not(:has(> svg)) > i.fa-shield-halved,
.menu-bar .menu-item > a[href*="privacy.php"]:not(.tmb-privacy-icon-repaired):not(:has(> svg)) > i.fa-shield-alt,
.menu-bar .menu-item > a[href*="privacy.php"]:not(.tmb-privacy-icon-repaired):not(:has(> svg)) > i.fa-shield {
    display: block !important;
    width: 19px !important;
    height: 20px !important;
    font-size: 0 !important;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ee3a2' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") !important;
}


/* =========================================================
   V15 — RESTORE GLOBAL PAGE TITLE AND SUBTITLE STYLING
   Loaded after earlier heading rules to prevent regressions.
   ========================================================= */
:is(.hero > h1, header.hero h1, .page-header h1, .page-hero h1,
    .hero-title, .page-title, .mb-page-title) {
    font-family: "Manrope", "Inter", system-ui, sans-serif !important;
    font-weight: 800 !important;
    font-synthesis: weight !important;
    line-height: 1.14 !important;
    letter-spacing: -.035em !important;
    color: #f5fff6 !important;
    background-image: linear-gradient(110deg,#f5fff6 0%,#f5fff6 32%,#70e98a 48%,#fff 55%,#f5fff6 72%,#f5fff6 100%) !important;
    background-size: 260% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    animation: tmb-title-reveal .85s both, tmb-title-shine 6s linear 1.1s infinite !important;
}
:is(.hero > h1 + p, .page-header h1 + p, .page-hero h1 + p,
    .hero-subtitle, .page-subtitle, .mb-page-subtitle) {
    font-family: "Inter", system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-synthesis: weight !important;
    color: #a4edaf !important;
    -webkit-text-fill-color: #a4edaf !important;
    background-image: none !important;
    letter-spacing: .055em !important;
    line-height: 1.5 !important;
    text-shadow: 0 0 16px rgba(76,175,80,.35) !important;
    animation: tmb-subtitle-reveal 1s .22s both, tmb-subtitle-glow 4s 1.3s ease-in-out infinite !important;
}
@media (max-width: 900px) {
    :is(.hero > h1, header.hero h1, .page-header h1, .page-hero h1,
        .hero-title, .page-title, .mb-page-title) {
        font-size: clamp(1.7rem,5.4vw,2.65rem) !important;
        line-height: 1.2 !important;
        letter-spacing: -.025em !important;
        background-size: 220% 100% !important;
    }
    :is(.hero > h1 + p, .page-header h1 + p, .page-hero h1 + p,
        .hero-subtitle, .page-subtitle, .mb-page-subtitle) {
        font-size: clamp(.92rem,2.7vw,1.08rem) !important;
        letter-spacing: .015em !important;
    }
}
@media (max-width: 480px) {
    :is(.hero > h1, header.hero h1, .page-header h1, .page-hero h1,
        .hero-title, .page-title, .mb-page-title) {
        font-size: clamp(1.55rem,7.3vw,2.05rem) !important;
        letter-spacing: -.035em !important;
    }
    :is(.hero > h1 + p, .page-header h1 + p, .page-hero h1 + p,
        .hero-subtitle, .page-subtitle, .mb-page-subtitle) {
        font-size: clamp(.88rem,3.8vw,1rem) !important;
        letter-spacing: 0 !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    :is(.hero > h1, header.hero h1, .page-header h1, .page-hero h1,
        .hero-title, .page-title, .mb-page-title,
        .hero > h1 + p, .page-header h1 + p, .page-hero h1 + p,
        .hero-subtitle, .page-subtitle, .mb-page-subtitle) {
        animation: none !important;
    }
}


/* =========================================================
   V16 — MOBILE NAV LABEL WEIGHT (PRESERVE V15 HEADINGS)
   ========================================================= */
@media (max-width: 900px) {
  .menu-bar .menu-item > a,
  .menu-bar .menu-item > a > span,
  .menu-bar .menu-item > a .nav-label,
  .nav-restore-btn,
  .nav-restore-btn .nav-restore-text {
    font-family: "Roboto", Arial, sans-serif !important;
    font-weight: 900 !important;
    font-synthesis: weight !important;
    font-style: normal !important;
  }
  .menu-bar .menu-item > a > span,
  .menu-bar .menu-item > a .nav-label,
  .nav-restore-btn .nav-restore-text {
    -webkit-text-stroke-width: .38px !important;
    -webkit-text-stroke-color: currentColor !important;
    paint-order: stroke fill;
    text-shadow: 0 0 .25px currentColor !important;
    -webkit-font-smoothing: auto !important;
  }
}
@media (max-width: 390px) {
  .menu-bar .menu-item > a > span,
  .menu-bar .menu-item > a .nav-label,
  .nav-restore-btn .nav-restore-text {
    -webkit-text-stroke-width: .3px !important;
  }
}


/* V17 — BUTTON TYPOGRAPHY ONLY (ALL SCREEN SIZES)
   No changes to layout, headings, icons, privacy shield or scripts. */
:is(button, input[type="button"], input[type="submit"], input[type="reset"],
    a.btn, a.button, .btn, .button, [role="button"],
    .menu-bar .menu-item > a, .nav-restore-btn,
    .nav-minimize-btn, .nav-destroy-btn) {
    font-family: "Roboto", Arial, sans-serif !important;
    font-weight: 900 !important;
    font-synthesis: weight !important;
}
:is(button, input[type="button"], input[type="submit"], input[type="reset"],
    a.btn, a.button, .btn, .button, [role="button"],
    .menu-bar .menu-item > a, .nav-restore-btn)
:is(span, .nav-label, .nav-restore-text, .btn-text, .button-text, .label) {
    font-family: "Roboto", Arial, sans-serif !important;
    font-weight: 900 !important;
    font-synthesis: weight !important;
}


/* V18 — SITE-WIDE BUTTON TEXT WEIGHT, DESKTOP + MOBILE */
/* Covers links styled as buttons and nested text, without altering geometry. */
:is(button, input[type="button"], input[type="submit"], input[type="reset"],
    a.btn, a.button, a[class*="btn"], a[class*="button"],
    .btn, .button, [class*="-btn"], [class*="_btn"],
    [role="button"], .hero-buttons a, .side-card > a, .card > a,
    .menu-bar .menu-item > a, .nav-restore-btn, .nav-minimize-btn, .nav-destroy-btn),
:is(button, a.btn, a.button, a[class*="btn"], a[class*="button"],
    .btn, .button, [class*="-btn"], [class*="_btn"], [role="button"],
    .hero-buttons a, .side-card > a, .card > a,
    .menu-bar .menu-item > a, .nav-restore-btn)
    :is(span, strong, b, small, em, .label, .text, .btn-text, .button-text, .nav-label, .nav-restore-text) {
  font-family: "Roboto", Arial, sans-serif !important;
  font-weight: 900 !important;
  font-synthesis: weight !important;
  font-style: normal !important;
}
/* A subtle fill stroke makes short labels visibly heavier in Safari and Chrome.
   Avoid applying stroke to icon fonts or SVG elements. */
:is(button, a.btn, a.button, a[class*="btn"], a[class*="button"],
    .btn, .button, [class*="-btn"], [class*="_btn"], [role="button"],
    .hero-buttons a, .side-card > a, .card > a,
    .menu-bar .menu-item > a, .nav-restore-btn)
    :is(span, strong, b, .label, .text, .btn-text, .button-text, .nav-label, .nav-restore-text) {
  -webkit-text-stroke-width: .25px !important;
  -webkit-text-stroke-color: currentColor !important;
}


/* =========================================================
   V19 — RESPONSIVE TITLE ANIMATION ONLY
   Preserves every existing font, button, subtitle, nav and shield rule.
   Background-position animation works at all viewport widths.
   ========================================================= */
@keyframes tmb-v19-title-glimmer {
  0%   { background-position: 110% 50%; }
  100% { background-position: -110% 50%; }
}

/* Only update animation timing. Do not set font, weight, sizing or fill. */
:is(.hero > h1, header.hero h1, .page-header h1, .page-hero h1,
    .hero-title, .page-title, .mb-page-title) {
  animation: tmb-title-reveal .85s ease-out both,
             tmb-v19-title-glimmer 7s linear 1.1s infinite !important;
}

/* Smooth, readable title motion on phones, tablets and desktops. */
@media (max-width: 900px) {
  :is(.hero > h1, header.hero h1, .page-header h1, .page-hero h1,
      .hero-title, .page-title, .mb-page-title) {
    animation: tmb-title-reveal .7s ease-out both,
               tmb-v19-title-glimmer 9s linear 1s infinite !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.hero > h1, header.hero h1, .page-header h1, .page-hero h1,
      .hero-title, .page-title, .mb-page-title) {
    animation: none !important;
  }
}


/* V21 — ORIGINAL V19 NAV DESIGN, SLIGHTLY LIGHTER LABELS ONLY.
   All sizes; no changes to positioning, icons, backgrounds or animations. */
.menu-bar .menu-item > a,
.menu-bar .menu-item > a > span,
.menu-bar .menu-item > a .nav-label,
.nav-restore-btn,
.nav-restore-btn .nav-restore-text {
    font-weight: 800 !important;
}
.menu-bar .menu-item > a > span,
.menu-bar .menu-item > a .nav-label,
.nav-restore-btn .nav-restore-text {
    -webkit-text-stroke-width: .12px !important;
    -webkit-text-stroke-color: currentColor !important;
    text-shadow: none !important;
}


/* V22 — SITE SCROLLBAR COLOUR ONLY (DESKTOP + SUPPORTED MOBILE) */
/* Firefox and modern browsers supporting standard scrollbar properties. */
html {
    scrollbar-color: #4caf50 #101113;
    scrollbar-width: thin;
}
/* Chrome, Edge, Safari and other WebKit/Blink browsers. */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #101113;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: #4caf50;
    border: 2px solid #101113;
    border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #75d47a;
}
@media (max-width: 600px) {
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }
    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb {
        border-width: 0;
    }
}

/* =========================================================
   V23 — GLOBAL CARD TITLES ONLY
   Bold uppercase headings across all devices.
   No changes to navigation, buttons, layout or animations.
   ========================================================= */

/* V23 — SLIGHTLY BOLDER CARD TITLES ONLY */

:is(
    .card,
    .side-card,
    .feature-card,
    .info-card,
    .resource-card,
    .tool-card,
    .game-card,
    .content-card,
    .panel
) > :is(h2, h3, h4),
:is(
    .card-title,
    .card-heading,
    .panel-title,
    .feature-title,
    .resource-title
) {
    font-family: "Manrope", sans-serif !important;
    font-weight: 800 !important;
    text-transform: none !important;
}


/* V24 — BOLDER MAIN TITLE AND SUBTITLE */

/* MAIN TITLE */
:is(
    .hero > h1,
    header.hero h1,
    .page-header h1,
    .page-hero h1,
    .hero-title,
    .page-title,
    .mb-page-title
) {
    font-family: "Roboto", Arial, sans-serif !important;
    font-weight: 900 !important;
    font-synthesis: weight !important;
}

/* SUBTITLE */
:is(
    .hero > h1 + p,
    .page-header h1 + p,
    .page-hero h1 + p,
    .hero-subtitle,
    .page-subtitle,
    .mb-page-subtitle
) {
    font-family: "Inter", sans-serif !important;
    font-weight: 800 !important;
    font-synthesis: weight !important;
}



/* =========================================================
   V27 — PRIVACY POLICY ICON SPACING
   Match Terms of Use and Disclaimer.
   Keep shield, colours and other styles unchanged.
   ========================================================= */

.legal-links a[href*="privacy.php"] {
    gap: inherit !important;
    column-gap: inherit !important;
}

/* Remove extra spacing around the shield */
.legal-links a[href*="privacy.php"]::before,
.legal-links a[href*="privacy.php"] > svg,
.legal-links a[href*="privacy.php"] > i {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Keep shield at its original size */
.legal-links a[href*="privacy.php"]::before {
    width: 16px !important;
    height: 18px !important;
    flex: 0 0 16px !important;
}

/* V28 — PRIVACY POLICY SHIELD 2PX CLOSER */

.legal-links a[href*="privacy.php"]::before,
.legal-links a[href*="privacy.php"] > svg,
.legal-links a[href*="privacy.php"] > i {
    position: relative !important;
    left: 2px !important;
}


