/* Modern sticky header + mobile drawer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--site-nav-bg, #1e3a5f) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, #fff 12%, transparent);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}
.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px 16px;
  min-height: 56px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.site-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}
.site-brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.78;
  margin-top: 1px;
}
.site-nav-desktop {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.site-nav-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
  object-fit: cover;
}
.site-nav-desktop a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.site-nav-desktop a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.site-nav-desktop a.is-active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.site-nav-desktop a.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #fff);
}
.site-nav-desktop a.nav-cta {
  background: linear-gradient(135deg, #38bdf8, #0f62fe);
  color: #fff;
  box-shadow: 0 4px 16px rgba(15, 98, 254, 0.35);
}
.site-nav-desktop a.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 98, 254, 0.45);
}
.site-nav-desktop a.nav-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.site-nav-toggle {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}
.site-nav-toggle svg { display: block; }
.site-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 210;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.site-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.site-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(320px, 88vw);
  background: #fff;
  z-index: 220;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  padding: 16px;
}
[dir="rtl"] .site-nav-drawer { transform: translateX(-100%); }
.site-nav-drawer.is-open { transform: translateX(0); }
.site-nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.site-nav-drawer-head strong { font-size: 16px; color: #1e293b; }
.site-nav-drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.site-nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.site-nav-drawer-links a {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  transition: background 0.15s ease;
}
.site-nav-drawer-links a:hover { background: #f1f5f9; }
.site-nav-drawer-links a.nav-cta {
  background: linear-gradient(135deg, #38bdf8, #0f62fe);
  color: #fff;
}
.site-nav-drawer-links a.nav-ghost {
  border: 1px solid #e2e8f0;
}
@media (min-width: 900px) {
  .site-nav-desktop { display: flex; }
  .site-nav-toggle { display: none; }
}

/* Header chrome: social, dark mode, login */
.site-header-actions {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
  flex-shrink: 0;
}
.site-header-actions-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-header-social {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-end: 4px;
}
.site-header-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.site-header-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.site-header-social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
}
.site-chrome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.site-chrome-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.site-chrome-join-label {
  font-size: 12px;
  font-weight: 700;
  margin-inline-start: 2px;
}
@media (max-width: 520px) {
  .site-chrome-join-label { display: none; }
  .site-header-social { display: none; }
}
@media (min-width: 521px) and (max-width: 899px) {
  .site-header-social a { width: 30px; height: 30px; }
}
