.walkthrough-section {
  --watch-paper: #f4f1e6;
  --watch-ink: #18342d;
  --watch-muted: #51645a;
  --watch-line: #cbcfc1;
  --watch-stage: #10251f;
  --watch-cream: #fff5e1;
  --watch-gold: #f0cd8d;
  padding-block: clamp(1.65rem, 4.1vw, 3.6rem) clamp(1.65rem, 4.1vw, 3.5rem);
  background: var(--watch-paper);
  color: var(--watch-ink);
}

.walkthrough-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem 1.3rem;
  margin-block-end: clamp(1rem, 2.5vw, 1.65rem);
}

.walkthrough-intro h2 {
  margin: 0;
  color: var(--watch-ink);
  font-size: clamp(1.85rem, 4vw, 3.35rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.walkthrough-length {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  color: var(--watch-muted);
  font-size: .83rem;
  font-weight: 680;
}

.walkthrough-length > span:last-child {
  margin-inline-start: .16rem;
  padding-inline-start: .58rem;
  border-inline-start: 1px solid var(--watch-line);
  color: var(--watch-ink);
  font-variant-numeric: tabular-nums;
}

.walkthrough-play-icon {
  flex: none;
  inline-size: 0;
  block-size: 0;
  border-block: .32em solid transparent;
  border-inline-start: .52em solid currentColor;
}

.walkthrough-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 22%);
  align-items: start;
  gap: clamp(1rem, 3vw, 2.65rem);
}

.walkthrough-film {
  min-inline-size: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #243b31;
  border-radius: clamp(.65rem, 1.6vw, 1.2rem);
  background: var(--watch-stage);
  box-shadow: 0 .8rem 1.9rem #142a2126;
  color: var(--watch-cream);
}

.walkthrough-player { position: relative; isolation: isolate; }
.walkthrough-player video {
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  max-block-size: 85svh;
  background: #0b1c17;
  object-fit: contain;
  scroll-margin-top: .5rem;
}

@media (max-width: 40rem) {
  .walkthrough-player video { aspect-ratio: 4 / 5; }
}
.walkthrough-player video[data-cut="wide"] { aspect-ratio: 16 / 9; }
.walkthrough-player video[data-cut="portrait"] { aspect-ratio: 4 / 5; }

.walkthrough-film :is(a, button, video):focus-visible { outline-color: var(--watch-gold); }
.walkthrough-player video:focus-visible { outline-offset: -4px; }

.walkthrough-cover-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-block-size: 3.15rem;
  padding: .5rem 1.15rem;
  border: 1px solid #fff5d8;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #f5d8a0;
  box-shadow: 0 0 0 .26rem #0c221cb3, 0 .8rem 2rem #07160f9c;
  color: #17312a;
  font: inherit;
  font-size: clamp(.82rem, 1.5vw, 1rem);
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.walkthrough-cover-play:hover {
  transform: translate(-50%, calc(-50% - 2px));
  background: var(--watch-cream);
  box-shadow: 0 0 0 .34rem #0c221cb3, 0 .8rem 2rem #07160f9c;
}

.walkthrough-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .08rem .75rem;
  padding: .15rem clamp(.7rem, 1.5vw, 1rem);
  border-block-start: 1px solid #e5edcd2b;
  color: #ccdacf;
  font-size: clamp(.75rem, 1.35vw, .88rem);
}

.walkthrough-tools { display: flex; align-items: center; gap: clamp(.5rem, 1.5vw, .9rem); }
.walkthrough-tools :is(button, a) {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-block-size: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--watch-cream);
  font: inherit;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
}

.walkthrough-tools :is(button, a):hover { color: var(--watch-gold); }
.walkthrough-tools .walkthrough-cc {
  display: grid;
  place-items: center;
  padding: .08rem .22rem;
  border: 1px solid currentColor;
  border-radius: .2rem;
  font-size: .63rem;
  line-height: 1.05;
  letter-spacing: .015em;
}

.walkthrough-tools button[aria-pressed="true"] .walkthrough-cc { background: var(--watch-gold); color: var(--watch-stage); }
.walkthrough-error { margin: 0; padding: .9rem 1rem; border-top: 1px solid #e5edcd2b; }
.walkthrough-error a { color: var(--watch-gold); }

.walkthrough-chapters { min-inline-size: 0; }
.walkthrough-chapters h3 {
  margin: 0 0 .55rem;
  padding-block-end: .6rem;
  border-block-end: 1px solid var(--watch-line);
  color: var(--watch-muted);
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.walkthrough-chapters ol { display: grid; margin: 0; padding: 0; list-style: none; }
.walkthrough-chapters li { position: relative; }
.walkthrough-chapters li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  inset: 1.2rem auto -.9rem .98rem;
  inline-size: 1px;
  background: #a4b9a5;
  content: '';
  pointer-events: none;
}

.walkthrough-chapters button {
  position: relative;
  display: grid;
  grid-template-columns: .56rem minmax(0, 1fr) auto;
  align-items: start;
  gap: .64rem;
  inline-size: 100%;
  min-block-size: 3rem;
  padding: .73rem .52rem .73rem .73rem;
  border: 0;
  border-radius: .52rem;
  background: transparent;
  color: var(--watch-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background .17s ease;
}

.walkthrough-chapters button:disabled { cursor: default; }
.walkthrough-chapters button:enabled:hover { background: #e4e8db; }
.walkthrough-chapters button[aria-current] { background: #d8e5d4; }
.walkthrough-chapter-tick {
  position: relative;
  z-index: 2;
  inline-size: .56rem;
  block-size: .56rem;
  margin-block-start: .2rem;
  border: 1px solid #72907e;
  border-radius: 50%;
  background: var(--watch-paper);
}

.walkthrough-chapters button[aria-current] .walkthrough-chapter-tick {
  border-color: #315c46;
  background: #315c46;
  box-shadow: 0 0 0 .17rem #bfd7be;
}

.walkthrough-chapters strong, .walkthrough-chapters small { display: block; }
.walkthrough-chapters strong { font-weight: 760; line-height: 1.16; }
.walkthrough-chapters small { margin-block-start: .3rem; color: var(--watch-muted); font-size: .8rem; line-height: 1.33; }
.walkthrough-time { color: var(--watch-muted); font-size: .73rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.walkthrough-after {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem;
  margin-block-start: 1rem;
  padding: .6rem .85rem;
  border-radius: .65rem;
  background: #e4eadd;
}

.walkthrough-after p { max-inline-size: 58ch; margin: 0; color: var(--watch-muted); }
.walkthrough-after strong { color: var(--watch-ink); }
.walkthrough-after .platform-button { gap: .5rem; background: #cae2cf; color: var(--watch-ink); }
.walkthrough-after .platform-button:hover { background: #f1d9ad; }

.walkthrough-transcript {
  margin-block-start: clamp(.9rem, 2.5vw, 1.45rem);
  border-block-start: 1px solid var(--watch-line);
  scroll-margin-top: .5rem;
}

.walkthrough-transcript summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-block-size: 2.9rem;
  max-inline-size: 40rem;
  padding-block: .45rem;
  color: var(--watch-ink);
  font-weight: 740;
  list-style: none;
  cursor: pointer;
}

.walkthrough-transcript summary::-webkit-details-marker { display: none; }
.walkthrough-chevron { inline-size: .48rem; block-size: .48rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.walkthrough-transcript[open] .walkthrough-chevron { transform: rotate(225deg); }
.walkthrough-transcript ol { display: grid; gap: .62rem; max-inline-size: 63ch; margin: .2rem 0 0; padding: 0; list-style: none; }
.walkthrough-transcript li { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr); gap: .5rem; color: var(--watch-muted); font-size: .92rem; }
.walkthrough-transcript li > span { color: var(--watch-ink); font-variant-numeric: tabular-nums; }
.walkthrough-transcript h3 { margin: 0 0 .15rem; color: var(--watch-ink); font-size: .96rem; }
.walkthrough-transcript p { margin: 0; }

.preview-next { margin-block: clamp(2.5rem, 5vw, 5rem) 0; padding: clamp(1rem, 4vw, 3rem); border: 1px solid #b7c9b5; border-radius: 1.25rem; background: #e8edda; color: #203e32; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .85rem 1.25rem; }
.preview-next h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.55rem); letter-spacing: -.04em; }
.preview-next p { margin-block: .38rem 0; max-inline-size: 54ch; }
.preview-next .platform-actions { margin-top: 0; }

@media (max-width: 57rem) {
  .walkthrough-feature { grid-template-columns: minmax(0, 1fr); }
  .walkthrough-chapters ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem .45rem; }
  .walkthrough-chapters li::after { display: none; }
}

@media (max-width: 45rem) {
  .preview-next { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 32rem) {
  .walkthrough-intro h2 { font-size: clamp(1.8rem, 7vw, 2.3rem); }
  .walkthrough-chapters button { grid-template-columns: minmax(0, 1fr) auto; min-block-size: 2.75rem; align-items: center; gap: .28rem; padding: .42rem; font-size: .83rem; }
  .walkthrough-chapters :is(small, .walkthrough-chapter-tick) { display: none; }
  .walkthrough-caption { padding-block-start: .45rem; }
  .walkthrough-cover-play { min-block-size: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .walkthrough-section :is(button, a) { transition: none; }
  .walkthrough-cover-play:hover { transform: translate(-50%, -50%); }
}
