
:root {
    --nav-panel-width:  320px;
    --nav-text:         var(--color-headings, #363637);
    --nav-muted:        var(--color-lightgray, #606c76);
    --nav-border:       #e8edf2;
    --nav-item-hover:   var(--primary-light, #dbeaf7);
    --nav-scrim-bg:     rgba(0, 0, 0, 0.50);
    --nav-transition:   300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
    background: #fff;
    color: #000;
    padding: 6px 12px;
    z-index: 9999;
    border-radius: 4px;
}

/* Topbar */
.topbar {
    background: var(--primary);
    color: #fff;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: relative;
    z-index: 10;
}

/* Logo */
.topbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.topbar-logo img {
    height: 130px;
    width: auto;
    display: block;
    margin-left: -20px;
    transform: translateY(6px);
}

/* Desktop nav*/
.topbar-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 36px;
    white-space: nowrap;
    pointer-events: none;
}
.topbar-nav * { pointer-events: auto; }
.topbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    padding: 0;
    transition: color 0.18s;
}
.topbar-nav .nav-link:hover,
.topbar-nav .nav-link:focus-visible {
    color: #ffffff;
    outline: none;
}

/* Desktop right actions */
.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.btn-topbar {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    font-weight: 600;
    padding: 7px 18px;
    font-size: 14px;
    border-radius: var(--radius-btn, 8px);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    display: inline-flex;
    align-items: center;
}
.btn-topbar:hover,
.btn-topbar:focus-visible {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
    outline: none;
}
.btn-topbar.btn-topbar--solid {
    background: #ffffff;
    color: var(--primary);
    border-color: #ffffff;
}
.btn-topbar.btn-topbar--solid:hover,
.btn-topbar.btn-topbar--solid:focus-visible {
    background: #f0f6ff;
    border-color: #f0f6ff;
    color: var(--primary-dark, #174b79);
}


.hamburger-btn {
    display: none;
    margin-left: auto;
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s;
}

.hamburger-btn:hover{
    background: rgba(255,255,255,0.15);
}







.nav-scrim {
    position: fixed;
    inset: 0;
    background: var(--nav-scrim-bg);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--nav-transition);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
}
.nav-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* mobile slide-in  */
.nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 300px;
    max-width: 100%;
    background: var(--primary);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform var(--nav-transition);
    overflow: hidden;
}
.nav-panel.is-open {
    transform: translateX(0);
}


.nav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px 0;
    background: transparent;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-panel-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.nav-panel-logo img {
    height: 110px;
    width: auto;
    display: block;
}
.nav-close-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.nav-close-btn:hover { background: rgba(255, 255, 255, 0.26); }
.nav-close-btn svg { display: block; pointer-events: none; }

/* scrollable body */
.nav-panel-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 0;
}

/* Nav item rows */
.nav-item-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    transition: background 0.15s, color 0.15s;
    position: relative;
}
.nav-item-link:hover,
.nav-item-link:focus-visible {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    outline: none;
}
.nav-item-link:focus-visible {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: -2px;
}
.nav-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    transition: background 0.15s, color 0.15s;
}
.nav-item-icon i { font-size: 17px; line-height: 1; }
.nav-item-link:hover .nav-item-icon {
    background: rgba(255,255,255,0.22);
    color: #ffffff;
}
.nav-item-arrow {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    flex-shrink: 0;
    transition: color 0.15s, transform 0.18s;
}
.nav-item-link:hover .nav-item-arrow {
    color: rgba(255,255,255,0.8);
    transform: translateX(3px);
}
.nav-item-text {
    flex: 1;
    min-width: 0;
}
.nav-item-title {
    font-size: 15px;
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
    display: block;
}
.nav-item-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-top: 2px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-item-link:hover .nav-item-subtitle {
    color: rgba(255,255,255,0.8);
    opacity: 1;
}

.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 6px 20px;
}

/* footer */
.nav-panel-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.15);
}
.btn-nav-primary {
    display: block;
    text-align: center;
    background: rgba(255,255,255,0.92);
    color: var(--primary);
    border: none;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    line-height: 1.4;
}
.btn-nav-primary:hover {
    background: #ffffff;
    color: var(--primary-dark, #174b79);
    transform: translateY(-1px);
}
.btn-nav-secondary {
    display: block;
    text-align: center;
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.3);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    line-height: 1.4;
}
.btn-nav-secondary:hover {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}
.nav-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 2px;
}
.nav-footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.15s;
}
.nav-footer-links a:hover { color: #ffffff; }



@media (max-width: 991.98px) {
    .topbar-nav    { display: none; }
    .topbar-actions { display: none; }
    .hamburger-btn { display: flex; }
}

@media (min-width: 992px) {
    .nav-scrim,
    .nav-panel { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-panel,
    .nav-scrim,
    .nav-item-link,
    .nav-item-arrow { transition: none; }
}
