/* The tour shares the site's paper, navy and seafoam palette. */
.mk-tour-section { position: relative; z-index: 2; margin-top: calc(var(--overlap) * -1); padding-bottom: clamp(2rem, 5vw, 4rem); scroll-margin-top: 1.5rem; }
.mk-tour-panel { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 22px 60px -38px rgba(11, 34, 52, .35); }
.mk-tour-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; padding: clamp(1.5rem, 4vw, 3rem); }
.mk-tour-heading .mk-kicker { margin-bottom: .85rem; }
.mk-tour-heading h2 { max-width: 20ch; font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
.mk-tour-heading > p { max-width: 32ch; color: var(--muted); }
.mk-tour { margin: 0; }
.mk-tour [hidden] { display: none !important; }
.mk-tour-screen { position: relative; overflow: hidden; background: var(--navy); isolation: isolate; }
.mk-tour-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--navy); }
.mk-tour-video::cue, .mk-tour-portrait::cue { color: #fff; background: rgba(11, 34, 52, .92); }
.mk-tour-play { position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; gap: 1rem; transform: translate(-50%, -50%); padding: .85rem 1.3rem .85rem .85rem; border: 1px solid rgba(255, 255, 255, .4); border-radius: 99px; background: rgba(11, 34, 52, .96); color: #fff; box-shadow: 0 8px 36px rgba(0, 0, 0, .22); font: 600 1rem/1.2 var(--sans); white-space: nowrap; cursor: pointer; --focus: var(--seafoam); transition: background-color .18s ease; }
.mk-tour-play:hover { background: var(--teal); }
.mk-tour-play-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--seafoam); color: var(--navy); }
.mk-tour-play-icon svg { margin-left: -.15rem; }
.mk-tour-play-duration { display: inline-block; padding-left: .8rem; margin-left: .8rem; border-left: 1px solid rgba(255, 255, 255, .35); color: #c3d2d6; font-size: .85rem; font-weight: 500; }
.mk-tour-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1.5rem; padding: .9rem clamp(1.25rem, 4vw, 3rem); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.mk-tour-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 3rem); }
.mk-tour-after-title { margin-bottom: .35rem; font-weight: 600; }
.mk-tour-after p:not(.mk-tour-after-title) { color: var(--muted); font-size: .9375rem; }
.mk-tour-after .mk-button { flex: none; }
.mk-tour-status { margin: 0; padding: .85rem 1.25rem; color: var(--ink); background: var(--mist); font-size: .875rem; }

/* Mobile keeps the page compact; a native modal hosts the portrait player. */
.mk-tour-mobile-launch { width: 100%; padding: 0; overflow: hidden; border: 0; background: var(--navy); color: #fff; text-align: left; font: inherit; cursor: pointer; }
.mk-tour-mobile-launch > img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.mk-tour--mobile .mk-tour-mobile-launch > img { display: none; }
.mk-tour--mobile .mk-tour-video { cursor: pointer; }
.mk-tour-mobile-play { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.2rem; }
.mk-tour-mobile-play strong { display: block; font-size: 1rem; }
.mk-tour-mobile-play strong + span { display: block; margin-top: .2rem; color: #c3d2d6; font-size: .75rem; }
.mk-tour-mobile-arrow { margin-left: auto; color: var(--seafoam); font-size: 1.4rem; }
.mk-tour-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; padding: 0; margin: 0; border: 0; background: var(--navy); color: #fff; overscroll-behavior: contain; --focus: var(--seafoam); --btn-bg: var(--seafoam); --btn-fg: var(--navy); }
.mk-tour-dialog::backdrop { background: rgba(5, 20, 30, .8); }
.mk-tour-dialog:not([open]) { display: none; }
.mk-tour-dialog[open] { display: flex; flex-direction: column; }
.mk-tour-dialog-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 1rem; padding: max(.65rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) .65rem max(1rem, env(safe-area-inset-left)); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.mk-tour-dialog-head p { font-size: .9375rem; font-weight: 600; }
.mk-tour-dialog-head > div > span { font-size: .75rem; color: #c3d2d6; }
.mk-tour-close { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: transparent; color: #fff; font: 300 2rem/1 var(--sans); cursor: pointer; }
.mk-tour-close:hover { background: rgba(255, 255, 255, .12); }
.mk-tour-dialog-screen { display: flex; flex: 1; min-height: 0; align-items: center; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.mk-tour-portrait { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; background: var(--navy); }
.mk-tour-dialog-status { flex: none; padding: .65rem 1rem; color: #c3d2d6; text-align: center; font-size: .875rem; }
.mk-tour-dialog-after { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); border-top: 1px solid rgba(255, 255, 255, .16); }
.mk-tour-dialog-after > span { max-width: 22ch; font-size: .875rem; }

/* Dedicated watch page: the video is the primary content, followed by its transcript. */
.mk-tour-watch-head { padding-block: 1.75rem 2.5rem; background: var(--navy); color: #fff; --accent: var(--seafoam); }
.mk-tour-breadcrumb { display: flex; gap: .65rem; margin-bottom: 2rem; color: #c3d2d6; font-size: .8125rem; }
.mk-tour-breadcrumb a { text-underline-offset: .25em; }
.mk-tour-watch-head .mk-kicker { margin-bottom: 1rem; }
.mk-tour-watch-head h1 { max-width: 24ch; font-size: clamp(2.3rem, 4.5vw, 3.75rem); }
.mk-tour-watch-head h1 + p { margin-top: 1rem; color: #c3d2d6; }
.mk-tour-watch-content { padding-top: 2rem; scroll-margin-top: 1.5rem; }
.mk-tour-watch-content .mk-tour-screen { border: 1px solid var(--line); border-radius: 6px; }
.mk-tour-watch-content .mk-tour-note { padding-inline: 0; }
.mk-tour-watch-content .mk-tour-after { padding-inline: 0; }
.mk-tour-transcript { border-top: 1px solid var(--line); scroll-margin-top: 2rem; }
.mk-tour-transcript-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.mk-tour-transcript-list li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.mk-tour-time { padding-top: .2rem; color: var(--teal); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-tour-transcript-list h3 { font-size: 1.25rem; }
.mk-tour-transcript-list p { margin-top: .5rem; color: var(--muted); }
.mk-tour-feature-links { display: grid; justify-items: start; gap: .75rem; margin-top: 2rem; }
.mk-tour-feature-links > p { margin: 0 0 .25rem !important; font-size: .8125rem; font-weight: 600; }
.mk-tour-disclosure { max-width: 38ch; font-size: .8125rem; line-height: 1.6; }

@media (max-width: 44rem) {
  .mk-tour-heading { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .mk-tour-heading h2 { max-width: 22ch; }
  .mk-tour-heading > p { max-width: none; font-size: .9375rem; }
  .mk-tour-after { align-items: stretch; }
  .mk-tour-after .mk-button { width: 100%; }
  .mk-tour-note { font-size: .6875rem; }
  .mk-tour-note-length { display: none; }
  .mk-tour-watch-head { padding-block: 1.25rem 2rem; }
  .mk-tour-breadcrumb { margin-bottom: 1.5rem; }
  .mk-tour-watch-content { padding-top: 1.25rem; }
  .mk-tour-transcript-list li { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .mk-tour-play { transition: none; } }
