/* 블로그 Primary Navigation — 중앙 정렬 서브 바 + 우측 검색 */
:root {
    --snipit-nav-link: #ffffff;
    --snipit-nav-link-hover: #b8beff;
    --snipit-nav-height: 56px;
    --snipit-nav-font: var(--font-heading, "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif);
    --snipit-nav-bg: #2b3761;
}

.snipit-nav {
    position: relative;
    width: 100%;
    background: var(--snipit-nav-bg);
    border-bottom: none;
    font-family: var(--snipit-nav-font);
}

.snipit-nav__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    min-height: var(--snipit-nav-height);
    margin: 0 auto;
    padding: 12px 24px;
    box-sizing: border-box;
}

.snipit-nav__links {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

/* Ghost {{navigation}} → ul.nav */
.snipit-nav__links .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.snipit-nav__links .nav li {
    margin: 0;
    padding: 0;
}

.snipit-nav__links .nav a {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--snipit-nav-link);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.snipit-nav__links .nav a:hover,
.snipit-nav__links .nav li.nav-current a {
    color: var(--snipit-nav-link-hover);
}

.snipit-nav__search {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: var(--snipit-nav-link);
    cursor: pointer;
    transition: color 0.15s ease;
}

.snipit-nav__search svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
}

.snipit-nav__search:hover {
    color: var(--snipit-nav-link-hover);
}

@media (max-width: 900px) {
    .snipit-nav__inner {
        padding: 10px 16px;
        gap: 12px;
    }

    .snipit-nav__links .nav {
        gap: 20px 28px;
    }

    .snipit-nav__links .nav a {
        font-size: 14px;
    }

    .snipit-nav__search {
        width: 32px;
        height: 32px;
    }

    .snipit-nav__search svg {
        width: 18px;
        height: 18px;
    }
}

body.has-snipit-nav {
    --header-spacing: var(--snipit-nav-height);
}
