/* ============ HEADER — simple flat nav ============ */
/* (merged: former `header` and `#site-header` blocks) */
  body{
    background: white;
  }
header,
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: box-shadow .2s ease, border-color .2s ease, transform .32s cubic-bezier(.4, 0, .2, 1);
}

header.scrolled,
#site-header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

header.nav-hidden {
    transform: translateY(-100%);
} 
.nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    background: #fff; 
    margin: 0 auto;
    padding: 8px 10%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-inner .logoFull {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: none;
    font-family: var(--fontfamily);
    font-weight: 800;
    font-size: 1.3em;
    color: var(--navy);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.nav-inner .logoImg {
    height: 38px;
    overflow: hidden;
    transition: height .25s ease;
}

header.scrolled .logoImg {
    height: 36px;
}

.nav-inner .logoFull .accent {
    color: var(--teal-dark);
}

.logo-chip {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    background: #fff;
    border-radius: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.dd-toggle {
    display: none;
}

.nav-links>.nav-item>a,
.nav-links>.nav-item>button,
.nav-links>.nav-item>label.dd-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--navy-soft);
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.nav-links>.nav-item>a:hover,
.nav-links>.nav-item:hover>button,
.nav-links>.nav-item:hover>label.dd-label {
    background: var(--navy-soft);
    color: var(--navy);
    text-decoration: none;
}

.nav-item .caret {
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.nav-item:hover .caret {
    transform: rotate(180deg);
}

/* ---- desktop dropdown: fade + gentle scale ---- */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1;
    min-width: 230px;
    background: #fff;
    border: 1px solid rgba(4, 39, 79, 0.08);
    border-radius: 12px;
    box-shadow: var(--shadow-pemium);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(.97);
    transform-origin: top left;
    transition: opacity .28s ease, transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s ease;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.88em;
    font-weight: 400;
    color: var(--ink-soft);
}

.dropdown a:hover {
    background: var(--navy-soft);
    color: var(--navy);
    text-decoration: none;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

#nav-toggle {
    /* visually hidden, not display:none — keeps it focusable/operable via keyboard + AT */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
 
.nav-backdrop,
.nav-sidebar-head,
.nav-close,
.nav-sidebar-foot,
.nav-toggle-label {
    display: none;
} 
.nav-toggle-label {
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .18s ease;
}

.nav-toggle-label:hover {
    background: var(--navy-soft, #F0F2F7);
}

.hamburger {
    position: relative;
    width: 20px;
    height: 14px;
}

.hamburger .hb-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--ink, #1a1a1a);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1),
        opacity .2s ease,
        top .3s cubic-bezier(.4, 0, .2, 1);
}

.hamburger .hb-line:nth-child(1) { top: 0; }
.hamburger .hb-line:nth-child(2) { top: 6px; }
.hamburger .hb-line:nth-child(3) { top: 12px; }

/* checked state — morphs the three bars into an × ("times") */
#nav-toggle:checked~.nav-toggle-label .hb-line:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

#nav-toggle:checked~.nav-toggle-label .hb-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-6px);
}

#nav-toggle:checked~.nav-toggle-label .hb-line:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* ============ SUPPORT BADGE / SEARCH / PROFILE ============ */
.nav-divider {
    width: 1px;
    height: 26px;
    background: #e2e2e2;
    margin: 0 14px;
    flex-shrink: 0;
}

.nav-badge-support {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a1a1a;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-badge-support::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.15) 70%,
        transparent 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: navBadgeMirror 6s ease-in-out infinite;
}

@keyframes navBadgeMirror {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

.nav-badge-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #1a1a1a;
    flex-shrink: 0;
}

.nav-badge-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px dashed #1a1a1a;
    border-radius: 50%;
    animation: circularRotate 10s linear infinite;
}

@keyframes circularRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-badge-text {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    font-family: var(--fontfamily);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    padding: 8px 18px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.nav-search:hover {
    border-color: #b9b9b9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-search-icon {
    flex-shrink: 0;
    color: #8a8a8a;
}

.nav-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #1a1a1a;
    width: 150px;
    cursor: pointer;
    caret-color: transparent;
}

.nav-search-input::placeholder {
    color: #9a9a9a;
}

.nav-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e2e2;
    color: #1a1a1a;
    flex-shrink: 0;
    transition: background .18s ease, border-color .18s ease;
}

.nav-profile-btn:hover {
    background: #f5f5f5;
    border-color: #cfcfcf;
}

/* ============ ACCOUNT / GUEST DROPDOWN ============ */
.account-menu { position: relative; z-index: 9999; }

.account-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white, #fff);
    border: 1px solid var(--line, #E6E1D3);
    border-radius: 999px;
    padding: 5px 14px 5px 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #026061);
    font-family: inherit;
    transition: background .18s ease;
}

.account-trigger:hover { background: var(--paper-alt, #F3EFE4); }

.account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--marigold, #026061);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { color: var(--text-muted, #5B6478); transition: transform 0.15s ease; flex-shrink: 0; }
.account-menu.open .account-chevron { transform: rotate(180deg); }

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    background: var(--white, #fff);
    border: 1px solid var(--line, #E6E1D3);
    border-radius: var(--radius-md, 18px);
    box-shadow: var(--shadow-hard, 0 20px 45px -18px rgba(20,33,61,0.4));
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 99999;
}

.account-menu.open .account-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.account-dropdown-header { padding: 10px 12px 8px; }
.account-dropdown-name { font-size: 14px; font-weight: 700; color: var(--ink, #026061); }
.account-dropdown-email { font-size: 12px; color: var(--text-muted, #5B6478); margin-top: 2px; word-break: break-all; }
.account-dropdown-divider { height: 1px; background: var(--line, #E6E1D3); margin: 4px 0; }

.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-sm, 10px);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink, #026061);
    text-decoration: none;
    transition: background .15s ease;
}

.account-dropdown-item:hover { background: var(--navy-soft, #F0F2F7); }
.account-dropdown-item svg { flex-shrink: 0; opacity: 0.7; }
.account-dropdown-signout { color: #C0392B; }

/* Account block (mobile drawer) */
.drawer-account {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 16px 20px;
    border-bottom: 1px solid rgba(20, 33, 61, 0.08);
    margin-bottom: 6px;
}

.drawer-account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--marigold, #026061);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.drawer-account-name { font-size: 14px; font-weight: 700; color: var(--ink, #026061); }
.drawer-account-email { font-size: 12px; color: var(--text-muted, #5B6478); word-break: break-all; margin-top: 2px; }

/* ============ RESPONSIVE ============ */
@media (max-width:980px) {

    .nav-inner {
        padding: 10px 16px;
    } 
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(4, 39, 79, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .35s ease, visibility .35s ease;
        z-index: 100000;
    }

    #nav-toggle:checked~.nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* ---- sidebar panel, slides left → right ---- */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        height: 100dvh;
        width: min(82vw, 320px);
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 0 0 20px;
        box-shadow: 0 24px 60px -12px rgba(4, 39, 79, 0.35);
        transform: translateX(-100%);
        pointer-events: auto;
        overflow-y: auto;
        z-index: 100001;
        will-change: transform;
        transition: transform .38s cubic-bezier(.32, .72, 0, 1);
    }

    #nav-toggle:checked~.nav-links {
        transform: translateX(0);
    }

    .nav-links>.nav-item {
        width: 100%;
    }

    .nav-links>.nav-item>a,
    .nav-links>.nav-item>button,
    .nav-links>.nav-item>label.dd-label {
        width: 100%;
        padding: 14px 18px;
        justify-content: space-between;
        border-radius: 0;
    }

    /* ---- mobile dropdown: slide-down/slide-up via max-height ---- */
    .dropdown {
        position: static;
        visibility: visible;
        box-shadow: none;
        border: none;
        transform: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0 0 0 10px;
        transition: max-height .35s cubic-bezier(.4, 0, .2, 1),
            opacity .3s ease,
            padding .35s cubic-bezier(.4, 0, .2, 1);
    }

    .dd-toggle:checked~.dropdown {
        max-height: 320px;
        opacity: 1;
        padding: 6px 0 10px 10px;
    }

    .dd-toggle:checked~label.dd-label .caret {
        transform: rotate(180deg);
    }

    .nav-toggle-label {
        display: flex;
    }

    .nav-cta>a.btn {
        display: none;
    }
 
    .nav-search {
        padding: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        justify-content: center;
        flex-shrink: 0;
    }

    .nav-search-input {
        display: none;
    }

    .nav-right {
        gap: 8px;
    }

    /* ---- sidebar header row: logo left, close (×) right ---- */
    .nav-sidebar-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 18px 16px;
        position: sticky;
        top: 0;
        background: #fff;
        border-bottom: 1px solid rgba(4, 39, 79, 0.08);
        z-index: 2;
    }

    .nav-sidebar-head .logo-full {
        font-size: 1.08em;
    }

    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--navy-soft);
        color: var(--navy);
        flex: none;
        cursor: pointer;
        transition: background .18s ease, color .18s ease;
    }

    .nav-close:hover {
        background: var(--navy);
        color: #fff;
    }

    /* ---- CTAs pinned at the bottom of the sidebar ---- */
    .nav-sidebar-foot {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 18px 16px 4px;
        margin-top: 6px;
        border-top: 1px solid rgba(4, 39, 79, 0.08);
    }

    .nav-sidebar-foot a.btn {
        width: 100%;
        justify-content: center;
        padding: 13px 16px;
    }
}
 
body:has(#nav-toggle:checked),
body.drawer-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .nav-badge-text {
        display: none;
    }

    .nav-divider {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .nav-search-input {
        width: 100px;
    }
}
 
@media (min-width: 981px) {
    .nav-links {
        margin-left: auto;
    }

    .nav-right {
        margin-left: 14px;
    }
}

