/* Header & desktop menu refinements */

.gh-head-logo img {
    max-height: 56px;
    width: auto;
}

@media (min-width: 768px) {
    #gh-head {
        position: sticky;
        top: 0;
        z-index: 50;
        background-color: rgba(255, 255, 255, 0.88);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    }

    .gh-head-inner {
        height: 96px;
    }

    .gh-head-logo {
        font-size: 2.6rem;
    }

    .gh-head-logo img {
        max-height: 64px;
    }

    /* Menu */
    .gh-head-menu {
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: 0.06em;
    }

    .gh-head .nav {
        gap: 4px;
    }

    .gh-head-menu .nav > li > a {
        position: relative;
        padding: 10px 16px;
    }

    /* Accent underline: grows on hover, stays on the current page */
    .gh-head-menu .nav > li > a::after {
        position: absolute;
        right: 16px;
        bottom: 2px;
        left: 16px;
        height: 2px;
        content: "";
        background-color: var(--ghost-accent-color);
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s ease;
    }

    .gh-head-menu .nav > li > a:hover,
    .gh-head-menu .nav > li > a:focus-visible {
        opacity: 1;
    }

    .gh-head-menu .nav > li > a:hover::after,
    .gh-head-menu .nav > li > a:focus-visible::after,
    .gh-head-menu .nav > li.nav-current > a::after,
    .gh-head-menu .nav > li.has-subnav:hover > a::after {
        transform: scaleX(1);
    }

    /* Dropdown arrow sits right next to its label */
    .gh-head-menu .nav > li.has-subnav {
        gap: 0;
    }

    .gh-head-menu .nav > li.has-subnav > a {
        padding-right: 4px;
    }

    .gh-head-menu .nav > li.has-subnav > a::after {
        right: 4px;
    }

    .gh-subnav-toggle {
        width: 24px;
        height: 32px;
    }

    .gh-subnav-toggle::after {
        width: 7px;
        height: 7px;
        border-width: 2px;
        transition: transform 0.2s ease;
    }

    .has-subnav:hover > .gh-subnav-toggle::after,
    .has-subnav.is-subnav-open > .gh-subnav-toggle::after {
        transform: translateY(2px) rotate(-135deg);
    }

    /* Dropdown panel */
    .gh-subnav {
        top: calc(100% + 4px);
        left: 0;
        min-width: 240px;
        padding: 10px;
        font-size: 1.5rem;
        font-weight: 500;
        letter-spacing: 0.01em;
        text-transform: none;
        border-radius: 14px;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 16px 40px rgba(0, 0, 0, 0.14);
    }

    .gh-subnav a {
        padding: 11px 16px;
        border-radius: 8px;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .gh-subnav a:hover {
        color: var(--ghost-accent-color);
        background-color: rgba(0, 0, 0, 0.04);
        opacity: 1;
    }

    /* Search: a visible pill with a label */
    .gh-head-actions .gh-search {
        gap: 10px;
        width: auto;
        height: 46px;
        padding: 0 20px 0 16px;
        font-size: 1.4rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        background-color: rgba(0, 0, 0, 0.035);
        border: 1.5px solid rgba(0, 0, 0, 0.14);
        border-radius: 999px;
        transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
    }

    .gh-head-actions .gh-search:hover {
        color: var(--ghost-accent-color);
        background-color: #fff;
        border-color: var(--ghost-accent-color);
        opacity: 1;
    }

    .gh-head-actions .gh-search svg {
        width: 20px;
        height: 20px;
    }
}

.gh-search-label {
    display: none;
}

@media (min-width: 768px) {
    .gh-head-actions .gh-search-label {
        display: inline;
    }
}
