.tour-band {
  background: linear-gradient(145deg, #e0eaff, #eeedff 85%);
  color: var(--ink);
}
.native-band { background: #f8f2e9; color: var(--ink); }
:root[data-theme=dark] .tour-band { background: linear-gradient(145deg, #1c304d, #2b2745); }
:root[data-theme=dark] .native-band { background: #282632; }
.tour-inner, .native-inner { width: min(1200px, calc(100% - 5rem)); margin-inline: auto; padding-block: clamp(2.4rem, 5vw, 4.8rem); }
.tour-intro, .native-intro { max-width: 51rem; margin-bottom: clamp(1.4rem, 2.6vw, 2.4rem); }
.tour-intro h2, .native-intro h2, .tour-full h1, .workspace .dashboard-main :is(.tour-intro, .native-intro) h2 {
  font: 670 clamp(1.85rem, 3.8vw, 3.6rem)/1.06 var(--display); letter-spacing: -.035em; text-wrap: balance; margin: 0 0 .75rem;
}
.tour-full h1 { font-size: clamp(2.45rem, 5.4vw, 5rem); }
.tour-back { display: inline-flex; margin-bottom: 1.2rem; color: var(--accent); font-weight: 600; }
.tour-intro p, .native-intro p { max-width: 64ch; margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--muted); }
.tour-body { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(15rem, 1fr); align-items: start; gap: clamp(1.4rem, 3.4vw, 3rem); }
.tour-viewer { overflow: hidden; background: var(--white); border-radius: 1rem; border: 1px solid var(--line); box-shadow: 0 .4rem 0 var(--poster-shadow); }
.tour-media { position: relative; }
.tour-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0;
  display: grid; align-content: end; justify-content: start; padding: 0 0 4.3% 3.3%;
  text-align: start; background: linear-gradient(transparent 72%, #0c1b2c 100%); cursor: pointer;
}
.tour-cover[hidden] { display: none; }
.tour-cover > span { display: inline-flex; align-items: center; gap: .55rem; border-radius: 2rem; padding: .52rem .88rem; color: #192d40; background: #e5ffed; font: 670 .92rem/1.1 var(--sans); }
.tour-cover > span small { color: #335647; font: 550 .74rem var(--mono, monospace); }
.tour-cover b { color: #265742; }
.tour-cover:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.tour-viewer video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: #172840; }
.tour-under-film { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .45rem 1rem; padding: .8rem 1rem; font-size: .87rem; color: var(--muted); }
.tour-under-film a { color: var(--accent); font-weight: 640; text-underline-offset: .2em; }
.tour-notes ol { list-style: decimal-leading-zero; padding-left: 1.8rem; margin: 0; }
.tour-notes li { padding-left: .4rem; margin: 0 0 .95rem; }
.tour-notes li::marker { color: var(--accent); font: 630 .8rem var(--mono, monospace); }
.tour-step-title { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.tour-step-title strong { font: 670 1.05rem/1.2 var(--sans); }
.tour-step-title button { flex: none; color: var(--accent); font: 600 .78rem var(--mono, monospace); min-height: 1.65rem; min-width: 3.2rem; padding: .22rem .4rem; background: var(--white); border: 1px solid var(--line); border-radius: .45rem; cursor: pointer; }
.tour-step-title button[aria-current=step] { border-color: var(--accent); }
.tour-notes p { font-size: .94rem; line-height: 1.45; color: var(--muted); margin: .24rem 0 0; }
.native-layout { padding: 0; gap: clamp(1.5rem, 5vw, 4.5rem); }
.native-band .guide-nav { gap: .15rem; border-inline-start: 1px solid var(--line); }
.native-band .guide-nav a {
  margin-inline-start: -1px; padding: .55rem .8rem; border-inline-start: 3px solid transparent;
  border-radius: 0 .45rem .45rem 0; color: var(--muted); font-weight: 550; line-height: 1.35;
}
.native-band .guide-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
.native-band .guide-nav a[aria-current=location] {
  color: var(--accent); background: var(--soft); border-color: currentColor; font-weight: 700;
}
.native-band .guide-body article { scroll-margin-block-start: 1rem; }
.native-band .guide-body h3 { font: 670 clamp(1.5rem, 2.5vw, 2.15rem)/1.15 var(--display); letter-spacing: -.022em; margin: 0 0 .8rem; }
.native-band .guide-body article:first-child { padding-top: 1.4rem; }
.workspace .tour-band, .workspace .native-band { border-radius: 1rem; margin-bottom: 1.4rem; }
.workspace .tour-inner, .workspace .native-inner { width: auto; padding: clamp(1rem, 2.5vw, 2.15rem); }
.workspace .tour-body { grid-template-columns: minmax(0, 1.5fr) minmax(13rem, 1fr); gap: 1.15rem; }
.workspace .native-layout { grid-template-columns: minmax(8rem, .55fr) minmax(0, 2fr); gap: 1.4rem; }
@media (max-width: 1100px) { .workspace .tour-body { grid-template-columns: 1fr; } }
@media (max-width: 780px) {
  .tour-inner, .native-inner { width: calc(100% - 2.4rem); }
  .tour-body, .native-layout, .workspace .native-layout { grid-template-columns: 1fr; }
  .native-layout, .workspace .native-layout { display: block; }
  .native-layout .guide-nav {
    display: flex; flex-flow: row nowrap; position: sticky; top: 0; z-index: 2; gap: .25rem;
    padding: .25rem; margin-bottom: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: thin; border: 1px solid var(--line); border-radius: .6rem; background: var(--white);
  }
  .native-layout .guide-nav a {
    flex: none; white-space: nowrap; margin: 0; padding: .65rem .55rem;
    border: 0; border-block-end: 3px solid transparent; border-radius: .35rem; font-size: .9rem;
  }
  .native-layout .guide-nav a:focus-visible { outline-offset: -3px; }
  .native-band .guide-body article { scroll-margin-block-start: 4.5rem; }
  .tour-notes li { margin-bottom: .8rem; }
}
@media (max-width: 450px) {
  .tour-inner, .native-inner { width: calc(100% - 1.6rem); }
  .tour-intro p, .native-intro p { font-size: 1rem; }
}

.guide-heading { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(16rem,1fr); align-items:center; gap:clamp(1.35rem,4vw,4rem); }
.guide-heading .lede { margin-bottom:.7rem; }
.guide-library { padding:1rem 1.2rem; background:var(--soft); border-radius:.85rem; }
.guide-library h2 { font:670 1.1rem var(--display); margin:0 0 .55rem; }
.guide-library ul { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.35rem .75rem; }
.guide-library a { display:inline-block; color:var(--accent); line-height:1.35; padding:.26rem 0; font-size:.9rem; font-weight:600; text-underline-offset:.16em; }
@media (max-width:760px) { .guide-heading { grid-template-columns:minmax(0,1fr); } }
