:root {
  --seo-header-ink: var(--pu-color-ink, #111317);
  --seo-header-line: var(--pu-color-line, rgba(17, 19, 23, .11));
  --seo-header-lime: var(--pu-color-lime, #c9ff23);
  --seo-header-muted: var(--pu-color-muted, #5d6862);
}

.site-header.seo-global-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: auto;
  min-height: 72px;
  border-bottom: 1px solid var(--seo-header-line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--seo-header-ink);
  font-family: var(--pu-font-sans, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", "Helvetica Neue", Arial, sans-serif);
  font-size: 16px;
  backdrop-filter: blur(14px);
}

.seo-global-header__inner {
  width: min(var(--pu-shell, 1240px), calc(100% - (var(--pu-gutter, 24px) * 2)));
  min-height: 72px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}

.seo-global-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.seo-global-brand img {
  width: 132px;
  height: auto;
  display: block;
}

.seo-global-nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
}

.seo-global-nav > a {
  position: relative;
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: #2d3438;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.seo-global-nav > a::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: -1px;
  left: 13px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}

.seo-global-nav > a:hover,
.seo-global-nav > a:focus-visible,
.seo-global-nav > a.is-current {
  color: #2f7309;
}

.seo-global-nav > a.is-current::after {
  background: #79d51e;
}

.seo-global-nav > a[data-global-section="bizfit"] {
  min-height: 38px;
  align-self: center;
  margin-left: 6px;
  border-radius: 999px;
  padding-right: 13px;
  padding-left: 13px;
  background: var(--seo-header-ink);
  color: #fff;
}

.seo-global-nav > a[data-global-section="bizfit"]::after {
  display: none;
}

.seo-global-nav > a[data-global-section="bizfit"]:hover,
.seo-global-nav > a[data-global-section="bizfit"]:focus-visible,
.seo-global-nav > a[data-global-section="bizfit"].is-current {
  background: var(--seo-header-lime);
  color: var(--seo-header-ink);
}

.seo-global-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.seo-global-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--seo-header-line);
  border-radius: var(--pu-radius-control, 12px);
  padding: 0 16px;
  color: var(--seo-header-ink);
  background: #fff;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.seo-global-action--start {
  border-color: #83dd24;
  background: var(--seo-header-lime);
}

.seo-global-action--download {
  border-color: #83dd24;
  background: var(--seo-header-lime);
  color: #111418;
}

.seo-global-action--download:hover,
.seo-global-action--download:focus-visible {
  border-color: #6fca17;
  background: #adff46;
}

.seo-global-menu-toggle,
.seo-global-nav__mobile-actions {
  display: none;
}

.seo-context-nav {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--seo-header-line);
  background: #f7faf6;
}

.seo-context-nav__inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto;
}

.seo-context-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--seo-header-muted);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.seo-context-nav a:hover,
.seo-context-nav a:focus-visible,
.seo-context-nav a.is-current {
  color: #235d09;
  background: #e7f8d8;
}

@media (max-width: 1120px) {
  .seo-global-header__inner {
    grid-template-columns: 140px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .seo-global-nav > a {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 13px;
  }

  .seo-global-nav > a::after {
    right: 8px;
    left: 8px;
  }

  .seo-global-action {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 1100px) {
  .site-header.seo-global-header,
  .seo-global-header__inner {
    min-height: 64px;
  }

  .seo-global-header__inner {
    position: relative;
    width: calc(100% - 28px);
    display: flex;
    justify-content: space-between;
  }

  .seo-global-brand img {
    width: 120px;
  }

  .seo-global-actions > .seo-global-action {
    display: none;
  }

  .seo-global-menu-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    padding: 0;
    background: #fff;
    box-shadow:
      inset 0 0 0 2px #fff,
      inset 0 0 0 3px var(--seo-header-line);
    color: var(--seo-header-ink);
    cursor: pointer;
  }

  .seo-global-menu-toggle span,
  .seo-global-menu-toggle::before,
  .seo-global-menu-toggle::after {
    content: "";
    width: 18px;
    height: 2px;
    flex: 0 0 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .seo-global-menu-toggle span {
    margin: 0;
  }

  .seo-global-header.is-menu-open .seo-global-menu-toggle::before {
    transform: translateY(7px) rotate(45deg);
  }

  .seo-global-header.is-menu-open .seo-global-menu-toggle span {
    opacity: 0;
  }

  .seo-global-header.is-menu-open .seo-global-menu-toggle::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .seo-global-nav {
    position: absolute;
    top: 64px;
    right: -14px;
    left: -14px;
    z-index: 110;
    display: none;
    max-height: calc(100svh - 64px);
    overflow-y: auto;
    border-top: 1px solid var(--seo-header-line);
    border-bottom: 1px solid var(--seo-header-line);
    padding: 10px 14px calc(16px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 18px 36px rgba(17, 20, 24, 0.14);
  }

  .seo-global-header.is-menu-open .seo-global-nav {
    display: grid;
  }

  .seo-global-nav > a {
    min-height: 48px;
    justify-content: space-between;
    border-bottom: 1px solid #edf1ee;
    padding: 0 10px;
    font-size: 15px;
  }

  .seo-global-nav > a::after {
    top: 50%;
    right: 8px;
    bottom: auto;
    left: auto;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    transform: translateY(-50%);
  }

  .seo-global-nav > a[data-global-section="bizfit"] {
    min-height: 50px;
    align-self: stretch;
    justify-content: space-between;
    margin: 8px 0 0;
    border: 1px solid #cfeab7;
    border-radius: 10px;
    padding: 0 12px;
    background: #effbE5;
    color: #235d09;
  }

  .seo-global-nav__mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
  }

  .seo-global-nav__mobile-actions > .seo-global-action:first-child {
    grid-column: 1 / -1;
  }

  .seo-global-nav__mobile-actions .seo-global-action {
    min-height: 46px;
  }

  .seo-context-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .seo-context-nav::-webkit-scrollbar {
    display: none;
  }

  .seo-context-nav__inner {
    width: max-content;
    min-width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-global-menu-toggle span,
  .seo-global-menu-toggle::before,
  .seo-global-menu-toggle::after {
    transition: none;
  }
}
