@font-face{font-family:'Instrument Serif';src:url('/assets/instrument-serif.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
:root{--paper:#f8f8f4;--ink:#202e32;--muted:#637074;--rule:#d9ddda;--accent:#bd4928;--stage:#20343d;--serif:'Instrument Serif',Georgia,serif;--sans:Arial,Helvetica,sans-serif;--nav-width:250px;--note-width:300px;--edge:24px}
*{box-sizing:border-box}html{font-size:16px}body{margin:0;height:100svh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}
button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}button:focus-visible,a:focus-visible,summary:focus-visible,canvas:focus-visible{outline:2px solid #de7443;outline-offset:4px}button:disabled{opacity:.5;cursor:wait}a{color:inherit}svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.skip-link{position:fixed;left:20px;top:-70px;padding:12px;background:var(--ink);color:white;z-index:50}.skip-link:focus{top:12px}
.masthead{display:flex;align-items:end;justify-content:space-between;gap:26px;padding:22px 32px 20px;border-bottom:1px solid var(--rule)}h1{font-family:var(--serif);font-weight:400;font-size:clamp(2.5rem,4vw,3.7rem);line-height:1;letter-spacing:-.035em;margin:0}
.atlas{position:relative;min-height:0;overflow:hidden;background:var(--stage)}.stage{position:absolute;inset:0;overflow:hidden;background:var(--stage);color:#f4f5ec;isolation:isolate}#canvas-wrap{position:absolute;inset:0}canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}canvas.dragging{cursor:grabbing}canvas.over-route{cursor:pointer}canvas[data-interaction-mode="rotate"]:not(.dragging){cursor:grab}
.course-panel{position:absolute;z-index:5;background:var(--paper);border:1px solid #fff6;border-radius:4px;box-shadow:0 8px 32px #091c2726;color:var(--ink)}
.course-panel{top:var(--edge);left:var(--edge);width:var(--nav-width);padding:17px 18px 15px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:12px}.panel-heading h2{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;font-weight:600;margin:0}.text-button{font-size:.77rem;padding:4px 0;text-decoration:underline;text-underline-offset:4px}.text-button[aria-pressed=true]{color:var(--accent)}
.chapter-button{display:grid;grid-template-columns:21px 1fr;gap:6px;text-align:left;width:100%;padding:clamp(5px,.8vh,8px) 0;border-top:1px solid var(--rule);transition:color .2s}.chapter-button:last-child{border-bottom:1px solid var(--rule)}.chapter-number{font-size:.68rem;color:var(--muted);padding-top:2px;font-variant-numeric:tabular-nums}.chapter-title{display:block;font-size:.875rem;line-height:1.25}.chapter-range{display:block;font-size:.69rem;color:var(--muted);margin-top:3px;font-variant-numeric:tabular-nums}.chapter-button:hover,.chapter-button[aria-pressed=true]{color:var(--accent)}.chapter-button[aria-pressed=true] .chapter-number,.chapter-button[aria-pressed=true] .chapter-range{color:var(--accent)}.chapter-button[aria-pressed=true] .chapter-title{font-weight:600}.chapter-button[aria-pressed=true]{box-shadow:inset 2px 0 0 var(--accent);padding-left:8px;margin-left:-8px;width:calc(100% + 8px)}.distance-note{font-size:.68rem;line-height:1.3;color:var(--muted);margin:12px 0 0}
.stage-top{position:absolute;top:var(--edge);left:calc(var(--edge) + var(--nav-width) + 25px);right:var(--edge);z-index:3;display:flex;align-items:center;justify-content:space-between;gap:20px;pointer-events:none}.stage-top p{font-size:.69rem;letter-spacing:.09em;margin:0;line-height:1.5;max-width:55%}.viewer-actions{display:flex;gap:20px;align-items:center;margin-left:auto}.stage-button{color:#e0e8e7;display:flex;align-items:center;gap:8px;padding:9px 0;font-size:.8rem;pointer-events:auto;white-space:nowrap}.stage-button svg{width:17px;height:17px}.stage-button:hover{color:#ffac7a}.rotation-button{display:flex;gap:7px;align-items:center;color:#e8eeec;font-size:.8rem;padding:9px 12px;border:1px solid #cdd9d45c;border-radius:2px;background:#20343db3;pointer-events:auto;white-space:nowrap}.rotation-button:hover{background:#39515a}.rotation-button svg{height:18px;width:18px}

#map-labels{position:absolute;inset:0;pointer-events:none}.map-label{position:absolute;top:0;left:0;white-space:nowrap;pointer-events:none;will-change:transform;font-size:.61rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;text-shadow:0 1px 5px #20343d;background:#20343dbd;padding:5px 7px;border:1px solid #c9d5d326;opacity:0;transition:opacity .35s}.map-label.endpoint{font-size:.65rem;color:#ffe0b4;border-left:2px solid #ffaa69}.map-label.finish{color:#ffdee3;border-left-color:#e4a1aa}
.loading{position:absolute;inset:0;display:flex;gap:15px;align-items:center;justify-content:center;background:var(--stage);z-index:2;transition:opacity .5s;pointer-events:none}.loading p{font-size:.85rem;color:#d0dddc}.loading.complete{opacity:0;visibility:hidden;transition:opacity .5s,visibility 0s .5s}.loading-ring{width:25px;height:25px;border:1px solid #829797;border-top-color:#ff9a66;border-radius:50%;animation:spin 1.3s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.fallback{position:absolute;inset:0;background:#20343d;z-index:4;text-align:center;padding:20px;overflow:auto}.fallback img{display:block;width:100%;height:75%;object-fit:contain}.fallback p{font-size:1rem;line-height:1.45;max-width:440px;margin:15px auto}.fallback button{font-size:.85rem;color:#ffbe95;border-bottom:1px solid;padding:5px}

@media(max-width:1100px){:root{--nav-width:226px;--note-width:260px;--edge:18px}.masthead{padding:19px 24px}.stage-top p{display:none}}
@media(min-width:761px) and (max-height:720px){.masthead{padding-top:15px;padding-bottom:15px}h1{font-size:2.75rem}.course-panel{padding:13px 16px}.panel-heading{padding-bottom:9px}.chapter-button{padding-top:4px;padding-bottom:4px}.chapter-range{margin-top:2px}.distance-note{margin-top:9px}}
@media(max-width:760px){
  :root{--edge:14px}.masthead{padding:16px 20px;gap:16px}h1{font-size:clamp(2rem,6.2vw,2.8rem)}

  .course-panel{display:none;top:61px;left:14px;right:14px;width:auto;padding:18px;max-height:calc(100% - 75px)}#chapter-list{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.chapter-button{padding:9px 0;min-height:58px;grid-template-columns:19px 1fr;gap:5px}.chapter-button:last-child{border-bottom:0}.chapter-title{font-size:.875rem}.chapter-range{font-size:.7rem}.chapter-button[aria-pressed=true]{margin-left:0;width:100%;padding-left:6px}.distance-note{margin-top:12px}
  .stage-top{top:14px;left:auto;right:14px}.viewer-actions{gap:14px}.stage-button{font-size:.74rem}.stage-button svg{width:15px;height:15px}.rotation-button{padding:9px}.rotation-button span{display:none}.rotation-button svg{width:16px;height:16px}.map-label{font-size:.57rem}.map-label.endpoint{font-size:.59rem;padding:4px 5px}
}
@media(max-width:360px){.masthead{padding:14px 16px}.chapter-title{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}}





.masthead{position:relative;z-index:20;justify-content:center;align-items:center;padding:17px 28px 16px;border-bottom:1px solid #d4dbd6}
.masthead h1{font-size:clamp(2.6rem,4vw,3.6rem);line-height:1.02;letter-spacing:-.025em;text-align:center}
.title-city{color:var(--accent)}
.marathon-picker{position:relative}
.marathon-toggle{display:flex;align-items:center;gap:16px;padding:2px 0;font:inherit;letter-spacing:inherit;white-space:nowrap}
.marathon-chevron{width:23px;height:23px;stroke-width:1.2;color:var(--muted);transition:transform .2s,color .2s}
.marathon-toggle:hover .marathon-chevron,.marathon-toggle[aria-expanded=true] .marathon-chevron{color:var(--accent)}
.marathon-toggle[aria-expanded=true] .marathon-chevron{transform:rotate(180deg)}
.marathon-menu{position:absolute;top:calc(100% + 14px);left:50%;transform:translateX(-50%);width:320px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 110px);overflow:auto;padding:19px 20px 10px;background:var(--paper);border:1px solid #d5dcd6;border-radius:4px;box-shadow:0 16px 48px #091c2740}
.marathon-menu[hidden]{display:none}
.marathon-menu-label{margin:0 0 13px;font:10px var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.marathon-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 0;border-top:1px solid var(--rule);text-align:left}
.marathon-city{font:26px/1.1 var(--serif);letter-spacing:-.01em}
.marathon-status{font:10px/1.2 var(--sans);color:var(--muted);white-space:nowrap}
.marathon-option[aria-checked=true]{color:var(--accent)}
.marathon-option[aria-checked=true] .marathon-status{color:var(--accent);display:flex;align-items:center;gap:6px}
.marathon-option[aria-checked=true] .marathon-status:before{content:'';width:4px;height:4px;background:currentColor;border-radius:50%}
.marathon-option[aria-disabled=true]{cursor:default}
.marathon-option:focus-visible{outline-offset:3px}
@media(max-width:760px){.masthead{padding:14px 16px 13px}.masthead h1{font-size:clamp(1.85rem,8.3vw,2.8rem);line-height:1.06}.marathon-toggle{gap:10px}.marathon-chevron{width:18px;height:18px}.marathon-menu{top:calc(100% + 11px);max-height:calc(100dvh - 88px)}}
@media(min-width:761px) and (max-height:720px){.masthead{padding-top:13px;padding-bottom:12px}.masthead h1{font-size:2.9rem}}
@media(max-width:760px){
  body{grid-template-rows:minmax(0,1fr)}
  .masthead{position:absolute;top:max(12px,env(safe-area-inset-top));left:14px;right:14px;padding:11px 12px 10px;border:1px solid #fff6;border-radius:4px;background:var(--paper);box-shadow:0 5px 24px #091c2726}
  .masthead h1{font-size:clamp(1.8rem,7.9vw,2.7rem)}
  .marathon-menu{top:calc(100% + 18px)}
  .stage-top{top:calc(max(12px,env(safe-area-inset-top)) + 65px)}
  .course-panel{top:calc(max(12px,env(safe-area-inset-top)) + 112px);max-height:calc(100% - 140px)}
  .stage-button{background:#20343ddb;padding:9px 8px;border-radius:3px}
  .viewer-actions{gap:8px}



}
@media(max-width:360px){.masthead{left:12px;right:12px}.masthead h1{font-size:1.8rem}.marathon-toggle{gap:8px}}

/* Mobile keeps the city as the surface; text floats directly over the scene. */
@media(max-width:760px){
  .masthead{top:max(17px,env(safe-area-inset-top));left:20px;right:20px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#f8f8ef}
  .masthead h1{font-size:clamp(1.9rem,8.4vw,2.7rem);text-shadow:0 2px 18px #10252dcc}
  .title-city{color:#ffab7e}.marathon-chevron{color:#e1e8e3}.marathon-toggle{min-height:44px}
  .marathon-menu{color:var(--ink);text-shadow:none;top:calc(100% + 12px)}
  .marathon-toggle:hover .marathon-chevron,.marathon-toggle[aria-expanded=true] .marathon-chevron{color:#ffab7e}
  .stage:after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(#20343dd9 0%,#20343d00 20%),linear-gradient(#172e3700 calc(var(--note-top,65%) - 50px),#172e37c7 var(--note-top,65%),#172e37f2 100%)}
  .stage-top{top:calc(max(17px,env(safe-area-inset-top)) + 55px)}

  .stage-top{right:20px}.viewer-actions{gap:7px}
  .stage-button{width:44px;height:44px;padding:12px;font-size:0;background:#20343d66;border:1px solid #cdd9d43b;backdrop-filter:blur(8px)}.stage-button svg{width:18px;height:18px;flex-shrink:0}
  .rotation-button{width:44px;height:44px;justify-content:center;background:#20343d66;border-color:#cdd9d43b;backdrop-filter:blur(8px)}.rotation-button svg{width:18px;height:18px}
  .course-panel{top:calc(max(17px,env(safe-area-inset-top)) + 110px)}



  .map-label.endpoint{font-size:.625rem}
}
@media(max-width:360px){.masthead{left:16px;right:16px}.masthead h1{font-size:1.9rem}}


/* Course source links stay within the notes and course menu. */
.distance-note a{display:inline-block;margin-top:5px;text-underline-offset:2px}

/* The section story stays visible, with one clear action to keep exploring. */
.note-panel{position:absolute;z-index:5;right:var(--edge);bottom:var(--edge);width:var(--note-width);padding:23px 22px;background:var(--paper);border:1px solid #fff6;border-radius:4px;box-shadow:0 8px 32px #091c2726;color:var(--ink)}
.note-eyebrow{min-height:34px;margin:0 0 9px;padding-right:54px;font-size:.68rem;line-height:1.4;letter-spacing:.07em;text-transform:uppercase;color:var(--accent)}
.chapter-note h3{font:400 2.1rem/1.08 var(--serif);letter-spacing:-.015em;margin:0 0 12px;text-wrap:pretty}
.note-body{font-size:.91rem;line-height:1.48;margin:0;color:#48565a;text-wrap:pretty}
.next-section{position:absolute;top:17px;right:17px;z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;color:#20343d;background:#ee8955;transition:background .2s,transform .2s}
.next-section svg{width:23px;height:23px;stroke-width:1.6}.next-section:hover{background:#ffa475;transform:translateX(2px)}.next-section:active{transform:scale(.96)}
@media(max-width:1100px){.note-panel{padding:20px 18px}.chapter-note h3{font-size:1.95rem}}
@media(min-width:761px) and (max-height:720px){.note-panel{padding-top:18px;padding-bottom:18px}.chapter-note h3{font-size:1.85rem}.note-body{font-size:.875rem}}
@media(max-width:760px){
  .note-panel{left:22px;right:20px;bottom:max(24px,env(safe-area-inset-bottom));width:auto;height:auto;min-height:0;padding:0;background:none;border:0;box-shadow:none;border-radius:0;color:#fbf9ef;text-shadow:0 2px 18px #10252dcc}
  .note-eyebrow{min-height:28px;margin-bottom:5px;padding-right:58px;color:#ffb78f;font-size:.69rem;line-height:1.35;letter-spacing:.09em}
  .chapter-note h3{font-size:1.8rem;line-height:1.08;margin-bottom:9px;padding-right:48px}
  .note-body{font-size:.875rem;line-height:1.45;color:#e2e9e6;max-width:42ch}
  .next-section{top:-3px;right:0;width:44px;height:44px;box-shadow:0 2px 12px #10252d33}

}
@media(max-width:360px){.chapter-note h3{font-size:1.65rem}.note-body{font-size:.8125rem}.note-eyebrow{font-size:.625rem}}

.marathon-credit{margin:7px 0 2px;padding-top:11px;border-top:1px solid var(--rule);font:10px/1.4 var(--sans);color:var(--muted)}.marathon-credit a{text-decoration:none}.marathon-credit a:hover{text-decoration:underline}

/* One shared identity, with the current marathon kept within easy reach. */
.masthead{justify-content:space-between;gap:24px;padding:16px 28px}
.brand{font:400 clamp(2rem,3.3vw,2.8rem)/1 var(--serif);letter-spacing:-.025em;white-space:nowrap;text-decoration:none}
.masthead h1.course-heading{font:400 1.6rem/1 var(--serif);letter-spacing:-.01em;text-shadow:none}
.marathon-toggle{gap:12px;min-height:44px;padding:0}
.marathon-chevron{width:18px;height:18px}
.marathon-menu{left:auto;right:0;transform:none;top:calc(100% + 14px)}
.city-short{display:none}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:761px) and (max-height:720px){.masthead{padding-top:12px;padding-bottom:12px}.brand{font-size:2.4rem}}
@media(max-width:760px){
  .masthead{gap:14px;padding:0;align-items:center}
  .brand{font-size:clamp(1.65rem,6.7vw,2.1rem);text-shadow:0 2px 18px #10252dcc}
  .masthead h1.course-heading{font-size:1.25rem;text-shadow:0 2px 18px #10252dcc}
  .marathon-toggle,body[data-course=chicago] .marathon-toggle{gap:7px}
  .marathon-chevron{width:15px;height:15px}
  .marathon-menu{position:fixed;top:calc(max(17px,env(safe-area-inset-top)) + 56px);left:20px;right:20px;width:auto;max-width:none;max-height:calc(100dvh - 96px)}
  .city-full{display:none}.city-short{display:inline}
}
@media(max-width:360px){.brand{font-size:1.55rem}.masthead h1.course-heading{font-size:1.125rem}.masthead{gap:10px}.marathon-menu{left:16px;right:16px}}
