/*
 * new-v2.html 전용 스타일입니다.
 * 기존 홈페이지에는 적용되지 않으며, 통합 페이지의 구간 연결과 바로가기만 담당합니다.
 */

.new-v2-page {
  --new-v2-nav-height: 58px;
}

.new-v2-page #arex,
.new-v2-page #pegms,
.new-v2-page #wall {
  scroll-margin-top: calc(74px + var(--new-v2-nav-height));
}

.new-v2-jump-nav {
  position: sticky;
  top: 74px;
  z-index: 20;
  min-height: var(--new-v2-nav-height);
  border-top: 1px solid #dfe5ed;
  border-bottom: 1px solid #dfe5ed;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(24, 31, 42, 0.08);
  backdrop-filter: blur(12px);
}

.new-v2-jump-nav .section-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: var(--new-v2-nav-height);
  padding-top: 0;
  padding-bottom: 0;
}

.new-v2-jump-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0 30px;
  color: #556274;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.new-v2-jump-nav a::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -1px;
  left: 26px;
  height: 3px;
  background: #0f6ee9;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.new-v2-jump-nav a:hover,
.new-v2-jump-nav a:focus-visible,
.new-v2-jump-nav a[aria-current="page"] {
  color: #0f6ee9;
}

.new-v2-jump-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.new-v2-page .new-v2-pegms-start,
.new-v2-page .new-v2-wall-start {
  position: relative;
  border-top: 8px solid #eef2f7;
}

.new-v2-page .new-v2-pegms-start::before,
.new-v2-page .new-v2-wall-start::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: clamp(90px, 12vw, 180px);
  height: 8px;
  background: #0f6ee9;
}

.new-v2-page .new-v2-wall-start::before {
  background: #151b26;
}

@media (max-width: 780px) {
  .new-v2-page {
    --new-v2-nav-height: 52px;
  }

  .new-v2-page #arex,
  .new-v2-page #pegms,
  .new-v2-page #wall {
    scroll-margin-top: calc(64px + var(--new-v2-nav-height));
  }

  .new-v2-jump-nav {
    top: 64px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .new-v2-jump-nav::-webkit-scrollbar {
    display: none;
  }

  .new-v2-jump-nav .section-inner {
    justify-content: flex-start;
    width: max-content;
    min-width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .new-v2-jump-nav a {
    flex: 0 0 auto;
    min-width: 126px;
    padding: 0 18px;
    font-size: 14px;
  }

  .new-v2-jump-nav a::after {
    right: 16px;
    left: 16px;
  }
}
