/* Shared Classic+ navigation. Keep its colors consistent across page themes. */
.site-header {
  --text: #eef1f5;
  --muted: #bcc7d6;
  --panel: #181f2c;
  --panel-2: #212a3b;
  --border: #303c4e;
  --accent-2: #a2b4fb;
  --vox-text-shadow: 1px 2px 0 #0006;
  padding-inline: 32px;
  background: linear-gradient(180deg, #192947, #253d63);
  border-bottom: 2px solid #537947;
}
.site-header-inner {
  max-width: 1160px;
  min-height: 88px;
  padding-block: 17px;
  gap: 24px;
}
.site-header .brand {
  flex: none;
  gap: 12px;
  font-size: 12px;
  line-height: 1.8;
  white-space: nowrap;
}
.site-header .brand-logo { width: 30px; height: 30px; filter: none; border-radius: 3px; }
.site-header .header-right { flex: none; }

/* Reserve actual space for the sky, so it never drifts over the logo or links. */
.site-header::before, .site-header::after { content: none; }
.header-sky { position: relative; flex: 1; min-width: 0; height: 40px; overflow: hidden; pointer-events: none; }
.header-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='40'%3E%3Cg fill='%23ffffff'%3E%3Crect x='8' y='26' width='56' height='10'/%3E%3Crect x='20' y='19' width='32' height='7'/%3E%3Crect x='158' y='26' width='50' height='9'/%3E%3Crect x='170' y='20' width='26' height='6'/%3E%3C/g%3E%3C/svg%3E") center / 220px 40px no-repeat;
  opacity: .2;
}
.header-sky::after {
  content: "";
  position: absolute;
  top: 5px;
  inset-inline-start: calc(50% - 11px);
  width: 22px;
  height: 22px;
  border: 2px solid #c2cbe2;
  border-radius: 3px;
  background:
    radial-gradient(circle at 64% 36%, #96a5cd8c 0 3px, transparent 4px),
    radial-gradient(circle at 38% 61%, #96a5cd73 0 2px, transparent 3px), #d7deef;
  box-shadow: 0 0 0 5px #c8d4f015;
  opacity: .65;
}
.site-header nav { box-shadow: none; }
.site-header nav > a,
.site-header .nav-language-label,
.site-header .theme-toggle-label { font: 600 15px/1.5 system-ui, sans-serif; }
.site-header nav > .btn {
  background: #7389d2;
  border-color: #a7b8f4;
  color: #fff;
  font: 10px/1.8 var(--pixel);
}
.site-header .theme-toggle { min-width: 44px; min-height: 44px; }
.site-header .theme-icon { flex: none; vertical-align: middle; }

:root[data-theme="light"] .site-header {
  --text: #213046;
  --muted: #46586b;
  --panel: #fff;
  --panel-2: #e8eef3;
  --border: #c3cfdb;
  --accent-2: #405cac;
  --vox-text-shadow: none;
  background: linear-gradient(#83c8f7, #c2e7fa);
  border-bottom-color: #6a994c;
}
:root[data-theme="light"] .header-sky::before { opacity: .8; }
:root[data-theme="light"] .header-sky::after {
  background: #ffe36b;
  border-color: #ffd23f;
  box-shadow: 0 0 0 5px #ffe16e33;
  opacity: 1;
}
@media (min-width: 681px) {
  .site-header nav, :root[data-theme="light"] .site-header nav {
    background: none;
    border: 0;
    padding: 0;
    gap: 22px;
  }
  .site-header nav > .btn { padding: 11px 14px; }
}
@media (max-width: 1050px) {
  .header-sky { display: none; }
}
@media (min-width: 681px) and (max-width: 920px) {
  .site-header .brand { font-size: 10px; gap: 9px; }
  .site-header nav { gap: 12px; }
}
@media (max-width: 680px) {
  .site-header { padding-inline: 20px; }
  .site-header-inner { min-height: 75px; padding-block: 17px; gap: 13px; }
  .site-header .brand { font-size: 10px; gap: 10px; }
  .site-header nav { background: var(--panel); border-bottom: 1px solid var(--border); }
}
:root[lang="ar"] .site-header { --pixel: Tahoma, Arial, sans-serif; }
:root[lang="ar"] .site-header nav > .btn { font-size: 14px; letter-spacing: normal; }
