/* SLBN 2.9.2: focused production-readiness polish. The approved 2.9.1 card design is retained. */
:root { --slbn-control-height:44px; }
/* Prevent horizontal overflow in nested result groups and expanded bus details. */
.slbn24-journey-card, .slbn24-journey-card > summary,
.slbn24-journey-card .slbn24-card-main, .slbn24-journey-card .slbn24-card-details,
.slbn21-result-list, .operator-result-group, .bus-result-grid {min-width:0;max-width:100%;box-sizing:border-box}
.slbn24-journey-card .slbn24-card-details {overflow-wrap:anywhere}
.slbn24-journey-card .slbn24-verified {font-size:11px!important;line-height:1.35!important;white-space:nowrap!important}
/* Standardize controls without changing their original colors or visual hierarchy. */
#search :is(button,input,select), .slbn21-planner :is(button,input,select),
.slbn21-filterbar select, .slbn-enquiry-form :is(button,input,select),
.slbn21-dialog-actions button {box-sizing:border-box;min-height:var(--slbn-control-height)}
#search button, .slbn21-planner button, .slbn-enquiry-form button,
.slbn21-dialog-actions button {display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.25}
:is(button,a,input,select,textarea,summary):focus-visible {outline:3px solid #f2b834;outline-offset:2px}
/* Accessible status text in either theme. */
#slbnEnquiryStatus {display:inline-block;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
html:not([data-theme="dark"]) #slbnEnquiryStatus {color:#126348!important}
html[data-theme="dark"] #slbnEnquiryStatus {color:#b9f2d4!important}
html[data-theme="dark"] .slbn-enquiry-box {background:#14273e!important;border-color:#35516b!important;color:#f1f7ff!important}
html[data-theme="dark"] .slbn-enquiry-form :is(input,select,textarea) {background:#1b334d!important;color:#f1f7ff!important;border-color:#496783!important;color-scheme:dark}
html[data-theme="dark"] .slbn-enquiry-form :is(input,textarea)::placeholder {color:#b9c9da!important;opacity:1}
/* Mobile layout: keep the approved two-column summary, allow long names and fares to wrap. */
@media(max-width:600px){
 .slbn24-journey-card > summary {grid-template-columns:minmax(0,1fr) minmax(78px,88px)!important;gap:8px!important;padding:11px!important}
 .slbn24-journey-card .slbn24-card-head {gap:4px 6px!important}
 .slbn24-journey-card .slbn24-bus-name {overflow-wrap:anywhere!important}
 .slbn24-journey-card .slbn24-fare {width:auto!important;min-width:0!important;max-width:88px!important}
 .slbn24-journey-card .slbn24-fare strong {overflow-wrap:anywhere!important;font-size:12px!important}
 .slbn21-planner :is(input,select),.slbn-enquiry-form :is(input,select,textarea) {max-width:100%;min-width:0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
