/* ==========================================================================
   Site header — warm editorial minimal
   Pretendard typography, warm paper surface, brand-yellow used only as
   the nav highlighter swipe + CTA hover. Self-contained: no bimber deps.
   ========================================================================== */

:root {
    --bmp-ink: #201b12;
    --bmp-ink-soft: rgba(32, 27, 18, 0.6);
    --bmp-paper: #fffdf7;
    --bmp-yellow: #ffd43b;
    --bmp-line: rgba(32, 27, 18, 0.08);
    --bmp-font: "Pretendard Variable", Pretendard, "Nanum Gothic", sans-serif;
    --bmp-header-h: 78px;
    --bmp-header-h-condensed: 62px;
}

/* --------------------------------------------------------------------------
   Keep AdSense Auto ads out of the header & drawer — auto-placed units
   inserted into the flex bar wreck the layout. Ads elsewhere unaffected.
   -------------------------------------------------------------------------- */

.bmp-header ins.adsbygoogle,
.bmp-header .google-auto-placed,
.bmp-drawer ins.adsbygoogle,
.bmp-drawer .google-auto-placed {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* --------------------------------------------------------------------------
   Bar
   -------------------------------------------------------------------------- */

.bmp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bmp-paper);
    border-bottom: 1px solid var(--bmp-line);
    font-family: var(--bmp-font);
    transition: box-shadow 0.25s ease;
}

.admin-bar .bmp-header {
    top: 32px;
}

.bmp-header.is-scrolled {
    box-shadow: 0 8px 24px -16px rgba(32, 27, 18, 0.28);
}

/* Width matches the site content container (.container = 1024px) so the
   header edges line up with the page grid. */
.bmp-header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0;
    height: var(--bmp-header-h);
    transition: height 0.25s ease;
}

@media (max-width: 1072px) {
    .bmp-header-inner {
        padding: 0 24px;
    }
}

.bmp-header.is-scrolled .bmp-header-inner {
    height: var(--bmp-header-h-condensed);
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */

.bmp-logo-wrap {
    margin: 0;
    font-size: 0;
    line-height: 1;
}

.bmp-logo {
    display: inline-flex;
    align-items: center;
}

.bmp-logo img {
    height: 52px;
    width: auto;
    display: block;
    transition: height 0.25s ease;
}

.bmp-header.is-scrolled .bmp-logo img {
    height: 42px;
}

/* --------------------------------------------------------------------------
   Primary nav — yellow highlighter swipe on hover/active
   -------------------------------------------------------------------------- */

.bmp-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* menu sits right, next to search/CTA */
}

.bmp-nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bmp-nav-list li {
    margin: 0;
}

.bmp-nav-list a {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 4px 2px;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--bmp-ink);
    text-decoration: none;
}

.bmp-nav-list a::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -5px;
    right: -5px;
    bottom: 4px;
    height: 11px;
    background: var(--bmp-yellow);
    opacity: 0.6;
    border-radius: 2px;
    transform: scaleX(0) rotate(-1.6deg);
    transform-origin: left center;
    transition: transform 0.22s cubic-bezier(0.65, 0, 0.35, 1);
}

.bmp-nav-list a:hover::after,
.bmp-nav-list .current-menu-item a::after,
.bmp-nav-list .current_page_item a::after {
    transform: scaleX(1) rotate(-1.6deg);
}

/* --------------------------------------------------------------------------
   Actions: search / CTA / burger
   -------------------------------------------------------------------------- */

.bmp-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* hairline divider between the nav group and the actions group */
.bmp-actions::before {
    content: "";
    width: 1px;
    height: 22px;
    margin-right: 8px;
    background: var(--bmp-line);
}

/* keyboard focus parity with hover */
.bmp-nav-list a:focus-visible {
    outline: none;
}

.bmp-nav-list a:focus-visible::after {
    transform: scaleX(1) rotate(-1.6deg);
}

.bmp-search-toggle:focus-visible,
.bmp-burger:focus-visible,
.bmp-cta:focus-visible {
    outline: 2px solid var(--bmp-ink);
    outline-offset: 2px;
}

.bmp-search {
    display: flex;
    align-items: center;
}

.bmp-search-form {
    margin: 0;
    overflow: hidden;
}

.bmp-search-input {
    width: 0;
    padding: 7px 0;
    border: 0;
    border-bottom: 2px solid var(--bmp-ink);
    background: transparent;
    font-family: var(--bmp-font);
    font-size: 14.5px;
    color: var(--bmp-ink);
    opacity: 0;
    transition: width 0.28s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
}

.bmp-search.is-open .bmp-search-input {
    width: 170px;
    padding: 7px 8px;
    opacity: 1;
}

.bmp-search-input:focus {
    outline: none;
}

.bmp-search-input::placeholder {
    color: var(--bmp-ink-soft);
}

.bmp-search-toggle,
.bmp-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bmp-ink);
    cursor: pointer;
    transition: background 0.2s ease;
}

.bmp-search-toggle:hover,
.bmp-burger:hover {
    background: rgba(32, 27, 18, 0.06);
}

/* CTA pill: ink, flips to yellow on hover */

.bmp-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--bmp-ink);
    color: var(--bmp-paper);
    font-family: var(--bmp-font);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bmp-cta .bmp-paw {
    color: var(--bmp-yellow);
    transition: color 0.2s ease, transform 0.25s ease;
}

.bmp-cta:hover {
    background: var(--bmp-yellow);
    color: var(--bmp-ink);
    transform: translateY(-1px);
}

.bmp-cta:hover .bmp-paw {
    color: var(--bmp-ink);
    transform: rotate(-12deg);
}

/* external-link arrow: quiet at rest, nudges out on hover */
.bmp-cta .bmp-cta-arrow {
    opacity: 0.55;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bmp-cta:hover .bmp-cta-arrow {
    opacity: 1;
    transform: translate(1px, -1px);
}

/* Burger (hidden on desktop) */

.bmp-burger {
    display: none;
    position: relative;
}

.bmp-burger-bar {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease, top 0.25s ease;
}

.bmp-burger-bar:nth-child(1) {
    top: 15px;
}

.bmp-burger-bar:nth-child(2) {
    top: 22px;
}

.bmp-burger[aria-expanded="true"] .bmp-burger-bar:nth-child(1) {
    top: 18px;
    transform: rotate(45deg);
}

.bmp-burger[aria-expanded="true"] .bmp-burger-bar:nth-child(2) {
    top: 18px;
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */

.bmp-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.bmp-drawer[hidden] {
    display: none;
}

.bmp-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 27, 18, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.bmp-drawer.is-open .bmp-drawer-backdrop {
    opacity: 1;
}

.bmp-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(330px, 88vw);
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 26px 32px;
    overflow-y: auto;
    background: var(--bmp-paper);
    font-family: var(--bmp-font);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.bmp-drawer.is-open .bmp-drawer-panel {
    transform: translateX(0);
}

.bmp-drawer-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 44px 0 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bmp-ink);
}

.bmp-drawer-search input {
    flex: 1;
    border: 0;
    background: transparent;
    font-family: var(--bmp-font);
    font-size: 16px;
    color: var(--bmp-ink);
}

.bmp-drawer-search input:focus {
    outline: none;
}

.bmp-drawer-search button {
    border: 0;
    padding: 4px;
    background: transparent;
    color: var(--bmp-ink);
    cursor: pointer;
}

.bmp-drawer-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bmp-drawer-nav-list li {
    margin: 0;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bmp-drawer.is-open .bmp-drawer-nav-list li {
    opacity: 1;
    transform: translateX(0);
}

.bmp-drawer.is-open .bmp-drawer-nav-list li:nth-child(1) { transition-delay: 0.08s; }
.bmp-drawer.is-open .bmp-drawer-nav-list li:nth-child(2) { transition-delay: 0.14s; }
.bmp-drawer.is-open .bmp-drawer-nav-list li:nth-child(3) { transition-delay: 0.2s; }
.bmp-drawer.is-open .bmp-drawer-nav-list li:nth-child(4) { transition-delay: 0.26s; }
.bmp-drawer.is-open .bmp-drawer-nav-list li:nth-child(5) { transition-delay: 0.32s; }

.bmp-drawer-nav-list a {
    display: block;
    padding: 12px 0;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--bmp-ink);
    text-decoration: none;
}

.bmp-drawer-nav-list .current-menu-item a {
    text-decoration: underline;
    text-decoration-color: var(--bmp-yellow);
    text-decoration-thickness: 6px;
    text-underline-offset: 4px;
}

.bmp-cta-block {
    justify-content: center;
    padding: 14px 18px;
    font-size: 15.5px;
}

.bmp-drawer-family {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--bmp-line);
}

.bmp-drawer-family h5 {
    margin: 0 0 10px;
    font-family: var(--bmp-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--bmp-ink-soft);
    text-transform: none;
}

.bmp-drawer-family-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.bmp-drawer-family-list li {
    margin: 0;
}

.bmp-drawer-family-list a {
    font-size: 14px;
    font-weight: 500;
    color: var(--bmp-ink-soft);
    text-decoration: none;
}

.bmp-drawer-family-list a:hover {
    color: var(--bmp-ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .bmp-header-inner {
        gap: 16px;
        padding: 0 18px;
        height: 60px;
    }

    .bmp-header.is-scrolled .bmp-header-inner {
        height: 56px;
    }

    .bmp-logo img,
    .bmp-header.is-scrolled .bmp-logo img {
        height: 38px;
    }

    .bmp-nav,
    .bmp-search,
    .bmp-header .bmp-cta {
        display: none;
    }

    .bmp-logo-wrap {
        flex: 1;
    }

    .bmp-burger {
        display: inline-flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bmp-header,
    .bmp-header-inner,
    .bmp-logo img,
    .bmp-nav-list a::after,
    .bmp-search-input,
    .bmp-cta,
    .bmp-cta .bmp-paw,
    .bmp-burger-bar,
    .bmp-drawer-backdrop,
    .bmp-drawer-panel,
    .bmp-drawer-nav-list li {
        transition: none;
    }
}
