
/* ==========================================================================
   JobOoro — Global Navigation
   File: /assets/css/navbar.css

   Features:
   - Browse dropdown
   - Resources dropdown
   - Native <details>/<summary>
   - No JavaScript
   - No Bootstrap
   - No Bootstrap Icons
   - No jQuery
   - No inline CSS
   - Responsive
   - Accessible
   - Keyboard friendly
   - No navigation/search overlap
   - Blue / white JobOoro design
   ========================================================================== */


/* ==========================================================================
   1. ROOT
   ========================================================================== */

.jo-navbar {
    --jo-blue: #0b63ce;
    --jo-blue-dark: #084b9d;
    --jo-blue-deep: #06366f;

    --jo-blue-light: #eaf4ff;
    --jo-blue-pale: #f5faff;

    --jo-text: #17324d;
    --jo-text-soft: #52677d;

    --jo-white: #ffffff;

    --jo-border: #dbe7f3;
    --jo-border-dark: #c7d8e8;

    --jo-danger: #c62828;

    --jo-shadow:
        0 10px 32px rgba(8, 75, 157, 0.12);

    --jo-shadow-hover:
        0 14px 38px rgba(8, 75, 157, 0.18);

    --jo-radius-sm: 7px;
    --jo-radius-md: 10px;
    --jo-radius-lg: 14px;

    --jo-transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;

    position: relative;
    z-index: 1000;

    width: 100%;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 62%,
            #f2f8ff 100%
        );

    border-bottom: 1px solid var(--jo-border);

    box-shadow:
        0 2px 14px rgba(8, 75, 157, 0.07);
}


/* ==========================================================================
   2. RESET / NORMALIZATION
   ========================================================================== */

.jo-navbar *,
.jo-navbar *::before,
.jo-navbar *::after {
    box-sizing: border-box;
}

.jo-navbar a {
    color: inherit;
    text-decoration: none;
}

.jo-navbar button,
.jo-navbar input,
.jo-navbar summary {
    font: inherit;
}

.jo-navbar form {
    margin: 0;
}

.jo-navbar details {
    margin: 0;
    padding: 0;
}

.jo-navbar summary {
    margin: 0;
}

.jo-navbar img {
    max-width: 100%;
}


/* ==========================================================================
   3. MAIN CONTAINER
   ========================================================================== */

.jo-navbar-inner {
    width: min(calc(100% - 32px), 1440px);

    min-height: 76px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    column-gap: 16px;
}


/* ==========================================================================
   4. BRAND
   ========================================================================== */

.jo-brand {
    min-width: 126px;

    display: inline-flex;

    flex-direction: column;

    justify-content: center;

    flex-shrink: 0;

    line-height: 1;

    transition: var(--jo-transition);
}

.jo-brand:hover {
    opacity: 0.92;
}

.jo-brand:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.24);

    outline-offset: 5px;

    border-radius: 6px;
}

.jo-brand-logo {
    display: block;
    width: 150px;
    height: 34px;
    max-width: 150px;
    object-fit: contain;
}

.jo-brand-tagline {
    display: block;

    margin-top: 5px;

    color: var(--jo-text-soft);

    font-size: 0.67rem;

    font-weight: 600;

    letter-spacing: 0.015em;

    line-height: 1.2;

    white-space: nowrap;
}


/* ==========================================================================
   5. MAIN NAVIGATION
   ========================================================================== */

.jo-main-nav {
    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 2px;

    overflow: visible;
}

.jo-main-nav > a,
.jo-main-nav > details {
    flex: 0 0 auto;
}


/* ==========================================================================
   6. NORMAL NAVIGATION LINKS
   ========================================================================== */

.jo-nav-link,
.jo-menu-button {
    position: relative;

    min-height: 40px;

    min-width: 0;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 8px 9px;

    border: 0;

    border-radius: var(--jo-radius-sm);

    color: var(--jo-text);

    background: transparent;

    font-size: 0.86rem;

    font-weight: 650;

    line-height: 1.2;

    white-space: nowrap;

    cursor: pointer;

    transition: var(--jo-transition);
}

.jo-nav-link:hover,
.jo-menu-button:hover {
    color: var(--jo-blue);

    background: var(--jo-blue-light);
}

.jo-nav-link:focus-visible,
.jo-menu-button:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.22);

    outline-offset: 2px;
}

.jo-nav-link.is-active,
.jo-menu[data-active="true"] > .jo-menu-button {
    color: var(--jo-blue-dark);

    background: var(--jo-blue-light);
}

.jo-nav-link.is-active::after,
.jo-menu[data-active="true"] > .jo-menu-button::before {
    content: "";

    position: absolute;

    left: 9px;
    right: 9px;
    bottom: 3px;

    height: 2px;

    border-radius: 99px;

    background: var(--jo-blue);
}


/* ==========================================================================
   7. NATIVE DETAILS MENUS
   ========================================================================== */

.jo-menu {
    position: relative;

    flex: 0 0 auto;
}

.jo-menu > summary {
    list-style: none;
}

.jo-menu > summary::-webkit-details-marker {
    display: none;
}

.jo-menu > summary::marker {
    display: none;
}


/* ==========================================================================
   8. DROPDOWN ARROW
   ========================================================================== */

.jo-menu-button::after {
    content: "";

    width: 6px;
    height: 6px;

    margin-left: 7px;

    flex: 0 0 6px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform:
        translateY(-2px)
        rotate(45deg);

    transition: transform 160ms ease;
}

.jo-menu[open] > .jo-menu-button::after {
    transform:
        translateY(1px)
        rotate(225deg);
}


/* ==========================================================================
   9. GENERAL DROPDOWN
   ========================================================================== */

.jo-dropdown {
    position: absolute;

    top: calc(100% + 7px);

    left: 0;

    z-index: 1100;

    width: 270px;

    max-width: min(320px, calc(100vw - 24px));

    max-height: calc(100vh - 100px);

    overflow-x: hidden;

    overflow-y: auto;

    padding: 8px;

    border: 1px solid var(--jo-border);

    border-radius: var(--jo-radius-md);

    background: var(--jo-white);

    box-shadow: var(--jo-shadow);

    animation: jo-dropdown-in 140ms ease-out both;
}


/* ==========================================================================
   10. DROPDOWN RIGHT ALIGNMENT
   ========================================================================== */

.jo-dropdown-right {
    left: auto;

    right: 0;
}


/* ==========================================================================
   11. DROPDOWN ANIMATION
   ========================================================================== */

@keyframes jo-dropdown-in {

    from {
        opacity: 0;

        transform: translateY(-4px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* ==========================================================================
   12. DROPDOWN LINKS
   ========================================================================== */

.jo-dropdown-link {
    width: 100%;

    min-height: 40px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 9px 11px;

    border: 0;

    border-radius: 7px;

    color: var(--jo-text);

    background: transparent;

    font-size: 0.88rem;

    font-weight: 550;

    line-height: 1.25;

    text-align: left;

    cursor: pointer;

    transition: var(--jo-transition);
}

.jo-dropdown-link:hover {
    color: var(--jo-blue-dark);

    background: var(--jo-blue-light);
}

.jo-dropdown-link:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.18);

    outline-offset: -2px;
}

.jo-dropdown-link.is-selected {
    color: var(--jo-blue-dark);

    background:
        linear-gradient(
            90deg,
            #eaf4ff,
            #f7fbff
        );

    font-weight: 700;
}


/* ==========================================================================
   13. DROPDOWN STRONG TEXT
   ========================================================================== */

.jo-dropdown-strong {
    color: var(--jo-blue-dark);

    font-weight: 700;
}


/* ==========================================================================
   14. DROPDOWN HEADINGS
   ========================================================================== */

.jo-dropdown-heading {
    padding: 9px 11px 7px;

    color: var(--jo-blue-deep);

    font-size: 0.74rem;

    font-weight: 800;

    letter-spacing: 0.04em;

    line-height: 1.2;

    text-transform: uppercase;
}


/* ==========================================================================
   15. DROPDOWN SEPARATOR
   ========================================================================== */

.jo-dropdown-separator {
    height: 1px;

    margin: 7px 4px;

    background: var(--jo-border);
}


/* ==========================================================================
   16. BROWSE DROPDOWN
   ========================================================================== */

.jo-browse-menu {
    position: relative;
}

.jo-browse-menu .jo-dropdown {
    width: 310px;
}

.jo-browse-menu .jo-dropdown-link {
    min-height: 42px;
}

.jo-browse-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 4px;
}

.jo-browse-full {
    grid-column: 1 / -1;
}


/* ==========================================================================
   17. RESOURCES DROPDOWN
   ========================================================================== */

.jo-resources-menu {
    position: relative;
}

.jo-resources-menu .jo-dropdown {
    width: 290px;
}

.jo-resources-menu .jo-dropdown-link {
    min-height: 42px;
}

.jo-resource-content {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 2px;
}

.jo-resource-title {
    display: block;

    color: var(--jo-text);

    font-weight: 700;

    line-height: 1.2;
}

.jo-resource-description {
    display: block;

    color: var(--jo-text-soft);

    font-size: 0.74rem;

    font-weight: 500;

    line-height: 1.3;
}


/* ==========================================================================
   18. COUNTRY MENU
   ========================================================================== */

.jo-country-menu {
    position: relative;

    flex: 0 0 auto;
}

.jo-country-menu > summary {
    list-style: none;
}

.jo-country-menu > summary::-webkit-details-marker {
    display: none;
}

.jo-country-menu > summary::marker {
    display: none;
}

.jo-country-button {
    position: relative;

    min-height: 40px;

    max-width: 150px;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 7px 9px;

    border: 1px solid var(--jo-border);

    border-radius: var(--jo-radius-sm);

    color: var(--jo-text);

    background: #ffffff;

    font-size: 0.82rem;

    font-weight: 650;

    line-height: 1.2;

    cursor: pointer;

    white-space: nowrap;

    transition: var(--jo-transition);
}

.jo-country-button:hover {
    border-color: #a9c7e4;

    color: var(--jo-blue-dark);

    background: var(--jo-blue-pale);
}

.jo-country-button:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.22);

    outline-offset: 2px;
}

.jo-country-button::after {
    content: "";

    width: 6px;
    height: 6px;

    margin-left: 1px;

    flex: 0 0 6px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform:
        translateY(-2px)
        rotate(45deg);

    transition: transform 160ms ease;
}

.jo-country-menu[open] > .jo-country-button::after {
    transform:
        translateY(1px)
        rotate(225deg);
}

.jo-country-dropdown {
    width: 280px;

    max-height: min(500px, calc(100vh - 100px));

    overflow-x: hidden;

    overflow-y: auto;
}

.jo-country-dropdown .jo-dropdown-link {
    min-height: 42px;
}

.jo-country-dropdown img {
    flex: 0 0 auto;

    width: 24px;
    height: 18px;

    object-fit: cover;

    border-radius: 2px;

    border: 1px solid rgba(0, 0, 0, 0.08);
}

.jo-country-globe {
    width: 24px;
    min-width: 24px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 1rem;

    line-height: 1;
}


/* ==========================================================================
   19. RIGHT ACTION AREA
   ========================================================================== */

.jo-nav-right {
    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 7px;

    flex-shrink: 0;
}

.jo-nav-right > * {
    flex: 0 0 auto;
}


/* ==========================================================================
   20. SEARCH
   ========================================================================== */

.jo-search {
    width: clamp(170px, 15vw, 240px);

    min-width: 170px;

    max-width: 240px;

    height: 40px;

    display: flex;

    align-items: center;

    border: 1px solid var(--jo-border-dark);

    border-radius: 9px;

    background: #ffffff;

    overflow: hidden;

    flex: 0 1 auto;

    transition: var(--jo-transition);
}

.jo-search:focus-within {
    border-color: var(--jo-blue);

    box-shadow:
        0 0 0 3px rgba(11, 99, 206, 0.10);
}

.jo-search input {
    width: 100%;

    min-width: 0;

    height: 38px;

    flex: 1 1 auto;

    padding: 7px 10px;

    border: 0;

    outline: 0;

    color: var(--jo-text);

    background: transparent;

    font-size: 0.84rem;
}

.jo-search input::placeholder {
    color: #7a8da0;
}

.jo-search input::-webkit-search-cancel-button {
    cursor: pointer;
}


/* ==========================================================================
   21. GENERIC BUTTON
   ========================================================================== */

.jo-button {
    min-height: 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 8px 12px;

    border: 0;

    border-radius: 7px;

    font-size: 0.82rem;

    font-weight: 700;

    line-height: 1.2;

    cursor: pointer;

    white-space: nowrap;

    transition: var(--jo-transition);
}

.jo-button-primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--jo-blue),
            var(--jo-blue-dark)
        );
}

.jo-button-primary:hover {
    box-shadow:
        0 5px 14px rgba(11, 99, 206, 0.22);

    transform: translateY(-1px);
}

.jo-button-primary:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.24);

    outline-offset: 2px;
}


/* ==========================================================================
   22. ACTION BUTTONS
   ========================================================================== */

.jo-action-button {
    min-height: 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 8px 10px;

    border: 1px solid transparent;

    border-radius: 8px;

    font-size: 0.80rem;

    font-weight: 700;

    line-height: 1.2;

    cursor: pointer;

    white-space: nowrap;

    transition: var(--jo-transition);
}

.jo-outline-primary {
    color: var(--jo-blue-dark);

    border-color: #a9c7e4;

    background: #ffffff;
}

.jo-outline-primary:hover {
    color: #ffffff;

    border-color: var(--jo-blue);

    background: var(--jo-blue);
}

.jo-outline-dark {
    color: var(--jo-text);

    border-color: var(--jo-border-dark);

    background: #ffffff;
}

.jo-outline-dark:hover {
    color: var(--jo-blue-dark);

    border-color: #a9c7e4;

    background: var(--jo-blue-light);
}


/* ==========================================================================
   23. POST A JOB CTA
   ========================================================================== */

.jo-cta {
    min-height: 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 8px 12px;

    border: 1px solid var(--jo-blue);

    border-radius: 8px;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            var(--jo-blue),
            var(--jo-blue-dark)
        );

    font-size: 0.80rem;

    font-weight: 750;

    line-height: 1.2;

    white-space: nowrap;

    box-shadow:
        0 4px 12px rgba(11, 99, 206, 0.15);

    transition: var(--jo-transition);
}

.jo-cta:hover {
    color: #ffffff !important;

    border-color: var(--jo-blue-dark);

    box-shadow:
        0 7px 17px rgba(11, 99, 206, 0.22);

    transform: translateY(-1px);
}

.jo-cta:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.25);

    outline-offset: 3px;
}


/* ==========================================================================
   24. ACCOUNT
   ========================================================================== */

.jo-account-menu {
    position: relative;

    flex: 0 0 auto;
}

.jo-account-menu > summary {
    list-style: none;
}

.jo-account-menu > summary::-webkit-details-marker {
    display: none;
}

.jo-account-menu > summary::marker {
    display: none;
}

.jo-account-button {
    position: relative;

    min-height: 42px;

    max-width: 145px;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 5px 8px 5px 6px;

    border: 1px solid var(--jo-border);

    border-radius: 9px;

    color: var(--jo-text);

    background: #ffffff;

    cursor: pointer;

    white-space: nowrap;

    transition: var(--jo-transition);
}

.jo-account-button:hover {
    border-color: #a9c7e4;

    background: var(--jo-blue-pale);
}

.jo-account-button:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.22);

    outline-offset: 2px;
}

.jo-account-button::after {
    content: "";

    width: 6px;
    height: 6px;

    margin-left: 1px;

    flex: 0 0 6px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform:
        translateY(-2px)
        rotate(45deg);

    transition: transform 160ms ease;
}

.jo-account-menu[open] > .jo-account-button::after {
    transform:
        translateY(1px)
        rotate(225deg);
}

.jo-avatar {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--jo-blue),
            var(--jo-blue-dark)
        );

    font-size: 0.78rem;

    font-weight: 800;

    line-height: 1;

    text-transform: uppercase;
}

.jo-account-name {
    max-width: 72px;

    overflow: hidden;

    color: var(--jo-text);

    font-size: 0.80rem;

    font-weight: 700;

    line-height: 1.2;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.jo-notification {
    min-width: 19px;

    height: 19px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 5px;

    border-radius: 99px;

    color: #ffffff;

    background: #d92d20;

    font-size: 0.62rem;

    font-weight: 800;

    line-height: 1;
}


/* ==========================================================================
   25. LOGOUT
   ========================================================================== */

.jo-logout-form {
    width: 100%;

    margin: 0;

    padding: 0;
}

.jo-logout-button {
    width: 100%;

    appearance: none;

    font-family: inherit;
}

.jo-logout-button:hover {
    color: var(--jo-danger);

    background: #fff3f3;
}

/* ==========================================================================
   26. MOBILE MENU — MARKUP MATCHES navbar.php
   ========================================================================== */

.jo-mobile-menu {
    display: none;
    position: relative;
    flex: 0 0 auto;
}

.jo-mobile-menu > summary {
    list-style: none;
}

.jo-mobile-menu > summary::-webkit-details-marker,
.jo-mobile-menu > summary::marker {
    display: none;
}

.jo-mobile-menu-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border: 1px solid var(--jo-border-dark);
    border-radius: 9px;
    color: var(--jo-text);
    background: #ffffff;
    cursor: pointer;
    transition: var(--jo-transition);
}

.jo-mobile-menu-button:hover {
    color: var(--jo-blue-dark);
    border-color: #a9c7e4;
    background: var(--jo-blue-light);
}

.jo-mobile-menu-button:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.22);
    outline-offset: 2px;
}

.jo-mobile-menu-icon {
    width: 20px;
    height: 16px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.jo-mobile-menu-icon span {
    width: 100%;
    height: 2px;
    display: block;
    border-radius: 99px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.jo-mobile-menu[open] .jo-mobile-menu-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.jo-mobile-menu[open] .jo-mobile-menu-icon span:nth-child(2) {
    opacity: 0;
}

.jo-mobile-menu[open] .jo-mobile-menu-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.jo-mobile-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.jo-mobile-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1200;
    width: min(390px, calc(100vw - 16px));
    max-height: calc(100dvh - 78px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border: 1px solid var(--jo-border);
    border-radius: var(--jo-radius-lg);
    background: #ffffff;
    box-shadow: var(--jo-shadow-hover);
    animation: jo-dropdown-in 140ms ease-out both;
}

.jo-mobile-search {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0 0 9px;
    padding: 0;
}

.jo-mobile-search input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--jo-border-dark);
    border-radius: 9px;
    outline: 0;
    color: var(--jo-text);
    background: #ffffff;
    font-size: 0.92rem;
}

.jo-mobile-search input:focus {
    border-color: var(--jo-blue);
    box-shadow: 0 0 0 3px rgba(11, 99, 206, 0.10);
}

.jo-mobile-search input::placeholder {
    color: #7a8da0;
}

.jo-mobile-search .jo-button-primary {
    min-width: 76px;
    min-height: 44px;
    padding: 9px 13px;
}

.jo-mobile-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.jo-mobile-link,
.jo-mobile-submenu > summary {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--jo-text);
    background: transparent;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: var(--jo-transition);
}

.jo-mobile-link:hover,
.jo-mobile-submenu > summary:hover,
.jo-mobile-link.is-active {
    color: var(--jo-blue-dark);
    background: var(--jo-blue-light);
}

.jo-mobile-link:focus-visible,
.jo-mobile-submenu > summary:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.18);
    outline-offset: -2px;
}

.jo-mobile-link.is-active {
    font-weight: 750;
}

.jo-mobile-submenu {
    width: 100%;
}

.jo-mobile-submenu > summary {
    list-style: none;
}

.jo-mobile-submenu > summary::-webkit-details-marker,
.jo-mobile-submenu > summary::marker {
    display: none;
}

.jo-mobile-submenu > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-left: 12px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

.jo-mobile-submenu[open] > summary::after {
    transform: translateY(2px) rotate(225deg);
}

.jo-mobile-submenu > div {
    width: calc(100% - 8px);
    margin: 0 0 4px 8px;
    padding: 4px;
    border-left: 2px solid var(--jo-border);
    background: var(--jo-blue-pale);
    border-radius: 0 8px 8px 0;
}

.jo-mobile-submenu > div > a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 7px;
    color: var(--jo-text);
    font-size: 0.87rem;
    font-weight: 550;
    line-height: 1.25;
}

.jo-mobile-submenu > div > a:hover {
    color: var(--jo-blue-dark);
    background: var(--jo-blue-light);
}

.jo-mobile-submenu > div > a:focus-visible {
    outline: 3px solid rgba(11, 99, 206, 0.16);
    outline-offset: -2px;
}

.jo-mobile-strong {
    color: var(--jo-blue-dark) !important;
    font-weight: 750 !important;
}

.jo-mobile-divider {
    height: 1px;
    margin: 8px 4px;
    background: var(--jo-border);
}

.jo-mobile-heading {
    padding: 10px 12px 5px;
    color: var(--jo-blue-deep);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.jo-mobile-action {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    margin: 0;
    border: 1px solid var(--jo-border-dark);
    border-radius: 8px;
    color: var(--jo-blue-dark);
    background: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: var(--jo-transition);
}

.jo-mobile-action:hover {
    border-color: #a9c7e4;
    background: var(--jo-blue-light);
}

.jo-mobile-primary,
.jo-mobile-cta {
    color: #ffffff !important;
    border-color: var(--jo-blue);
    background: linear-gradient(135deg, var(--jo-blue), var(--jo-blue-dark));
}

.jo-mobile-primary:hover,
.jo-mobile-cta:hover {
    color: #ffffff !important;
    border-color: var(--jo-blue-dark);
    background: linear-gradient(135deg, var(--jo-blue-dark), var(--jo-blue-deep));
}

.jo-mobile-dark {
    color: var(--jo-text) !important;
    border-color: var(--jo-border-dark);
    background: #ffffff;
}

.jo-mobile-logout-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.jo-mobile-logout {
    color: var(--jo-danger);
    border-color: #f0cccc;
    background: #fff8f8;
}

.jo-mobile-logout:hover {
    color: #a61d1d;
    border-color: #e8b5b5;
    background: #fff0f0;
}

/* ==========================================================================
   27. ACCESSIBILITY
   ========================================================================== */

.jo-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.jo-navbar a:focus-visible,
.jo-navbar button:focus-visible,
.jo-navbar summary:focus-visible,
.jo-navbar input:focus-visible {
    outline-offset: 2px;
}

/* ==========================================================================
   28. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .jo-navbar *,
    .jo-navbar *::before,
    .jo-navbar *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   29. LARGE DESKTOP
   ========================================================================== */

@media (max-width: 1320px) {
    .jo-navbar-inner {
        width: min(calc(100% - 24px), 1320px);
        column-gap: 10px;
    }

    .jo-brand {
        min-width: 118px;
    }

.jo-main-nav {
        gap: 0;
    }

    .jo-nav-link,
    .jo-menu-button {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 0.82rem;
    }

    .jo-country-button {
        max-width: 135px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .jo-cta {
        padding-left: 9px;
        padding-right: 9px;
    }

    .jo-account-button {
        max-width: 125px;
    }
}

/* ==========================================================================
   30. COMPACT DESKTOP / TABLET
   ========================================================================== */

@media (max-width: 1160px) {
    .jo-navbar-inner {
        min-height: 70px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        row-gap: 6px;
        padding-top: 8px;
        padding-bottom: 7px;
    }

    .jo-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .jo-nav-right {
        grid-column: 3;
        grid-row: 1;
        margin-left: auto;
    }

    .jo-main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .jo-main-nav::-webkit-scrollbar {
        height: 4px;
    }

    .jo-main-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .jo-main-nav::-webkit-scrollbar-thumb {
        border-radius: 99px;
        background: #c7d8e8;
    }
}

/* ==========================================================================
   31. TABLET
   ========================================================================== */

@media (max-width: 960px) {
    .jo-navbar-inner {
        width: min(calc(100% - 20px), 920px);
    }

    .jo-country-menu {
        display: none;
    }

    .jo-account-name {
        display: none;
    }

    .jo-account-button {
        max-width: none;
        padding-right: 7px;
    }
}

/* ==========================================================================
   32. MOBILE
   ========================================================================== */

@media (max-width: 760px) {
    .jo-navbar-inner {
        width: calc(100% - 16px);
        min-height: 64px;
        display: flex;
        align-items: center;
        gap: 7px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .jo-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

.jo-brand-tagline {
        display: none;
    }

    .jo-main-nav {
        display: none;
    }

    .jo-nav-right {
        order: 2;
        min-width: 0;
        margin-left: auto;
        gap: 5px;
    }

    .jo-nav-right > .jo-auth-menu,
    .jo-nav-right > .jo-cta {
        display: none;
    }

    .jo-search {
        width: 42px;
        min-width: 42px;
        height: 42px;
        position: relative;
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .jo-search input {
        position: absolute;
        top: calc(100% + 9px);
        right: 0;
        z-index: 1300;
        width: min(290px, calc(100vw - 16px));
        height: 42px;
        padding: 8px 11px;
        border: 1px solid var(--jo-border);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: var(--jo-shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-4px);
        transition: opacity 150ms ease, transform 150ms ease;
    }

    .jo-search:focus-within input {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .jo-button-primary {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0;
        position: relative;
        font-size: 0;
        border-radius: 8px;
    }

    .jo-button-primary::before {
        content: "";
        position: absolute;
        top: 12px;
        left: 12px;
        width: 13px;
        height: 13px;
        border: 2px solid currentColor;
        border-radius: 50%;
    }

    .jo-button-primary::after {
        content: "";
        position: absolute;
        top: 25px;
        left: 24px;
        width: 7px;
        height: 2px;
        border-radius: 99px;
        background: currentColor;
        transform: rotate(45deg);
    }

    .jo-mobile-menu {
        display: block;
        order: 3;
    }

    .jo-mobile-panel {
        right: 0;
    }

    .jo-account-button {
        min-height: 42px;
        padding-right: 6px;
    }

    .jo-avatar {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .jo-notification {
        position: absolute;
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        font-size: 0.60rem;
    }
}

/* ==========================================================================
   33. PHONE
   ========================================================================== */

@media (max-width: 560px) {
    .jo-navbar-inner {
        width: calc(100% - 12px);
        gap: 5px;
    }

.jo-mobile-menu-button,
    .jo-account-button,
    .jo-button-primary {
        width: 40px;
        min-width: 40px;
        min-height: 40px;
        height: 40px;
    }

    .jo-search {
        width: 40px;
        min-width: 40px;
        height: 40px;
    }

    .jo-cta {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
    }

    .jo-mobile-panel {
        width: min(390px, calc(100vw - 12px));
        max-height: calc(100dvh - 72px);
    }

    .jo-mobile-search {
        grid-template-columns: 1fr;
    }

    .jo-mobile-search .jo-button-primary {
        width: 100%;
        height: 42px;
        font-size: 0.84rem;
    }

    .jo-mobile-search .jo-button-primary::before,
    .jo-mobile-search .jo-button-primary::after {
        display: none;
    }
}

/* ==========================================================================
   34. SMALL PHONE
   ========================================================================== */

@media (max-width: 420px) {
    .jo-navbar-inner {
        min-height: 58px;
    }

.jo-mobile-menu-button,
    .jo-account-button,
    .jo-button-primary,
    .jo-search {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .jo-mobile-menu-icon {
        width: 18px;
        height: 14px;
    }

    .jo-mobile-panel {
        width: min(360px, calc(100vw - 8px));
        padding: 8px;
    }

    .jo-mobile-link,
    .jo-mobile-submenu > summary,
    .jo-mobile-action {
        min-height: 42px;
    }

    .jo-avatar {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }
}

/* ==========================================================================
   35. VERY SMALL PHONE
   ========================================================================== */

@media (max-width: 350px) {
    .jo-navbar-inner {
        width: calc(100% - 8px);
        gap: 3px;
    }

.jo-mobile-menu-button,
    .jo-account-button,
    .jo-button-primary,
    .jo-search {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
    }

    .jo-mobile-menu-icon {
        width: 17px;
        height: 13px;
    }

    .jo-avatar {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .jo-mobile-panel {
        width: calc(100vw - 8px);
        right: -2px;
    }
}

/* ==========================================================================
   36. PRINT
   ========================================================================== */

@media print {
    .jo-navbar {
        display: none !important;
    }
}