/* Joblogg navigation: one scroll container; compact flyouts live outside it. */
:root {
    --job-nav-width: 276px;
    --job-nav-surface: #f3f6f2;
    --job-nav-text: #25332a;
    --job-nav-muted: #5d6c61;
    --job-nav-hover: #e4ebe2;
    --job-nav-accent: #245637;
    --job-nav-line: #d7dfd5;
}
body .vertical-menu.job-navigation {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    width: var(--job-nav-width) !important;
    height: auto;
    background: var(--job-nav-surface);
    border-right: 1px solid var(--job-nav-line);
    box-shadow: none;
    z-index: 1001;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
body.job-nav-layout .main-content { margin-left: var(--job-nav-width) !important; }
body.job-nav-layout .footer { left: var(--job-nav-width) !important; }
body.job-nav-layout .navbar-brand-box {
    width: var(--job-nav-width) !important;
    flex-shrink: 0;
    background: var(--job-nav-surface) !important;
    border-right: 1px solid var(--job-nav-line);
}
#vertical-menu-btn,
#vertical-menu-btn:hover,
#vertical-menu-btn:focus,
#vertical-menu-btn:active {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
    color: var(--job-nav-text) !important;
}
#vertical-menu-btn:hover { color: var(--job-nav-accent) !important; }
#vertical-menu-btn .waves-ripple { display: none !important; }
#vertical-menu-btn:focus-visible > .job-nav-toggle-icon { outline: 2px solid var(--job-nav-accent); outline-offset: 5px; border-radius: 50%; }
#vertical-menu-btn .job-nav-toggle-icon { vertical-align: middle; }
#vertical-menu-btn[aria-expanded="false"] .job-nav-toggle-arrow { transform: translateX(31px) scaleX(-1); }
.job-nav-heading {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 12px 22px 4px;
    color: var(--job-nav-text);
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -.02em;
}
.job-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #a6b4a5 transparent;
    padding: 0 12px max(24px, env(safe-area-inset-bottom));
}
.job-nav-section { margin: 12px 0 18px; }
.job-nav-section-title {
    margin: 0 10px 8px;
    color: var(--job-nav-muted);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .025em;
}
.job-navigation ul { margin: 0; padding: 0; list-style: none; }
.job-navigation li { margin: 3px 0; }
.job-navigation .job-nav-row,
.job-navigation .job-nav-child {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    margin: 0;
    padding: 9px 10px;
    border: 0;
    border-radius: 999px;
    color: var(--job-nav-text);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    cursor: pointer;
    overflow-wrap: anywhere;
    transition: background-color 120ms ease, color 120ms ease;
}
.job-nav-row::-webkit-details-marker { display: none; }
.job-nav-row { list-style: none; }
.job-nav-label { flex: 1; min-width: 0; }
.job-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    color: var(--job-nav-muted);
    font-size: 1.25rem;
    line-height: 1;
}
.job-nav-chevron { font-size: 1rem; color: var(--job-nav-muted); }
.job-nav-group[open] > summary .job-nav-chevron { transform: rotate(90deg); }
.job-navigation .job-nav-children {
    margin: 5px 0 8px 20px;
    padding-left: 12px;
    border-left: 1px solid var(--job-nav-line);
}
.job-navigation .job-nav-child { min-height: 38px; font-weight: 400; padding: 8px 10px; }
.job-navigation .job-nav-row:hover,
.job-navigation .job-nav-child:hover { background: var(--job-nav-hover); color: var(--job-nav-text); }
.job-nav-group.is-current > summary { font-weight: 650; }
.job-nav-group.is-current > summary .job-nav-icon { color: var(--job-nav-accent); }
.job-navigation a.is-current {
    background: var(--job-nav-accent);
    color: #fff;
    font-weight: 600;
}
.job-navigation a.is-current .job-nav-icon { color: inherit; }
.job-navigation a.is-current:hover { background: #1b452a; color: #fff; }
.job-nav-row:focus-visible,
.job-nav-child:focus-visible,
.job-nav-close:focus-visible {
    outline: 2px solid var(--job-nav-accent);
    outline-offset: 2px;
}
.job-nav-close { display: none; }
.job-nav-backdrop { display: none; }
@media (min-width: 992px) {
    body.job-nav-compact { --job-nav-width: 72px; }
    .job-nav-compact .job-nav-heading { min-height: 20px; padding: 0; }
    .job-nav-compact .job-nav-heading-text,
    .job-nav-compact .job-nav-section-title,
    .job-nav-compact .job-nav-label,
    .job-nav-compact .job-navigation .job-nav-children { display: none; }
    .job-nav-compact .job-nav-section + .job-nav-section {
        border-top: 1px solid var(--job-nav-line);
        padding-top: 12px;
    }
    .job-nav-compact .job-nav-section { margin: 0 0 12px; }
    .job-nav-compact .job-nav-scroll { padding-inline: 10px; }
    .job-nav-compact .job-nav-row {
        position: relative;
        width: 44px;
        height: 44px;
        min-height: 44px;
        margin-inline: auto;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }
    .job-nav-compact .job-nav-chevron {
        position: absolute;
        right: -3px;
        bottom: 1px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: var(--job-nav-surface);
        color: var(--job-nav-accent);
        font-size: 13px;
        transform: none !important;
    }
    .job-nav-compact summary[aria-expanded="true"] { background: var(--job-nav-hover); }
    .job-nav-compact .job-nav-group.is-current > summary { background: var(--job-nav-hover); }
    .job-nav-compact .navbar-brand-box .logo-lg { display: none; }
    .job-nav-compact .navbar-brand-box .logo-sm { display: block; }
}
.job-nav-flyout {
    position: fixed;
    inset: auto;
    margin: 0;
    width: min(288px, calc(100vw - 96px));
    max-height: calc(100dvh - 94px);
    padding: 10px;
    border: 1px solid var(--job-nav-line);
    border-radius: 26px;
    background: var(--job-nav-surface);
    color: var(--job-nav-text);
    box-shadow: 0 12px 36px rgb(25 45 30 / 14%), 0 2px 8px rgb(25 45 30 / 6%);
    z-index: 1003;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
.job-nav-flyout:not([hidden]) { display: flex; flex-direction: column; }
.job-nav-flyout[popover]:not(:popover-open) { display: none; }
.job-nav-flyout-title { flex: 0 0 auto; margin: 5px 14px 8px; font-size: .875rem; line-height: 1.5; font-weight: 650; }
.job-nav-flyout .job-nav-children {
    min-height: 0;
    margin: 0;
    padding: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #a6b4a5 transparent;
}
.job-nav-flyout li { margin: 2px 0; }
.job-nav-flyout .job-nav-child {
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--job-nav-text);
    font-size: .875rem;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.job-nav-flyout .job-nav-child:hover { background: var(--job-nav-hover); }
.job-nav-flyout .job-nav-child.is-current { background: var(--job-nav-accent); color: #fff; font-weight: 600; }
@media (max-width: 991.98px) {
    body .vertical-menu.job-navigation {
        width: min(320px, calc(100vw - 48px)) !important;
        visibility: hidden;
        transform: translateX(-100%);
    }
    body.job-nav-mobile-open .vertical-menu.job-navigation { visibility: visible; transform: none; }
    body.job-nav-layout .main-content { margin-left: 0 !important; }
    body.job-nav-layout .footer { left: 0 !important; }
    body.job-nav-layout .navbar-brand-box { width: auto !important; background: transparent !important; border-right: none; }
    body.job-nav-mobile-open { overflow: hidden; }
    .job-nav-heading { padding-top: 8px; }
    .job-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 8px;
        color: var(--job-nav-text);
        font-size: 1.4rem;
    }
    .job-nav-close:hover { background: var(--job-nav-hover); }
    .job-navigation .job-nav-row, .job-navigation .job-nav-child { min-height: 44px; font-size: 1rem; }
    .job-nav-backdrop:not([hidden]) {
        display: block;
        position: fixed;
        inset: 70px 0 0;
        z-index: 1000;
        background: rgb(18 28 21 / 35%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .job-navigation *, body .main-content, body .navbar-brand-box { transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
    .job-navigation a.is-current { outline: 2px solid Highlight; outline-offset: -2px; }
}
