@font-face{font-family:"Newsreader";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/newsreader-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/newsreader-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Newsreader";font-style:italic;font-weight:400;font-display:swap;src:url(fonts/newsreader-italic-400-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plex";font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/IBMPlexSans-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plex";font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/IBMPlexSans-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* page: warm paper by day, night blue by night; the map is always night (the cross is a lamp) */
:root{
  --bg:#f4eee4;--surface:#fbf8f2;--ink:#1b1a22;--muted:#47454f;--line:rgba(27,26,34,.16);--line-soft:rgba(27,26,34,.08);
  --accent:#7a4806;--focus:#7a4806;--chip:#ebe2d2;--res-yes:#7a4806;--res-no:#5a5864;--res-trees:#8a4a1a;
  --serif:"Newsreader",Georgia,"Times New Roman",serif;--sans:"Plex",system-ui,-apple-system,"Segoe UI",sans-serif;
  --night:#0b0f1b;--night-2:#121829;--night-ink:#f4ede1;--night-muted:#b9b4ab;--gold:#ffc86e;--ember:#eb8c46;--roof:#c4a878;
  --top:44px;color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0e111b;--surface:#151a28;--ink:#efe8dc;--muted:#c3bfb6;--line:rgba(239,232,220,.17);--line-soft:rgba(239,232,220,.08);
  --accent:#ffc86e;--focus:#ffc86e;--chip:#1d2232;--res-yes:#ffc86e;--res-no:#a7a3ad;--res-trees:#f0a06a;color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0e111b;--surface:#151a28;--ink:#efe8dc;--muted:#c3bfb6;--line:rgba(239,232,220,.17);--line-soft:rgba(239,232,220,.08);
  --accent:#ffc86e;--focus:#ffc86e;--chip:#1d2232;--res-yes:#ffc86e;--res-no:#a7a3ad;--res-trees:#f0a06a;color-scheme:dark}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--top) + 12px)}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1.125rem/1.62 var(--serif);font-optical-sizing:auto}
a{color:var(--accent);text-underline-offset:.18em}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.skip-link{position:absolute;left:-9999px;top:0;z-index:50;background:var(--surface);color:var(--ink);padding:.5rem .8rem}
.skip-link:focus{left:.5rem;top:.5rem}
.num{font-variant-numeric:tabular-nums}
strong{font-weight:650}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* top bar: slim, the colour of the night map */
.topbar{position:sticky;top:0;z-index:30;height:var(--top);display:flex;align-items:center;gap:.6rem;padding:0 max(12px,env(safe-area-inset-left));
  background:var(--night);color:var(--night-ink);font:500 .82rem/1 var(--sans)}
.brand{display:flex;align-items:center;gap:.45rem;color:inherit;text-decoration:none;font-weight:600;white-space:nowrap}
.brand-mark{width:22px;height:22px;color:var(--gold)}
.topnav{display:flex;gap:1rem;margin-left:1rem}
.topnav a{color:var(--night-muted);text-decoration:none}
.topnav a:hover,.topnav a[aria-current="true"]{color:var(--night-ink)}
.spacer{flex:1}
.chips{display:flex;gap:.15rem}
.chip{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:0 .3rem;border-radius:6px;color:var(--night-muted);text-decoration:none;font-size:.74rem;letter-spacing:.04em}
.chip[aria-current="page"]{color:var(--night-ink);box-shadow:inset 0 -2px 0 var(--gold)}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;background:none;color:var(--night-ink);border-radius:8px;cursor:pointer}
.icon-btn .i-moon{display:none}
:root[data-theme="dark"] .icon-btn .i-sun{display:none}:root[data-theme="dark"] .icon-btn .i-moon{display:block}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .icon-btn .i-sun{display:none}:root:not([data-theme="light"]) .icon-btn .i-moon{display:block}}
@media (max-width:860px){.topnav{display:none}.brand span{display:none}}
@media (max-width:360px){.chip{min-width:30px}.topbar{gap:.3rem}}
.progress{position:fixed;left:0;right:0;top:var(--top);height:2px;z-index:31;pointer-events:none}
.progress i{display:block;height:100%;width:100%;background:var(--gold);transform-origin:0 50%;transform:scaleX(0)}

/* reading rail on the right (labels stay out of the layout) */
.rail{position:fixed;right:6px;top:50%;transform:translateY(-50%);z-index:20;display:flex;flex-direction:column;gap:2px}
.rail-dot{position:relative;display:flex;align-items:center;justify-content:flex-end;width:28px;height:24px;text-decoration:none}
.rail-dot .dot{width:7px;height:7px;border-radius:50%;background:var(--muted);opacity:.45;transition:transform .2s,opacity .2s}
.rail-dot[aria-current="true"] .dot{opacity:1;background:var(--gold);transform:scale(1.35)}
.rail-label{position:absolute;right:22px;top:50%;transform:translateY(-50%);white-space:nowrap;font:500 .74rem/1 var(--sans);color:var(--ink);background:var(--surface);padding:.3rem .45rem;border-radius:5px;opacity:0;pointer-events:none;transition:opacity .15s;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.rail-dot:hover .rail-label,.rail-dot:focus-visible .rail-label{opacity:1}
@media (max-width:979px){.rail{display:none}}

/* the story: text on the left, the map (sticky) on the right */
.story{display:grid;grid-template-columns:minmax(330px,450px) 1fr;align-items:start}
.stage{grid-column:2;grid-row:1;position:sticky;top:var(--top);height:calc(100vh - var(--top));height:calc(100svh - var(--top));background:var(--night);overflow:hidden;color:var(--night-ink);font-family:var(--sans)}
.steps{grid-column:1;grid-row:1;list-style:none;margin:0;padding:0 0 30vh}
.step{min-height:88vh;display:flex;align-items:center;padding:3rem clamp(18px,3vw,40px)}
.step.hero{min-height:calc(100svh - var(--top));align-items:flex-start;padding-top:2.2rem}
.step-card,.hero-card{max-width:40rem}
.step h2{font:600 1.55rem/1.2 var(--serif);margin:0 0 .8rem;letter-spacing:-.005em}
.step p{margin:.6rem 0}
.kicker{font:600 .78rem/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin:0 0 .6rem}
h1{font:640 clamp(2rem,4.2vw,2.9rem)/1.06 var(--serif);margin:0 0 1rem;letter-spacing:-.012em}
.deck{font-size:1.2rem;line-height:1.5;margin:0 0 1.2rem}
.scroll-cue{font:500 .85rem/1.4 var(--sans);color:var(--muted);margin-top:1.4rem}
.anchor{margin-left:.35rem;font:500 .8em var(--sans);color:var(--muted);text-decoration:none;opacity:0;transition:opacity .15s}
h2:hover .anchor,.anchor:focus-visible{opacity:1}

/* the finder: search, my position, clear */
.finder{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font-family:var(--sans)}
.combo{position:relative;flex:1 1 15rem;min-width:0}
.combo input{width:100%;min-height:46px;padding:.55rem .8rem;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:400 1rem/1.2 var(--sans)}
.qlist{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:40;margin:0;padding:.25rem;list-style:none;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.22);max-height:19rem;overflow:auto}
.qlist li{padding:.5rem .6rem;border-radius:7px;cursor:pointer;display:flex;justify-content:space-between;gap:.8rem;font-size:.95rem}
.qlist li small{color:var(--muted);white-space:nowrap}
.qlist li[aria-selected="true"],.qlist li:hover{background:var(--chip)}
.btn{display:inline-flex;align-items:center;gap:.4rem;min-height:46px;padding:.5rem .9rem;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:500 .92rem/1.1 var(--sans);cursor:pointer}
.btn:hover{border-color:var(--accent)}
.btn.ghost{background:none}
.btn.small{min-height:36px;padding:.3rem .7rem;font-size:.84rem}
.finder-msg{flex-basis:100%;margin:.1rem 0 0;font:400 .85rem/1.4 var(--sans);color:var(--muted);min-height:1.2em}
.result{margin-top:.6rem;padding:.9rem 1rem;border-left:3px solid var(--accent);background:var(--surface);border-radius:0 10px 10px 0;font:400 .98rem/1.5 var(--sans)}
.result b{font-weight:600}
.noscript{font:400 .9rem/1.4 var(--sans);color:var(--muted)}

/* map and its layers */
.map{position:absolute;inset:0;touch-action:none;cursor:crosshair}
.map .still,.map .gl,.map .marks{position:absolute;inset:0;width:100%;height:100%;display:block}
.map .still{object-fit:cover;transition:opacity .4s}
.map.live .still{opacity:0}
.map .gl{opacity:0;transition:opacity .4s}.map.live .gl{opacity:1}
.marks{pointer-events:none;overflow:visible}
.marks .ray{stroke:#fff1cf;stroke-width:2;fill:none}
.marks .ray.hid{stroke:#b9c2d6;stroke-dasharray:5 6}
.marks .near{stroke:#ffc86e;stroke-width:1.6;stroke-dasharray:2 5;fill:none}
.marks .pt{fill:#fff;stroke:var(--night);stroke-width:3}
.marks .npt{fill:var(--gold);stroke:var(--night);stroke-width:2}
.marks .vp{fill:var(--gold);stroke:var(--night);stroke-width:1.5}
.marks .vp.no{fill:#8790a6}
.marks text{font:500 11px var(--sans);fill:var(--night-ink);paint-order:stroke;stroke:rgba(8,11,20,.85);stroke-width:3px}
.marks .tower{fill:#fff8e6}
.pin-card{position:absolute;z-index:6;width:min(300px,calc(100% - 24px));background:rgba(12,16,28,.96);color:var(--night-ink);border:1px solid rgba(255,200,110,.35);border-radius:12px;padding:.8rem .9rem .7rem;font:400 .9rem/1.45 var(--sans);box-shadow:0 10px 30px rgba(0,0,0,.45)}
.pin-card h3{font:600 1.02rem/1.25 var(--serif);margin:0 1.6rem .35rem 0;color:#fff}
.pin-card p{margin:.3rem 0}
.pin-card .tier{font-weight:600}
.pin-card .tier.t3{color:var(--gold)}.pin-card .tier.t2{color:#f2a46a}.pin-card .tier.t1{color:#e2cfa6}.pin-card .tier.t0{color:#c9cfdc}
.pin-card .sub{color:var(--night-muted);font-size:.84rem}
.pin-card .x{position:absolute;top:.35rem;right:.35rem;width:32px;height:32px;border:0;background:none;color:var(--night-muted);font-size:1.2rem;cursor:pointer;border-radius:6px}
.pin-card .row{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}
.pin-card .btn{min-height:34px;padding:.25rem .6rem;background:rgba(255,255,255,.06);color:var(--night-ink);border-color:rgba(255,255,255,.18);font-size:.8rem}
.pin-card .share{margin-top:.4rem}
.pin-card .share .ic{color:var(--night-ink);border-color:rgba(255,255,255,.2)}
.pin-card .share-label{color:var(--night-muted)}

.stage-ui{position:absolute;left:12px;right:12px;top:10px;z-index:5;display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;pointer-events:none}
.stage-ui>*{pointer-events:auto}
.seg{display:inline-flex;background:rgba(10,14,25,.82);border:1px solid rgba(255,255,255,.14);border-radius:9px;padding:2px}
.tog{min-height:34px;padding:.2rem .65rem;border:0;border-radius:7px;background:none;color:var(--night-muted);font:500 .8rem/1 var(--sans);cursor:pointer}
.tog[aria-pressed="true"]{background:rgba(255,200,110,.18);color:#fff}
.stage-ui .btn.small{background:rgba(10,14,25,.82);color:var(--night-ink);border-color:rgba(255,255,255,.18)}
.era{font:500 .8rem/1.2 var(--sans);color:var(--night-ink);background:rgba(10,14,25,.72);padding:.35rem .55rem;border-radius:7px}
.era:empty{display:none}
.zoom{margin-left:auto;display:inline-flex;gap:.25rem}
.ic{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;font:500 1.1rem/1 var(--sans);text-decoration:none}
.stage .zoom .ic{background:rgba(10,14,25,.82);color:var(--night-ink);border-color:rgba(255,255,255,.18)}
.legend{position:absolute;left:12px;bottom:10px;z-index:5;display:flex;flex-wrap:wrap;gap:.3rem .8rem;font:500 .74rem/1.2 var(--sans);color:var(--night-ink);background:rgba(10,14,25,.72);padding:.4rem .6rem;border-radius:8px;max-width:calc(100% - 24px)}
.legend span{display:inline-flex;align-items:center;gap:.35rem}
.sw{width:12px;height:12px;border-radius:3px;display:inline-block}
.sw.clear{background:var(--gold);box-shadow:0 0 6px rgba(255,200,110,.8)}.sw.trees{background:var(--ember)}.sw.roof{background:var(--roof)}.sw.hid{background:#39415a}
.stage[data-mode="street"] [data-leg-roof]{display:none}
.stage[data-panel="far"] .map,.stage[data-panel="far"] .stage-ui,.stage[data-panel="far"] .legend{visibility:hidden}

/* far panel */
.far{position:absolute;inset:0;margin:0;display:flex;align-items:center;justify-content:center;background:#090d18}
.far img{max-width:100%;max-height:100%;width:auto;height:auto;display:block;transform:scale(1.85);transform-origin:58% 63%}
.far{overflow:hidden}
.far-marks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.far-marks text{font:500 12px var(--sans);fill:#f4ede1;paint-order:stroke;stroke:rgba(8,11,20,.9);stroke-width:3px}
.far-marks .yes{fill:var(--gold)}.far-marks .no{fill:#9aa3b8}
.far-marks .los{stroke:#fff1cf;stroke-width:1.4}.far-marks .los.no{stroke:#9aa3b8;stroke-dasharray:4 5}
.far figcaption{position:absolute;left:12px;top:10px;font:600 .8rem/1 var(--sans);color:var(--night-muted);letter-spacing:.06em;text-transform:uppercase}
.section-fig{margin:1rem 0 0;padding:.6rem;background:var(--night);border-radius:10px}
.section-fig svg{width:100%;height:auto;display:block}
.section-fig text{font:500 11px var(--sans);fill:#cfc8bc}
.section-fig .ground{fill:#2a3448;stroke:#6b7895;stroke-width:1}
.section-fig .los{stroke:#ffc86e;stroke-width:1.6;fill:none}
.section-fig .blk{fill:#ff8a5c}

/* after the story */
.after{position:relative;z-index:6;background:var(--bg)}
.prose{max-width:46rem;margin:0 auto;padding:2rem clamp(18px,4vw,32px) 1rem}
.block{margin:2.4rem 0}
.block h2{font:600 1.5rem/1.2 var(--serif);margin:0 0 .7rem}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-top:1px solid var(--line)}
.ptable{width:100%;border-collapse:collapse;font:400 .92rem/1.35 var(--sans)}
.ptable th,.ptable td{padding:.5rem .45rem;border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:top}
.ptable thead th{font-weight:600;color:var(--muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.05em}
.ptable td.num{white-space:nowrap}
.linkish{border:0;background:none;padding:0;font:600 .95rem/1.3 var(--sans);color:var(--accent);text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:.18em}
.res.yes{color:var(--res-yes);font-weight:600}.res.no{color:var(--res-no)}.res.trees{color:var(--res-trees)}.res.roof{color:var(--res-yes)}
.places .btn{margin-top:.8rem}
.sources{padding-left:1.1rem;font:400 .92rem/1.5 var(--sans)}
.sources li{margin:.3rem 0}
.share{margin:1rem 0}
.share-row{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}
.share-label{font:500 .85rem/1 var(--sans);color:var(--muted);margin-right:.2rem}
.share-msg{font:400 .82rem/1.3 var(--sans);color:var(--muted);min-height:1.1em;margin:.3rem 0 0}
.site-footer{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;justify-content:center;padding:1.6rem 16px 2.6rem;font:400 .85rem/1.4 var(--sans);color:var(--muted);border-top:1px solid var(--line)}
.site-footer a{color:var(--muted)}

/* phone: the map is a band at the top, never more than 40% of the screen; the text keeps the rest */
@media (max-width:979px){
  .story{display:block}
  .stage{position:sticky;top:var(--top);height:40vh;height:40svh;z-index:8}
  .steps{padding-bottom:20vh}
  .step{min-height:70svh;padding:1.6rem 16px;align-items:flex-start}
  .step.hero{min-height:auto;padding-top:1.4rem;padding-bottom:3rem}
  .step-card,.hero-card{background:var(--bg)}
  h1{font-size:1.85rem}
  .deck{font-size:1.08rem}
  .legend{display:none}
  .stage-ui{top:6px;left:6px;right:6px;gap:.3rem}
  .tog{min-height:32px;padding:.15rem .5rem;font-size:.74rem}
  .stage-ui .btn.small{min-height:32px}
  .era{font-size:.72rem}
  .zoom .ic{width:34px;height:34px}
  .pin-card{width:calc(100% - 16px);left:8px!important;right:8px;top:auto!important;bottom:8px;max-height:calc(100% - 52px);overflow:auto}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* without WebGL the still picture stands: its view is fixed, so the view controls are hidden */
.stage.nogl .stage-ui,.stage.nogl .legend{display:none}

/* phone: the spot's card lives in the result box under the search */
.result .x{float:right;border:0;background:none;font-size:1.2rem;color:var(--muted);cursor:pointer;width:32px;height:32px}
.result h3{font:600 1.05rem/1.25 var(--serif);margin:0 0 .3rem}
.result p{margin:.3rem 0}.result .sub{color:var(--muted);font-size:.88rem}
.result .tier{font-weight:600}.result .row{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}
.result .btn{min-height:38px;padding:.3rem .7rem;font-size:.85rem}
.hero-card>.result:first-child{margin:0 0 1.2rem}
