html { scroll-behavior:smooth; }
.station-directory-page { --map-peek:clamp(26rem,52vh,38rem); overflow-x:clip; }
.station-directory-page main::before { content:''; display:block; height:calc(var(--map-peek) + 12px); }
.station-directory-page .map-stage { position:fixed; inset:0 0 auto; width:100%; height:var(--map-peek); z-index:0; }
.station-directory-page .directory { isolation:isolate; background:transparent; box-shadow:none; border-radius:var(--sheet-radius,24px) var(--sheet-radius,24px) 0 0; }
.station-directory-page .directory::before { content:''; position:absolute; inset:0; z-index:-1; background:var(--app-sheet,#fff); border-radius:inherit; transform:scaleX(var(--sheet-scale,1)); transform-origin:top center; box-shadow:0 -2px 20px #231f2010; }
.station-directory-page .map-caption { display:none; }
.station-directory-page .station-table th { top:72px; }
.topbar { transition:background-color .2s cubic-bezier(.4,0,.2,1),border-color .2s cubic-bezier(.4,0,.2,1),box-shadow .2s cubic-bezier(.4,0,.2,1); }
.station-directory-page .topbar:not(.scrolled) { background:linear-gradient(#ffffffcc,#ffffff00); border-color:transparent; }
.station-directory-page .topbar.scrolled { background:#fffffff2; border-color:var(--app-border,#e9e9ee); box-shadow:0 1px 6px #231f2008; }
.detail-toolbar,.detail-card,#weather,#location,#departures,#notices,#history { scroll-margin-top:6rem; }
.search-box[type=button] { cursor:pointer; text-align:left; width:100%; color:var(--app-secondary,#6c6c70); font-size:1rem; }
.search-box[type=button] .search-trigger-copy { flex:1; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
@media(max-width:47.9375rem) { .station-directory-page .station-table th { top:64px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .station-directory-page .directory::before { transform:none; } }
.station-directory-page main { overflow-x:clip; }
/* Keep headings aligned with the table's horizontal scroll container. */
.station-directory-page .station-table th { position:static; }
