:root {
  --series-bg: #070b16;
  --series-surface: #0d1426;
  --series-text: #e8eef8;
  --series-muted: #9aa7bb;
  --series-border: rgba(255, 255, 255, 0.11);
  --series-cyan: #22d3ee;
  --series-indigo: #818cf8;
  --series-lime: #a3cb2d;
  --series-amber: #f7aa19;
}

@view-transition {
  navigation: auto;
}

.series-global {
  position: sticky;
  top: 3px;
  z-index: 90;
  width: 100%;
  border-bottom: 1px solid var(--series-border);
  background: rgba(7, 11, 22, 0.9);
  backdrop-filter: blur(18px) saturate(135%);
}

.series-global__inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.series-global a {
  text-decoration: none;
}

.series-global__brand {
  display: flex;
  align-items: baseline;
  flex: 0 0 auto;
  gap: 10px;
  color: var(--series-text);
  font-weight: 800;
  white-space: nowrap;
}

.series-global__brand small {
  color: var(--series-muted);
  font-size: 12px;
  font-weight: 500;
}

.series-global__tabs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  gap: 4px;
}

.series-global__tab {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--series-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.series-global__tab:hover {
  color: var(--series-text);
  background: rgba(255, 255, 255, 0.05);
}

.series-global__tab[aria-current="page"] {
  color: #061017;
  border-color: rgba(34, 211, 238, 0.8);
  background: var(--series-cyan);
}

.series-global a:focus-visible,
.series-next a:focus-visible {
  outline: 3px solid var(--series-amber);
  outline-offset: 3px;
}

section.step {
  scroll-margin-top: 86px;
}

.series-next {
  position: relative;
  z-index: 2;
  padding: 36px 0 72px;
  border-top: 1px solid var(--series-border);
}

.series-next__inner {
  width: min(880px, calc(100% - 52px));
  margin: 0 auto;
}

.series-next__eyebrow {
  margin-bottom: 16px;
  color: var(--series-muted);
  font-size: 12px;
  font-weight: 700;
}

.series-next__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.series-next__link {
  min-height: 112px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--series-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--series-text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.series-next__link:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.06);
  text-decoration: none;
}

.series-next__link span {
  color: var(--series-muted);
  font-size: 12px;
}

.series-next__link b {
  font-size: 17px;
  line-height: 1.45;
}

.series-next__link i {
  color: var(--series-cyan);
  font-style: normal;
  font-size: 13px;
}

.series-next__link--primary {
  border-color: rgba(34, 211, 238, 0.38);
}

@media (max-width: 760px) {
  .series-global__inner {
    width: min(100% - 28px, 560px);
    min-height: 102px;
    padding: 10px 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
  }

  .series-global__brand {
    justify-content: center;
    font-size: 14px;
  }

  .series-global__brand small {
    display: none;
  }

  .series-global__tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .series-global__tab {
    min-height: 44px;
    padding: 0 5px;
    font-size: 12px;
  }

  .series-next {
    padding-bottom: 48px;
  }

  .series-next__inner {
    width: min(100% - 36px, 560px);
  }

  .series-next__grid {
    grid-template-columns: 1fr;
  }

  section.step {
    scroll-margin-top: 122px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .series-global__tab,
  .series-next__link {
    transition: none;
  }
}
