/* Google Fonts loaded via <link> in BaseLayout.astro */
/* ═══════════════════════════════════════
   DESIGN TOKENS (CODEX)
═══════════════════════════════════════ */
:root {
  /* Colors */
  --codex-color-primary: #000000;
  --codex-color-primary-inverse: #ffffff;
  --codex-color-accent: #22B0E1;
  --codex-color-surface: #ffffff;
  --codex-color-surface-dark: #111111;
  --codex-color-text: #000000;
  --codex-color-text-inverse: #ffffff;
  --codex-color-muted: rgba(0, 0, 0, 0.45);
  --codex-color-muted-inverse: rgba(255, 255, 255, 0.45);
  --codex-color-border: rgba(0, 0, 0, 0.1);
  --codex-color-border-inverse: rgba(255, 255, 255, 0.1);

  /* Typography */
  --codex-font-sans: 'Lato', sans-serif;
  
  /* Font Sizes */
  --codex-text-xs: 11px;
  --codex-text-sm: 13px;
  --codex-text-base: 15px;
  --codex-text-lg: 17px;
  --codex-text-xl: 20px;
  --codex-text-2xl: 32px;
  --codex-text-3xl: 48px;
  --codex-text-4xl: 60px;
  --codex-text-hero: clamp(34px, 6vw, 60px);

  /* Spacing */
  --codex-space-1: 4px;
  --codex-space-2: 8px;
  --codex-space-3: 12px;
  --codex-space-4: 16px;
  --codex-space-6: 24px;
  --codex-space-8: 32px;
  --codex-space-12: 48px;
  --codex-space-16: 64px;
  --codex-space-24: 96px;

  /* Layout */
  --codex-max-width: 1360px;
  --codex-page-padding: min(80px, 6vw);
  --codex-nav-height: 72px;

  /* Animation Timings */
  --codex-transition-fast: 200ms;
  --codex-transition-base: 300ms;
  --codex-transition-slow: 700ms;
  --codex-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --codex-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
/* Migrated Global Styles from Flat HTML */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {}
:root {
  --max: 1360px;
  --px: min(80px, 6vw);
  --accent: var(--brand-primary, #22B0E1);
  --nav-h: 72px;
}
body {
  font-family: 'Lato', sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}
/* ═══════════════════════════════════════
   SCROLL BUDGET — Apple-style sticky pin
═══════════════════════════════════════ */
.scroll-budget {
  position: relative;
}
.scroll-module {}
.scroll-budget-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
/* ═══════════════════════════════════════
   NAV — glass over video, solid over white
═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
nav.hidden-nav {
  transform: translateY(calc(-100% - 48px));
}
nav.menu-is-open {
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  transition: background-color 0.8s ease, border-color 0.6s ease !important;
}
.st0 {
  fill: #fff !important;
  transition: fill 0.3s ease;
}
.nav-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.3s ease;
}
@media (max-width: 550px) {
  .nav-container {
    padding: 0 16px;
    height: 64px;
  }

  .logo-container {
    width: 100px;
  }

  .nav-actions {
    gap: 6px;
  }

  .btn-demo {
    width: auto;
    padding: 0 12px;
    font-size: 12px;
    height: 38px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }
}
.logo-container {
  width: 130px;
  height: 31.97px;
  position: relative;
  cursor: pointer;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-demo {
  width: 126px;
  height: 44px;
  background: transparent !important;
  border: 1px solid #fff !important;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff !important;
  cursor: pointer;
  text-decoration: none;
  padding: 15px 17px;
  transition: all 0.3s ease;
}
.btn-demo:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}
nav.over-light .btn-demo {
  background: transparent !important;
  color: #000 !important;
  border-color: #000 !important;
}
nav.over-light .btn-demo:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #000 !important;
}
.icon-btn {
  width: 44px;
  height: 44px;
  background: transparent !important;
  border: 1px solid #fff !important;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  color: #fff !important;
}
.icon-btn svg path {
  fill: #fff !important;
  stroke: #fff !important;
  transition: fill 0.3s ease, stroke 0.3s ease;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
nav.over-light .icon-btn {
  border-color: #000 !important;
  background: transparent !important;
  color: #000 !important;
}
nav.over-light .icon-btn svg path {
  fill: #000 !important;
  stroke: #000 !important;
}
nav.over-light .icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
/* ═══════════════════════════════════════
   NAV SEARCH BAR (inline expand)
═══════════════════════════════════════ */
.nav-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  border: 1px solid #fff;
  border-radius: 9px;
  padding: 0 14px;
  background: transparent;
  animation: searchExpand 0.25s ease forwards;
}
@keyframes searchExpand {
  from { width: 44px; opacity: 0.6; }
  to   { width: 260px; opacity: 1; }
}
.nav-search-bar__icon {
  flex-shrink: 0;
}
.nav-search-bar__icon path {
  fill: #fff;
}
.nav-search-bar__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  min-width: 0;
}
.nav-search-bar__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.nav-search-bar__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 16px;
  transition: opacity 0.2s ease;
}
.nav-search-bar__close:hover {
  opacity: 0.7;
}
/* Over-light variant */
nav.over-light .nav-search-bar {
  border-color: #000;
}
nav.over-light .nav-search-bar__icon path {
  fill: #000;
}
nav.over-light .nav-search-bar__input {
  color: #000;
}
nav.over-light .nav-search-bar__input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}
nav.over-light .nav-search-bar__close {
  color: #000;
}
/* Menu-open variant */
nav.menu-is-open .nav-search-bar {
  border-color: rgba(255, 255, 255, 0.2);
}
/* Burger Animation */
.menu-btn svg path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease, fill 0.3s ease;
}
.menu-btn.open svg path:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn.open svg path:nth-child(2) {
  opacity: 0;
}
.menu-btn.open svg path:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* Mega Menu grid breakpoints */
@media (max-width: 1024px) {
  .menu-grid {
    padding-top: 20px;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 500px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
/* ═══════════════════════════════════════
   FOOTER — Figma: grey card on white
═══════════════════════════════════════ */
footer {
  background: #fff;
  padding: 40px var(--px);
}
.footer-card {
  max-width: var(--max);
  margin: 0 auto;
  background: #f3f3f3;
  border-radius: 10px;
  padding: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}
.footer-logo-wrap svg {
  width: 187px;
  height: auto;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-follow {
  font-size: 16px;
  font-weight: 900;
  line-height: 19.2px;
  color: #000;
}
.footer-social-icons {
  display: flex;
  gap: 8px;
}
.footer-social-icon {
  display: flex;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-social-icon:hover {
  opacity: 0.6;
}
.footer-legal {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 24px;
}
.footer-copyright {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  margin-bottom: 12px;
}
.footer-links {
  font-size: 14px;
  color: #000;
}
.footer-links a {
  color: #22B0E1;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-links a:hover {
  opacity: 0.6;
}
.footer-divider {
  margin: 0 12px;
  color: rgba(0, 0, 0, 0.3);
}
body.hide-global-nav nav {
  display: none !important;
}
/* Ken Burns zoom animation — toggled per block via design controls */
.ken-burns {
  animation: kenBurnsZoom var(--ken-burns-speed, 20s) ease-in-out infinite alternate;
}
@keyframes kenBurnsZoom {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}.counter {
  font-size: 16px;
  padding: 5px 10px;
  border-radius: 5px;
  color: var(--accent);
  background: var(--accent-bg);
  border: 2px solid transparent;
  transition: border-color 0.3s;
  margin-bottom: 24px;

  &:hover {
    border-color: var(--accent-border);
  }
  &:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}

.hero {
  position: relative;

  .base,
  .framework,
  .vite {
    inset-inline: 0;
    margin: 0 auto;
  }

  .base {
    width: 170px;
    position: relative;
    z-index: 0;
  }

  .framework,
  .vite {
    position: absolute;
  }

  .framework {
    z-index: 1;
    top: 34px;
    height: 28px;
    transform: perspective(2000px) rotateZ(300deg) rotateX(44deg) rotateY(39deg)
      scale(1.4);
  }

  .vite {
    z-index: 0;
    top: 107px;
    height: 26px;
    width: auto;
    transform: perspective(2000px) rotateZ(300deg) rotateX(40deg) rotateY(39deg)
      scale(0.8);
  }
}

#center {
  display: flex;
  flex-direction: column;
  gap: 25px;
  place-content: center;
  place-items: center;
  flex-grow: 1;

  @media (max-width: 1024px) {
    padding: 32px 20px 24px;
    gap: 18px;
  }
}

#next-steps {
  display: flex;
  border-top: 1px solid var(--border);
  text-align: left;

  & > div {
    flex: 1 1 0;
    padding: 32px;
    @media (max-width: 1024px) {
      padding: 24px 20px;
    }
  }

  .icon {
    margin-bottom: 16px;
    width: 22px;
    height: 22px;
  }

  @media (max-width: 1024px) {
    flex-direction: column;
    text-align: center;
  }
}

#docs {
  border-right: 1px solid var(--border);

  @media (max-width: 1024px) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

#next-steps ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
  margin: 32px 0 0;

  .logo {
    height: 18px;
  }

  a {
    color: var(--text-h);
    font-size: 16px;
    border-radius: 6px;
    background: var(--social-bg);
    display: flex;
    padding: 6px 12px;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: box-shadow 0.3s;

    &:hover {
      box-shadow: var(--shadow);
    }
    .button-icon {
      height: 18px;
      width: 18px;
    }
  }

  @media (max-width: 1024px) {
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;

    li {
      flex: 1 1 calc(50% - 8px);
    }

    a {
      width: 100%;
      justify-content: center;
      box-sizing: border-box;
    }
  }
}

#spacer {
  height: 88px;
  border-top: 1px solid var(--border);
  @media (max-width: 1024px) {
    height: 48px;
  }
}

.ticks {
  position: relative;
  width: 100%;

  &::before,
  &::after {
    content: '';
    position: absolute;
    top: -4.5px;
    border: 5px solid transparent;
  }

  &::before {
    left: 0;
    border-left-color: var(--border);
  }
  &::after {
    right: 0;
    border-right-color: var(--border);
  }
}
/* ═══════════════════════════════════════
   SEARCH DROPDOWN (slim glass panel)
═══════════════════════════════════════ */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: -54px; /* extend to cover the hamburger button (44px + 10px gap) */
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: searchDropIn 0.2s ease forwards;
  z-index: 100;
}

@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-dropdown__loading,
.search-dropdown__empty {
  padding: 20px 18px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  text-align: center;
}

.search-dropdown__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.search-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-dropdown__type {
  flex-shrink: 0;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #22B0E1;
  width: 60px;
}

.search-dropdown__title {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-dropdown__more {
  display: block;
  padding: 12px 18px;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #22B0E1;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease;
}

.search-dropdown__more:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile */
@media (max-width: 550px) {
  .search-dropdown {
    left: auto;
    right: -54px;
    width: calc(100vw - 32px);
  }
}/* ═══════════════════════════════════════
   MEGA MENU OVERLAY (DARK GLASS COMPONENT)
═══════════════════════════════════════ */
.mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.45);
  /* Deep dark glass */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--codex-color-border-inverse);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

/* Hard reset ALL links inside the mega menu to kill baseline browser styles (blue lines) */
.mega-menu a,
.mega-menu a:hover,
.mega-menu a:focus {
  text-decoration: none !important;
  color: inherit !important;
  border-bottom: none !important;
  outline: none !important;
}

.mega-menu-container {
  width: 100%;
  max-width: var(--codex-max-width);
  margin: 0 auto;
  padding: 0 var(--codex-page-padding);
  position: relative;
}

/* Thin separation line at nav boundary */
.mega-menu::before {
  content: '';
  position: absolute;
  top: var(--codex-nav-height);
  left: 0;
  right: 0;
  background: var(--codex-color-border-inverse);
}

.mega-menu .menu-content {
  position: relative;
  padding: 80px 0 48px;
  color: var(--codex-color-text-inverse);
  box-sizing: border-box;
}

.mega-menu .menu-grid {
  width: 100%;
  margin: 0;
}



.mega-menu .section {
  break-inside: avoid;
  display: block;
  width: 100%;
  margin-bottom: var(--codex-space-2);
}

.mega-menu .section {
  margin-bottom: var(--codex-space-2);
}

/* Typography */
.mega-menu .mega-section-title {
  font-family: var(--codex-font-sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 26.4px;
  color: var(--codex-color-text-inverse);
  text-transform: uppercase;
  margin-bottom: var(--codex-space-3);
  letter-spacing: 0;
}

.mega-menu .menu-item {
  display: block;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all var(--codex-transition-fast);
  border-left: none !important;
  padding-left: 0 !important;
}

.mega-menu .menu-item:hover {
  border-left: none !important;
  padding-left: 0 !important;
}

.mega-menu .menu-item-content {
  display: flex;
  align-items: start;
  gap: 10px;
}

.mega-menu .menu-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-menu .menu-item-title {
  font-family: var(--codex-font-sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: var(--codex-color-text-inverse);
  transition: opacity var(--codex-transition-base);
}

.mega-menu .menu-item-subtitle {
  font-family: var(--codex-font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 21.6px;
  color: var(--codex-color-muted-inverse);
  transition: opacity var(--codex-transition-base);
}

/* Hover Interactions */
.mega-menu .menu-item-arrow {
  flex-shrink: 0;
  padding-top: 4px;
  transition: transform var(--codex-transition-fast) var(--codex-ease-out);
  display: flex;
}

.mega-menu .menu-item-arrow svg {
  width: 10px;
  height: 10px;
}

.mega-menu .menu-item-arrow svg path,
.mega-menu .accordion-icon svg path {
  stroke: var(--codex-color-text-inverse);
  transition: stroke var(--codex-transition-base);
}

/* Force SVG arrows white */
.mega-menu .menu-item:hover .menu-item-title,
.mega-menu .menu-item:hover .menu-item-subtitle,
.mega-menu .menu-item:hover .menu-item-arrow svg path {
  opacity: 0.6;
}

.mega-menu .menu-item:hover .menu-item-arrow {
  transform: translate(3px, 3px);
}

/* News & Event Cards */
.mega-menu .news-card {
  display: flex;
  flex-direction: column;
}

.mega-menu .news-image {
  height: clamp(120px, 11vw, 148px);
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, 0.1);
  align-self: flex-start;
}

.mega-menu .news-date {
  font-family: var(--codex-font-mono);
  font-size: 12px;
  color: var(--codex-color-muted-inverse);
  margin-bottom: 8px;
}

.mega-menu .news-description {
  font-weight: 400;
  font-size: var(--codex-text-base);
  line-height: 1.5;
  color: var(--codex-color-text-inverse);
  padding-right: 20px;
}

.mega-menu .inline-arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform var(--codex-transition-fast) var(--codex-ease-out);
}

.mega-menu .inline-arrow svg path {
  stroke: var(--codex-color-text-inverse);
  transition: stroke var(--codex-transition-base);
}

.mega-menu .news-card:hover .inline-arrow,
.mega-menu .event-item:hover .inline-arrow {
  transform: translate(3px, -3px);
}

.mega-menu .news-card:hover .inline-arrow svg path,
.mega-menu .event-item:hover .inline-arrow svg path {
  stroke: rgba(255, 255, 255, 0.6);
}

.mega-menu .event-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.mega-menu .event-title {
  font-weight: 500;
  font-size: var(--codex-text-base);
  margin-bottom: 6px;
  color: var(--codex-color-text-inverse);
}

.mega-menu .event-description {
  font-weight: 400;
  font-size: var(--codex-text-base);
  line-height: 1.5;
  color: var(--codex-color-muted-inverse);
  padding-right: 20px;
}

/* ═══════════════════════════════════════
   RESPONSIVE GRID & SCALE MATRIX
═══════════════════════════════════════ */

/* Default Desktop Core */
.mega-menu-container {
  zoom: clamp(0.8, calc(100vw / 1440), 1);
  /* Drives progressive 20% shrink from 1440 to 1024 */
}

.mega-menu .menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.mega-menu .menu-col {
  display: flex;
  flex-direction: column;
}

/* Default Desktop: Hide Accordions */
.mega-menu .accordion-icon {
  display: none;
}

/* ─── 1024px: TABLET / ACCORDION LOCK ─── */
@media (max-width: 1024px) {
  .mega-menu-container {
    zoom: clamp(0.8, calc(100vw / 1024), 1);
    /* Resets baseline to 1 at 1024, dials down 20% to 768 */
  }

  .mega-menu .menu-grid {
    grid-template-columns: 1fr 1fr 1fr;
    /* 3 Even Columns */
    gap: 30px;
  }

  /* Morph Titles into Interactive Buttons */
  .mega-menu .section:not(.section-tall) .mega-section-title {
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    align-items: center;
    padding: var(--codex-space-4) 0;
    margin-bottom: 0;
  }

  .mega-menu .section {
    margin-bottom: 0;
  }

  /* Activate Accordion SVGs explicitly */
  .mega-menu .accordion-icon {
    display: flex;
    order: -1;
    /* Force arrow completely left as per mockups */
    transition: transform 0.2s ease-in-out;
  }

  .mega-menu .mega-section-title:hover .accordion-icon {
    transform: translateY(2px);
  }

  /* Payload Container Hidden */
  .mega-menu .section:not(.section-tall) .section-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s var(--codex-ease-in-out);
  }

  /* Payload Container Active */
  .mega-menu .section.is-open:not(.section-tall) .section-content {
    max-height: 1200px;
    /* Overkill bounds for CSS transitions */
    opacity: 1;
    padding: var(--codex-space-3) 0 var(--codex-space-6) 0;
  }
}

/* ─── 768px: MOBILE / SINGLE COLUMN LOCK ─── */
@media (max-width: 768px) {
  .mega-menu-container {
    zoom: clamp(0.85, calc(100vw / 768), 1);
  }

  /* Stack everything into 1 column */
  .mega-menu .menu-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mega-menu .menu-content {
    height: calc(100vh - var(--codex-nav-height));
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: var(--codex-space-4);
    padding-bottom: 120px;
  }
}