.journey-page .masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(220, 227, 232, 0.9);
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(16px);
}

.journey-page .masthead .page-shell {
  width: min(calc(100% - (clamp(1.25rem, 4vw, 3.5rem) * 2)), 1180px);
  margin-inline: auto;
}

.journey-page .masthead__inner {
  position: relative;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.journey-page .masthead .signature {
  color: #17212b;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.journey-page .masthead .chapter-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2rem);
}

.journey-page .masthead .chapter-nav a {
  position: relative;
  padding: 0;
  color: #66727d;
  background: transparent;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.65;
  text-decoration: none;
  text-transform: uppercase;
}

.journey-page .masthead .chapter-nav a::after {
  display: none;
}

.journey-page .masthead .chapter-nav a:hover,
.journey-page .masthead .chapter-nav a:focus-visible,
.journey-page .masthead .chapter-nav a[aria-current="page"] {
  color: #17212b;
}

.journey-page .masthead .chapter-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -0.58rem;
  left: 0;
  display: block;
  width: auto;
  height: 2px;
  border-radius: 999px;
  background: #3f6f97;
  content: "";
  transform: none;
}

.journey-page .masthead .menu-switch {
  display: none;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid #dce3e8;
  border-radius: 999px;
  color: #17212b;
  background: #fff;
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .journey-page .masthead__inner {
    min-height: 68px;
  }

  .journey-page .masthead .menu-switch {
    display: inline-flex;
  }

  .journey-page .masthead .chapter-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    left: 0;
    z-index: 40;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 0.55rem;
    border: 1px solid #dce3e8;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 50px rgba(28, 48, 65, 0.12);
  }

  .journey-page .masthead .chapter-nav.is-open {
    display: grid;
  }

  .journey-page .masthead .chapter-nav a {
    padding: 0.85rem 0.9rem;
    border-radius: 11px;
  }

  .journey-page .masthead .chapter-nav a:hover,
  .journey-page .masthead .chapter-nav a:focus-visible,
  .journey-page .masthead .chapter-nav a[aria-current="page"] {
    background: #edf3f7;
  }

  .journey-page .masthead .chapter-nav a[aria-current="page"]::after {
    display: none;
  }
}

body.journey-page .opening-spread {
  padding-bottom: 1.5rem;
}

@media (max-width: 720px) {
  body.journey-page .opening-spread {
    padding-bottom: 1rem;
  }

  body.journey-page #year-2017 {
    padding-top: 1rem;
  }

  body.journey-page #year-2017 .chapter-shelf__grid {
    padding-top: 0.75rem;
  }
}
