/* Shared header navigation — dot menu + dropdown */

#site-header .site-header__nav {
    grid-column: 2;
    grid-row: 1;
}

.site-header__nav {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
    align-self: start;
    position: relative;
}

.site-header__nav-pills {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.site-header__nav.is-menu-open .site-header__nav-pills {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.nav-dot-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--bg-cream);
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.18s ease;
}

.nav-dot-btn:hover {
    opacity: 0.75;
}

.nav-dot-btn .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
}

.header-nav-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: min(220px, calc(100vw - 48px));
    min-height: 280px;
    background: var(--bg-cream);
    border-radius: 16px;
    padding: 12px 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition:
        opacity 0.26s ease,
        visibility 0.26s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 5;
}

.site-header__nav.is-menu-open .header-nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.header-nav-menu__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.header-nav-menu__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.header-nav-menu__links a,
.header-nav-menu__links button {
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    color: #1e40af;
    text-decoration: none;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: opacity 0.18s ease;
}

.header-nav-menu__links a:hover,
.header-nav-menu__links button:hover {
    opacity: 0.72;
}

.header-nav-menu__close {
    width: 28px;
    height: 28px;
    border-radius: 35px;
    border: none;
    background: #e4e4e7;
    color: #1e40af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: opacity 0.18s ease;
}

.header-nav-menu__close:hover {
    opacity: 0.8;
}

.header-nav-menu__close svg {
    width: 12px;
    height: 12px;
    display: block;
}

.header-nav-menu__clock {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
    color: #1e40af;
}

.header-nav-menu__tz {
    color: rgba(26, 26, 26, 0.36);
}
