.atv-family-nav {
  --family-nav-accent: #17243a;
  position: fixed;
  left: 0;
  right: 0;
  top: 78px;
  z-index: 60;
  border-bottom: 1px solid rgba(24, 34, 55, .12);
  background: rgba(255, 253, 249, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header { z-index: 1000 !important; }
.atv-family-nav + main { padding-top: 54px; }

.atv-family-nav--columns { --family-nav-accent: #237f91; }
.atv-family-nav--partners { --family-nav-accent: #315d8b; }
.atv-family-nav--help { --family-nav-accent: #8f456b; }

.atv-family-nav__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(1180px, calc(100% - 48px));
  min-height: 54px;
  margin-inline: auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.atv-family-nav__inner::-webkit-scrollbar { display: none; }

.atv-family-nav a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  color: #687180;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.atv-family-nav a:hover,
.atv-family-nav a:focus-visible {
  color: #17243a;
  background: #fff;
  outline: 0;
  transform: translateY(-1px);
}

.atv-family-nav a[aria-current="page"] {
  color: #fff;
  background: var(--family-nav-accent);
  box-shadow: 0 8px 20px rgba(20, 32, 54, .16);
}

@media (max-width: 860px) {
  html,
  body { overflow-x: visible !important; }
  @supports (overflow: clip) {
    html,
    body { overflow-x: clip !important; }
  }
  .atv-family-nav { top: 70px; }
  .atv-family-nav + main { padding-top: 50px; }
  .atv-family-nav__inner {
    width: 100%;
    min-height: 50px;
    padding-inline: 14px;
  }
  .atv-family-nav a { padding: 8px 12px; }
}

@media (prefers-color-scheme: dark) {
  html:not(.atv-light) .atv-family-nav {
    border-bottom-color: rgba(255, 255, 255, .12);
    background: rgba(16, 25, 30, .92);
  }
  html:not(.atv-light) .atv-family-nav a { color: #b7c1ca; }
  html:not(.atv-light) .atv-family-nav a[aria-current="page"] { color: #fff; }
}

html.atv-dark .atv-family-nav {
  border-bottom-color: rgba(255, 255, 255, .12);
  background: rgba(16, 25, 30, .92);
}
html.atv-dark .atv-family-nav a { color: #b7c1ca; }
html.atv-dark .atv-family-nav a[aria-current="page"] { color: #fff; }
