/* MOT place pages, design round v12. The v10 stage (full-width map, floating panel, pills) with the
   "Questions" sheet from v11 option B in place of the bands.
   Rules: a border is a divider, never the outline of a control (controls get a soft fill, panels a soft
   shadow); selected rows use a fill; tokens from tokens.css only; every page is complete HTML without
   JavaScript (the pills, pop-downs, map and "Show on the map" buttons enhance it).
   The @font-face is emitted inline by the generator so the font path can differ between prototype and live.
   Phones: a short map strip, then the panel rises over its bottom edge; the list scrolls inside the panel. */

*{box-sizing:border-box}
:root{--shadow-panel:0 1px 2px rgba(16,24,40,.05),0 4px 18px rgba(16,24,40,.08);--shadow-float:0 1px 3px rgba(16,24,40,.16);--sheet:28px;--pw:420px}
html{-webkit-text-size-adjust:100%}
html:has(.stage),html:has(.stage) *{scrollbar-width:none}
html:has(.stage)::-webkit-scrollbar,html:has(.stage) *::-webkit-scrollbar{display:none}
body{margin:0;font:400 var(--text-prose)/1.5 Jost,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--color-ink);background:var(--color-page)}
a{color:var(--color-brand-hover);text-underline-offset:2px}
a:focus-visible,summary:focus-visible,button:focus-visible,input:focus-visible{outline:var(--focus-ring);outline-offset:var(--focus-ring-offset);border-radius:8px}
.pill:focus-visible,.dd>summary:focus-visible,.panel-toggle:focus-visible,.btn:focus-visible,.pop-acts a:focus-visible,.nearby>summary:focus-visible{border-radius:999px}
.ib:focus-visible{border-radius:50%;outline-offset:-3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:8px;background:#fff;padding:8px 12px;border-radius:8px;z-index:99}
.skip:focus{left:8px}
.wrap{max-width:1244px;margin:0 auto;padding:0 16px}
@media(min-width:768px){.wrap{padding:0 24px}}
@media(min-width:1024px){.wrap{padding:0 32px}}
main{padding:0}
i.ph{line-height:1;flex:none}
h1,h2,h3,h4{margin:0}
p{margin:0}
[hidden]{display:none!important}
html:not(.js) [data-js]{display:none!important}

/* header: plain links until tools-loader.js builds the app header into #mw-header. Same one-row height, so nothing shifts. */
#mw-first-html-nav{display:flex;gap:0 4px;min-width:0;overflow-x:auto;scrollbar-width:none}
#mw-first-html-nav::-webkit-scrollbar{display:none}
#mw-first-html-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;color:var(--color-muted);text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}
#mw-first-html-nav a:hover{background:var(--color-chip);color:var(--color-ink)}
#mw-first-html-nav a[aria-current]{background:var(--color-action);color:#fff}
html{scroll-padding-top:var(--mw-header-height)}

/* ---------- shared bits ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;font:600 14px/1.2 Jost,system-ui,sans-serif;text-decoration:none;border:0;background:var(--color-chip);color:var(--color-ink);cursor:pointer;white-space:nowrap}
.btn:hover{background:var(--color-rail)}
.btn.primary{background:var(--color-action);color:#fff}
.btn.primary:hover{background:var(--color-action-hover)}
.btn i{font-size:16px}
.pill{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--color-muted);font:600 var(--text-compact)/1.3 Jost,system-ui,sans-serif;white-space:nowrap;cursor:pointer;transition:background-color .15s,color .15s}
.pill i{font-size:17px}
.pill small{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;color:inherit}
.pill:hover{background:var(--color-chip);color:var(--color-ink)}
.pill[aria-pressed="true"]{background:var(--color-action);color:#fff}
.pill[aria-pressed="true"]:hover{background:var(--color-action-hover)}
.pill.is-zero:not([aria-pressed="true"]){color:var(--color-faint)}

/* =========================================================================
   THE STAGE: map, panel, nearby-towns pill
   ========================================================================= */
.stage{position:relative;isolation:isolate;scroll-margin-top:var(--mw-header-height);background:var(--color-rail);
 height:clamp(620px,calc(100svh - var(--above,88px)),900px);
 --col:max(16px,calc((100% - 1244px)/2 + 32px));--gap:calc(var(--col) + var(--pw) + 12px)}
.map-wrap{position:absolute;inset:0;z-index:0;background:var(--color-rail)}
.map-canvas{position:absolute;inset:0}
.map-fallback{position:absolute;inset:0;display:grid;place-items:center;padding:72px 24px calc(var(--sheet) + 24px) var(--gap)}
.map-fallback svg{width:100%;height:100%;max-width:760px}
.map-wrap.has-map .map-fallback{display:none}
.map-note{position:absolute;z-index:450;left:var(--gap);bottom:calc(var(--sheet) + 48px);max-width:320px;background:var(--color-attention-bg);border-radius:12px;padding:8px 12px;font-size:12.5px;line-height:1.35}

/* the floating panel */
.panel{position:absolute;z-index:6;left:var(--col);top:16px;bottom:calc(var(--sheet) + 16px);width:var(--pw);display:flex;flex-direction:column;background:var(--color-surface);border-radius:20px;box-shadow:var(--shadow-panel)}
.pn-head{flex:none;padding:12px 8px 14px 20px}
.pn-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px}
.crumbs{min-width:0;font-size:12.5px;color:var(--color-muted)}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 6px}
.crumbs li+li::before{content:"/";margin-right:6px;color:var(--color-faint)}
.crumbs a{color:var(--color-muted);text-decoration:none}
.crumbs a:hover{color:var(--color-ink);text-decoration:underline}
.pn-head h1{font-size:30px;line-height:1.08;letter-spacing:-.025em;font-weight:800;margin:6px 12px 8px 0}
.pn-head .lede{font-size:15px;line-height:1.45;color:var(--color-muted);margin-right:12px}
.panel-toggle{display:none;align-items:center;gap:4px;flex:none;min-height:44px;margin:-6px 0;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--color-muted);font:600 var(--text-compact)/1.3 Jost,system-ui,sans-serif;cursor:pointer}
.panel-toggle:hover{background:var(--color-chip);color:var(--color-ink)}
.panel-toggle i{font-size:16px;transition:transform .2s}
.stage.is-collapsed .panel-toggle i{transform:rotate(180deg)}
@media(min-width:900px){.panel-toggle[data-js]{display:inline-flex}}
.stage.is-collapsed .panel{bottom:auto}
.stage.is-collapsed .pn-bar,.stage.is-collapsed .pn-list{display:none}
.stage.is-collapsed .pn-head{padding-bottom:18px}

.pn-bar{flex:none;position:relative;z-index:4;padding:6px 8px 0;border-top:1px solid var(--color-row-border)}
.tog{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:0;padding:0}
.tog .pill{justify-content:center;padding:3px 6px;min-width:44px}
.tog .pill .lb{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pn-sub{display:flex;align-items:center;gap:0 8px;min-width:0}
.pn-sub [data-status]{flex:1 1 0;min-width:0;display:flex;align-items:center;flex-wrap:nowrap;white-space:nowrap;gap:0 4px;min-height:44px;padding-left:8px;font-size:var(--text-compact);line-height:1.3;color:var(--color-muted)}
.pn-sub [data-status] b{color:var(--color-ink);font-weight:700}
.pn-sub [data-status] button{border:0;background:none;color:var(--color-brand-hover);font:600 13.5px Jost,sans-serif;cursor:pointer;padding:0 8px;min-height:44px}

/* district pop-down: a native <details> of links, so it works without JavaScript */
.dd{position:static;flex:none;margin-left:auto}
.dd>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border-radius:999px;color:var(--color-muted);font:600 var(--text-compact)/1.3 Jost,system-ui,sans-serif;cursor:pointer;white-space:nowrap;user-select:none;transition:background-color .15s,color .15s}
.dd>summary::-webkit-details-marker{display:none}
.dd>summary:hover,.dd[open]>summary{background:var(--color-chip);color:var(--color-ink)}
.dd>summary i{font-size:16px}
.dd>summary .car{transition:transform .15s}
.dd[open]>summary .car{transform:rotate(180deg)}
.dd.is-on>summary{background:var(--color-brand-tint);color:var(--color-brand-hover)}
.dd.is-on>summary:hover,.dd.is-on[open]>summary{background:var(--color-brand-range)}
.dd-panel{position:absolute;left:8px;right:8px;top:calc(100% + 6px);z-index:20;max-height:min(400px,62svh);overflow:auto;background:var(--color-surface);border-radius:16px;box-shadow:var(--shadow-overlay);padding:8px}
.dd-panel ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:4px}
.dd-panel li.all{grid-column:1/-1;padding-bottom:6px;margin-bottom:2px;border-bottom:1px solid var(--color-row-border)}
.dd-panel a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 12px;border-radius:var(--radius-row);color:var(--color-ink);text-decoration:none;font-size:15px;font-weight:600}
.dd-panel a:hover{background:var(--color-chip)}
.dd-panel a small{font-size:13px;font-weight:500;color:var(--color-muted);font-variant-numeric:tabular-nums}
.dd-panel a.is-on{background:var(--color-brand-tint);color:var(--color-brand-hover)}
.dd-panel a.is-zero,.dd-panel a.is-zero small{color:var(--color-faint)}
.dd{position:static}
.pn-bar{position:relative}

/* the list, scrolling inside the panel */
.pn-list{flex:1 1 auto;min-height:0;position:relative;overflow-y:auto;overscroll-behavior:contain;border-top:1px solid var(--color-row-border);border-radius:0 0 20px 20px;scroll-padding-top:44px}
.dist-h{position:sticky;top:0;z-index:3;display:flex;align-items:baseline;gap:10px;padding:10px 20px 8px;background:var(--color-row)}
.dist-h h3{font-size:15px;font-weight:700;letter-spacing:-.01em}
.dist-h small{font-size:var(--text-label);color:var(--color-muted);font-weight:500}
.rows{list-style:none;margin:0;padding:0}
.st{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 4px;align-items:center;padding:10px 4px 10px 20px;border-top:1px solid var(--color-row-border);cursor:pointer}
.dist-h+.rows .st:first-child{border-top:0}
.st:hover{background:var(--color-row)}
.st.is-sel{background:var(--color-brand-tint)}
.st .main{min-width:0}
.st .nm{display:block;font-size:15px;font-weight:600;line-height:1.3;letter-spacing:-.005em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.st button.nm{all:unset;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;font-weight:600;line-height:1.3;letter-spacing:-.005em;cursor:pointer;text-align:left}
.st button.nm:focus-visible{outline:var(--focus-ring);outline-offset:2px;border-radius:4px}
.st .ad{font-size:var(--text-compact);line-height:1.4;color:var(--color-muted);margin:1px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st .mt{display:flex;align-items:center;gap:10px;margin:2px 0 0;font-size:var(--text-compact);line-height:1.4;color:var(--color-muted);font-variant-numeric:tabular-nums}
.vt{display:inline-flex;align-items:center;gap:6px;color:var(--color-mid);font-size:16px}
.vt i{display:block}
.vt .sr{position:absolute}
.acts{display:flex;align-items:center}
.ib{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:var(--color-muted);text-decoration:none;border:0;background:none;cursor:pointer;font-size:20px}
.ib:hover{background:var(--color-brand-tint);color:var(--color-brand-hover)}
.st.is-off,.dist.is-off{display:none}
.empty{padding:24px 20px;font-size:var(--text-body);color:var(--color-muted)}
.empty b{display:block;color:var(--color-ink);font-size:16px;margin-bottom:2px}
.empty button{border:0;background:none;padding:0 4px;min-height:44px;color:var(--color-brand-hover);font:600 14px Jost,sans-serif;cursor:pointer;text-decoration:underline}

/* the nearest-place block, shown when a vehicle has no station here */
.near-block{padding:18px 20px 6px}
.near-block h3{font-size:16px;font-weight:700;line-height:1.3;margin-bottom:4px}
.near-block p{font-size:var(--text-compact);color:var(--color-muted);line-height:1.45}
.near-block .rows{margin:10px -20px 0}
.st .km{font-size:var(--text-compact);font-weight:600;color:var(--color-ink);white-space:nowrap}

/* nearby towns: a native pop-down floating on the map */
.strip{position:absolute;z-index:5;top:16px;left:var(--gap);right:calc(var(--col) + 64px);display:flex;pointer-events:none}
.nearby{position:relative;max-width:100%;pointer-events:auto}
.nearby>summary{display:flex;align-items:center;gap:8px;list-style:none;min-height:44px;padding:0 14px;border-radius:999px;background:var(--color-surface);box-shadow:var(--shadow-float);color:var(--color-ink);font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap}
.nearby>summary::-webkit-details-marker{display:none}
.nearby>summary i{color:var(--color-muted);font-size:16px}
.nearby>summary:hover,.nearby[open]>summary{background:var(--color-chip)}
.nearby[open]>summary>i:last-child{transform:rotate(180deg)}
.nearby-panel{position:absolute;top:calc(100% + 8px);left:0;z-index:10;width:340px;max-width:calc(100vw - 32px);max-height:min(400px,60svh);overflow:auto;padding:8px;border-radius:16px;background:var(--color-surface);box-shadow:var(--shadow-overlay)}
.nearby-panel a,.nearby-panel .nb{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:8px 12px;border-radius:var(--radius-row);color:var(--color-ink);text-decoration:none;font-size:15px;font-weight:600}
.nearby-panel a:hover{background:var(--color-chip)}
.nearby-panel .nb{cursor:default}
.nearby-panel small{font-size:13px;font-weight:500;color:var(--color-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.nearby-panel .is-zero,.nearby-panel .is-zero small{color:var(--color-faint)}

/* map furniture */
.leaflet-container{font-family:Jost,system-ui,sans-serif;background:var(--color-rail);outline:0}
.leaflet-container a{color:var(--color-brand-hover)}
.leaflet-bar{border:0!important;border-radius:12px!important;box-shadow:var(--shadow-float)!important;overflow:hidden}
.leaflet-bar a{width:44px!important;height:44px!important;line-height:44px!important;color:var(--color-ink)!important;border-bottom-color:var(--color-row-border)!important;font-size:18px}
.leaflet-bar a:hover{background:var(--color-chip)}
.leaflet-bar a:focus-visible{outline-offset:-4px}
.leaflet-bar .reset{display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer}
.leaflet-control-attribution{font-size:11px;background:rgba(255,255,255,.85)!important}
.leaflet-control-scale-line{font-size:11px;font-family:Jost,sans-serif;color:var(--color-muted);border-color:var(--color-muted);background:rgba(255,255,255,.85)}
.leaflet-top.leaflet-right{margin:16px var(--col) 0 0}
.leaflet-bottom{margin-bottom:var(--sheet)}
.leaflet-popup-content-wrapper{border-radius:14px;box-shadow:var(--shadow-overlay);padding:0;color:var(--color-ink)}
.leaflet-popup-content{margin:0;width:auto!important;min-width:240px;max-width:280px}
.leaflet-popup-tip{box-shadow:var(--shadow-overlay)}
.leaflet-container a.leaflet-popup-close-button{top:0;right:0;width:44px;height:44px;font-size:20px;line-height:44px;color:var(--color-muted)}
.pop{padding:14px 16px 12px}
.pop-t{font-size:16px;font-weight:700;line-height:1.25;letter-spacing:-.01em;margin:0 32px 2px 0}
.pop-a{font-size:var(--text-compact);line-height:1.4;color:var(--color-muted)}
.pop-v{display:flex;gap:10px;margin-top:6px;color:var(--color-muted);font-size:13px;font-weight:600}
.pop-v span{display:inline-flex;align-items:center;gap:4px}
.pop-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.pop-acts a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border-radius:999px;background:var(--color-chip);color:var(--color-ink)!important;text-decoration:none;font-size:14px;font-weight:600}
.pop-acts a:hover{background:var(--color-rail)}
.pop-acts a.primary{background:var(--color-action);color:#fff!important}
.pop-acts a.primary:hover{background:var(--color-action-hover)}
.pop-acts i{font-size:16px}
.marker-cluster{background:none;border:0}
.marker-cluster div{width:100%;height:100%;margin:0;background:var(--color-brand);color:#fff;border:2px solid #fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font:600 13px Jost,system-ui,sans-serif;box-shadow:0 1px 5px rgba(17,22,28,.28)}
.marker-cluster-large div{background:var(--color-brand-hover);font-size:14px}
.centre-lbl span{position:absolute;transform:translate(-50%,-50%);display:inline-block;padding:4px 10px;border-radius:999px;background:var(--color-ink);color:#fff;font:600 12.5px Jost,sans-serif;white-space:nowrap;box-shadow:var(--shadow-float)}
.selection-pin{border:3px solid var(--color-ink);border-radius:50%;background:var(--color-brand-hover);box-shadow:0 0 0 2px #fff}
.map-empty{position:absolute;z-index:450;left:var(--gap);top:76px;right:calc(var(--col) + 76px);max-width:360px;padding:20px;background:var(--color-surface);border-radius:20px;box-shadow:var(--shadow-panel);font-size:14px}
.map-empty b{display:block;font-size:17px;line-height:1.3}
.map-empty p{margin:8px 0 12px;color:var(--color-muted)}

/* the schematic plot shown without JavaScript */
.plot .bg{fill:var(--color-row)}
.plot .pt{fill:var(--color-brand);fill-opacity:.8;stroke:#fff;stroke-width:1.5}
.plot .sc line{stroke:var(--color-muted);stroke-width:2}
.plot .sc text{font:500 13px Jost,sans-serif;fill:var(--color-muted)}


/* =========================================================================
   THE SHEET: one reading column of questions, flat on the page, rising over the map
   ========================================================================= */
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
.sheet{position:relative;z-index:8;margin-top:calc(-1 * var(--sheet));background:var(--color-page);border-radius:28px 28px 0 0;box-shadow:0 -6px 24px rgba(16,24,40,.08);padding:44px 0 72px}
.sh-head{max-width:60rem}
.sh-head p{font-size:16px;line-height:1.55;color:var(--color-muted)}
.qa{max-width:46rem;margin-top:24px}

/* one question: the H2 a visitor would type, a sentence that answers it, then the stations */
.q{padding:34px 0;border-top:1px solid var(--color-row-border)}
.q:first-child{padding-top:0;border-top:0}
.q h2{font-size:clamp(22px,2.2vw,28px);line-height:1.2;letter-spacing:-.025em;font-weight:800}
.q .ans{margin-top:12px;font-size:18px;line-height:1.6}
.q .ans strong{font-weight:700}
.q .sub{margin-top:10px;font-size:15px;line-height:1.55;color:var(--color-muted)}
.q .act{margin-top:20px}
.q .nl{margin-top:20px}
.q .cap{margin-top:20px}
.q .sub+.nl{margin-top:8px}
.nl{list-style:none;margin:0;padding:0}
.nl li{padding:10px 0;border-top:1px solid var(--color-row-border)}
.nl .n1{display:block;font-size:15px;font-weight:600;line-height:1.35;color:var(--color-ink)}
.nl .n1 a{color:var(--color-ink);text-decoration:none}
.nl .n1 a:hover{color:var(--color-brand-hover);text-decoration:underline}
.nl .n2{display:block;font-size:var(--text-compact);line-height:1.5;color:var(--color-muted);font-variant-numeric:tabular-nums}
.nl .n2 a{color:inherit;white-space:nowrap}
.nl .n2 a:hover{color:var(--color-brand-hover)}
.nl .km{font-weight:700;color:var(--color-ink)}
.dh{display:flex;align-items:baseline;gap:10px;margin:26px 0 6px;font-size:15px;font-weight:700}
.dh small{font-size:var(--text-compact);font-weight:500;color:var(--color-muted)}
.fold{margin-top:20px}
.fold>summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:999px;background:var(--color-chip);color:var(--color-ink);font-size:14px;font-weight:600;cursor:pointer;list-style:none}
.fold>summary::-webkit-details-marker{display:none}
.fold>summary:hover{background:var(--color-rail)}
.fold>summary::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:-3px 0 0 2px}
.fold[open]>summary::after{transform:rotate(225deg);margin-top:3px}
.fold .nl{margin-top:12px}
.fold .dh:first-of-type{margin-top:18px}

/* limits and source: plain text lines */
.limits{list-style:none;margin:16px 0 0;padding:0;max-width:44rem}
.limits li{padding:14px 0;border-top:1px solid var(--color-row-border);font-size:15px;line-height:1.6;color:var(--color-muted)}
.limits li:first-child{border-top:0;padding-top:0}
.limits strong{color:var(--color-ink);font-weight:600}
.src{max-width:44rem;margin-top:8px}
.src>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;min-height:52px;padding:12px 0;border-top:1px solid var(--color-row-border);color:var(--color-ink);font-size:15px;font-weight:600;cursor:pointer}
.src>summary::-webkit-details-marker{display:none}
.src>summary::after{content:'';flex:none;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 4px 4px}
.src[open]>summary::after{transform:rotate(225deg);margin:6px 4px 0}
.src>summary:hover{color:var(--color-brand-hover)}
.src>div{padding:0 0 8px;font-size:14px;line-height:1.65;color:var(--color-muted)}
.src p+p{margin-top:10px}

/* =========================================================================
   PHONES AND NARROW WINDOWS: a short map strip, the panel rises over its bottom edge
   ========================================================================= */
@media(max-width:899px){
 :root{--sheet:0px;--pw:100%}
 .stage{height:auto;display:flex;flex-direction:column;background:var(--color-page);--col:12px;--gap:12px}
 .map-wrap{position:relative;inset:auto;height:clamp(240px,36svh,340px);flex:none}
 .map-fallback{padding:56px 12px 40px}
 .map-note{left:12px;bottom:36px}
 .panel{position:relative;left:auto;top:auto;bottom:auto;width:auto;margin-top:-20px;border-radius:24px 24px 0 0;box-shadow:0 -4px 18px rgba(16,24,40,.12)}
 .stage.is-collapsed .panel{bottom:auto}
 .pn-head{padding:16px 16px 12px}
 .pn-head h1{font-size:28px}
 .pn-list{flex:none;height:clamp(300px,50svh,520px);border-radius:0}
 .strip{left:12px;top:12px;right:68px}
 .leaflet-top.leaflet-right{margin:12px 12px 0 0}
 .leaflet-bottom{margin-bottom:20px}
 .map-empty{left:12px;right:12px;top:68px;max-width:none}
 .sheet{margin-top:0;border-radius:0;box-shadow:none;padding:36px 0 56px;border-top:1px solid var(--color-row-border)}
 .map-empty.is-far{display:none}
 .leaflet-control-zoom{display:none}
 .nearby-panel{width:min(340px,calc(100vw - 24px))}
 .dd-panel{left:0;right:0}
}
@media(max-width:599px){
 .q{padding:28px 0}
 .q .ans{font-size:17px}
}
@media(max-width:420px){.tog .pill{padding:3px 2px}}

@media print{
 #mw-header,#mw-footer,.skip,.pn-bar,.map-wrap,.strip,.panel-toggle,[data-js]{display:none!important}
 .stage{height:auto;display:block;background:#fff}
 .panel{position:static;width:auto;box-shadow:none;border-radius:0}
 .pn-list{height:auto;overflow:visible;border-radius:0}
 .sheet{margin:0;border-radius:0;box-shadow:none}
 .st,.nl li,.q{break-inside:avoid}
 .dist-h{position:static}
}
@media(forced-colors:active){
 .pill,.btn,.dd>summary,.pop-acts a,.panel-toggle,.nearby>summary,.fold>summary{border:1px solid ButtonText}
 .panel,.dd-panel,.nearby-panel,.map-empty,.leaflet-bar{border:1px solid CanvasText}
 .pill[aria-pressed="true"]{border-color:Highlight;outline:2px solid Highlight}
 .sheet{border-top:1px solid CanvasText}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
