/* YUNSHANG HOME — centered brand across all pages */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.site-header-left,
.site-header-right {
  flex: 1;
  display: flex;
  align-items: center;
  z-index: 1;
  min-width: 0;
}
.site-header-left { justify-content: flex-start; gap: 12px; }
.site-header-right { justify-content: flex-end; gap: 16px; }

.site-brand,
a.site-brand,
h1.site-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  font-family: 'EB Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: #171816;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
  pointer-events: auto;
}
.site-brand.site-brand-lg {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.site-brand.site-brand-footer {
  position: static;
  transform: none;
  text-align: center;
  display: block;
  width: 100%;
}

/* Policy / legal page headers */
header.policy-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbf9f6;
  border-bottom: 0.5px solid #D4B896;
  padding: 16px 64px;
  min-height: 60px;
}
header.policy-header .policy-nav-left,
header.policy-header .policy-nav-right {
  flex: 1;
  z-index: 1;
}
header.policy-header .policy-nav-left { text-align: left; }
header.policy-header .policy-nav-right { text-align: right; }
header.policy-header .logo,
header.policy-header a.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  font-family: 'EB Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: #171816;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (max-width: 640px) {
  header.policy-header { padding: 16px 20px; }
  .site-brand, header.policy-header .logo { font-size: 22px; }
}

/* ── Mobile navigation ── */
.announcement-bar {
  line-height: 1.5;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 26, 0.5);
  z-index: 9500;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #fbf9f6;
  z-index: 9600;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: left 0.3s ease;
}

.mobile-nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 0.5px solid #D4B896;
}

.mobile-nav-drawer-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #464742;
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #464742;
  padding: 4px;
  line-height: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 0;
}

.mobile-nav-lang {
  display: flex;
  align-items: center;
  gap: 0;
  border: 0.5px solid #D4B896;
  width: fit-content;
  margin-bottom: 28px;
}

.mobile-nav-lang button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #464742;
  padding: 8px 14px;
}

.mobile-nav-lang span {
  color: #D4B896;
  line-height: 1;
}

.mobile-nav-links > a,
.mobile-nav-links > button.mobile-nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #464742;
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 0.5px solid #e4e2df;
  cursor: pointer;
  padding: 18px 0;
  text-align: left;
  width: 100%;
}

body.mobile-nav-open {
  overflow: hidden;
}

body.mobile-nav-open .mobile-nav-overlay {
  display: block;
}

body.mobile-nav-open .mobile-nav-drawer {
  left: 0;
}

@media (max-width: 768px) {
  .nav-desktop-only {
    display: none !important;
  }

  .site-header {
    min-height: 52px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-header-left,
  .site-header-right {
    flex: 0 0 auto;
    min-width: auto;
  }

  .site-header-right {
    gap: 0;
  }

  .site-brand.site-brand-lg {
    font-size: clamp(17px, 4.8vw, 22px);
    letter-spacing: 0.04em;
    max-width: calc(100vw - 96px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .announcement-bar {
    font-size: 10px;
    line-height: 1.45;
    padding: 6px 12px;
    letter-spacing: 0.06em;
  }
}

@media (min-width: 769px) {
  .mobile-nav-overlay,
  .mobile-nav-drawer {
    display: none !important;
  }
}
