@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&display=swap');
:root{--ink:#102f39;--muted:#526b72;--line:#d7e3df;--green:#c7ee75;--bus:#1c7180;--tram:#855db0;--rail:#c57931}*{box-sizing:border-box}body{margin:0;background:#f5f8f6;color:var(--ink);font:16px Heebo,Arial,sans-serif;padding-bottom:88px}button,input,select{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:9px;color:var(--ink);padding:9px 13px}button:hover{background:#e9f2e9}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[role=button]:focus-visible{outline:3px solid #227ad0;outline-offset:3px}header{min-height:84px;padding:18px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);background:white}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-weight:700;font-size:22px}.brand b{display:grid;place-items:center;width:46px;height:46px;background:var(--ink);color:var(--green);border-radius:13px}.brand small{display:block;font-size:12px;font-weight:400}.national,.old{font-size:14px}.old{color:var(--muted)}main{display:grid;grid-template-columns:300px minmax(400px,1fr) 310px;max-width:1900px;margin:auto}.controls{padding:28px 22px;background:white;border-left:1px solid var(--line)}.eyebrow{font-size:12px;font-weight:700;color:var(--muted)}h1{font-size:29px;line-height:1.3;margin:10px 0}h2{font-size:20px;margin:0}p{line-height:1.65}.intro p{font-size:15px;color:var(--muted);margin:8px 0 25px}label{font-size:14px;display:block;margin-bottom:7px}input,select{width:100%;min-width:0;background:#f5f8f6;border:1px solid var(--line);border-radius:8px;padding:10px;color:var(--ink)}.input-row{display:flex;gap:5px}.input-row button{background:var(--ink);color:white}.location-buttons{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 22px}.location-buttons button{font-size:14px;flex:1;white-space:nowrap}#watch[aria-pressed=true]{background:var(--green)}.time-controls{display:flex;gap:12px}.time-controls label{flex:1}.time-controls input,.time-controls select{margin-top:7px;font-size:14px}.data-note{font-size:13px;color:var(--muted)}#status{font-size:14px;padding:12px;background:#edf3e7;border-radius:9px}#error{color:#a13524;font-size:14px}.graph-panel{padding:24px 18px;min-width:0}.graph-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.graph-heading h2{margin-top:4px;overflow-wrap:anywhere}.graph-tools{display:flex;gap:4px}.graph-tools button{padding:6px 10px;font-size:14px}.graph-wrap{height:650px;background:#edf4ef;border:1px solid #d0dfd6;border-radius:18px;position:relative;overflow:hidden}#graph{display:block;width:100%;height:100%;touch-action:none;cursor:grab}#graph:active{cursor:grabbing}.graph-caption{font-size:13px;color:var(--muted);padding:12px 3px}.legend{position:absolute;bottom:12px;right:12px;left:12px;background:#fffffff0;border-radius:8px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;padding:9px;font-size:12px;pointer-events:none}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:9px;height:9px;border-radius:50%;display:inline-block}.bus{background:var(--bus)}.tram{background:var(--tram)}.rail{background:var(--rail)}.details{padding:28px 18px;border-right:1px solid var(--line);background:#fff;max-height:calc(100vh - 150px);overflow:auto}.detail-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:14px}.detail-heading span{font-size:13px;color:var(--muted)}.option{display:block;width:100%;text-align:right;margin-bottom:10px;padding:12px}.option.active{border:2px solid var(--ink);background:#f0f5e9}.option-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.badge{color:white;background:var(--bus);border-radius:7px;padding:4px 10px;font-weight:700;max-width:145px;overflow-wrap:anywhere}.badge.tram{background:var(--tram)}.badge.rail{background:var(--rail)}.option strong.time{font-size:22px;direction:ltr}.option p{font-size:14px;margin:8px 0 3px}.option small{font-size:12px;color:var(--muted);display:block}.stop-button{display:block;width:100%;text-align:right;margin:8px 0;font-size:14px}.stop-button span{display:block;color:var(--muted);font-size:12px}.explanation{grid-column:1/-1;padding:18px 28px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}summary{cursor:pointer;color:var(--ink);font-weight:600}.explanation p{max-width:1100px}.bottom-feed{position:fixed;bottom:0;left:0;right:0;background:var(--ink);color:white;padding:12px 25px;box-shadow:0 -4px 20px #16382912;z-index:4}.bottom-feed strong,.bottom-feed span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.bottom-feed span{color:#c7dcda;margin-top:4px}#graph-empty{position:absolute;top:35%;left:10%;right:10%;padding:20px;text-align:center;background:white;border-radius:12px}.node text{font-family:Heebo,Arial,sans-serif;pointer-events:none}.node[role=button]{cursor:pointer}.node[role=button]:hover rect{stroke:#102f39;stroke-width:3}.edge{fill:none;stroke-width:2;opacity:.65}#more{width:100%}
@media(max-width:1200px){main{grid-template-columns:285px minmax(350px,1fr)}.details{grid-column:1/-1;max-height:none;border-top:1px solid var(--line)}#options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.option{margin:0}.graph-wrap{height:590px}}
@media(max-width:720px){header{padding:12px 16px;flex-wrap:wrap;gap:10px}.brand{font-size:19px}.national{display:none}.old{font-size:12px}main{display:flex;flex-direction:column}.controls{padding:20px;border:0}.intro p{margin-bottom:14px}h1{font-size:27px}.location-buttons{margin-bottom:12px}.graph-panel{padding:0 12px 12px}.graph-wrap{height:490px}.graph-heading{padding:0 6px}.graph-heading h2{font-size:18px}.details{padding:18px}#options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.option{padding:10px}.option-top{flex-wrap:wrap}.badge{font-size:14px}.explanation{padding:18px}.bottom-feed{padding:10px 16px}.graph-tools button{min-height:40px}}@media(max-width:390px){#options{grid-template-columns:1fr}}

@media(max-width:720px){.graph-wrap{overflow:auto}#graph{width:900px;height:675px}.legend{position:sticky;bottom:0;margin:0 8px}.graph-wrap{direction:rtl}}

/* Immersive geographic association graph. Sheets are opened on demand. */
[hidden]{display:none!important}.immersive{height:100dvh;overflow:hidden;padding:0}.immersive header{position:fixed;top:0;right:0;left:0;z-index:5;min-height:65px;padding:12px 18px;border:0;background:linear-gradient(#f5f8f6fa,#f5f8f600);pointer-events:none}.immersive header a{pointer-events:auto}.immersive .brand{font-size:18px}.immersive .brand b{width:38px;height:38px}.immersive .national{display:none}.immersive main{display:block;max-width:none}.immersive .graph-panel{position:fixed;inset:0;padding:0}.immersive .graph-wrap{height:100dvh;width:100vw;border:0;border-radius:0;overflow:hidden;direction:ltr}.immersive #graph{width:100%;height:100%;touch-action:none}.immersive .graph-heading{position:absolute;top:77px;right:18px;left:18px;z-index:3;pointer-events:none;align-items:flex-start}.immersive .graph-heading h2{font-size:18px;max-width:min(65vw,450px);background:#f5f8f6db;border-radius:6px;padding:3px 7px}.immersive .graph-heading .eyebrow{padding:3px 7px;background:#f5f8f6db}.immersive .graph-tools{pointer-events:auto;position:fixed;left:14px;bottom:150px;display:flex;flex-direction:column;gap:8px}.immersive .graph-tools button{background:#fff;box-shadow:0 2px 12px #102f3915;min-width:44px;min-height:44px}.immersive .legend{position:absolute;bottom:104px;right:75px;left:75px;margin:0;padding:5px;background:transparent;gap:8px;font-size:11px}.immersive .legend span:last-child{display:none}.immersive .graph-caption{position:fixed;bottom:79px;right:0;left:0;text-align:center;font-size:12px;background:#f5f8f6b8;padding:4px}.immersive .bottom-feed{padding:10px 16px;padding-bottom:max(10px,env(safe-area-inset-bottom));min-height:72px}.floating-actions{position:fixed;right:14px;bottom:150px;z-index:5;display:flex;flex-direction:column;gap:10px}.floating-actions button{background:var(--ink);color:white;border:0;box-shadow:0 3px 15px #102f3925;min-height:46px;font-size:22px}.floating-actions button span{display:block;font-size:11px}.north{position:absolute;top:150px;left:20px;font-size:12px;color:#526b72;z-index:2}.center-reticle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:28px;color:#567264;pointer-events:none;opacity:.45}.immersive .controls,.immersive .details{position:fixed;z-index:10;top:80px;bottom:90px;right:16px;width:360px;max-width:calc(100vw - 32px);max-height:none;overflow:auto;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 15px 80px #102f3933;padding:24px}.immersive .details{right:auto;left:16px}.sheet-close{float:left;font-size:24px;padding:0;width:34px;height:34px;margin-bottom:8px}.immersive .detail-heading{clear:both}.immersive #options{display:block}.immersive .option{margin-bottom:10px}.immersive .explanation{padding:15px 0}.immersive .intro{clear:both}.immersive .node text{font-size:14px}.immersive #graph-empty{z-index:2;pointer-events:none;top:58%;background:#ffffffdb;font-size:14px}.immersive .old{background:#ffffffda;border-radius:6px;padding:7px;font-size:12px}@media(max-width:720px){.immersive .graph-heading{top:70px}.immersive .brand small{font-size:11px}.immersive .graph-heading h2{font-size:16px}.immersive .graph-tools{bottom:145px}.floating-actions{bottom:145px}.floating-actions button{padding:8px}.immersive .legend{bottom:104px}.immersive .graph-caption{font-size:11px}.immersive .controls,.immersive .details{top:65px;bottom:85px}.immersive .node text{font-size:13px}}

#street-map{position:absolute;inset:0;z-index:1;background:#e9f0e9}.map-mode #graph,.map-mode .north,.map-mode .center-reticle,.map-mode .legend{visibility:hidden}.map-mode #graph-empty{display:none}.leaflet-bottom{bottom:112px!important}.leaflet-control-attribution{font-size:11px!important;max-width:70vw}.station-label{background:#fffffff0;border:0;box-shadow:0 1px 5px #0002;padding:2px 4px;direction:rtl}.map-stop-link{border:0;background:none;padding:1px 3px;color:#194967;text-decoration:underline;font:13px Heebo,Arial,sans-serif;white-space:nowrap}.leaflet-popup-content{font:14px Heebo,Arial,sans-serif}.leaflet-popup-content button{margin-top:10px;font-size:14px}.leaflet-tooltip-pane{z-index:550}.immersive.map-mode .graph-heading{z-index:3}.floating-actions{z-index:5}.immersive .graph-tools{z-index:5}

#voice-dialog{border:1px solid var(--line);border-radius:18px;padding:24px;width:430px;max-width:calc(100vw - 24px);max-height:85dvh;overflow:auto;color:var(--ink);box-shadow:0 20px 90px #102f3940}#voice-dialog::backdrop{background:#102f3980}#voice-dialog h2{margin:12px 0 18px;clear:both}#voice-dialog button{margin-top:10px}#voice-record[aria-pressed=true]{background:#a13232;color:#fff}#voice-help,#voice-status{font-size:14px}#voice-send{background:var(--ink);color:white}@media(max-height:700px){.floating-actions{gap:5px;bottom:130px}.floating-actions button{min-height:36px;padding:4px 8px;font-size:18px}.floating-actions button span{font-size:10px}.immersive .graph-heading{max-width:70vw}}

.size-toggle{pointer-events:auto;font-size:14px;background:#fff}.compact-view .graph-panel{inset:100px 7vw 145px;border:1px solid #bfd1c5;border-radius:18px;overflow:hidden;box-shadow:0 12px 60px #102f3915}.compact-view .graph-wrap{width:100%;height:100%}.compact-view .graph-heading,.compact-view .floating-actions,.compact-view .graph-caption,.compact-view .legend,.compact-view .north{display:none}.compact-view .leaflet-bottom{bottom:48px!important}.compact-view #expand-preview{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;background:transparent;border:0;z-index:1200;padding:15px}.compact-view #expand-preview span{background:#102f39;color:white;padding:9px 16px;border-radius:20px;font-size:14px}.compact-view .center-reticle{display:none}.immersive header{gap:8px}.immersive header .brand{margin-left:auto}@media(max-width:540px){.immersive .old{display:none}.compact-view .graph-panel{inset:95px 16px 140px}}

.sos-entry{pointer-events:auto;background:#a51832;color:#fff!important;font:bold 16px Arial,sans-serif;text-decoration:none;padding:12px 16px;border-radius:10px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
