.mega-menu {
  padding: 0;
  gap: 0;
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--divider);
  box-shadow: none;
  background: var(--surface);
}
.mega-list {
  padding: 40px;
  border-right: 1px solid var(--divider);
  gap: 24px;
  width: 441px;
  flex-shrink: 0;
}
.menu-label {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.menu-choice {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  width: 100%;
}
.menu-choice > span:not(.icon) {
  flex: 1;
}
.menu-choice strong {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.menu-choice small {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
  margin-top: 4px;
}
.menu-choice.is-active {
  background: #252426;
}
.mega-previews {
  flex: 1;
  min-width: 0;
  display: flex;
}
.mega-main {
  padding: 40px;
  border: 0;
  position: relative;
  overflow: hidden;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}
.menu-preview-copy {
  position: relative;
}
.menu-preview-copy h2 {
  margin: 24px 0 8px;
}
.menu-preview-copy > p:not(.menu-label) {
  max-width: 398px;
}
.menu-preview-copy > small {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
  margin-top: 8px;
}
.mega-main > .button {
  min-width: 200px;
  position: relative;
}
.menu-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.menu-art img {
  position: absolute;
  max-width: none;
}
.menu-texture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.menu-guide-art {
  width: 100%;
  height: 209.24%;
  left: 0;
  top: -1.35%;
}
.menu-art > span {
  position: absolute;
  inset: 0;
  background: linear-gradient(#1b1b1c 21.185%, #1b1b1c00 198.39%);
}
.mega-trending {
  padding: 40px;
  border-left: 1px solid var(--divider);
  width: 640px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.mega-trending > div {
  width: 100%;
}
.mega-trending > .button {
  padding: 16px 0;
  border: 0;
  font-size: 16px;
  line-height: 24px;
}
.trending-story {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
}
.trending-story:first-child {
  padding-top: 0;
}
.trending-story:last-child {
  padding-bottom: 0;
  border: 0;
}
.trending-story > img {
  width: 132px;
  height: 88px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
}
.trending-story > span:not(.icon) {
  flex: 1;
  min-width: 0;
}
.trending-story strong {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  display: block;
}
.trending-story > span > span {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  margin-top: 4px;
}
.mega-menu--boxes {
  min-height: 589px;
}
.mega-menu--boxes .mega-list {
  width: 596px;
  align-self: flex-start;
}
.menu-product-thumb {
  width: 88px;
  height: 94px;
  flex-shrink: 0;
  object-fit: contain;
}
.mega-menu--boxes .menu-choice {
  gap: 24px;
}
.mega-menu--boxes .menu-choice small {
  white-space: nowrap;
}
.mega-menu--boxes .mega-trending {
  width: 441px;
}
.mega-menu--boxes .menu-preview-copy {
  width: 100%;
}
.tag {
  display: inline-block;
  border-radius: 38px;
  padding: 6px 17px;
  background: #252426;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mega-menu--boxes h2 {
  margin: 16px 0 24px;
}
.mega-menu--boxes .menu-preview-copy > p {
  max-width: none;
}
.mega-menu--boxes .menu-preview-copy > .button {
  margin-top: 40px;
  width: 200px;
}
.menu-box-image {
  position: absolute;
  top: 250px;
  right: -4px;
  width: 361px;
  height: 339px;
  --crop-w: 136.61%;
  --crop-h: 134.09%;
  --crop-x: -0.16%;
  --crop-y: -7.48%;
}
.researched-box {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
}
.researched-box:first-child {
  padding-top: 0;
}
.researched-box:last-child {
  padding-bottom: 0;
  border: 0;
  gap: 16px;
}
.researched-box > span:not(.icon):not(.researched-mint) {
  flex: 1;
  min-width: 0;
}
.researched-box strong {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.researched-box small {
  font-size: 12px;
  line-height: 18px;
  margin-top: 4px;
  display: block;
  color: var(--muted);
}
.researched-mint {
  width: 24px;
  height: 24px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.researched-mint > img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  max-width: none;
}
.researched-mint--1 > img,
.researched-mint--3 > img {
  width: 80.49px;
  height: 24px;
  position: absolute;
  left: -0.24px;
}
.researched-mint--4 > img {
  width: 31.22px;
  height: 31.22px;
  position: absolute;
  left: -3.67px;
  top: -3.61px;
}
.mobile-menu {
  padding: 16px;
  gap: 0;
  max-width: 100vw;
}
.mobile-menu-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-height: 0;
  padding-bottom: 16px;
}
.mobile-menu-top {
  position: relative;
  justify-content: flex-end;
  flex-shrink: 0;
}
.mobile-menu-back {
  /* Keep the header height fixed when Back appears, with a generous hit area. */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  min-height: 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mobile-menu-content {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin: -6px;
}
.mobile-menu-content > :is(.mobile-menu-links, .mobile-submenu) {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  /* Leave room for focus rings inside the scrolling viewport. */
  padding: 6px;
}
.mobile-menu-content > :is(.mobile-menu-links, .mobile-submenu) > * {
  flex-shrink: 0;
}
.mobile-menu-content.is-transitioning
  > :is(.mobile-menu-links, .mobile-submenu) {
  will-change: transform, opacity;
}
.mobile-submenu {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-submenu-title {
  font-size: 20px;
  line-height: 28px;
}
.mobile-submenu-group > h3 {
  margin-bottom: 8px;
}
.mobile-submenu-group > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding-block: 12px;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
  line-height: 20px;
}
.mobile-submenu-group > a > span:first-child {
  min-width: 0;
}
.mobile-submenu-group > a > .icon {
  flex-shrink: 0;
}
.mobile-submenu > .button {
  align-self: flex-start;
  padding: 12px 0;
  text-align: left;
  white-space: normal;
}
.mobile-menu-links {
  gap: 16px;
}
.mobile-menu-links > :is(a, button) {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.08em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
  min-height: 35px;
  width: 100%;
  text-align: left;
}
.mobile-menu-links > :is(a, button):last-child {
  border: 0;
}
.mobile-menu > .button {
  font-size: 16px;
  width: 100%;
  flex-shrink: 0;
}
.menu-backdrop {
  background: #0006;
}
@media (min-width: 1100px) and (max-width: 1699px) {
  .mega-list,
  .mega-trending {
    width: 400px;
    padding: 40px 24px;
  }
  .mega-menu--boxes .mega-list,
  .mega-menu--boxes .mega-trending {
    width: 400px;
  }
  .mega-main {
    padding: 40px 24px;
  }
  .trending-story > img {
    display: none;
  }
  .mega-menu--learn .trending-story:last-child {
    display: none;
  }
  .trending-story:nth-child(2) {
    border: 0;
    padding-bottom: 0;
  }
  .mega-menu--boxes .menu-choice {
    padding: 24px 8px;
    gap: 16px;
  }
  .mega-menu--boxes .menu-choice small {
    white-space: normal;
  }
  .mega-menu--boxes .menu-product-thumb {
    width: 64px;
  }
  .mega-menu--boxes .menu-choice .icon {
    flex: 0 0 24px;
  }
}
@media (max-width: 1099px) {
  .mega-menu {
    display: none;
  }
}
