/* ─── TOP BAR ─── */
.topbar {
    background: var(--g700);
    padding: 9px 0;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255,255,255,0.65);
}
.topbar a { color: var(--gold-lt); font-weight: 500; }
.topbar a:hover { text-decoration: underline; }

/* ─── SITE HEADER ─── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}
.header-inner {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; margin-right: 8px; }
.logo-wordmark {
    font-family: 'Lora', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--g700);
    letter-spacing: -0.3px;
    display: flex;
    align-items: flex-start;
}
.logo-wordmark .logo-domain { color: var(--g400); font-weight: 400; font-style: italic; }
.logo-dot {
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 3px;
    margin-left: 2px;
    flex-shrink: 0;
}

/* Primary Nav */
.primary-nav { flex: 1; }
.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-item { position: relative; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 13px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink2);
    text-decoration: none;
    border-radius: var(--r8);
    transition: all var(--ease);
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.nav-link:hover, .nav-item.current-menu-item > .nav-link, .nav-item.current-menu-ancestor > .nav-link {
    color: var(--g600);
    background: var(--g50);
}
.nav-chevron {
    width: 13px; height: 13px;
    color: var(--ink4);
    transition: transform var(--ease);
    flex-shrink: 0;
}
.nav-item:hover > .nav-link .nav-chevron,
.nav-item:focus-within > .nav-link .nav-chevron { transform: rotate(180deg); color: var(--g500); }

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 240px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r12);
    padding: 8px;
    box-shadow: var(--shadow2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all var(--ease);
    list-style: none;
    z-index: 300;
}
.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.dropdown-menu li {}
.dropdown-link {
    display: block;
    padding: 9px 11px;
    font-size: 13.5px;
    color: var(--ink2);
    text-decoration: none;
    border-radius: var(--r8);
    transition: all var(--ease);
    line-height: 1.35;
}
.dropdown-link:hover { background: var(--g50); color: var(--g600); }
.dropdown-link small { display: block; font-size: 11.5px; color: var(--ink4); margin-top: 1px; font-weight: 400; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-toggle {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r8);
    cursor: pointer;
    color: var(--ink3);
    transition: all var(--ease);
}
.search-toggle:hover { background: var(--g50); border-color: var(--g200); color: var(--g600); }
.header-cta { white-space: nowrap; }

/* Search bar */
.search-bar {
    border-top: 1px solid var(--border);
    background: var(--cream);
    padding: 14px 0;
}
.search-bar .search-form { display: flex; gap: 10px; max-width: 560px; }
.search-bar input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border2);
    border-radius: var(--r8);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--ease);
}
.search-bar input[type="search"]:focus { border-color: var(--g400); }
.search-bar input[type="submit"] {
    padding: 10px 20px;
    background: var(--g600);
    color: var(--white);
    border: none;
    border-radius: var(--r8);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--ease);
}
.search-bar input[type="submit"]:hover { background: var(--g700); }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}
.nav-toggle__bar {
    display: block;
    width: 22px; height: 2px;
    background: var(--ink2);
    border-radius: 2px;
    transition: all var(--ease);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
    .nav-toggle { display: flex; }
    .primary-nav { position: relative; }
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: -40px;
        right: -40px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--r12);
        padding: 12px;
        box-shadow: var(--shadow2);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }
    .nav-menu.is-open { display: flex; }
    .dropdown-menu { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border: none; background: var(--cream); margin-top: 4px; }
    .header-cta { display: none; }
}

@media (max-width: 640px) {
    .logo-wordmark { font-size: 17px; }
}
