/**
 * NCDE Global UI Standard v1.0 (LOCK)
 * Canonical tokens for the global header, footer, and Emerald Glass surface.
 */
:root {
  --ncde-header-halo-gold: rgba(240, 211, 107, .32);
  --ncde-header-icon-gold: #f0d36b;
  --ncde-emerald-glass-bg: rgba(4, 47, 37, .72);
  --ncde-emerald-glass-bg-soft: rgba(4, 47, 37, .46);
  --ncde-emerald-glass-border: rgba(236, 207, 126, .22);
  --ncde-emerald-glass-highlight: rgba(255, 255, 255, .08);
  --ncde-emerald-glass-shadow: 0 24px 70px rgba(0, 14, 10, .32);
  --ncde-emerald-glass-blur: 24px;
  --ncde-emerald-glass-radius: 24px;
}

/* Global header signature: rotating light around the hamburger capsule. */
.ncde-global-header .gateway-menu-toggle {
  overflow: hidden;
  isolation: isolate;
}

.ncde-global-header .gateway-menu-toggle::after {
  content: "";
  position: absolute;
  inset: -55%;
  z-index: -1;
  background: conic-gradient(from 90deg, transparent 0 72%, var(--ncde-header-halo-gold), transparent 90%);
  animation: ncdeGlobalHeaderHalo 7s linear infinite;
}

.ncde-global-header .menu-lines {
  width: 24px;
  height: 20px;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
}

.ncde-global-header .menu-lines i {
  width: 100%;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--ncde-header-icon-gold);
  box-shadow: 0 0 10px rgba(216, 177, 62, .34);
  transition: transform .25s ease, opacity .2s ease, width .25s ease;
}

.ncde-global-header .gateway-menu-toggle[aria-expanded="true"] .menu-lines i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.ncde-global-header .gateway-menu-toggle[aria-expanded="true"] .menu-lines i:nth-child(2) { width: 0; opacity: 0; }
.ncde-global-header .gateway-menu-toggle[aria-expanded="true"] .menu-lines i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@keyframes ncdeGlobalHeaderHalo {
  to { transform: rotate(1turn); }
}

.ncde-emerald-glass {
  background:
    linear-gradient(145deg, var(--ncde-emerald-glass-highlight), transparent 34%),
    var(--ncde-emerald-glass-bg);
  border: 1px solid var(--ncde-emerald-glass-border);
  border-radius: var(--ncde-emerald-glass-radius);
  box-shadow: var(--ncde-emerald-glass-shadow);
  -webkit-backdrop-filter: blur(var(--ncde-emerald-glass-blur)) saturate(1.12);
  backdrop-filter: blur(var(--ncde-emerald-glass-blur)) saturate(1.12);
}

.ncde-global-header,
.ncde-global-footer {
  --ncde-component-status: "locked-v1";
}

@media (prefers-reduced-transparency: reduce) {
  .ncde-emerald-glass {
    background: #073c30;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ncde-global-header .gateway-menu-toggle::after { animation: none !important; }
}
