/* Inherit the approved city-series palette and typography. */
.route-filters{margin:18px 0 12px;gap:8px}
.route-filters button{cursor:pointer}
.route-filters button:focus-visible{outline:2px solid var(--pale);outline-offset:4px}
.station-card[hidden]{display:none!important}
.route-sequence{font-size:12px!important;line-height:2.3!important;border-left:2px solid var(--line);padding-left:14px}
.route-sequence>span[aria-hidden]{margin:0 6px}
.station-state a{text-decoration:none}
.station-photo-link:focus-visible,.station-state a:focus-visible{outline:2px solid var(--pale);outline-offset:5px}
.visit-section summary{cursor:pointer;border-top:1px solid var(--line)}
.visit-section summary:focus-visible{outline:2px solid var(--pale);outline-offset:5px}
.detail-top{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
.detail-top>div,.detail-top>figure{min-width:0}
.detail-top .hand-pt{overflow-wrap:anywhere;line-height:1.5}
.detail-top .photo img{display:block;width:100%;height:auto}
.sources-footer a{overflow-wrap:anywhere}
.info-item a{overflow-wrap:anywhere}
.page-end>a{min-height:44px;display:inline-flex;align-items:center}
@media(max-width:620px){.detail-top{grid-template-columns:1fr}.route-filters{gap:7px}.route-filters button{min-height:44px}.detail-top .hand-pt{font-size:30px}.detail-top h1{font-size:40px}.item-links{column-gap:18px}.search input{min-width:0;width:auto}.station-prose{width:100%}.page-end{flex-wrap:wrap}}

/* Full official route names wrap; retain every approved color token. */
.route-filters{display:flex;flex-wrap:wrap;align-items:stretch}
.route-filters button{max-width:100%;white-space:normal;line-height:1.6;text-align:left;min-height:44px}
.route-naming-sources{margin-top:32px;font-size:13px;line-height:1.9}
.route-naming-sources summary{cursor:pointer;min-height:44px;display:list-item}
.route-naming-sources li{margin:12px 0;overflow-wrap:anywhere}
@media(max-width:620px){.route-filters button{flex:1 1 44%;padding:10px 12px}.route-name{overflow-wrap:anywhere}}

.station-route-memberships{margin:0 0 12px;gap:4px 10px}
.station-route-memberships a{text-decoration:none;}
#route-options{margin-top:32px}
#route-options-title{margin:0 0 18px}
.optional-route-label{column-span:all;break-after:avoid;margin:22px 0 16px}
.station-cards[data-route-view="ordered"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-count:auto;align-items:start}
.station-cards[data-route-view="ordered"]>.station-card{margin-bottom:0;min-width:0}
.station-cards[data-route-view="ordered"]>.optional-route-label{grid-column:1/-1}
@media(max-width:940px){.station-cards[data-route-view="ordered"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.station-cards[data-route-view="ordered"]{grid-template-columns:1fr}}

/* Route briefs retain the approved reading palette. */
.route-overview[hidden],#route-context[hidden]{display:none!important}
.route-overview{margin:12px 0 24px;font-size:13px;line-height:1.85}
.route-overview p{margin:8px 0}
.route-overview .route-practical-title{font-size:14px;font-weight:600;line-height:1.7;margin:14px 0 6px}
.route-overview .date-line{font-size:11px;margin:4px 0 10px}
.route-overview a{overflow-wrap:anywhere}
.route-profile-sources{font-size:12px;margin-top:10px}
.route-profile-sources summary{cursor:pointer;min-height:32px;display:list-item}
.route-profile-sources ul{padding-inline-start:20px}

/* All-stations overview: layout and type size only; inherit approved colors. */
.all-routes-overview{max-width:72em;margin:20px 0 32px}
.all-routes-overview h2{font-size:18px;font-weight:500;line-height:1.7;margin:0 0 12px}
.all-routes-overview h3{font-size:15px;font-weight:500;line-height:1.7;margin:24px 0 10px}
.all-routes-overview[hidden]{display:none!important}
