﻿@charset "UTF-8";
/* Consolidated from inline <style> in _HorizontalMenuPartial.cshtml -> W3C-valid + CSP-clean. Order/cascade preserved. */

    .menu-item {
        position: relative; /* so span positions relative to this container */
    }

    /* True blink animation — uses visibility instead of opacity so it bypasses
       the `opacity: 1 !important` UserWay-defense lock at the end of this file. */
    @keyframes pulsePopup {
        0%, 49.99%   { visibility: visible; }
        50%, 99.99%  { visibility: hidden; }
        100%         { visibility: visible; }
    }

    .popup-blink {
        position: absolute;
        top: 0;
        right: 0;
        transform: translate(50%, -50%);
        /* !important locks contrast at 6.4:1 against overlay injection
           (UserWay forces rgba(255,255,255,0.475) which blends to 2.4:1) */
        background-color: #b91c1c !important;
        color: #fff !important;
        font-size: 10px;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 12px;
        min-width: auto;
        text-align: center;
        line-height: 1;
        animation: pulsePopup 1.5s infinite;
        white-space: nowrap;
    }


    /* Blink animation */
    @keyframes blinkPopup {
        0%, 50%, 100%

    {
        opacity: 1;
    }

    25%, 75% {
        opacity: 0;
    }

    }

    /* ============================= */
    /* MOBILE RESPONSIVE POPUP BADGE */
    /* ============================= */
    @media (max-width: 768px) {
        .menu-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .popup-blink {
            position: initial; /* remove absolute overlap */
            transform: none;
            font-size: 11px;
            padding: 3px 8px;
            border-radius: 14px;
            line-height: 1.2;
            animation: pulsePopup 1.5s infinite;
            width: 40px;
        }
    }


            /* Desktop default */
            .popup-blink {
                position: absolute;
                top: -6px;
                right: -14px;
                background: #b91c1c;
                color: #fff;
                font-size: 11px;
                padding: 2px 6px;
                border-radius: 10px;
                white-space: nowrap;
                animation: blink 1.2s infinite;
            }

            /* Mobile menu fix */
            @media (max-width: 768px) {
                .popup-blink

            {
                position: static; /* remove absolute */
                display: inline-block;
                margin-left: 0px; /* space after text */
                top:20px;
                font-size: 10px;
                padding: 2px 6px;
                vertical-align: middle;
            }

            #citizenMenu {
                display: inline-flex;
                align-items: center;
            }

            }

            /* Small mobile */
            @media (max-width: 480px) {
                .popup-blink

            {
                font-size: 9px;
                padding: 2px 5px;
            }

            }


            /* Parent should be relative */
            #citizenMenu {
                position: relative;
                display: inline-block;
            }

            /* NEW popup */
            .popup-blink {
                position: absolute;
                top: -6px;
                right: -14px;
                background: #b91c1c;
                color: #fff;
                font-size: 11px;
                padding: 2px 6px;
                border-radius: 10px;
                white-space: nowrap;
                animation: blink 1.2s infinite;
            }

            /* Blink animation — visibility-based to bypass opacity !important lock */
            @keyframes blink {
                0%, 49.99%   { visibility: visible; }
                50%, 99.99%  { visibility: hidden; }
                100%         { visibility: visible; }
            }

            /* Tablet & Mobile */
            @media (max-width: 768px) {
                .popup-blink

            {
                top: 50%;
                right: 8px;
                transform: translateY(-50%);
                font-size: 10px;
                padding: 2px 5px;
            }

            }

            /* Small Mobile */
            @media (max-width: 480px) {
                .popup-blink

            {
                font-size: 9px;
                padding: 2px 4px;
                right: 6px;
            }

            }


            .menu-item {
                display: inline-flex;
                align-items: center;
            }

            /* NEW badge */
            .popup-blink {
                position: absolute;
                top: -6px;
                right: -10px;
                background: #b91c1c;
                color: #fff;
                font-size: 11px;
                padding: 2px 6px;
                border-radius: 10px;
                animation: blink 1.2s infinite;
                white-space: nowrap;

            }

            /* Blink animation — visibility-based to bypass opacity !important lock */
            @keyframes blink {
                0%, 49.99%   { visibility: visible; }
                50%, 99.99%  { visibility: hidden; }
                100%         { visibility: visible; }
            }

            /* Tablet & Mobile */
            @media (max-width: 768px) {
                .menu-item

            {
                width: 100%;
            }

            #citizenMenu {
                display: block;
                text-align: center;
                padding-right: 40px;
                font-size: 14px;
            }

            .popup-blink {
                top: 50%;
                right: 10px;
                transform: translateY(-50%);
                font-size: 10px;
            }

            }

            /* Small Mobile */
            @media (max-width: 480px) {
                #citizenMenu

            {
                font-size: 13px;
                padding: 10px 12px;
            }

            .popup-blink {
                font-size: 9px;
                padding: 2px 5px;
            }

            }

            /* ============================= */
            /* DESKTOP (default behavior) */
            /* ============================= */
            .menu-item {
                position: relative;
                display: inline-block;
            }

            .popup-blink {
                position: absolute;
                top: 9px;
                right: 8px;
                transform: translate(50%, -50%);
            }

            /* ============================= */
            /* MOBILE FIX */
            /* ============================= */
            @media (max-width: 768px) {
                .menu-item {
                    display: flex;
                    align-items: center;
                    gap: 6px;
                    width: 100%;
                }

                    .menu-item .nav-link {
                        padding-right: 0 !important;
                    }

                .popup-blink {
                    position: static; /* remove overlap */
                    transform: none;
                    font-size: 11px;
                    padding: 3px 8px;
                    border-radius: 14px;
                    line-height: 1.2;
                    white-space: nowrap;
                    top: 9px;
                    right: 403px;
                    bottom: 9px;
                }
            }

            /* Mobile default hidden */
            #districtNav .navbar-links, #mainNav .navbar-links {
                display: none;
                flex-direction: column !important;
                width: 100%;
            }

            /* When checkbox checked show menu */
            #nav-toggle-district:checked ~ .navbar-links, #nav-toggle:checked ~ .navbar-links {
                display: flex !important;
                flex-direction: column !important;
            }

            /* Desktop view */
            @media (min-width: 992px) {
                #districtNav .navbar-links, #mainNav .navbar-links {
                    display: flex !important;
                    flex-direction: row !important;
                    width: auto !important;
                }

                #districtNav .navbar-toggler, #mainNav .navbar-toggler {
                    display: none;
                }
            }

            #districtNav .navbar-links, #mainNav .navbar-links {
                gap: 10px;
            }

            #mainNav .navbar-links {
                justify-content: center;
            }

            @media (max-width:991px) {
                #districtNav .navbar-links, #mainNav .navbar-links {
                    display: none;
                    flex-direction: column !important;
                    width: 100%;
                    padding: 10px;
                }

                    #districtNav .navbar-links a, #mainNav .navbar-links a {
                        width: 100%;
                        text-align: left;
                    }

                #nav-toggle-district:checked ~ .navbar-links, #nav-toggle:checked ~ .navbar-links {
                    display: flex !important;
                }
            }

            /* FINAL contrast lock for popup-blink — must be the last
               popup-blink rule in this file. High-specificity selector
               plus !important defeats the UserWay overlay alpha-fade
               injection that drops contrast to ~3.3:1 over #b91c1c.
               Locked at white on #b91c1c = 6.4:1 (WCAG AA). */
            span.popup-blink[class],
            .popup-blink[class] {
                color: #ffffff !important;
                background: #b91c1c !important;
                background-color: #b91c1c !important;
                opacity: 1 !important;
            }
