/* Phase 3: scheduled official items form a vertical archive stack above TODAY. */
html[data-crossroad-phase="prelaunch"] .future-official-zone {
  width: min(390px, calc(100% - var(--axis-x) - 90px));
  bottom: calc(100% - var(--cross-y) + 92px);
  display: block;
  overflow: visible;
  transition: opacity 240ms ease-out;
}

html[data-crossroad-phase="prelaunch"] .crossroad-hero.is-future-axis-shifting .prediction-zone,
html[data-crossroad-phase="prelaunch"] .crossroad-hero.is-future-axis-shifting .rail-edge-control,
html[data-crossroad-phase="prelaunch"] .crossroad-hero.is-future-axis-shifting .latest-official {
  transition: top 300ms ease-out;
}

html[data-crossroad-phase="prelaunch"] .crossroad-hero.is-future-axis-shifting .future-official-zone {
  transition: bottom 300ms ease-out, opacity 240ms ease-out;
}

html[data-crossroad-phase="prelaunch"] .future-official-stack {
  position: relative;
  height: calc(48px + (var(--future-stack-size, 1) - 1) * 9px);
  transition: height 280ms ease-out;
}

html[data-crossroad-phase="prelaunch"] .future-official-chip {
  position: absolute;
  z-index: calc(10 - var(--stack-depth, 0));
  left: calc(var(--stack-depth, 0) * 8px);
  right: calc(var(--stack-depth, 0) * 8px);
  bottom: calc(var(--stack-depth, 0) * 9px);
  width: auto;
  min-height: 48px;
  padding: 9px 12px;
  background: linear-gradient(145deg, rgba(130, 205, 252, .018), rgba(3, 8, 13, .88));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transform-origin: center bottom;
  transition: inset 280ms ease-out, opacity 220ms ease-out, transform 280ms ease-out, background 220ms ease-out;
}

@media (max-width: 760px) {
  html[data-crossroad-phase="prelaunch"] .future-official-chip {
    background: linear-gradient(145deg, #0a1722, #03080d);
  }

  html[data-crossroad-phase="prelaunch"] .future-official-chip:hover,
  html[data-crossroad-phase="prelaunch"] .future-official-chip:focus-visible {
    background: linear-gradient(145deg, #0c1c29, #03080d);
  }
}

html[data-crossroad-phase="prelaunch"] .future-official-zone:not(.is-expanded) .future-official-card[data-stack-depth="1"] {
  opacity: .48;
}

html[data-crossroad-phase="prelaunch"] .future-official-zone:not(.is-expanded) .future-official-card[data-stack-depth="2"] {
  opacity: .24;
}

html[data-crossroad-phase="prelaunch"] .future-official-zone:not(.is-expanded) .future-official-card:not([data-stack-depth="0"]) {
  pointer-events: none;
}

html[data-crossroad-phase="prelaunch"] .future-official-zone:not(.is-expanded) .future-official-card:not([data-stack-depth="0"]) > * {
  opacity: 0;
}

html[data-crossroad-phase="prelaunch"] .future-official-zone:not(.is-expanded) .future-official-card:not([data-stack-depth="0"])::before,
html[data-crossroad-phase="prelaunch"] .future-official-zone:not(.is-expanded) .future-official-card:not([data-stack-depth="0"])::after {
  opacity: 0;
}

html[data-crossroad-phase="prelaunch"] .future-official-stack-toggle {
  position: absolute;
  z-index: 16;
  right: 8px;
  bottom: 8px;
  min-width: 38px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--actual) 28%, transparent);
  background: rgba(4, 11, 18, .88);
  color: var(--actual);
  padding: 0 8px;
  font: 750 14px/1 var(--mono);
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color 180ms ease-out, background 180ms ease-out, color 180ms ease-out;
}

html[data-crossroad-phase="prelaunch"] .future-official-stack-toggle:hover,
html[data-crossroad-phase="prelaunch"] .future-official-stack-toggle:focus-visible {
  border-color: var(--actual);
  background: rgba(10, 27, 40, .96);
  color: #e8f7ff;
  outline: none;
}

html[data-crossroad-phase="prelaunch"] .future-official-zone.is-expanded .future-official-stack {
  display: flex;
  height: auto;
  flex-direction: column;
  gap: 7px;
  padding-top: 34px;
}

html[data-crossroad-phase="prelaunch"] .future-official-zone.is-expanded .future-official-chip {
  position: relative;
  inset: auto;
  width: 100%;
  opacity: 1;
  transform: none;
}

html[data-crossroad-phase="prelaunch"] .future-official-zone.is-expanded .future-official-stack-toggle {
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
  transform: none;
}

html[data-crossroad-phase="prelaunch"] .future-official-more {
  order: -1;
  align-self: flex-start;
  width: auto;
  min-height: 26px;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--actual) 34%, transparent);
  background: transparent;
  padding: 3px 8px;
  color: color-mix(in srgb, var(--actual) 66%, var(--muted) 34%);
  font: 700 12px/1 var(--mono);
  letter-spacing: .12em;
  text-align: left;
  cursor: pointer;
}

html[data-crossroad-phase="prelaunch"] .future-official-zone:not(.is-expanded) .future-official-more {
  display: none;
}

html[data-crossroad-phase="prelaunch"] .future-official-more:hover,
html[data-crossroad-phase="prelaunch"] .future-official-more:focus-visible {
  color: var(--actual);
  outline: none;
}

/* The detail surface grows from the selected chip instead of flying in from the viewport edge. */
html[data-crossroad-phase="prelaunch"] .future-official-zone .future-official-full {
  position: absolute;
  z-index: 24;
  inset: auto 0 0 0;
  width: 100%;
  max-height: min(46svh, 430px);
  min-height: 132px;
  overflow: auto;
  padding: 16px 17px 18px;
  transform: none;
  animation: none;
  transform-origin: 50% var(--detail-origin-y, 100%);
  border-color: color-mix(in srgb, var(--actual) 36%, transparent);
  background: linear-gradient(145deg, rgba(14, 31, 45, .98), rgba(3, 8, 13, .98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .52), 0 0 26px rgba(130, 205, 252, .08);
  backdrop-filter: blur(14px);
}

html[data-crossroad-phase="prelaunch"] .future-official-zone .future-official-full.is-entering {
  animation: futureOfficialInlineExpand 260ms cubic-bezier(.22, 1, .36, 1) both;
}

html[data-crossroad-phase="prelaunch"] .future-official-zone .future-official-full.is-closing {
  animation: futureOfficialInlineCollapse 200ms ease-in both;
}

html[data-crossroad-phase="prelaunch"] .future-official-zone.is-detail-open .future-official-stack {
  opacity: .08;
  pointer-events: none;
}

@keyframes futureOfficialInlineExpand {
  from { opacity: .28; transform: scale(.94, .26); filter: blur(1.5px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes futureOfficialInlineCollapse {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: scale(.96, .32); }
}

@media (max-width: 760px) {
  html[data-crossroad-phase="prelaunch"] .future-official-zone {
    width: calc(100% - var(--axis-x) - 46px);
    bottom: calc(100% - var(--cross-y) + 76px);
  }

  html[data-crossroad-phase="prelaunch"] .future-official-stack-toggle,
  html[data-crossroad-phase="prelaunch"] .future-official-more {
    font-size: 11px;
  }

  html[data-crossroad-phase="prelaunch"] .future-official-zone .future-official-full {
    inset: auto 0 0 0;
    width: 100%;
    max-height: 52svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-crossroad-phase="prelaunch"] .prediction-zone,
  html[data-crossroad-phase="prelaunch"] .rail-edge-control,
  html[data-crossroad-phase="prelaunch"] .latest-official,
  html[data-crossroad-phase="prelaunch"] .future-official-zone,
  html[data-crossroad-phase="prelaunch"] .future-official-stack,
  html[data-crossroad-phase="prelaunch"] .future-official-card,
  html[data-crossroad-phase="prelaunch"] .future-official-stack-toggle,
  html[data-crossroad-phase="prelaunch"] .future-official-full {
    transition: none;
    animation: none !important;
  }
}
