#tour {
  --tour-ink: var(--ink);
  --tour-blue: var(--blue);
  --tour-edge: #d5dce5;
  --tour-muted: #45576e;
  box-sizing: border-box;
  min-width: 0;
  background: #fff;
  color: var(--tour-ink);
  font-family: "DM Sans", Arial, sans-serif;
  text-align: left;
  padding: clamp(64px, 7.4vw, 116px) 0;
  scroll-margin-top: 0;
}
#tour *, #tour *::before, #tour *::after { box-sizing: border-box; }
#tour [hidden] { display: none !important; }
#tour .tour-wrap { width: min(1200px, calc(100% - clamp(32px, 8vw, 112px))); margin: 0 auto; }
#tour .tour-intro { max-width: 760px; margin: 0 0 clamp(22px, 3.5vw, 44px); }
#tour .tour-intro h2, #tour .tour-story h3, #tour .tour-dialog-head h3 {
  font-family: inherit; font-weight: 650; line-height: 1.04; margin: 0; color: var(--tour-ink); text-transform: none;
}
#tour .tour-intro h2 { max-width: none; font-size: clamp(35px, 4.7vw, 68px); letter-spacing: -.04em; }
#tour .tour-intro > p { max-width: 56ch; margin: 15px 0 0; font-size: clamp(16px, 1.55vw, 20px); line-height: 1.48; color: var(--tour-muted); }
#tour .tour-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--tour-edge); margin: 0 0 clamp(22px, 3.5vw, 44px); }
#tour button, #tour a { font-family: inherit; -webkit-tap-highlight-color: transparent; }
#tour button { cursor: pointer; }
#tour .tour-tabs button {
  appearance: none; border: 0; border-radius: 0; background: transparent; color: var(--tour-muted);
  padding: 16px 4px; line-height: 1.3; min-height: 48px; position: relative;
  font-size: clamp(13px, 1.32vw, 17px); font-weight: 630; letter-spacing: -.015em;
}
#tour .tour-tabs button:hover { background: #f5f7fa; color: var(--tour-ink); }
#tour .tour-tabs button[aria-selected="true"] { color: var(--tour-blue); }
#tour .tour-tabs button[aria-selected="true"]::after { content: ""; position: absolute; border-bottom: 3px solid currentColor; bottom: -1px; left: 0; right: 0; }
#tour :where(button, a, [tabindex]):focus-visible { outline: 3px solid var(--tour-blue); outline-offset: 3px; }
#tour .tour-tabs button:focus-visible { z-index: 1; outline-offset: -3px; border-radius: 2px; }
#tour #tour-panel {
  display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(0, .9fr);
  grid-template-rows: min-content min-content; align-content: center; align-items: start;
  grid-template-areas: "evidence story" "evidence handoff"; column-gap: clamp(28px, 4.8vw, 76px);
}
#tour .tour-story { grid-area: story; align-self: end; min-width: 0; }
#tour .tour-count { margin: 0 0 12px; color: var(--tour-blue); font-size: 14px; line-height: 1.3; font-weight: 670; }
#tour .tour-story h3 { max-width: 15ch; font-size: clamp(30px, 3.5vw, 49px); line-height: 1.05; letter-spacing: -.04em; }
#tour .tour-body, #tour .tour-handoff p { color: var(--tour-muted); font-weight: 400; line-height: 1.5; margin: 0; font-size: clamp(16px, 1.25vw, 18px); }
#tour .tour-story .tour-body { margin-top: 16px; }
#tour .tour-handoff { grid-area: handoff; min-width: 0; padding-top: 19px; }
#tour .tour-handoff p { max-width: 45ch; }
#tour .tour-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 24px; }
#tour .tour-next, #tour .tour-back, #tour .tour-original-link, #tour .tour-dialog-close {
  min-height: 44px; font-size: 15px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em;
  border: 0; color: var(--tour-ink); background: transparent; padding: 8px 12px; margin: 0;
}
#tour .tour-next {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 6px; background: var(--tour-blue); color: #fff; padding: 12px 17px;
}
#tour .tour-next:hover { background: #103eae; }
#tour .tour-expand svg, #tour .tour-dialog-close svg { width: 19px; height: 19px; flex: none; }
#tour .tour-back { text-decoration: underline; text-underline-offset: 4px; }
#tour .tour-back:hover, #tour .tour-expand:hover { color: var(--tour-blue); }
#tour .tour-evidence { grid-area: evidence; align-self: center; margin: 0; min-width: 0; }
#tour .tour-stage {
  position: relative; isolation: isolate; overflow: hidden; border: 1px solid #d6e0ef; border-radius: 9px;
  width: 100%; aspect-ratio: 1.83; background: linear-gradient(135deg, #eef3fa 3%, #dce7fa 100%);
}
#tour .tour-source-preview {
  position: absolute; top: 7%; left: 4.8%; width: 82%; height: auto; display: block;
  border-radius: 4px; box-shadow: 0 5px 19px rgba(23, 47, 89, .14); border: 1px solid rgba(97, 120, 157, .3);
}
#tour .tour-evidence[data-shape="form"] .tour-source-preview { width: 46%; }
#tour .tour-evidence[data-shape="dialog"] .tour-source-preview { width: 83%; }
#tour .tour-evidence[data-shape="strip"] .tour-source-preview { width: 89%; }
#tour .tour-closeup {
  position: absolute; bottom: 7%; right: 4.8%; width: 81%; overflow: hidden; background: #f8fafd;
  border: 1px solid #97acd3; border-radius: 6px;
  box-shadow: 0 12px 29px rgba(21, 46, 89, .18), 0 1px 4px rgba(18, 38, 74, .09);
}
#tour .tour-evidence[data-shape="form"] .tour-closeup { width: 68%; }
#tour .tour-detail-label {
  display: block; padding: 7px 11px; color: #214475; font-size: 13px; font-weight: 650; line-height: 1.2; background: #eef4fe;
  border-bottom: 1px solid #cbd9ee;
}
#tour .tour-detail-image { width: 100%; height: auto; display: block; margin: 0; }
#tour .tour-evidence figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 1px 0; line-height: 1.25; }
#tour .tour-screen-name { color: var(--tour-muted); font-size: 14px; font-weight: 540; }
#tour .tour-expand {
  display: inline-flex; gap: 6px; align-items: center; justify-content: center; padding: 0 2px; min-height: 42px;
  text-decoration: none; color: var(--tour-ink); font-size: 14px; font-weight: 650;
}
#tour .tour-expand svg { width: 16px; height: 16px; }
#tour .tour-static { font-size: 15px; line-height: 1.5; }
#tour .tour-static a { color: var(--tour-blue); }
#tour-image-dialog {
  inset: 0; margin: auto; padding: 0; width: min(96vw, 1500px); max-width: 96vw;
  height: min(88dvh, 980px); max-height: 94dvh; color: #10213b; background: #fff; border: 1px solid #bac6da;
  border-radius: 10px; box-shadow: 0 24px 100px #07172f55;
}
#tour-image-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
#tour-image-dialog::backdrop { background: rgb(9 22 42 / .78); }
#tour .tour-dialog-head, #tour .tour-dialog-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px;
}
#tour .tour-dialog-head h3 { font-size: clamp(20px, 2.2vw, 29px); letter-spacing: -.035em; }
#tour .tour-dialog-close { display: grid; place-items: center; min-width: 44px; padding: 0; }
#tour .tour-viewer {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; min-width: 0; padding: 12px; overscroll-behavior: contain;
  background: #e6ecf4; border-block: 1px solid var(--tour-edge);
}
#tour .tour-original { margin: auto; display: block; min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; max-width: 100%; }
#tour .tour-zoom-note { margin: 0; color: var(--tour-muted); font-size: 14px; line-height: 1.3; }
#tour .tour-original-link { display: inline-flex; align-items: center; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
#tour .tour-original-link:hover, #tour .tour-dialog-close:hover { background: #edf2f9; }
html:has(#tour-image-dialog[open]) { overflow: hidden; }
@media (max-width: 850px) {
  #tour #tour-panel { column-gap: 25px; grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); }
  #tour .tour-stage { aspect-ratio: 1.51; }
}
@media (max-width: 720px) {
  #tour .tour-wrap { width: min(580px, calc(100% - 36px)); }
  #tour #tour-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "story" "evidence" "handoff"; }
  #tour .tour-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--tour-edge); border-radius: 5px; overflow: hidden; margin-bottom: 24px; }
  #tour .tour-tabs button { padding: 10px 2px; min-height: 43px; border-radius: 0; }
  #tour .tour-tabs button:nth-child(-n+3) { border-bottom: 1px solid var(--tour-edge); }
  #tour .tour-tabs button[aria-selected="true"] { background: #eef3ff; }
  #tour .tour-tabs button[aria-selected="true"]::after { bottom: 0; }
  #tour .tour-story h3 { max-width: none; font-size: clamp(30px, 6.4vw, 40px); }
  #tour .tour-count { margin-bottom: 8px; }
  #tour .tour-story .tour-body { margin-top: 10px; }
  #tour .tour-evidence { margin-top: 20px; }
  #tour .tour-stage { aspect-ratio: 1.95; }
  #tour .tour-handoff { padding-top: 12px; border-top: 1px solid var(--tour-edge); }
  #tour .tour-controls { margin-top: 15px; }
}
@media (max-width: 600px) {
  #tour .tour-stage { aspect-ratio: 1.58; }
  #tour .tour-evidence[data-shape="form"] .tour-source-preview { width: 51%; }
  #tour .tour-evidence[data-shape="form"] .tour-closeup { width: 66%; }
  #tour .tour-closeup { width: 77%; }
  #tour .tour-detail-label { font-size: 12px; padding: 5px 8px; }
  #tour .tour-evidence figcaption { padding-top: 2px; }
  #tour-image-dialog { width: 100vw; max-width: 100vw; height: 90dvh; border-radius: 8px; }
  #tour .tour-dialog-head, #tour .tour-dialog-foot { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #tour, #tour *, #tour *::before, #tour *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}


#tour .tour-media-note { margin: 0; padding: 12px; color: var(--tour-ink); font-size: 15px; line-height: 1.45; }
#tour .tour-viewer .tour-media-note { align-self: center; justify-self: center; max-width: 52ch; }
#tour .tour-count { font-variant-numeric: tabular-nums; }

#tour .tour-stage > .tour-media-note {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0; padding: 6px 12px; min-height: 32px; background: #eef3fa;
  font-size: 14px; line-height: 1.3;
}
#tour .tour-stage > .tour-media-note button {
  flex: none; min-height: 40px; padding: 4px; border: 0; background: transparent;
  font: inherit; font-weight: 650; color: var(--tour-blue); text-decoration: underline;
}
