/* Desktop navigation shares the story progress with the mobile timeline. */
@media (min-width: 1101px) {
  #creation .creation-step {
    --creation-timeline-circle: 34px;
    --creation-timeline-row: 56px;
    --creation-timeline-gap: 24px;
    position: relative;
    top: auto;
    align-self: center;
    margin: 0;
    padding: 0;
    border: 0;
  }
  #creation .creation-step-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--creation-timeline-gap);
  }
  #creation .creation-step-title.action-link {
    position: relative;
    display: grid;
    grid-template-columns: var(--creation-timeline-circle) minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    min-height: var(--creation-timeline-row);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: #596454;
    font-size: clamp(16px, 1.2vw, 18px);
    text-align: left;
    transition: color .16s ease;
  }
  #creation .creation-step-title:not(:last-child)::before,
  #creation .creation-step-title:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(50% + var(--creation-timeline-circle) / 2 + 3px);
    left: calc(var(--creation-timeline-circle) / 2 - 1px);
    width: 2px;
    height: calc(100% + var(--creation-timeline-gap) - var(--creation-timeline-circle) - 6px);
    border-radius: 2px;
    background: #d5dbd1;
    pointer-events: none;
  }
  #creation .creation-step-title:not(:last-child)::after {
    background: var(--orange);
    transform: scaleY(var(--creation-step-progress, 0));
    transform-origin: center top;
  }
  #creation .creation-step-title small {
    display: grid;
    place-items: center;
    width: var(--creation-timeline-circle);
    height: var(--creation-timeline-circle);
    border: 1px solid #c4ccc1;
    border-radius: 50%;
    background: #f1f2f0;
    color: #596454;
    opacity: 1;
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
  }
  #creation .creation-step-title .creation-step-name {
    display: block;
    font-size: inherit;
    line-height: 1.4;
    white-space: nowrap;
    word-break: normal;
  }
  #creation .creation-step-title b { display: none; }
  #creation .creation-step-title[aria-selected="true"] { color: #202820; }
  #creation .creation-step-title[aria-selected="true"] small {
    border-color: var(--orange);
    background: #fff1e9;
    color: #b64628;
    box-shadow: 0 0 0 3px #e8553014;
  }
  #creation .creation-step-title[data-step-state="complete"] small {
    border-color: var(--orange);
    background: var(--orange);
    color: #161816;
  }
  #creation .creation-step-title:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
  }
}

@media (min-width: 1101px) and (hover: hover) {
  #creation .creation-step-title:hover { color: #202820; }
  #creation .creation-step-title:hover small { border-color: var(--orange); }
}

@media (min-width: 1101px) and (max-height: 700px) {
  #creation .creation-step {
    --creation-timeline-circle: 30px;
    --creation-timeline-row: 44px;
    --creation-timeline-gap: 14px;
  }
}

@media (min-width: 1101px) and (prefers-reduced-motion: reduce) {
  /* Flow panels have different heights; keep the focused tab within reach. */
  #creation.creation-flow .creation-step {
    position: sticky;
    top: var(--creation-layout-top, 110px);
    align-self: start;
  }
  #creation .creation-step-title.action-link,
  #creation .creation-step-title small { transition: none; }
}
