@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Unbounded:wght@700;900&display=swap");

:root {
  --mw4-bg: #050508;
  --mw4-fg: #f2eadf;
  --mw4-red: #ff2d55;
  --mw4-cyan: #00e5ff;
  --mw4-yellow: #ffe600;
  --mw4-purple: #b000ff;
  --mw4-orange: #ff7900;
  --mw4-height: 70px;
}

html.mw4-menu-open,
html.mw4-menu-open body {
  overflow: hidden !important;
}

body.mw4-active {
  padding-top: var(--mw4-height) !important;
}

#mw-global-header-v4,
#mw-global-header-v4 * {
  box-sizing: border-box !important;
}

#mw-global-header-v4 {
  position: relative !important;
  z-index: 2147483600 !important;
  display: block !important;
  font-family: "Space Mono", monospace !important;
}

#mw4-head {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 2147483602 !important;
  height: var(--mw4-height) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)) !important;
  background: rgba(5, 5, 8, 0.982) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

#mw4-logo {
  display: inline-flex !important;
  align-items: baseline !important;
  min-height: 44px !important;
  color: var(--mw4-fg) !important;
  font-family: "Unbounded", "Arial Black", Impact, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0.005em !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
}

#mw4-logo span {
  color: var(--mw4-red) !important;
  font: inherit !important;
}

#mw4-actions {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  margin-left: auto !important;
}

#mw4-actions > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  min-height: 44px !important;
  color: rgba(242, 234, 223, 0.66) !important;
  font: 700 12px/1 "Space Mono", monospace !important;
  letter-spacing: 0.2em !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

#mw4-actions > a.mw4-mdd {
  color: var(--mw4-red) !important;
}

#mw4-toggle {
  position: relative !important;
  width: 58px !important;
  height: 54px !important;
  min-width: 58px !important;
  min-height: 54px !important;
  margin: 0 0 0 2px !important;
  padding: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 0 !important;
  background: #09090d !important;
  color: rgba(242, 234, 223, 0.84) !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

#mw4-toggle::before,
#mw4-toggle::after,
#mw4-toggle span {
  content: "" !important;
  position: absolute !important;
  right: 16px !important;
  left: 16px !important;
  height: 1px !important;
  background: currentColor !important;
  transition: opacity 0.2s ease, top 0.2s ease, transform 0.2s ease !important;
}

#mw4-toggle::before {
  top: 19px !important;
}

#mw4-toggle span {
  top: 26px !important;
}

#mw4-toggle::after {
  top: 33px !important;
}

#mw4-toggle[aria-expanded="true"] span {
  opacity: 0 !important;
}

#mw4-toggle[aria-expanded="true"]::before {
  top: 26px !important;
  transform: rotate(45deg) !important;
}

#mw4-toggle[aria-expanded="true"]::after {
  top: 26px !important;
  transform: rotate(-45deg) !important;
}

#mw4-panel {
  position: fixed !important;
  inset: var(--mw4-height) 0 0 0 !important;
  z-index: 2147483601 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow: auto !important;
  padding: clamp(48px, 7vh, 84px) 20px max(48px, env(safe-area-inset-bottom)) !important;
  background: rgba(5, 5, 8, 0.992) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

#mw4-panel.mw4-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#mw4-panel nav {
  width: min(100%, 820px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: clamp(20px, 3.5vh, 36px) !important;
  text-align: center !important;
}

#mw4-panel nav a {
  display: block !important;
  max-width: 100% !important;
  color: var(--mw4-fg) !important;
  font: 900 clamp(30px, 6vw, 62px) / 0.98 "Unbounded", "Arial Black", Impact, sans-serif !important;
  letter-spacing: 0.025em !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

#mw4-panel nav a:nth-child(2) { color: var(--mw4-cyan) !important; }
#mw4-panel nav a:nth-child(3) { color: var(--mw4-yellow) !important; }
#mw4-panel nav a:nth-child(4) { color: var(--mw4-purple) !important; }
#mw4-panel nav a:nth-child(5) { color: var(--mw4-red) !important; }
#mw4-panel nav a:nth-child(6) { color: var(--mw4-orange) !important; }
#mw4-panel nav a:nth-child(7) { color: var(--mw4-cyan) !important; }
#mw4-panel nav a:nth-child(8) { color: var(--mw4-yellow) !important; }
#mw4-panel nav a:nth-child(9) { color: var(--mw4-purple) !important; }

#mw4-logo:focus-visible,
#mw4-actions a:focus-visible,
#mw4-toggle:focus-visible,
#mw4-panel a:focus-visible {
  outline: 2px solid var(--mw4-cyan) !important;
  outline-offset: 3px !important;
}

/* Definitive second-header removal. The runtime also removes these nodes. */
body.mw4-active > header,
body.mw4-active > .top,
body.mw4-active > .site-head,
body.mw4-active > .site-header,
body.mw4-active > #siteHeader,
body.mw4-active > .menu-panel,
body.mw4-active > .mobile-menu,
body.mw4-active > .mobile-nav,
body.mw4-active > .hamburger-menu,
body.mw4-active > .nav-overlay,
body.mw4-active > #mw-global-menu-v2,
body.mw4-active > #mw-shadow-menu-v3 {
  display: none !important;
}

/* Archive sync blocks must never duplicate the complete description in the hero. */
.hero .mw006-flickr-info {
  display: none !important;
}

/* Cookie actions stay above the floating MDD promo. */
#mw-cc.mw-cc,
.mw-cc {
  z-index: 2147483500 !important;
}

.mdd-artbtn {
  z-index: 2147483400 !important;
}

@media (max-width: 520px) {
  :root {
    --mw4-height: 64px;
  }

  #mw4-head {
    padding-left: max(14px, env(safe-area-inset-left)) !important;
    padding-right: max(8px, env(safe-area-inset-right)) !important;
  }

  #mw4-logo {
    font-size: 12px !important;
  }

  #mw4-actions {
    gap: 4px !important;
  }

  #mw4-actions > a {
    min-width: 38px !important;
    font-size: 10px !important;
  }

  #mw4-toggle {
    width: 52px !important;
    height: 50px !important;
    min-width: 52px !important;
    min-height: 50px !important;
  }

  #mw4-panel nav {
    gap: clamp(22px, 4vh, 34px) !important;
  }

  #mw4-panel nav a {
    font-size: clamp(27px, 8vw, 44px) !important;
  }
}

@media (max-width: 360px) {
  #mw4-logo {
    font-size: 10.5px !important;
  }

  #mw4-actions > a.mw4-mdd {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mw4-panel,
  #mw4-toggle::before,
  #mw4-toggle::after,
  #mw4-toggle span {
    transition: none !important;
  }
}
