[data-site-topbar] {
  display: block;
  height: 80px;
  flex-shrink: 0;
}

[data-site-topbar="home"] {
  height: 0;
}

.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 13, 0.88);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    backdrop-filter 220ms ease;
}

.site-topbar-home {
  border-bottom-color: transparent;
  background: rgba(9, 10, 15, 0);
  box-shadow: none;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
}

.site-topbar-home.is-scrolled,
.site-topbar-home.is-menu-open {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 13, 0.88);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-topbar-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-topbar-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.site-topbar-logo {
  width: 98px;
  height: 64px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-topbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.16);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42));
}

.site-topbar-text {
  min-width: 0;
}

.site-topbar-kicker {
  margin: 0;
  color: #d8b16a;
  font-size: 0.68rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-topbar-title {
  margin: 0;
  overflow: hidden;
  color: #fff4d9;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-topbar-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-topbar-link,
.site-topbar-cta {
  white-space: nowrap;
  text-decoration: none;
  transition: 180ms ease;
}

.site-topbar-link {
  border-radius: 6px;
  color: #d9d2c5;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  padding: 9px 12px;
}

.site-topbar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.site-topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 177, 106, 0.55);
  border-radius: 6px;
  background: #d8b16a;
  color: #17120a;
  padding: 10px 20px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  box-shadow: none;
}

.site-topbar-cta:hover {
  background: #f2d293;
}

.site-topbar-menu-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: transparent;
  color: #f4ead4;
  cursor: pointer;
  transition: 180ms ease;
}

.site-topbar-menu-button:hover {
  border-color: rgba(216, 177, 106, 0.55);
  background: rgba(216, 177, 106, 0.1);
}

.site-topbar-menu-button svg {
  width: 20px;
  height: 20px;
}

.site-topbar-mobile {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 13, 0.96);
  padding: 12px 16px 16px;
}

.site-topbar-mobile.is-open {
  display: block;
}

.site-topbar-mobile-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.site-topbar-mobile a {
  border-radius: 6px;
  padding: 12px;
  color: #ead8b3;
  font-weight: 600;
  text-decoration: none;
}

.site-topbar-mobile a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.site-topbar-mobile .site-topbar-mobile-cta {
  background: #d8b16a;
  color: #17120a;
  text-align: center;
  font-weight: 700;
}

@media (min-width: 640px) {
  .site-topbar-inner,
  .site-topbar-mobile {
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-topbar-title {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .site-topbar-inner,
  .site-topbar-mobile {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 768px) {
  .site-topbar-menu-button {
    display: none;
  }
}

@media (max-width: 639px) {
  .site-topbar-nav {
    display: none;
  }

  .site-topbar-customer .site-topbar-nav {
    display: flex;
  }
}

.site-topbar-theme,
.site-topbar-logout {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: 180ms ease;
}

/* topbar button:hover → live.css 통일 규칙 */

.site-topbar-theme svg,
.site-topbar-logout svg {
  width: 20px;
  height: 20px;
}

.site-topbar-logout {
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: 180ms ease;
}

@media (max-width: 639px) {
  .site-topbar-logo {
    width: 88px;
    height: 58px;
  }
}

/* 20260603 complete redesign */
.site-topbar {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(11, 12, 16, 0.82);
  box-shadow: none;
  color: #fff4d9;
}

.site-topbar-home {
  border-bottom-color: transparent;
  background: transparent;
}

.site-topbar-home.is-scrolled,
.site-topbar-home.is-menu-open {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(11, 12, 16, 0.82);
  box-shadow: none;
}

.site-topbar-inner {
  max-width: 1180px;
  height: 76px;
  padding-left: 20px;
  padding-right: 20px;
}

.site-topbar-brand {
  gap: 10px;
}

.site-topbar-logo {
  width: 58px;
  height: 58px;
}

.site-topbar-logo img {
  transform: scale(1.08);
  filter: none;
}

.site-topbar-kicker {
  color: #d8b16a;
  font-size: 0.62rem;
  line-height: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.site-topbar-title {
  color: #fff4d9;
  font-size: 1rem;
  line-height: 1.35rem;
  font-weight: 800;
}

.site-topbar-nav {
  gap: 6px;
}

.site-topbar-link {
  border-radius: 999px;
  color: #e7dccb;
  padding: 10px 13px;
}

.site-topbar-link:hover {
  color: #fff4d9;
  background: rgba(255, 255, 255, 0.08);
}

.site-topbar-cta,
.site-topbar-mobile .site-topbar-mobile-cta {
  border-radius: 999px;
  border-color: #d8b16a;
  background: #d8b16a;
  color: #15110a;
}

.site-topbar-menu-button {
  border-radius: 999px;
}

.site-topbar-mobile {
  background: rgba(11, 12, 16, 0.94);
}

.site-topbar-mobile a {
  border-radius: 12px;
}

@media (max-width: 639px) {
  .site-topbar-inner {
    height: 70px;
  }

  .site-topbar-logo {
    width: 50px;
    height: 50px;
  }

  .site-topbar-kicker {
    display: none;
  }
}

/* 20260603 final clean topbar direction */
.site-topbar-home,
.site-topbar-home.is-scrolled,
.site-topbar-home.is-menu-open {
  border-bottom-color: rgba(23, 23, 23, 0.08);
  background: rgba(238, 241, 245, 0.84);
  color: #171717;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-topbar-home .site-topbar-title,
.site-topbar-home .site-topbar-link {
  color: #171717;
}

.site-topbar-home .site-topbar-kicker {
  color: #b78436;
}

.site-topbar-home .site-topbar-link:hover {
  background: rgba(23, 23, 23, 0.06);
  color: #171717;
}

.site-topbar-home .site-topbar-menu-button {
  border-color: rgba(23, 23, 23, 0.14);
  color: #171717;
}

.site-topbar-home .site-topbar-mobile {
  border-top-color: rgba(23, 23, 23, 0.08);
  background: rgba(238, 241, 245, 0.96);
}

.site-topbar-home .site-topbar-mobile a {
  color: #171717;
}

/* 고객 전용: 라이트 모드 상단바 (메인 페이지와 동일) */
html:not(.theme-dark) body.school-customer-page:not(.theme-dark) .site-topbar-customer {
  border-bottom-color: rgba(26, 29, 36, 0.12);
  background: rgba(238, 241, 245, 0.92);
  color: #1a1d24;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(20, 26, 40, 0.08);
}

html:not(.theme-dark) body.school-customer-page:not(.theme-dark) .site-topbar-customer .site-topbar-title {
  color: #1a1d24;
}

html:not(.theme-dark) body.school-customer-page:not(.theme-dark) .site-topbar-customer .site-topbar-kicker {
  color: #b78436;
}

/* 라이트: 메인 .home-topbar.is-scrolled .home-theme-toggle 과 1:1 */
html:not(.theme-dark) body.school-customer-page:not(.theme-dark) .site-topbar-customer .site-topbar-theme,
html:not(.theme-dark) body.school-customer-page:not(.theme-dark) .site-topbar-customer .site-topbar-logout {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(26, 29, 36, 0.12);
  border-radius: 12px;
  background: transparent;
  color: #1a1d24;
  box-shadow: none;
}

html:not(.theme-dark) body.school-customer-page:not(.theme-dark) .site-topbar-customer .site-topbar-theme svg,
html:not(.theme-dark) body.school-customer-page:not(.theme-dark) .site-topbar-customer .site-topbar-logout svg {
  width: 20px;
  height: 20px;
}

/* 테마/로그아웃 호버 → live.css 와 동일 */

/* 다크: 메인 .home-topbar.is-scrolled 와 동일 */
html.theme-dark body.school-customer-page .site-topbar-customer,
body.school-customer-page.theme-dark .site-topbar-customer {
  border-bottom: 1px solid #353b48;
  background: rgba(20, 22, 28, 0.92);
  color: #f4ead4;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html.theme-dark body.school-customer-page .site-topbar-customer .site-topbar-title,
body.school-customer-page.theme-dark .site-topbar-customer .site-topbar-title {
  color: #f4ead4;
}

html.theme-dark body.school-customer-page .site-topbar-customer .site-topbar-kicker,
body.school-customer-page.theme-dark .site-topbar-customer .site-topbar-kicker {
  color: #d8b16a;
}

/* 다크: 메인 .home-topbar nav button.home-theme-toggle 과 1:1 (스크롤 전 기본) */
html.theme-dark body.school-customer-page .site-topbar-customer .site-topbar-theme,
html.theme-dark body.school-customer-page .site-topbar-customer .site-topbar-logout,
body.school-customer-page.theme-dark .site-topbar-customer .site-topbar-theme,
body.school-customer-page.theme-dark .site-topbar-customer .site-topbar-logout {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  background: rgba(8, 9, 13, 0.55);
  color: #fff;
  box-shadow: none;
}

html.theme-dark body.school-customer-page .site-topbar-customer .site-topbar-theme svg,
html.theme-dark body.school-customer-page .site-topbar-customer .site-topbar-logout svg,
body.school-customer-page.theme-dark .site-topbar-customer .site-topbar-theme svg,
body.school-customer-page.theme-dark .site-topbar-customer .site-topbar-logout svg {
  width: 20px;
  height: 20px;
}


