/**
 * 글로벌 헤더(내비) · 푸터 — 톤·간격·호버 통일
 */
:root {
  --chrome-nav-bg: linear-gradient(165deg, #1e2230 0%, #12151f 55%, #0d0f14 100%);
  --chrome-nav-border: rgba(255, 255, 255, 0.07);
  --chrome-nav-text: rgba(255, 255, 255, 0.78);
  --chrome-nav-text-dim: rgba(255, 255, 255, 0.52);
  --chrome-footer-bg: linear-gradient(180deg, #0f1219 0%, #0a0c10 100%);
  --chrome-footer-accent: rgba(13, 110, 253, 0.55);
  --chrome-shadow-nav: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.22);
}

/* ── Sticky header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--chrome-nav-bg);
  border-bottom: 1px solid var(--chrome-nav-border);
  box-shadow: var(--chrome-shadow-nav);
}

.site-navbar {
  --bs-navbar-padding-y: 0.65rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  background: transparent !important;
}

.site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.12);
}

.site-navbar-brand {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff !important;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  gap: 0.65rem;
}

.site-navbar-brand:hover,
.site-navbar-brand:focus {
  color: #fff !important;
  opacity: 0.92;
}

.site-navbar-brand-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #c5dcff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.55rem;
  flex-shrink: 0;
}

.site-navbar-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.site-navbar-brand-name {
  font-weight: 600;
  color: #fff;
}

.site-navbar-brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome-nav-text-dim);
  margin-top: 0.1rem;
}

.site-navbar .nav-link {
  color: var(--chrome-nav-text) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.45rem 0.85rem !important;
  border-radius: 0.45rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.08);
}

.site-navbar .navbar-text {
  color: var(--chrome-nav-text-dim) !important;
  font-size: 0.8125rem;
}

.site-navbar .badge.role-badge {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding: 0.3em 0.55em;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92) !important;
}

.site-navbar .dropdown-menu {
  margin-top: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.65rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
  padding: 0.45rem;
  min-width: 12rem;
}

.site-navbar .dropdown-item {
  border-radius: 0.4rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
}

.site-navbar .dropdown-item:hover {
  background-color: rgba(13, 110, 253, 0.08);
}

.site-navbar .dropdown-item .bi {
  opacity: 0.75;
  width: 1.1rem;
  text-align: center;
}

.site-navbar .dropdown-item-text {
  padding: 0.35rem 0.75rem 0.5rem;
}

.site-navbar .dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.12em;
}

/* Guest CTA — subtle primary outline feel */
.site-nav-cta .nav-link:last-child {
  margin-left: 0.15rem;
  background: rgba(13, 110, 253, 0.22);
  border: 1px solid rgba(13, 110, 253, 0.45);
  color: #e7f0ff !important;
}

.site-nav-cta .nav-link:last-child:hover {
  background: rgba(13, 110, 253, 0.35);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  background: var(--chrome-footer-bg);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3rem !important;
  padding-top: 3rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--chrome-footer-accent) 35%,
    rgba(13, 202, 240, 0.45) 65%,
    transparent 100%
  );
  opacity: 0.9;
}

.site-footer__brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #a8c7ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  flex-shrink: 0;
}

.site-footer__brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.site-footer__lead {
  max-width: 32rem;
  line-height: 1.65;
}

.site-footer__heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.85rem;
}

.site-footer__link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.site-footer__link:hover {
  color: rgba(255, 255, 255, 0.92) !important;
  transform: translateX(2px);
}

.site-footer__list li + li {
  margin-top: 0.35rem;
}

.site-footer__note {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.38);
}

.site-footer__hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.25rem;
  opacity: 1;
}

.site-footer__bottom {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 991.98px) {
  .site-navbar-brand-sub {
    font-size: 0.65rem;
  }

  .site-footer {
    padding-top: 2.25rem;
  }
}
