.celebration-path {
  grid-column: 1 / -1;
  min-inline-size: 0;
  margin-block: 1rem 1.25rem;
  padding: clamp(.9rem, 3vw, 1.4rem);
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 26%, transparent);
  border-radius: .8rem;
  background: color-mix(in srgb, currentColor 5%, transparent);
  overflow-wrap: anywhere;
}
.celebration-path .celebration-path-title { margin: 0 0 .4rem; font-size: 1.4rem; line-height: 1.25; }
.celebration-path .celebration-path-lead,
.celebration-path .celebration-path-copy { font-size: 1rem; line-height: 1.6; }
.celebration-path .celebration-path-lead { margin: 0 0 .8rem; }
.celebration-path .celebration-path-phase {
  margin: .55rem 0 0;
  padding-inline: .75rem;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: .6rem;
}
.celebration-path .celebration-path-phase-title {
  color: inherit;
  margin: 0;
  padding-block: .65rem;
  min-block-size: 44px;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  box-sizing: border-box;
}
.celebration-path summary { cursor: pointer; }
.celebration-path summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.celebration-path .celebration-path-copy p { margin: .25rem 0 .85rem; }
.celebration-path .celebration-path-copy ul { padding-inline-start: 1.25rem; margin: 0 0 .85rem; }
.celebration-path .celebration-path-links { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.celebration-path .celebration-path-links a { display: inline-flex; align-items: center; min-block-size: 44px; }
.celebration-path .celebration-path-visual {
  inline-size: min(100%, 425px);
  margin: 1rem auto 0;
}
.celebration-path .celebration-path-visual > a { display: block; }
.celebration-path .celebration-path-visual img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: .6rem;
}
.celebration-path .celebration-path-visual figcaption a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
}

.celebration-path,
.celebration-path [id^="celebration-"] { scroll-margin-block-start: 5rem; }
.celebration-path .celebration-path-index h3,
.celebration-path .celebration-path-final h3 { margin: .5rem 0 .3rem; }
.celebration-path .celebration-path-index p { margin: 0 0 .4rem; }
.celebration-path .celebration-path-index ol { margin: 0; padding-inline-start: 1.6rem; }
.celebration-path .celebration-path-handoff { display: flex; flex-wrap: wrap; gap: .2rem .85rem; }
.celebration-path .celebration-path-jump,
.celebration-path-return .celebration-path-jump {
  display: inline-flex;
  align-items: center;
  padding: .35rem 0;
  min-block-size: 44px;
  max-inline-size: 100%;
  box-sizing: border-box;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .16em;
  overflow-wrap: anywhere;
}
.celebration-path button.celebration-path-jump { background: transparent; border: 0; cursor: pointer; }
.celebration-path .celebration-path-jump:focus-visible,
.celebration-path-return .celebration-path-jump:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

@media (max-width: 700px) {
  main:has(> #book > .page.active > .celebration-path) > .progress-track {
    margin-inline: -3px;
  }
  main > #book > .page.active:has(> .celebration-path) {
    animation-name: celebration-reader-reveal;
  }
}
@keyframes celebration-reader-reveal {
  from { opacity: .2; }
  to { opacity: 1; }
}
