/* Guided stories: the approved caption C over the live model. */
.tour-root{position:absolute;inset:0;z-index:30;pointer-events:none;--tour-cream:#fff4e3;--tour-ink:#192c34;--tour-orange:#f26522}
.tour-root [hidden],.tour-root[hidden]{display:none!important}
.tour-shell{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:24px 20px;color:var(--tour-cream)}
.tour-shell:before{content:'';position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#192c34c9);z-index:-1;pointer-events:none}
.tour-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tour-topbar{position:absolute;top:20px;left:20px;right:20px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;pointer-events:none}
.tour-topbar>*{pointer-events:auto}
.tour-compare{display:flex;padding:4px;border-radius:12px;background:var(--tour-cream);gap:3px}
.tour-pill{min-height:44px;padding:8px 16px;border:0;border-radius:8px;background:transparent;color:var(--tour-ink);font:700 14px/1.2 var(--body);cursor:pointer}
.tour-pill.is-active{background:var(--tour-ink);color:var(--tour-cream)}
.tour-close,.tour-button,.tour-play{display:grid;place-items:center;width:48px;height:48px;min-width:48px;padding:0;border:0;border-radius:50%;color:var(--tour-ink);background:var(--tour-cream);cursor:pointer}
.tour-close{box-shadow:0 4px 18px #192c3426}
.tour-sheet{position:relative;pointer-events:auto;width:min(500px,100%);margin:0;display:flex;flex-direction:column;gap:12px;max-height:calc(100% - 66px)}
.tour-place-chip{align-self:center;display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 15px;border:0;border-radius:24px;background:#192c34f5;color:var(--tour-cream);font:700 14px/1.3 var(--body);cursor:pointer}
.tour-place-chip .tour-icon{width:18px;height:18px}
.tour-cards{overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bcd8d5 transparent}
.tour-card{display:grid;gap:14px;padding:3px 2px}
.tour-title{margin:0;text-align:center;font:800 36px/1.06 var(--display,'Bricolage Grotesque',sans-serif);letter-spacing:-.03em;text-wrap:balance;color:var(--tour-cream);-webkit-text-stroke:1px var(--tour-ink);paint-order:stroke fill;text-shadow:0 2px 4px #192c34cc}
.tour-reading{background:#192c34f5;padding:17px 18px;border-radius:12px}
.tour-body{margin:0;font:400 16px/1.45 var(--body);color:inherit}
.tour-note{margin:12px 0 0;font:400 13px/1.4 var(--body);color:#d5e2df}
.tour-labels{margin:12px 0 0;display:flex;flex-wrap:wrap;gap:6px}
.tour-labels span{font-size:13px;padding:4px 8px;border:1px solid #73928f;border-radius:5px}
.tour-dots{display:flex;gap:5px;height:3px;flex:none}
.tour-dots i{height:3px;flex:1;background:#fff4e35e;border-radius:2px}
.tour-dots i.is-done{background:var(--tour-orange)}
.tour-dots:empty{display:none}
.tour-controls{display:flex;align-items:center;gap:14px;flex:none}
.tour-progress{margin:0 auto 0 0;font:13px/1.3 var(--mono,'IBM Plex Mono',monospace);font-variant-numeric:tabular-nums;display:grid;gap:3px}
.tour-progress #tourPace{font:400 13px/1.3 var(--body)}
.tour-button:disabled,.tour-play:disabled{opacity:.45;cursor:default}
.tour-button-primary{background:var(--tour-orange);color:var(--tour-ink)}
.tour-play{color:var(--tour-cream);background:var(--tour-ink)}
.tour-play:not(.is-playing) .tour-icon{fill:currentColor;stroke-width:0;width:21px}
.tour-bottom-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tour-text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 0;border:0;background:none;color:inherit;font:600 14px/1.3 var(--body);text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.tour-text-button .tour-icon{width:17px;height:17px}
.tour-root button:hover:not(:disabled),.tour-root a:hover{filter:brightness(.93)}
.tour-root :focus-visible,.tour-choice-rail :focus-visible{outline:3px solid #f26522;outline-offset:3px}
.tour-root ::selection{color:var(--tour-ink);background:var(--tour-orange)}
.tour-card-end{padding:26px;background:var(--tour-cream);color:var(--tour-ink);border-radius:16px;gap:18px}
.tour-card-end .tour-title{text-align:left;font-size:38px;color:var(--tour-ink);-webkit-text-stroke:0;text-shadow:none}
.tour-end-mark{height:54px;width:54px;object-fit:contain}
.tour-cta{display:flex;flex-wrap:wrap;gap:8px 16px}
.tour-action-primary{display:inline-flex;gap:10px;align-items:center;justify-content:center;width:100%;min-height:48px;padding:12px 16px;border:0;border-radius:10px;background:var(--tour-orange);color:var(--tour-ink);font:700 15px/1.3 var(--body);text-decoration:none;cursor:pointer}
.tour-end-note{font-size:13px;line-height:1.4;margin:0;color:#3e5257}
.tour-root.is-ended .tour-sheet{max-width:420px}
.tour-root.is-ended .tour-shell{justify-content:center}
.tour-root.is-ended .tour-dots,.tour-root.is-ended .tour-controls{display:none}
.tour-notes{padding:24px;background:var(--tour-cream);border-radius:16px;color:var(--tour-ink);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#7d9897 transparent}
.tour-notes-head{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:14px}
.tour-notes h2{font:800 30px/1.1 var(--display,'Bricolage Grotesque',sans-serif);letter-spacing:-.03em;margin:0}
.tour-notes-head .tour-close{background:transparent;box-shadow:none;flex:none}
.tour-notes p{font:400 15px/1.45 var(--body);margin:0 0 18px}
.tour-notes label{display:block;font-weight:700;font-size:14px;margin-bottom:8px}
.tour-notes textarea{box-sizing:border-box;width:100%;min-height:150px;resize:vertical;padding:12px;border:1px solid #8a9b98;border-radius:8px;background:#fffaf1;color:var(--tour-ink);font:400 16px/1.5 var(--body);caret-color:#bd440f}
.tour-notes textarea::placeholder{color:#506365;opacity:1}
.tour-notes-actions{display:flex;align-items:center;gap:20px;margin-top:16px}
.tour-notes-actions .tour-action-primary{width:auto;flex:1}
.tour-notes .tour-notes-status{font-size:13px;min-height:18px;margin:12px 0 0}
.tour-root.is-noting .tour-shell{justify-content:center}
body.touring .intro,body.touring .viewer-tools,body.touring #legend,body.touring .status-chips,body.touring .map-utilities,body.touring .zoom-controls,body.touring .map-recovery,body.touring .context-actions{opacity:0;visibility:hidden;pointer-events:none}

/* Horizontal choice rail. These selectors beat the incumbent vertical list. */
#tourLibraryList.tour-choice-rail{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;padding:4px 1px 16px;margin:0;scrollbar-width:thin;scrollbar-color:#7d9897 transparent}
#tourLibraryList .tour-choice{display:flex;flex:0 0 238px;flex-direction:column;align-items:flex-start;gap:12px;min-height:276px;box-sizing:border-box;padding:18px;border:1px solid #a6b3aa;border-radius:14px;background:#f5ead8;color:#192c34;scroll-snap-align:start}
#tourLibraryList .tour-choice.is-featured{background:#192c34;color:#fff4e3;border-color:#192c34}
.tour-choice-symbol{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#bcd8d5;color:#192c34}
.tour-choice-symbol .tour-icon{width:29px;height:29px}
#tourLibraryList .tour-choice h3{margin:0;font:800 27px/1.08 var(--display,'Bricolage Grotesque',sans-serif);letter-spacing:-.03em;text-wrap:balance}
#tourLibraryList .tour-choice-description{font:400 14px/1.4 var(--body);margin:0;color:inherit}
#tourLibraryList .tour-choice-meta{font:400 13px/1.4 var(--mono,'IBM Plex Mono',monospace);margin:auto 0 0;color:inherit}
#tourLibraryList .tour-choice-action{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:46px;padding:11px 14px;border:1px solid #192c34;border-radius:9px;background:#fff4e3;color:#192c34;font:700 14px/1.2 var(--body);cursor:pointer}
#tourLibraryList .is-featured .tour-choice-action{background:#f26522;border-color:#f26522}
.tour-choice-stories{min-height:44px;padding:0;background:none;border:0;color:inherit;font:600 14px/1.3 var(--body);text-decoration:underline;text-underline-offset:4px;cursor:pointer}

@media(max-width:899px){
 body.touring .site-header,body.touring .deadline-banner,body.touring .viewer-tools{display:none}
 body.touring .app,body.touring.has-banner .app{grid-template-rows:minmax(0,1fr)}
 body.touring .map-main{padding-bottom:0}
 .tour-shell{padding:16px 20px max(14px,env(safe-area-inset-bottom));padding-top:86px}
 .tour-topbar{top:16px;left:12px;right:12px}
 .tour-sheet{gap:10px;max-height:100%}
 .tour-title{font-size:30px}
 .tour-reading{padding:14px}
 .tour-body{font-size:15px;line-height:1.45}
 .tour-card{gap:12px}
 .tour-card-end{padding:23px}
 .tour-card-end .tour-title{font-size:34px}
 .tour-notes{padding:20px}
 body.touring .transport-credit{top:76px;bottom:auto;right:12px;left:auto;max-width:calc(100% - 24px);font-size:11px}
 #tourLibraryList .tour-choice{flex-basis:232px;min-height:258px;padding:16px}
 #tourLibraryList .tour-choice h3{font-size:25px}
 #tourLibraryList .tour-choice{min-height:248px;gap:10px}
 #tourLibraryList .tour-choice-symbol{width:48px;height:48px}
 #tourLibraryList .tour-choice-description{display:none}
 #panelTour .panel-intro{display:none}
 .tool-surface.is-expanded #tourLibraryList .tour-choice-description{display:block}
 .tool-surface.is-expanded #panelTour .panel-intro{display:block}
}
@media(max-height:720px){
 .tour-shell{padding-bottom:10px}
 .tour-sheet{gap:8px}
 .tour-title{font-size:27px}
 .tour-reading{padding:12px 14px}
 .tour-body{font-size:14px}
 .tour-note{margin-top:8px;font-size:12px}
 .tour-card-end{padding:20px;gap:12px}
 .tour-end-mark{height:42px;width:42px}
 .tour-card-end .tour-title{font-size:30px}
 .tour-bottom-actions .tour-text-button{font-size:13px}
}
@media(prefers-reduced-motion:no-preference){.tour-card.is-current{animation:tour-caption-enter 320ms cubic-bezier(.16,1,.3,1)}@keyframes tour-caption-enter{from{filter:blur(1px);transform:translateY(4px)}to{filter:blur(0);transform:translateY(0)}}}
@media(min-width:600px) and (max-height:540px){
 .tour-root.is-neighborhoods .tour-shell{align-items:flex-start;padding:76px 20px 12px}
 .tour-root.is-neighborhoods .tour-sheet{width:min(380px,44vw);max-height:100%;gap:8px}
 .tour-root.is-neighborhoods .tour-title{font-size:25px}
 .tour-root.is-neighborhoods .tour-reading{padding:10px 12px}
 .tour-root.is-neighborhoods .tour-body{font-size:14px}
}
