/* 어른의 국어 · Unified Header v0.1
   Reference: /nakseo/assets/css/shop.css, .ns-site-header.
   Applied to WordPress (GeneratePress) only. */

.site-header {
  position: relative;
  z-index: 100;
  background: #fffefa !important;
  border-bottom: 1px solid #e5dfd3;
}
.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  max-width: 1390px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 40px !important;
  box-sizing: border-box;
}
/* The original title/logo markup remains intact for theme compatibility,
   but is not shown because the same shop-style brand is inserted above it. */
.site-header .site-logo,
.site-header .site-branding,
.site-header .site-branding-container {
  display: none !important;
}
.site-header .gw-unified-brand,
.site-header .gw-unified-brand:visited {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
  color: #243d46;
  font-family: Pretendard, 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.04em;
  white-space: nowrap;
  text-decoration: none;
}
.site-header .gw-unified-brand:hover,
.site-header .gw-unified-brand:focus {
  color: #243d46;
}
.site-header .gw-unified-brand-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #2c584c;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-family: Georgia, 'Noto Serif KR', serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}
.site-header .gw-unified-brand:focus-visible {
  outline: 3px solid #89ae9f;
  outline-offset: 3px;
}
/* GeneratePress renders the existing primary menu inside .inside-header
   when nav-float-right is enabled by the child theme filter. */
.site-header .main-navigation,
.site-header .main-navigation .inside-navigation {
  background: transparent !important;
}
.site-header .main-navigation {
  margin-left: auto;
  flex: 0 1 auto;
}
.site-header .main-navigation .main-nav > ul {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.site-header .main-navigation .main-nav > ul > li > a,
.site-header .main-navigation .main-nav > ul > li > a:visited {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  color: #53615b;
  font-family: Pretendard, 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.site-header .main-navigation .main-nav > ul > li:hover > a,
.site-header .main-navigation .main-nav > ul > li > a:focus-visible,
.site-header .main-navigation .main-nav > ul > li.current-menu-item > a,
.site-header .main-navigation .main-nav > ul > li.current-menu-ancestor > a {
  color: #315b50;
}
/* Existing GeneratePress submenu, menu-toggle and keyboard behavior remain. */
@media (max-width: 1080px) {
  .site-header .inside-header { padding: 0 25px !important; }
}
@media (max-width: 900px) and (min-width: 769px) {
  /* Keep GeneratePress desktop menu usable on compact laptops/tablets. */
  .site-header .inside-header { gap: 16px; }
  .site-header .main-navigation .main-nav > ul { gap: 14px; }
  .site-header .main-navigation .main-nav > ul > li > a { font-size: 13px; }
}
@media (max-width: 768px) {
  .site-header .inside-header {
    min-height: 62px;
    padding: 0 18px !important;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .site-header .gw-unified-brand { font-size: 16px; }
  .site-header .main-navigation { margin-left: auto; }
  .site-header .main-navigation .menu-toggle {
    min-height: 44px;
    color: #243d46;
    background: transparent;
  }
  /* Retain GP's own mobile hamburger behavior. Never show collapsed links. */
  .site-header .main-navigation:not(.toggled) .main-nav > ul { display: none; }
  .site-header .main-navigation.toggled .main-nav > ul { display: block; }
  .site-header .main-navigation .main-nav > ul > li > a {
    min-height: 44px;
    padding: 11px 16px;
    font-size: 15px;
  }
}
