/* Public library pages: scoped to preserve map, administration and environment styles. */
.library-surface { --library-ink:#172c40; --library-accent:#227482; --library-line:#dce4e8; color:var(--library-ink); font-family:Arial,Helvetica,sans-serif; line-height:1.5; max-width:1100px; margin:0 auto; padding:8px 14px 28px; box-sizing:border-box; }
.library-surface *, .library-surface *::before, .library-surface *::after { box-sizing:border-box; }
.library-surface .library-page-title { background:transparent !important; color:var(--library-ink) !important; font-family:Arial,Helvetica,sans-serif; font-size:28px; font-weight:700; line-height:1.2; text-align:left; margin:16px 0 20px; padding:0 !important; }
.library-surface .library-hero { display:block; width:100%; max-height:340px; object-fit:cover; border-radius:14px !important; box-shadow:0 5px 15px rgba(23,44,64,.12) !important; margin:0 0 18px; }
.library-surface .library-navigation { display:flex; gap:8px; margin:0 0 22px !important; }
.library-surface .library-navigation [role=button] { flex:1; display:flex; align-items:center; justify-content:center; width:auto !important; min-height:44px; height:44px !important; padding:6px 10px !important; line-height:1.35 !important; border:0 !important; border-radius:8px; background:var(--library-accent) !important; color:white; font-size:12px; font-weight:700; }
.library-surface .library-notice > div { background:#fff8dd !important; color:#51431b !important; border:1px solid #e9d58c; border-radius:12px; padding:18px 20px !important; margin:18px 0 24px; line-height:1.6; overflow-wrap:anywhere; }
.library-surface .library-description > div { background:white !important; border-radius:12px; padding:20px !important; line-height:1.6; }
.library-surface .library-schedule > div { background:transparent !important; padding:8px 0 24px !important; }
.library-surface .library-schedule table { width:100%; max-width:720px; border-collapse:separate; border-spacing:0; background:white; border:1px solid var(--library-line); border-radius:12px; overflow:hidden; }
.library-surface .library-schedule td { padding:10px 14px; vertical-align:top; font-family:Arial,Helvetica,sans-serif; line-height:1.5; }

.library-surface .library-schedule td[colspan][style*="background-color"] { background:#e5eff1 !important; color:#174e58 !important; text-shadow:none !important; font-size:16px; padding:12px 14px; }
.library-surface .library-schedule td[onclick] { font-size:14px; }
.library-surface .library-schedule td:nth-child(2):not([colspan]) { white-space:nowrap; text-align:right; font-variant-numeric:tabular-nums; color:#284653; }
.library-surface .library-schedule input[type=text], .library-surface .library-schedule input[type=search] { min-height:44px; font-size:15px; }
.library-surface .library-footer { background:transparent !important; border-top:1px solid var(--library-line); border-radius:0; padding:24px 0 0 !important; margin-top:24px; }
.library-surface .sometec-footer-actions { display:flex; justify-content:center; gap:10px; max-width:450px; width:100%; margin:0 auto; padding:0 8px; }
.library-surface .sometec-footer-actions > .ui-block-a, .library-surface .sometec-footer-actions > .ui-block-c, .library-surface .sometec-footer-actions > .ui-block-e { display:none; }
.library-surface .sometec-footer-actions > [id^=fav] { flex:1; min-width:0; }
.library-surface .sometec-footer-actions .gridi13 { width:100% !important; max-width:210px; min-height:46px; height:auto !important; margin:0; padding:8px 10px; display:flex; align-items:center; border-radius:10px; background:var(--library-accent) !important; }
.library-surface .sometec-footer-actions > .gridi13 { flex:1; }
.library-surface .sometec-footer-button-content { display:flex; align-items:center; width:100%; min-width:0; }
.library-surface .sometec-footer-button-content > div:first-child { display:flex; align-items:center; flex:0 0 24px; width:24px !important; }
.library-surface .sometec-footer-button-content > div:nth-child(2) { display:none; }
.library-surface .sometec-footer-button-content > div:nth-child(3) { flex:1; width:auto !important; min-width:0; padding-left:8px; text-align:center; font-size:11px; line-height:1.35; white-space:normal; overflow-wrap:anywhere; }
.library-surface .sometecFooterSvg { display:block; width:18px; height:18px; flex-shrink:0; }
.library-surface .sometecFooterSvg[data-favourite-action] { width:24px; height:18px; }
.library-surface [role=button]:focus-visible, .library-surface a:focus-visible, .library-surface button:focus-visible, .library-surface input:focus-visible { outline:3px solid #145e71; outline-offset:3px; }
.library-surface ::selection { background:#c1e3e9; color:#172c40; }
@media (max-width:600px) {
 .library-surface { padding:4px 10px 24px; }
 .library-surface .library-page-title { font-size:24px; margin:16px 0; }
 .library-surface .library-hero { max-height:220px; border-radius:10px !important; }
 .library-surface .library-navigation { gap:6px; }
 .library-surface .library-navigation [role=button] { font-size:11px; }
 .library-surface .library-notice > div { padding:14px !important; }
 .library-surface .library-schedule td { padding:9px 8px; font-size:14px; }
 .library-surface .library-schedule td[onclick] { max-width:none !important; width:64%; overflow-wrap:anywhere; }
 .library-surface .sometec-footer-actions { flex-direction:column; align-items:center; }
 .library-surface .sometec-footer-actions > [id^=fav], .library-surface .sometec-footer-actions > .gridi13 { width:210px !important; flex:auto; max-width:100%; }
}
/* Match the existing driver-note and stop-search controls without changing their handlers. */
.library-surface .library-schedule div[onclick*="showSpaceOne(409134"] { display:inline-flex !important; align-items:center; justify-content:center; gap:8px; width:auto !important; max-width:100%; height:auto !important; min-height:44px; line-height:1.4 !important; padding:10px 16px; border-radius:10px !important; }
.library-surface .library-schedule div[onclick*="showSpaceOne(409134"] img { width:22px !important; height:22px !important; object-fit:contain; }
.library-surface .library-schedule div:has(> .input_search), .library-surface .library-schedule div:has(> .ui-input-text > .input_search) { margin:20px auto 16px !important; width:100%; max-width:480px; text-align:left; }
.library-surface .library-schedule .input_search { width:100% !important; max-width:100%; min-height:46px; padding:10px 12px 10px 38px; font-size:14px; }
.library-surface .library-schedule .ui-input-text { width:100%; margin:0; }

/* Remove legacy spacer rows; keep actual schedule data and headings. */
.library-surface .library-schedule .library-schedule-spacer { display:none; }
.library-surface .library-schedule td:first-child:not([colspan]) { text-align:left !important; }
.library-surface .library-schedule td[colspan][onclick] { text-align:center !important; width:auto !important; max-width:none !important; padding:6px 12px !important; }
.library-surface .library-schedule .library-special-heading { padding:10px 14px; text-align:center; font-weight:400; }

/* Stripe actual timetable entries only: headings and empty spacers are excluded. */
.library-surface .library-schedule tr:nth-child(even of .library-timetable-row) > td { background:#eef4f6; }
.library-surface .library-schedule tr:nth-child(odd of .library-timetable-row) > td { background:white; }
.library-surface .library-schedule .library-week-heading > td { border-bottom:6px solid white; }
.library-surface .library-schedule .library-special-schedule { margin:24px auto 0; width:100%; }
.library-surface .library-schedule .library-special-table { table-layout:fixed; padding:0 10px 12px; }
.library-surface .library-schedule .library-special-schedule .library-special-table td { text-align:center !important; white-space:normal !important; padding:8px 5px !important; font-variant-numeric:tabular-nums; }
.library-surface .library-schedule .library-special-table .library-special-heading { padding:12px 5px; }

/* Stage 2: existing stop cards retain their fields, handlers, IDs and ordering. */
.library-stop-card { box-sizing:border-box; width:calc(33.333% - 12px) !important; margin:0 12px 18px 0 !important; min-height:0 !important; max-height:none !important; border:1px solid #dce4e8; border-radius:12px; box-shadow:0 4px 12px rgba(23,44,64,.09) !important; text-align:left; }
.library-stop-card .library-card-content { display:flex; flex-direction:column; width:100% !important; margin:0 !important; min-height:0 !important; max-height:none !important; cursor:pointer; }
.library-stop-card .library-card-content > .ui-block-a, .library-stop-card .library-card-content > .ui-block-c { display:none; }
.library-stop-card .library-card-photo { float:none !important; width:100% !important; max-width:none !important; margin:0 !important; }
.library-stop-card .library-card-photo img { display:block; width:100% !important; height:160px !important; margin:0 !important; object-fit:cover; border-radius:0 !important; box-shadow:none !important; }
.library-stop-card .library-card-copy { float:none !important; width:100% !important; height:auto !important; min-height:80px; padding:14px 16px 16px !important; overflow:visible !important; }
.library-stop-card .library-card-copy > p[role=button] { text-align:left !important; font-size:17px !important; line-height:1.35; margin:0 0 10px !important; color:#172c40; overflow-wrap:anywhere; }
.library-stop-card .library-card-copy .summaryFontSize { overflow-wrap:anywhere; }
.library-stop-card:focus-within { outline:3px solid #145e71; outline-offset:2px; }
@media (min-width:601px) and (max-width:1000px) { .library-stop-card { width:calc(50% - 12px) !important; } }
@media (max-width:600px) { .library-stop-card { width:100% !important; margin:0 0 16px !important; } .library-stop-card .library-card-photo img { height:180px !important; } }

.library-stop-card .library-card-photo, .library-stop-card .library-card-copy { flex-shrink:0; }

/* Grid packs cards by source order even when titles wrap to different heights. */
:is([id^="cards_container"], .xcards):has(> .library-stop-card, > [id^="buildlist_container"] .library-stop-card) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-flow:row; align-items:stretch; gap:18px 12px; width:100%; }
:is([id^="cards_container"], .xcards):has(> .library-stop-card, > [id^="buildlist_container"] .library-stop-card) > [id^="buildlist_container"] { display:contents; }
.xcards:has(> .library-stop-card) > :not(.library-stop-card):not([id^="buildlist_container"]) { grid-column:1 / -1; }
.library-stop-card { float:none !important; width:100% !important; margin:0 !important; }
@media (min-width:601px) and (max-width:1000px) { :is([id^="cards_container"], .xcards):has(> .library-stop-card, > [id^="buildlist_container"] .library-stop-card) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { :is([id^="cards_container"], .xcards):has(> .library-stop-card, > [id^="buildlist_container"] .library-stop-card) { grid-template-columns:minmax(0,1fr); gap:16px; } }

/* Use the same border-box width as the card grid, including the search icon padding. */
.xcards:has(.library-stop-card) input[id^="input_search"] { box-sizing:border-box; display:block; width:100% !important; max-width:100%; margin-left:0; margin-right:0; }
.xcards:has(.library-stop-card) > .ui-input-text:has(> input[id^="input_search"]) { box-sizing:border-box; width:100%; margin-left:0; margin-right:0; }

/* Public favourites and nearby lists share the stop-page spacing and controls. */
.library-list { padding-top:20px; padding-bottom:32px; }
.library-list .xcards { width:100%; margin:0; }
.library-list [onclick^="favourites_"], .library-list [onclick*="delFav()"], .library-list [onclick*="showFavInfo"] { box-sizing:border-box; min-height:44px; height:auto !important; padding:10px 12px; line-height:1.4 !important; border-radius:8px; }
.library-list .xcards::after { content:""; display:block; clear:both; }

.library-list .ui-grid-b:has(> [onclick*="showEventsFav()"]) { display:flex; gap:12px; width:100%; max-width:480px; margin:0 auto 16px; }
.library-list .ui-grid-b:has(> [onclick*="showEventsFav()"]) > .ui-block-b { display:none; }
.library-list .ui-grid-b:has(> [onclick*="showEventsFav()"]) > [onclick] { float:none; width:auto !important; flex:1; min-height:46px; max-height:none !important; height:auto !important; padding:10px 12px; line-height:1.4 !important; border-radius:8px; background:#227482 !important; color:white; font-size:12px; }
.library-list .library-list-map { box-sizing:border-box; display:flex; justify-content:center; align-items:center; gap:10px; width:100%; height:auto !important; min-height:46px; margin-bottom:16px; padding:8px 12px; border:0 !important; border-radius:10px; background:#227482 !important; color:white; box-shadow:none !important; }
.library-list .library-list-map > .ui-block-a { width:28px !important; max-width:28px !important; }
.library-list .library-list-map img { display:block; width:28px; height:28px !important; margin:0 !important; padding:0 !important; object-fit:cover; border-radius:6px; }
.library-list .library-list-map > .ui-block-b { width:auto !important; height:auto !important; margin:0 !important; line-height:1.4 !important; }

/* Fill the shared card image area consistently. */
.library-stop-card .library-card-photo { background:#eef3f5; }
.library-stop-card .library-card-photo img { object-fit:cover; object-position:center; }

/* A white separator before each weekday, including after the preceding last stop. */
.library-surface .library-schedule .library-week-heading > td { border-bottom:0; }
.library-surface .library-schedule .library-day-heading > td, .library-surface .library-schedule .library-week-heading + .library-timetable-row > td { border-top:6px solid white; }

.library-surface .library-schedule .library-day-heading > td { border-top-width:14px; }
.library-photos h2 { font-size:18px; line-height:1.3; margin:0 0 18px; }
.library-photo-upload { background:white; border:1px solid #dce4e8; border-radius:12px; padding:20px; margin:0 0 24px; }
.library-photo-picker { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.library-photo-choose { display:inline-flex; position:relative; align-items:center; min-height:44px; padding:10px 16px; border:1px solid #227482; border-radius:8px; color:#185968; background:#edf5f6; cursor:pointer; }
.library-photo-choose input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }
.library-photo-choose:focus-within { outline:3px solid #145e71; outline-offset:3px; }
#library-photo-selected { overflow-wrap:anywhere; font-size:14px; }
.library-photos button { box-sizing:border-box; min-height:44px; padding:9px 14px; border:1px solid #bfd3db; border-radius:8px; font:inherit; line-height:1.4; cursor:pointer; background:#edf5f6; color:#185968; }
.library-photos .library-photo-submit { background:#227482; color:white; border:0; }
.library-photos button:disabled { opacity:.5; cursor:default; }
.library-photo-upload-preview { display:block; width:180px; max-width:100%; height:120px; object-fit:contain; margin:0 0 16px; background:#f0f5f6; border-radius:8px; }
.library-photo-upload-preview[hidden], .library-photo-thumb[hidden] { display:none; }
.library-photo-tools { display:flex; flex-wrap:wrap; align-items:center; gap:14px 20px; margin-bottom:16px; }
.library-photo-search { flex:1 1 320px; font-size:14px; font-weight:700; }
.library-photos .input_search { display:block; box-sizing:border-box; width:100% !important; margin:8px 0 0; min-height:46px; }
.library-photo-preview-toggle { display:flex; gap:10px; align-items:center; min-height:44px; font-size:14px; }
.library-photo-preview-toggle input { width:20px; height:20px; accent-color:#227482; }
.library-photo-count { color:#526572; font-size:14px; }
.library-photo-list { display:grid; gap:8px; width:100%; }
.library-photo-row { display:grid; grid-template-columns:minmax(0,1fr) auto 44px; gap:10px; align-items:center; padding:10px 12px; border:1px solid #dce4e8; border-radius:10px; background:white; text-align:left; }
.library-photo-name { overflow-wrap:anywhere; min-width:0; font-size:14px; }
.library-photos .library-photo-delete { padding:8px; display:flex; align-items:center; justify-content:center; color:#9b3340; background:#fff5f5; border-color:#e6c8cd; }
.library-photos-with-thumbs .library-photo-row { grid-template-columns:76px minmax(0,1fr) auto 44px; }
.library-photo-thumb { width:76px; height:58px; object-fit:contain; border-radius:6px; background:#eef3f5; }
@media (max-width:600px) {
 .library-photo-upload { padding:16px; }
 .library-photo-tools { gap:8px 14px; }
 .library-photo-row { grid-template-columns:minmax(0,1fr) 44px; }
 .library-photo-name { grid-column:1 / -1; }
 .library-photos-with-thumbs .library-photo-row { grid-template-columns:76px minmax(0,1fr) 44px; }
 .library-photos-with-thumbs .library-photo-name { grid-column:2 / -1; }
 .library-photos-with-thumbs .library-photo-row > [data-photo-action=view] { grid-column:1 / 3; }
}

/* Match the reference manager's compact upload area and action columns. */
.library-photos-model .library-photo-upload { padding:12px 0 0; border:0; border-radius:0; background:transparent; margin-bottom:18px; }
.library-photos-model .library-photo-tools { margin-bottom:0; }
.library-photos-model .library-photo-search { font-size:14px; }
.library-photos-model .photo-list-row { text-align:left; }
.library-photos-model .photo-list-name { background:transparent; }

/* Detail page map, route and sharing actions. */
.library-surface .library-location-action { display:flex; align-items:center; gap:12px; width:100%; min-height:48px; padding:12px 16px; margin:0 0 8px; border:1px solid #d5e1e5; border-radius:10px; background:white; color:#175e6b; font:600 16px/1.4 Arial,sans-serif; text-align:left; cursor:pointer; box-sizing:border-box; }
.library-surface .library-location-action svg { flex-shrink:0; }
.library-surface .library-location-action:hover, .library-surface .library-share-action:hover { background:#e8f2f4; border-color:#227482; }
.library-surface .library-location-action:focus-visible, .library-surface .library-share-action:focus-visible { outline:3px solid #227482; outline-offset:3px; }

/* Feedback form: readable fields and compact native actions. */
.sometec-feedback { max-width:680px; margin:20px auto 32px; padding:24px; box-sizing:border-box; background:#fff; border:1px solid #e0e6eb; border-radius:16px; color:#10243b; text-shadow:none; }
.sometec-feedback .feedback-intro { margin:0 0 24px; color:#526170; font-size:14px; line-height:1.65; }
.sometec-feedback .feedback-contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.sometec-feedback .feedback-field { min-width:0; margin:0 0 20px; }
.sometec-feedback .feedback-field label { display:block; margin:0 0 8px; color:#20364a; font-size:14px; font-weight:700; text-shadow:none; }
.sometec-feedback .feedback-field input, .sometec-feedback #Fstoryx { width:100%; box-sizing:border-box; border:1px solid #b8c5cf; border-radius:10px; background:#fbfcfd; color:#10243b; font:16px/1.5 Arial,sans-serif; padding:11px 13px; margin:0; box-shadow:none; text-shadow:none; }
.sometec-feedback .feedback-field input { min-height:46px; }
.sometec-feedback #Fstoryx { min-height:160px; overflow-wrap:anywhere; }
.sometec-feedback .feedback-field input:focus, .sometec-feedback #Fstoryx:focus { outline:2px solid #227482; outline-offset:2px; background:#fff; }
.sometec-feedback .feedback-response { margin:0 0 14px; font-size:14px; }
.sometec-feedback .cb_container2 { width:100% !important; height:auto !important; min-height:44px; padding:8px 10px; box-sizing:border-box; border-radius:9px !important; }
.sometec-feedback .cb_container2[style*="display:block"] { display:flex !important; align-items:center; gap:10px; }
.sometec-feedback .cb_container2 > div:first-child { float:none !important; flex:1; min-width:0; width:auto !important; height:auto !important; padding:0 !important; line-height:1.5 !important; }
.sometec-feedback .cb_container2 > div:nth-child(2) { flex:0 0 26px; }

.sometec-feedback .feedback-action { display:flex; align-items:center; justify-content:center; gap:9px; box-sizing:border-box; min-height:46px; padding:10px 14px; border:1px solid #a9c4cb; border-radius:10px; background:#fff !important; color:#1c6674; font:600 14px/1.35 Arial,sans-serif; text-align:center; text-decoration:none; text-shadow:none; cursor:pointer; }
.sometec-feedback .feedback-action:hover { background:#edf5f6 !important; }
.sometec-feedback .feedback-action:focus-visible, .sometec-feedback .feedback-submit:focus-visible, .sometec-feedback .feedback-privacy:focus-visible { outline:3px solid #227482; outline-offset:3px; }
.sometec-feedback .feedback-location-action { margin:8px 0; }
.sometec-feedback .feedback-attachment-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.sometec-feedback .feedback-attachment-actions > button { flex:1 1 180px; }
.sometec-feedback svg { flex:0 0 20px; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.sometec-feedback form > div[style="height:30px;"] { height:20px !important; }
.sometec-feedback .feedback-submit { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:48px; padding:12px 20px; border:0; border-radius:11px; background:#227482; color:#fff; font:700 16px/1.4 Arial,sans-serif; text-shadow:none; cursor:pointer; }
.sometec-feedback .feedback-submit:hover { background:#195c68; }
.sometec-feedback #image_review, .sometec-feedback #video_review { max-height:300px; object-fit:contain; border-radius:10px; background:#eef3f5; }
.sometec-feedback #review_str, .sometec-feedback #review_str2 { margin-bottom:8px; color:#526170; font-size:13px; }
.sometec-feedback .feedback-privacy { width:auto !important; height:auto !important; padding:8px 12px; text-align:center; font-size:13px; }
@media(max-width:600px) {
 .sometec-feedback { margin:12px 4px 24px; padding:18px 14px; border-radius:12px; }
 .sometec-feedback .feedback-contact-grid { grid-template-columns:1fr; gap:0; }
 .sometec-feedback .feedback-intro { margin-bottom:20px; }
}
@media(max-width:360px) {
 .sometec-feedback .feedback-captcha .g-recaptcha { transform:scale(.82); transform-origin:center top; margin-left:-25px; margin-right:-25px; }
}

/* Share the contact-label row so wrapped labels cannot shift one input down. */
@media(min-width:601px) {
 .sometec-feedback .feedback-contact-grid { grid-template-rows:auto auto; row-gap:8px; }
 .sometec-feedback .feedback-contact-grid .feedback-field { display:grid; grid-template-rows:subgrid; grid-row:span 2; row-gap:8px; }
 .sometec-feedback .feedback-contact-grid .feedback-field label { margin:0; }
}

.library-surface .library-favorites-clear { display:flex; justify-content:center; width:100%; }
.library-surface .library-favorites-clear > .gridi19 { float:none !important; clear:none !important; width:220px !important; max-width:100%; margin:0 !important; text-align:center; }

.library-speech-tools { margin:12px 0 18px; }
.library-speech-toggle { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:9px 14px; border:1px solid #227482; border-radius:9px; background:white; color:#175e6b; font:600 15px/1.4 Arial,sans-serif; cursor:pointer; }
.library-speech-toggle:hover, .library-speech-toggle[aria-pressed=true] { background:#e8f2f4; }
.library-speech-toggle:focus-visible { outline:3px solid #227482; outline-offset:3px; }
.library-speech-message { margin:8px 0; color:#354055; font-size:14px; }
.library-speech-message:empty { display:none; }

/* The in-app stop editor opened from the public stop's maintenance action. */
.library-maintenance-editor { max-width:950px; margin:16px auto 32px; padding:0 14px; box-sizing:border-box; font-family:Arial,sans-serif; color:#172c40; overflow-wrap:anywhere; }
.library-maintenance-editor [contenteditable=true] { box-sizing:border-box; width:100% !important; max-width:100%; min-height:46px !important; padding:11px 13px !important; margin:8px 0 18px !important; border:1px solid #b8c5cf !important; border-radius:9px; background:#fbfcfd !important; color:#10243b !important; font:16px/1.5 Arial,sans-serif; }
.library-maintenance-editor :is(#Winfo1,#Winfo2) { min-height:130px !important; }
.library-maintenance-editor [id^=ww] { margin:18px 0 7px; font:600 14px/1.5 Arial,sans-serif; color:#20364a; }
.library-maintenance-editor select { box-sizing:border-box; max-width:100%; min-height:44px; padding:8px 12px; border:1px solid #b8c5cf; border-radius:9px; font-size:16px; }
.library-maintenance-editor [onclick^="updateStatus("], .library-maintenance-editor [onclick^="save_info1("] { box-sizing:border-box; height:auto !important; min-height:46px; padding:11px 16px; line-height:1.4 !important; border-radius:9px !important; background:#227482 !important; color:#fff !important; font-weight:600; text-align:center; }
.library-maintenance-editor [contenteditable=true]:focus-visible { outline:3px solid #227482; outline-offset:3px; }
@media(max-width:600px){.library-maintenance-editor { padding:0 6px; }}

.library-surface .library-notice-heading { display:flex; align-items:center; gap:10px; margin:0 0 7px; color:#5f4b00; }
.library-surface .library-notice-heading > span { font-size:24px; line-height:1; }
.library-surface .library-notice-heading h2 { margin:0; font:700 18px/1.4 Arial,sans-serif; }
.library-surface .library-notice-card > div:not(.library-notice-heading) { padding:0 !important; }
.library-surface .library-schedule tr.library-week-heading:not(:first-child) > td { border-top:14px solid white; }

.library-schedule-search { position:relative; width:100%; max-width:530px; margin:0 auto; }
.library-surface .library-schedule-search .input_search { box-sizing:border-box; width:100% !important; min-height:46px; padding-right:48px !important; }
.library-search-clear { position:absolute; top:50%; right:2px; transform:translateY(-50%); display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:0; border-radius:6px; background:transparent; color:#175e6b; font:28px/1 Arial,sans-serif; cursor:pointer; }
.library-search-clear[hidden] { display:none; }
.library-search-clear:hover { background:#e8f2f4; }
.library-search-clear:focus-visible { outline:3px solid #227482; outline-offset:-3px; }
.library-surface .library-schedule tr.library-week-heading > td[colspan][style*="background-color"] { background:#227482 !important; color:#fff !important; font-size:19px; font-weight:700 !important; padding:15px 18px !important; text-align:center; letter-spacing:.15px; } .library-surface .library-schedule .library-week-heading > td > span { color:#fff; font-size:15px; }

.library-daycare { max-width:950px; margin:20px auto 32px; padding:0 16px; box-sizing:border-box; color:#172c40; font:16px/1.5 Arial,sans-serif; }
.library-daycare-intro { margin:0 0 22px; color:#526170; }
.library-daycare-search { max-width:560px; margin:0 0 24px; }
.library-daycare-search label { display:block; margin-bottom:8px; font-size:14px; font-weight:600; }
.library-daycare-search input { box-sizing:border-box; width:100%; min-height:46px; border:1px solid #b8c5cf; border-radius:9px; padding:10px 14px 10px 38px; font:16px/1.4 Arial,sans-serif; background-color:white; }
.library-daycare-list { border:1px solid #dce4e8; border-radius:12px; overflow:hidden; background:white; }
.library-daycare-list table { width:100%; border-collapse:collapse; }
.library-daycare-list th { padding:12px 18px; background:#e5eff1; color:#174e58; text-align:left; font-size:14px; }
.library-daycare-list td { padding:15px 18px; border-top:1px solid #e0e8eb; vertical-align:middle; }
.library-daycare-list tbody tr:nth-child(even) { background:#f1f6f8; }
.library-daycare-stop { display:block; border:0; padding:0; min-height:32px; background:transparent; color:#175e6b; font:600 16px/1.5 Arial,sans-serif; text-align:left; cursor:pointer; }
.library-daycare-stop:hover { text-decoration:underline; }
.library-daycare-weekday { display:block; color:#526170; font-size:14px; }
.library-daycare-date { display:block; font-weight:600; }
.library-daycare-time { display:block; color:#175e6b; font-variant-numeric:tabular-nums; }
.library-daycare-empty { padding:16px; color:#526170; }
.library-daycare [hidden] { display:none !important; }
.library-daycare :is(input,button):focus-visible { outline:3px solid #227482; outline-offset:3px; }
@media(max-width:600px){.library-daycare{padding:0 8px}.library-daycare-list th,.library-daycare-list td{padding:12px 10px}.library-daycare-list td:first-child{width:58%}.library-daycare-date,.library-daycare-time{white-space:nowrap;font-size:14px}}
.library-surface .library-schedule tr.library-day-heading > td[colspan][style*="background-color"] { background:#c9e2e6 !important; color:#174e58 !important; font-size:17px; font-weight:700 !important; padding:13px 16px !important; }

.library-stop-card .library-card-copy .library-card-address { margin:-4px 0 10px; color:#526170; font:400 14px/1.45 Arial,sans-serif; text-align:left; overflow-wrap:anywhere; }

.library-card-search { position:relative; width:100%; grid-column:1/-1; margin:0 0 12px; }
.library-card-search .input_search { box-sizing:border-box; width:100% !important; padding-right:48px !important; }
.input_search::placeholder, .library-daycare-search input::placeholder { color:#596b78 !important; opacity:1; } .input_search { color:#172c40; }

/* Map view fills the viewport instead of inheriting the site's centered page width. */
#sometecmap { position:fixed !important; inset:0 !important; width:100vw !important; max-width:none !important; height:100vh !important; height:100dvh !important; min-height:0 !important; max-height:none !important; margin:0 !important; padding:0 !important; box-sizing:border-box; background:#f7f7f8 !important; overflow:hidden; }
#sometecmap > [data-role=header] { height:44px; box-sizing:border-box; margin:0; padding:0; }
#sometecmap > [data-role=header] h1 { margin-top:0 !important; margin-bottom:0 !important; padding-top:0 !important; padding-bottom:0 !important; line-height:44px; }
#sometecmap > [data-role=content] { box-sizing:border-box; width:100%; height:calc(100vh - 44px); height:calc(100dvh - 44px); min-height:0 !important; margin:0 !important; padding:0 !important; overflow:hidden; }
#sometecmap #map01 { display:block; position:fixed; left:0; top:44px; width:100vw !important; height:calc(100vh - 44px) !important; height:calc(100dvh - 44px) !important; border:0; margin:0; }
#sometecmap #iframe-container { height:100% !important; }

/* Fleet choice and compact vehicle markers: library schedules only. */
.library-surface .library-fleet-choice{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:22px auto 16px;max-width:795px}
.library-surface .library-fleet-choice button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:0;padding:9px 14px;border:1px solid #acbdc5;border-radius:8px;background:#fff;color:#18394b;font:600 15px Arial,sans-serif;box-shadow:none;text-shadow:none;width:auto}
.library-surface .library-fleet-choice button[aria-pressed=true]{background:#e2eff2;border-color:#227482;box-shadow:inset 0 -3px #227482}
.library-surface .library-fleet-choice button:hover{background:#edf4f6}
.library-surface .library-bus-color-0{color:#2161b3}.library-surface .library-bus-color-1{color:#a44714}.library-surface .library-bus-color-2{color:#6f4299}.library-surface .library-bus-color-3{color:#26713a}.library-surface .library-bus-color-4{color:#9a345f}.library-surface .library-bus-color-5{color:#625916}
.library-surface .library-bus-mark{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;width:auto;margin:0;padding:4px;border:0;border-radius:5px;background:transparent;box-shadow:none;text-shadow:none;font:400 13px Arial,sans-serif;vertical-align:middle}
.library-surface .library-bus-mark:hover{background:#e2eff2}
.library-surface .library-bus-mark span:first-child,.library-surface .library-fleet-choice button>span{display:inline-flex}
.library-surface .library-bus-mark svg,.library-surface .library-fleet-choice svg{display:block;width:22px;height:22px}
.library-surface .library-bus-name[hidden]{display:none!important}
.library-surface .library-fleet-time-content{display:inline-flex;align-items:center;justify-content:flex-end;gap:3px;flex-wrap:nowrap;font-variant-numeric:tabular-nums}
.library-surface td.library-fleet-time{white-space:nowrap;width:1%;vertical-align:middle}.library-surface .library-fleet-time-content>span,.library-surface .library-fleet-time-content>.library-bus-mark{flex-shrink:0}
.library-surface .library-fleet-choice button:focus-visible,.library-surface .library-bus-mark:focus-visible{outline:3px solid #227482;outline-offset:2px}
@media(max-width:480px){.library-surface .library-fleet-choice button{padding:9px 10px}.library-surface td.library-fleet-time{padding-left:2px;padding-right:8px}.library-surface .library-fleet-time-content{gap:0;font-size:13px}.library-surface .library-fleet-time-content .library-bus-mark{min-width:44px}}

/* Align both timetable cells to the same vertical centre. */
.library-surface .library-schedule tr.library-timetable-row > td{vertical-align:middle}

.library-surface .library-bus-mark>span:first-child,.library-surface .library-fleet-choice button>span{align-items:center;gap:2px}
.library-surface .library-bus-number{font:700 11px/1 Arial,sans-serif;color:currentColor;min-width:7px;text-align:center}

.library-surface .library-special-bus{display:inline-flex;align-items:center;gap:2px;vertical-align:middle;margin:0 7px;white-space:nowrap}
.library-surface .library-special-bus svg{width:22px;height:22px;flex-shrink:0}

.library-surface .library-weekly-all-button>td{text-align:center!important;padding:20px 10px!important;background:white!important}
.library-surface .library-weekly-open{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:44px;padding:10px 18px;border:0;border-radius:10px;background:#227482;color:white;font:600 15px/1.4 Arial,sans-serif;text-shadow:none;box-shadow:none;white-space:normal}
.library-surface .library-weekly-open:hover{background:#195e6a}
.library-surface .library-weekly-open:focus-visible{outline:3px solid #172c40;outline-offset:3px}

.library-weekly-stops .library-daycare-list .library-weekly-month th{background:#227482;color:#fff;font-size:18px;padding:13px 14px}
.library-weekly-stops .library-daycare-list .library-weekly-week th{background:#b7dce2;color:#174e58;font-size:14px;font-weight:600;text-align:center;padding:15px 24px;border-top:10px solid white;border-bottom:10px solid white}

.library-weekly-month-control{margin:0 0 22px}
.library-weekly-month-control>label{display:block;margin:0 0 8px;font-size:14px;font-weight:600;color:#172c40}
.library-weekly-month-buttons{display:flex;align-items:center;gap:8px;max-width:420px}
.library-weekly-month-buttons select{flex:1;min-width:0;width:auto;height:46px;padding:8px 10px;border:1px solid #a9bdc8;border-radius:9px;background:#fff;color:#172c40;font:400 16px Arial,sans-serif}
.library-weekly-month-buttons button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-height:46px;margin:0;padding:8px;border:1px solid #a9bdc8;border-radius:9px;background:#fff;color:#175e6b;box-shadow:none;text-shadow:none}
.library-weekly-month-buttons button:disabled{opacity:.4}
.library-weekly-month-buttons button:not(:disabled):hover{background:#e2eff2}
.library-weekly-month-buttons :focus-visible{outline:3px solid #227482;outline-offset:2px}

.library-weekly-stops .library-only-daycare{display:flex!important;align-items:center;gap:10px;min-height:44px;margin:0 0 18px;color:#172c40;font:600 15px/1.4 Arial,sans-serif}
.library-weekly-stops .library-only-daycare input{position:static;display:block;appearance:auto;width:20px;height:20px;flex:0 0 20px;margin:0;opacity:1;accent-color:#227482}

.library-weekly-stops .library-all-stop-filters{display:grid;grid-template-columns:minmax(240px,1.2fr) minmax(140px,.8fr);align-items:end;gap:10px 14px;margin:0 0 18px}
.library-weekly-stops .library-all-stop-filters .library-weekly-month-control,.library-weekly-stops .library-all-stop-filters .library-only-daycare,.library-weekly-stops .library-all-stop-filters .library-daycare-search{margin:0}
.library-weekly-stops .library-all-stop-filters .library-daycare-search{grid-column:1/-1}
.library-weekly-stops .library-all-stop-filters label:not(.library-only-daycare){display:block!important;margin:0 0 5px;font-size:14px;font-weight:600}
.library-weekly-stops .library-weekly-car-control select{box-sizing:border-box;width:100%;min-width:0;height:46px;padding:8px 10px;border:1px solid #a9bdc8;border-radius:9px;background:#fff;color:#172c40;font:400 16px Arial,sans-serif}
.library-weekly-stops .library-all-stop-filters .library-only-daycare{min-height:46px;white-space:nowrap}
.library-weekly-stops .library-all-stop-filters .library-daycare-search input{margin:0}
@media(max-width:700px){.library-weekly-stops .library-all-stop-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.library-weekly-stops .library-weekly-month-control{grid-column:1/-1}.library-weekly-stops .library-all-stop-filters .library-only-daycare{font-size:14px;gap:7px}}

.library-weekly-stops .library-daycare-list .library-weekly-day th{background:#c9e2e6;color:#123f4a;font-size:14px;font-weight:600;text-align:center;padding:15px 24px;border-top:10px solid white;border-bottom:10px solid white}

.library-weekly-stops .library-nearby-controls{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px}
.library-weekly-stops .library-all-stop-filters label.library-only-nearby{display:flex!important;align-items:center;gap:8px;min-height:44px;margin:0;white-space:nowrap;font:600 15px/1.4 Arial,sans-serif;color:#172c40}
.library-weekly-stops .library-only-nearby input{position:static;display:block;appearance:auto;width:20px;height:20px;flex:0 0 20px;margin:0;opacity:1;accent-color:#227482}
.library-weekly-stops .library-nearby-radius{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.library-weekly-stops .library-all-stop-filters .library-nearby-radius>label{margin:0;font-size:13px;font-weight:400}
.library-weekly-stops .library-nearby-radius select{width:85px;min-height:44px;padding:7px;border:1px solid #a9bdc8;border-radius:8px;background:#fff;color:#172c40;font:400 16px Arial,sans-serif}
.library-weekly-stops .library-nearby-radius select:disabled{opacity:.55}
.library-weekly-stops .library-nearby-status{grid-column:1/-1;margin:0;font:400 14px/1.5 Arial,sans-serif;color:#425969}
.library-weekly-stops .library-stop-distance{display:block;margin:4px 0;color:#425969;font:400 13px/1.4 Arial,sans-serif}
.library-weekly-stops .library-stop-distance[hidden],.library-weekly-stops .library-nearby-status[hidden]{display:none!important}

.library-weekly-stops .library-nearby-route-note{grid-column:1/-1;display:block;margin:0;color:#425969;font:400 13px/1.4 Arial,sans-serif;white-space:normal;overflow-wrap:anywhere}
.library-weekly-stops .library-nearby-route-note[hidden]{display:none!important}

.library-weekly-stops .library-all-stop-filters>.library-only-daycare{grid-column:1/-1;min-height:36px;margin:0}

.library-weekly-stops .library-all-stop-filters>.library-only-daycare{min-height:28px;margin-bottom:-8px}

/* Shared grid tracks align the two sides even when a stop name wraps. */
.library-weekly-stops .library-daycare-list thead th:first-child{width:58%}
.library-weekly-stops .library-daycare-list .library-visit-cell{width:auto!important;padding:0!important;vertical-align:top}
.library-weekly-stops .library-visit-fields{display:grid;grid-template-columns:minmax(0,58fr) minmax(0,42fr);grid-template-rows:auto auto auto auto;padding:15px 0;align-items:start}
.library-weekly-stops .library-visit-fields>*{box-sizing:border-box;min-width:0;margin:0;padding:0 18px}
.library-weekly-stops .library-visit-fields>.library-daycare-stop{grid-column:1;grid-row:1;min-height:0;width:100%;font-size:16px;line-height:24px;white-space:normal;overflow-wrap:anywhere}
.library-weekly-stops .library-visit-fields>.library-daycare-date{grid-column:2;grid-row:1;font-size:16px;line-height:24px}
.library-weekly-stops .library-visit-fields>.library-stop-distance{grid-column:1;grid-row:2;font-size:13px;line-height:20px}
.library-weekly-stops .library-visit-fields>.library-visit-schedule{grid-column:1;grid-row:3;font-size:14px;line-height:22px}
.library-weekly-stops .library-visit-fields>.library-visit-weekday{grid-column:2;grid-row:3;font-size:14px;line-height:22px}
.library-weekly-stops .library-visit-fields>.library-visit-vehicle{grid-column:1;grid-row:4;font-size:14px;line-height:22px}
.library-weekly-stops .library-visit-fields>.library-daycare-time{grid-column:2;grid-row:4;font-size:14px;line-height:22px}
@media(max-width:600px){.library-weekly-stops .library-visit-fields{padding:12px 0}.library-weekly-stops .library-visit-fields>*{padding-left:10px;padding-right:10px}}

@media(max-width:700px){.library-weekly-stops .library-nearby-controls:has(#nearby_WKS:not(:checked)) .library-nearby-radius{display:none}}

/* Independent stop-area filter. Match the actual results surface as well as the main page. */
.library-weekly-stops .library-all-stop-filters .library-weekly-area-control{grid-column:1/-1;width:100%;max-width:560px;margin:0;min-width:0}
.library-weekly-stops .library-all-stop-filters .library-weekly-area-control label{display:block!important;margin:0 0 6px;font:600 14px/1.4 Arial,sans-serif;color:#172c40}
.library-weekly-stops .library-weekly-area-control select{display:block;box-sizing:border-box;width:100%;min-width:0;height:46px;padding:8px 12px;border:1px solid #a9bdc8;border-radius:9px;background-color:#fff;color:#172c40;font:400 16px/1.4 Arial,sans-serif;cursor:pointer}
.library-weekly-stops .library-weekly-area-control select:hover{border-color:#227482}
.library-weekly-stops .library-weekly-area-control select:focus-visible{outline:3px solid #227482;outline-offset:2px;border-color:#227482}
.library-weekly-stops .library-weekly-area-control select:disabled{background-color:#edf2f5;color:#536b7e;cursor:default}
@media(max-width:700px){.library-weekly-stops .library-all-stop-filters .library-weekly-area-control{max-width:none}}

/* Compact native disclosure for map-selected stops, independent of the visit filters. */
.library-weekly-stops .library-chosen-stops{max-width:560px;margin:0 0 14px;border:1px solid #b6cdd3;border-radius:8px;background:#fff;color:#172c40;font:14px/1.45 Arial,sans-serif;overflow-wrap:anywhere}
.library-weekly-stops .library-chosen-stops summary{display:flex;align-items:center;gap:8px;min-height:44px;box-sizing:border-box;padding:9px 12px;list-style:none;cursor:pointer;color:#175e6b}
.library-weekly-stops .library-chosen-stops summary::-webkit-details-marker{display:none}
.library-weekly-stops .library-chosen-count{flex:1;min-width:0;font-weight:600}
.library-weekly-stops .library-chosen-action{font-size:13px;white-space:nowrap}
.library-weekly-stops .library-chosen-stops summary>svg{flex:0 0 18px}
.library-weekly-stops .library-chosen-stops summary:hover{background:#edf4f6;border-radius:8px}
.library-weekly-stops .library-chosen-stops summary:focus-visible{outline:3px solid #227482;outline-offset:2px;border-radius:8px}
.library-weekly-stops .library-chosen-stops .library-chosen-open{display:none}
.library-weekly-stops .library-chosen-stops[open] .library-chosen-open{display:inline}
.library-weekly-stops .library-chosen-stops[open] .library-chosen-closed{display:none}
.library-weekly-stops .library-chosen-stops[open] summary>svg{transform:rotate(180deg)}
.library-weekly-stops .library-chosen-stops ul{margin:0;padding:4px 16px 12px 32px;max-height:192px;overflow-y:auto;scrollbar-color:#8eaeb6 #edf4f6}
.library-weekly-stops .library-chosen-stops li{margin:4px 0;line-height:1.5}
.library-weekly-stops .library-chosen-stops p{margin:0;padding:4px 12px 12px}
@media(max-width:420px){.library-weekly-stops .library-chosen-action{display:none}}

.library-weekly-stops .library-calendar-map-entry{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin:0 0 16px}
.library-weekly-stops .library-calendar-map-entry p{margin:0;max-width:60ch;color:#425d70;font:14px/1.45 Arial,sans-serif}
.library-weekly-stops .library-calendar-map-select{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:9px 12px;border:1px solid #227482;border-radius:8px;background:#fff;color:#175e6b;font:600 14px/1.4 Arial,sans-serif;cursor:pointer;box-sizing:border-box;text-shadow:none}
.library-weekly-stops .library-calendar-map-select>svg{flex:0 0 18px}
.library-weekly-stops .library-calendar-map-select:hover{background:#edf4f6}
.library-weekly-stops .library-calendar-map-select:focus-visible{outline:3px solid #227482;outline-offset:2px}
.library-weekly-stops .library-calendar-map-select:disabled{opacity:.6;cursor:wait}
.library-weekly-stops .library-chosen-map-action{padding:0 12px 12px}

/* One explicit search method at a time. Hidden/disabled criterion controls never filter map selections. */
.library-weekly-stops .library-search-mode{border:0;padding:0;margin:0 0 10px;max-width:560px;min-inline-size:0}
.library-weekly-stops .library-search-mode legend{width:100%;box-sizing:border-box;text-align:center;padding:0;margin:0 0 7px;font:600 14px/1.4 Arial,sans-serif;color:#172c40}
.library-weekly-stops .library-search-mode-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.library-weekly-stops .library-search-mode-buttons button{min-height:46px;padding:10px 6px;border:1px solid #9bbcc4;border-radius:8px;background:#fff;color:#175e6b;font:600 14px/1.4 Arial,sans-serif;cursor:pointer;text-shadow:none;box-shadow:none}
.library-weekly-stops .library-search-mode-buttons button[aria-pressed=true]{background:#227482;color:#fff;border-color:#227482}
.library-weekly-stops .library-search-mode-buttons button:hover{border-color:#172c40}
.library-weekly-stops .library-search-mode-buttons button:focus-visible{outline:3px solid #227482;outline-offset:2px}
.library-weekly-stops .library-search-mode-buttons button:disabled{opacity:.6;cursor:wait}
.library-weekly-stops .library-search-mode-help{max-width:70ch;margin:0 0 18px;color:#425d70;font:14px/1.5 Arial,sans-serif}
.library-weekly-stops .library-criteria-controls{border:0;padding:0;min-inline-size:0;width:100%;box-sizing:border-box}
.library-weekly-stops [hidden]{display:none!important}

/* Stop names in the dated calendar are always visibly actionable. */
.library-weekly-stops .library-daycare-stop{text-decoration-line:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.library-weekly-stops .library-daycare-stop:hover{text-decoration-thickness:2px;color:#104653}
.library-weekly-stops .library-daycare-stop:focus-visible{outline:2px solid #175e6b;outline-offset:3px;border-radius:2px;text-decoration-thickness:2px}

.library-weekly-stops .library-search-frame{max-width:560px;padding:16px;margin:0 0 20px;border:1px solid #9bbcc4;border-radius:12px;background:#f4f9fa;box-sizing:border-box}
.library-weekly-stops .library-search-frame .library-search-mode{max-width:none;width:100%}
.library-weekly-stops .library-search-frame .library-search-mode-help{margin-bottom:14px}
.library-weekly-stops .library-chosen-map-action{margin-top:12px}
.library-weekly-stops .library-chosen-stops li{display:flex;align-items:center;gap:8px;margin:0;padding:4px 6px;background:#fff}
.library-weekly-stops .library-chosen-stops li:nth-child(even){background:#e6f0f3}
.library-weekly-stops .library-chosen-stops li>span{flex:1;min-width:0;overflow-wrap:anywhere}
.library-weekly-stops .library-chosen-remove{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;min-height:32px;padding:4px;border:1px solid #9bbcc4;border-radius:6px;background:#fff;color:#175e6b;cursor:pointer}
.library-weekly-stops .library-chosen-remove:hover{background:#e6f2f4}
.library-weekly-stops .library-chosen-remove:focus-visible{outline:2px solid #175e6b;outline-offset:2px}
@media(max-width:600px){.library-weekly-stops .library-search-frame{padding:12px}}

.library-weekly-stops .library-search-frame{margin-left:auto;margin-right:auto}
.library-weekly-stops .library-search-frame .library-calendar-map-entry{justify-content:center}
.library-weekly-stops .library-search-frame .library-chosen-map-action{text-align:center}
.library-weekly-stops[data-single-stop=true] .library-all-stop-filters{grid-template-columns:minmax(0,1fr);justify-items:center}
.library-weekly-stops[data-single-stop=true] .library-weekly-month-control{width:100%;max-width:420px}

.library-weekly-stops .library-visit-fields>.library-visit-cancelled{grid-column:1/-1;grid-row:5;color:#963c2d;font-weight:700;margin-top:6px;overflow-wrap:anywhere}
.library-special-cancelled{color:#963c2d;font-weight:700}

.library-weekly-stops .library-visit-fields>.library-visit-actions{grid-column:1/-1;grid-row:6;margin-top:10px}
.library-visit-actions button{min-height:36px;padding:6px 10px;border:1px solid #9bbcc4;border-radius:7px;background:#fff;color:#175e6b;font:600 13px/1.4 Arial,sans-serif;cursor:pointer}
.library-visit-actions button:hover{background:#e6f2f4}.library-visit-actions button:focus-visible{outline:2px solid #175e6b;outline-offset:3px}
.library-visit-action-dialog{width:min(540px,calc(100% - 24px));max-height:calc(100vh - 32px);overflow-y:auto;box-sizing:border-box;padding:24px;border:1px solid #9bbcc4;border-radius:12px;background:#fff;color:#172c40;font:15px/1.5 Arial,sans-serif;text-shadow:none}
.library-visit-action-dialog::backdrop{background:rgba(23,44,64,.45)}.library-visit-action-dialog h2{margin:0 0 12px;font-size:21px;color:#175e6b}.library-visit-action-dialog label{display:block;font-weight:600}.library-visit-action-dialog textarea{display:block;box-sizing:border-box;width:100%;min-height:90px;margin-top:6px;padding:10px;border:1px solid #9bbcc4;border-radius:8px;color:#172c40;background:#fff;font:inherit}
.library-visit-action-buttons{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:18px}.library-visit-action-buttons button{min-height:44px;padding:8px 12px;border:1px solid #9bbcc4;border-radius:8px;color:#175e6b;background:#fff;font:600 14px/1.4 Arial,sans-serif;cursor:pointer}.library-visit-action-buttons button[type=submit]{background:#227482;color:#fff}.library-visit-action-dialog :is(button,textarea):focus-visible{outline:2px solid #175e6b;outline-offset:3px}.library-visit-action-dialog [hidden]{display:none!important}

.library-stop-cancellations{max-width:795px;margin:24px auto;padding:16px;border:1px solid #d8b4a9;border-radius:12px;background:#fff8f2;color:#172c40;text-align:left}
.library-stop-cancellations h2{margin:0 0 12px;color:#843d2c;font:700 19px/1.4 Arial,sans-serif}.library-stop-cancellations ul{list-style:none;margin:0;padding:0}.library-stop-cancellations li{display:flex;align-items:start;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:12px 0;border-bottom:1px solid #e3cfc6}.library-stop-cancellations li:last-child{border:0}.library-stop-cancellations li>div{display:grid;gap:3px}.library-stop-cancellations li>p{flex-basis:100%;margin:4px 0 0;overflow-wrap:anywhere}.library-cancellation-state{font-weight:700;color:#963c2d}.library-cancellation-error{color:#963c2d;text-align:center}

.library-stop-cancellations .library-cancellations-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#b48879 #fff1e6}.library-cancellations-scroll:focus-visible{outline:2px solid #843d2c;outline-offset:3px;border-radius:4px}

.library-weekly-stops .library-visit-periods{grid-column:1/-1;display:flex;gap:6px;margin:0 0 4px}
.library-visit-periods button{flex:1;min-width:0;min-height:44px;padding:8px 10px;border:1px solid #9bbcc4;border-radius:8px;background:#fff;color:#175e6b;font:600 14px/1.4 Arial,sans-serif;cursor:pointer}
.library-visit-periods button[aria-pressed=true]{background:#227482;color:#fff;border-color:#227482}
.library-visit-periods button:focus-visible,.library-next-visit-summary button:focus-visible{outline:2px solid #175e6b;outline-offset:3px}
.library-visit-period-caption{flex:1;min-width:0;text-align:center;color:#175e6b;font-weight:600;padding:6px;overflow-wrap:anywhere}
.library-next-visit-summary{margin:16px 0;padding:12px 16px;background:#edf7f3;border:1px solid #a7cbbc;border-radius:10px;color:#172c40}
.library-next-visit-summary strong{display:block;color:#175e6b}.library-next-visit-summary p{margin:5px 0;overflow-wrap:anywhere}.library-next-visit-summary button{min-height:40px;margin-top:6px;padding:7px 12px;border:1px solid #9bbcc4;border-radius:7px;background:#fff;color:#175e6b;font:600 14px/1.4 Arial,sans-serif;cursor:pointer}
.library-weekly-stops .library-daycare-list tr.library-next-visit{background:#e5f3ec}
.library-weekly-stops .library-visit-fields>.library-next-visit-label{grid-column:1/-1;grid-row:5;font-weight:700;color:#175e6b;margin-top:6px}
.library-weekly-stops .library-weekly-month-buttons [hidden]{display:none!important}
@media(max-width:600px){.library-visit-period-caption{font-size:14px}.library-weekly-stops .library-visit-periods{gap:5px}.library-visit-periods button{padding:8px 6px}}

.library-weekly-stops .library-all-stop-filters .library-weekly-month-control{grid-column:1/-1;justify-self:center;width:100%;max-width:420px}
.library-weekly-stops .library-weekly-month-buttons{margin-left:auto;margin-right:auto;justify-content:center}
.library-weekly-stops .library-all-stop-filters .library-weekly-car-control{grid-column:1/-1;width:100%;max-width:560px}

.library-visit-period-caption .library-period-week-number,.library-visit-period-caption .library-period-week-dates{display:block}.library-period-week-number{font-size:16px;line-height:1.4}.library-period-week-dates{font-size:13px;font-weight:400;line-height:1.5;margin-top:2px}

.library-weekly-stops .library-more-filters{grid-column:1/-1;justify-self:start;display:inline-flex;align-items:center;gap:10px;min-height:40px;margin:0;padding:8px 12px;border:1px solid #9bbcc4;border-radius:8px;background:#fff;color:#175e6b;font:600 14px/1.4 Arial,sans-serif;cursor:pointer}
.library-more-filters[aria-expanded=true] svg{transform:rotate(180deg)}.library-more-filters:focus-visible{outline:2px solid #175e6b;outline-offset:3px}
.library-weekly-stops .library-extra-filters{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;width:100%}
.library-weekly-stops .library-extra-filters[hidden]{display:none!important}
.library-weekly-stops .library-extra-filters>.library-only-daycare{grid-column:1/-1;min-height:28px;margin-bottom:-8px}
@media(max-width:700px){.library-weekly-stops .library-extra-filters{gap:10px}}

/* Week caption uses the same regular weight as the selected date. */
.library-weekly-stops .library-period-week-number{font-weight:400}

/* Group the optional calendar filters on a quiet tinted surface. */
.library-weekly-stops .library-extra-filters{box-sizing:border-box;min-width:0;padding:16px;border:1px solid #9bbcc4;border-radius:12px;background:#edf5f6}
@media(max-width:700px){.library-weekly-stops .library-extra-filters{padding:12px}}

.library-weekly-stops .library-visit-fields>.library-visit-info{grid-column:1/-1;grid-row:6;margin:8px 10px 0;padding:10px 12px;border:1px solid #e1cd83;border-radius:8px;background:#fff8df;color:#624d13;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
.library-visit-info strong,.library-visit-info span{display:block}.library-visit-info strong{margin-bottom:3px}
.library-weekly-stops .library-visit-fields>.library-visit-actions{grid-row:7}

.library-surface .library-schedule .library-special-table .library-special-info-row>td{padding:0 5px 10px!important;text-align:left!important}
.library-special-visit-info{box-sizing:border-box;margin:3px 0;padding:10px 12px;border:1px solid #e1cd83;border-radius:8px;background:#fff8df;color:#624d13;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left}
.library-special-visit-info strong,.library-special-visit-info span{display:block}.library-special-visit-info strong{margin-bottom:3px}

/* A special visit and its notice share one boundary. */
.library-surface .library-schedule .library-special-table .library-special-visit-row>td{padding:0 0 12px!important;border:0!important}
.library-special-visit-group{overflow:hidden;border:1px solid #9bbcc4;border-radius:9px;background:#fff}
.library-special-visit-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;background:#edf5f6;color:#172c40;min-height:44px}
.library-special-visit-meta>span{padding:10px 6px;text-align:center;overflow-wrap:anywhere}
.library-special-visit-group .library-special-visit-info{margin:0;border:0;border-top:1px solid #e1cd83;border-radius:0;padding:12px 14px}
.library-special-visit-group>.library-special-cancelled{padding:8px 12px;text-align:left}
@media(max-width:480px){.library-special-visit-meta{grid-template-columns:1fr 1.15fr}.library-special-visit-meta>span:last-child{grid-column:1/-1;padding-top:0;padding-bottom:8px;font-size:14px}}

.library-stop-card .library-card-next-visit{margin-top:12px;padding-top:10px;border-top:1px solid #d5e3e7;color:#172c40;font:15px/1.5 Arial,sans-serif;text-align:left;overflow-wrap:anywhere}
.library-card-next-visit[hidden]{display:none!important}
.library-card-next-label,.library-card-next-time,.library-card-next-vehicle,.library-card-next-empty{display:block}
.library-card-next-label{font-size:13px;font-weight:600;color:#175e6b;margin-bottom:3px}.library-card-next-time{font-weight:600}.library-card-next-vehicle,.library-card-next-empty{font-size:14px;color:#405f70}

.library-stop>.library-detail-next-visit{box-sizing:border-box;margin:0 0 18px;padding:12px 14px;border:1px solid #9bbcc4;border-radius:10px;background:#edf5f6;color:#172c40;font:16px/1.5 Arial,sans-serif;text-align:left;overflow-wrap:anywhere}
.library-detail-next-visit .library-card-next-label{font-size:14px}.library-detail-next-visit .library-card-next-time{font-size:16px}.library-detail-next-visit .library-card-next-vehicle{font-size:15px}

/* Public sign-in uses the same type and teal actions as the library bus UI. */
.library-login{box-sizing:border-box;width:100%;max-width:480px;margin:24px auto 40px;padding:26px;border:1px solid #d2dfe4;border-radius:12px;background:#fff;color:#172c40;font:16px/1.5 Arial,sans-serif;text-shadow:none}
.library-login *{box-sizing:border-box}.library-login h1{margin:0 0 8px;color:#172c40;font:700 24px/1.25 Arial,sans-serif}.library-login-intro{margin:0 0 24px;color:#405f70}
.library-login-field{margin-bottom:20px}.library-login label{display:block;margin-bottom:7px;font-size:15px;font-weight:600;color:#172c40}
.library-login input{display:block;width:100%;min-width:0;height:48px;margin:0;padding:10px 12px;border:1px solid #a7bdc8;border-radius:8px;background:#f9fbfc;color:#172c40;font:16px/1.5 Arial,sans-serif;box-shadow:none}
.library-password-field{display:flex;align-items:stretch;border:1px solid #a7bdc8;border-radius:8px;background:#f9fbfc;overflow:hidden}.library-password-field input{flex:1;border:0;border-radius:0}.library-password-toggle{flex:0 0 auto;min-width:72px;min-height:46px;margin:0;padding:8px 12px;border:0;border-left:1px solid #d2dfe4;border-radius:0;background:#edf5f6;color:#175e6b;font:600 14px/1.5 Arial,sans-serif;cursor:pointer}
.library-login-submit{display:block;width:100%;min-height:48px;margin:4px 0 8px;padding:10px 16px;border:1px solid #227482;border-radius:8px;background:#227482;color:#fff;font:600 16px/1.5 Arial,sans-serif;cursor:pointer}.library-login-submit:disabled{opacity:.65;cursor:wait}
.library-login-reset,.library-login-create{display:block;width:100%;min-height:44px;margin:0;padding:10px 6px;border:0;background:transparent;color:#175e6b;font:600 15px/1.5 Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.library-login-help{margin-top:18px;padding-top:15px;border-top:1px solid #dce6e9;font-size:14px;color:#405f70}.library-login-help summary{min-height:36px;padding:5px 0;color:#175e6b;cursor:pointer;font-weight:600}.library-login-help p{margin:10px 0}
.library-login-status{margin:0 0 16px;padding:10px 12px;border-left:3px solid #ad4033;background:#fff1ee;color:#842f25;font-size:15px;overflow-wrap:anywhere}.library-login-status[hidden]{display:none!important}
.library-login :is(input,button,summary):focus-visible{outline:2px solid #145e71;outline-offset:3px}.library-password-field:focus-within{outline:2px solid #145e71;outline-offset:2px}.library-password-field input:focus-visible{outline:none}
@media(max-width:480px){.library-login{margin:18px auto 28px;padding:20px}.library-login h1{font-size:22px}}

.library-home .library-home-search-block{margin:0 0 22px;text-align:left;color:#172c40;font-family:Arial,sans-serif}
.library-home-search-block>label{display:block;margin:0 0 7px;font-size:16px;font-weight:600;line-height:1.5}
.library-home .library-home-search-block .library-card-search{width:100%;max-width:none;margin:0}
.library-home .library-home-search-block input{box-sizing:border-box;width:100%;min-height:48px;margin:0;padding-right:44px;border:1px solid #a7bdc8;border-radius:8px;font-size:16px;color:#172c40;background-color:#fff}
.library-home-search-status{margin:7px 0 0;font-size:14px;line-height:1.5;color:#405f70}
.library-home .library-home-calendar-search,.library-home .library-home-search-empty-table,.library-home .library-home-search-empty-title{display:none!important}
.library-home-search-block input:focus-visible{outline:2px solid #145e71;outline-offset:2px}

/* During a home search, keep only the search and matching calendar/card results. */
.library-surface.library-home.library-home-search-active .library-home-search-suppressed{display:none!important}
.library-home-search-active .library-home-search-path{margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;min-height:0!important}
.library-home-search-active [class*="library-fleet-root"]>table{margin-bottom:18px!important}
.library-home-search-active #cards_container409101{margin-top:18px!important}

.library-surface .library-home-highlights{margin:20px auto 24px;padding:18px 12px 12px;border:1px solid #91b8c0;border-radius:14px;background:#f2f8f9;max-width:795px}
.library-surface .library-home-highlights>h2{margin:0 0 12px;padding:0;color:#175e6b;font-size:18px;font-weight:700;line-height:1.3;text-align:center}
.library-surface .library-home-highlights .library-home-selected-visits{width:100%;max-width:100%;margin:0!important;border:0!important;border-radius:0;background:transparent;box-shadow:none}

.swal2-popup.library-favorites-empty{box-sizing:border-box;width:480px;max-width:calc(100vw - 28px);padding:24px;border:1px solid #dce4e8;border-radius:14px;background:#fff;color:#172c40;font-family:Arial,Helvetica,sans-serif}
.library-favorites-empty .swal2-title{margin:0;padding:0;color:#172c40;font-size:23px;line-height:1.3;text-align:left}
.library-favorites-empty .swal2-html-container{margin:16px 0 0;padding:0;text-align:left;color:#405f70;font-size:16px;line-height:1.6}
.library-favorites-empty-content p{margin:0 0 16px}.library-favorites-empty-content ol{margin:0 0 16px;padding-left:24px}.library-favorites-empty-content li{padding-left:4px;margin-bottom:8px}.library-favorites-empty-content strong{color:#175e6b}
.library-favorites-empty-content .library-favorites-storage{margin:20px 0 0;padding-top:16px;border-top:1px solid #dce4e8;font-size:14px;line-height:1.5}
.library-favorites-empty .swal2-actions{margin:24px 0 0;justify-content:flex-end;width:100%}.library-favorites-empty .swal2-confirm{min-height:44px;margin:0;padding:10px 24px;border:0;border-radius:8px;background:#227482;color:#fff;font:600 16px/1.5 Arial,sans-serif;cursor:pointer}.library-favorites-empty .swal2-confirm:hover{background:#175e6b}.library-favorites-empty .swal2-confirm:focus-visible{outline:2px solid #175e6b;outline-offset:3px}
@media(max-width:430px){.swal2-popup.library-favorites-empty{padding:20px}.library-favorites-empty .swal2-title{font-size:21px}}

.library-favorites-empty-content{padding-top:16px}
.library-favorites-empty .swal2-checkbox,.library-favorites-empty .swal2-checkbox input{display:none!important}

/* Single-stop month navigation needs the full mobile content width. */
@media(max-width:600px){
 .library-single-stop-calendar>div{margin-left:0!important;margin-right:0!important}
 .library-single-stop-calendar .library-weekly-month-buttons{width:100%;gap:6px}
 .library-single-stop-calendar .library-weekly-month-buttons select{box-sizing:border-box;flex:1 1 auto;padding-left:8px;padding-right:8px}
}

/* A compact home shortcut to favourite stops; the full cards stay in place. */
.library-home-favourites{box-sizing:border-box;margin:0 0 16px;padding:8px 12px;border:1px solid #9bbcc4;border-radius:10px;background:#f3f8f9;color:#172c40}
.library-home-favourites[hidden],.library-home-search-active .library-home-favourites{display:none!important}
.library-home-favourites h2{margin:0 0 3px;font:600 15px/1.4 Arial,sans-serif;color:#175e6b;text-shadow:none}
.library-home-favourites ul{margin:0;padding:0;list-style:none}
.library-home-favourites li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 12px;padding:0}
.library-home-favourites li+li{border-top:1px solid #d5e3e7}
.library-home-favourites button{display:block;width:100%;min-height:44px;margin:0;padding:6px 0;border:0;border-radius:0;background:transparent;color:#175e6b;font:600 15px/1.4 Arial,sans-serif;text-align:left;text-decoration:underline;text-underline-offset:3px;text-shadow:none;box-shadow:none;cursor:pointer;overflow-wrap:anywhere}
.library-home-favourites button:focus-visible{outline:2px solid #175e6b;outline-offset:3px}
.library-home-favourites .library-card-next-visit{margin:0;padding:0;border:0;max-width:100%;color:#172c40;font:400 14px/1.5 Arial,sans-serif;text-align:right}
.library-home-favourites .library-card-next-time{font:inherit;color:inherit;white-space:nowrap}
@media(max-width:600px){.library-home-favourites{padding:8px 10px}.library-home-favourites li{grid-template-columns:minmax(0,1fr);gap:0;padding:0}.library-home-favourites button{padding-bottom:0}.library-home-favourites .library-card-next-visit{text-align:left;padding:0 0 3px}.library-home-favourites .library-card-next-time{white-space:normal}}

/* Favourite home visibility is a browser preference, not a list deletion. */
.library-surface .library-favorites-clear{flex-direction:column;align-items:center;gap:12px}
.library-favorites-clear-button{box-sizing:border-box;width:220px;max-width:100%;min-height:48px;margin:0;padding:10px 20px;border:0;border-radius:8px;background:#28733d;color:#fff;font:600 15px/1.4 Arial,sans-serif;text-align:center;cursor:pointer;text-shadow:none;box-shadow:none}
.library-favorites-clear-button:hover{background:#205d32}
.library-favorites-clear-button:focus-visible{outline:2px solid #172c40;outline-offset:3px}
.library-home-favourites-setting{position:relative;display:inline-flex!important;align-items:center;justify-content:center;gap:10px;min-height:44px;margin:0!important;padding:0!important;color:#172c40;font:400 15px/1.4 Arial,sans-serif;cursor:pointer;text-align:left}
.library-favourites-switch{position:relative;flex:0 0 44px;width:44px;height:26px;border:1px solid #647680;border-radius:14px;background:#647680;box-sizing:border-box}
.library-favourites-switch:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff}
.library-home-favourites-setting[aria-checked="true"] .library-favourites-switch{background:#28733d;border-color:#28733d}
.library-home-favourites-setting[aria-checked="true"] .library-favourites-switch:after{left:21px}
.library-home-favourites-setting:focus-visible .library-favourites-switch{outline:2px solid #172c40;outline-offset:3px}

.library-surface button.library-home-favourites-setting{display:inline-flex!important;flex:0 0 auto;align-items:center;gap:10px;width:auto;max-width:100%;min-height:44px;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;text-shadow:none!important;overflow:visible}
.library-surface .library-home-favourites-setting .library-favourites-switch{display:block!important;flex:0 0 44px!important;min-width:44px!important;width:44px!important;height:26px!important;padding:0;margin:0;overflow:visible}

.library-favourites-calendar-button{box-sizing:border-box;min-height:48px;width:220px;max-width:100%;margin:0;padding:10px 16px;border:1px solid #28733d;border-radius:8px;background:#28733d;color:#fff;font:600 15px/1.4 Arial,sans-serif;text-align:center;text-shadow:none;box-shadow:none;cursor:pointer}
.library-favourites-calendar-button:hover{background:#205d32}
.library-favourites-calendar-button:focus-visible{outline:2px solid #172c40;outline-offset:3px}
.library-weekly-stops .library-search-frame[hidden]{display:none!important}

.library-favorites-clear-button{white-space:nowrap}

.library-surface .library-favorites-clear>.library-favourites-calendar-button,.library-surface .library-favorites-clear>.library-favorites-clear-button{box-sizing:border-box;width:220px!important;max-width:100%;height:48px!important;min-height:48px!important;padding:10px 12px!important;display:flex;align-items:center;justify-content:center;flex:0 0 auto;font:600 15px/1.4 Arial,sans-serif;line-height:1.4!important;white-space:nowrap}

.library-surface .library-favorites-clear>.library-favourites-calendar-button,.library-surface .library-favorites-clear>.library-favorites-clear-button{background:#227482!important;border:1px solid #227482!important;color:#fff!important}
.library-surface .library-favorites-clear>.library-favourites-calendar-button:hover,.library-surface .library-favorites-clear>.library-favorites-clear-button:hover{background:#175e6b!important;border-color:#175e6b!important}

.library-home-favourites button.library-home-favourites-calendar{box-sizing:border-box;width:220px;max-width:100%;min-height:44px;margin:8px auto 0;padding:10px 12px;border:1px solid #227482;border-radius:8px;background:#227482;color:#fff;font:600 15px/1.4 Arial,sans-serif;text-align:center;text-decoration:none;white-space:nowrap}
.library-home-favourites button.library-home-favourites-calendar:hover{background:#175e6b;border-color:#175e6b}
.library-home-favourites button.library-home-favourites-calendar:disabled{opacity:.65;cursor:wait}

.library-home-search-block button.library-search-calendar{box-sizing:border-box;display:block;width:220px;max-width:100%;min-height:44px;margin:10px auto 0;padding:10px 12px;border:1px solid #227482;border-radius:8px;background:#227482;color:#fff;font:600 15px/1.4 Arial,sans-serif;text-align:center;white-space:nowrap;box-shadow:none;text-shadow:none;cursor:pointer}
.library-home-search-block button.library-search-calendar[hidden]{display:none!important}
.library-home-search-block button.library-search-calendar:hover{background:#175e6b;border-color:#175e6b}
.library-home-search-block button.library-search-calendar:focus-visible{outline:2px solid #172c40;outline-offset:3px}
.library-home-search-block button.library-search-calendar:disabled{opacity:.65;cursor:wait}

.library-surface [role="button"]:has(>.lb_infopic){display:inline-flex!important;align-items:center;justify-content:center;gap:10px;height:auto!important;min-height:48px;box-sizing:border-box;line-height:1.4!important}
.library-surface [role="button"]>.lb_infopic{display:block;float:none!important;flex:0 0 25px;width:25px;height:auto;max-height:25px;margin:0!important;vertical-align:middle}
.library-surface [role="button"]>.lb_button_text{display:block;line-height:1.4}


/* Match the three home actions to the existing all-visits button. */
.library-surface [onclick*="showHist("],.library-surface [role="button"]:has(>.lb_infopic),.library-surface .library-weekly-open{display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;height:auto!important;min-height:44px!important;padding:10px 18px!important;border:0!important;border-radius:10px!important;background:#227482!important;color:#fff!important;font:600 15px/1.4 Arial,sans-serif!important;text-shadow:none!important;box-shadow:none!important;cursor:pointer}
.library-surface [onclick*="showHist("] *,.library-surface .lb_button_text{font:inherit!important;line-height:inherit!important}
.library-surface [onclick*="showHist("]:hover,.library-surface [role="button"]:has(>.lb_infopic):hover,.library-surface .library-weekly-open:hover{background:#195e6a!important}

.library-time-change{color:#765217;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.library-time-change strong{font-weight:700}.library-time-change del{margin-left:6px;color:#596776}.library-time-change span{display:block;white-space:pre-wrap}
.library-weekly-stops .library-visit-fields>.library-time-change{grid-column:1/-1;grid-row:6;margin-top:8px}
.library-weekly-stops .library-visit-fields>.library-visit-info{grid-row:7}
.library-weekly-stops .library-visit-fields>.library-visit-actions{grid-row:8;display:flex;flex-wrap:wrap;gap:8px}
.library-card-time-changed{color:#765217;font-size:13px;font-weight:600}.library-card-original-time{font-size:13px;color:#596776}.library-card-time-reason{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.library-time-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.library-time-fields label{min-width:0}.library-time-fields input{box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:6px 0 0;padding:8px;border:1px solid #9bbcc4;border-radius:8px;background:#fff;color:#172c40;font:16px Arial,sans-serif}
.library-time-dialog{box-sizing:border-box;max-width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}.library-time-dialog textarea{box-sizing:border-box;max-width:100%;width:100%}.library-time-fields[hidden]{display:none!important}

.library-stop-time-changes{margin:20px 0;padding:16px;border:1px solid #9bbcc4;border-radius:10px;background:#f3f8fa}.library-stop-time-changes h2{margin:0 0 12px;font:600 18px/1.4 Arial,sans-serif;color:#175e6b}.library-stop-time-changes ul{list-style:none;margin:0;padding:0}.library-stop-time-changes li{padding:12px 0}.library-stop-time-changes li+li{border-top:1px solid #ccdce2}.library-stop-time-changes li>span{display:block;font-size:14px}.library-stop-time-changes .library-cancellations-scroll{max-height:320px;overflow-y:auto;overscroll-behavior:contain}

.library-weekly-stops .library-visit-fields>.library-visit-home-control{grid-column:1/-1;grid-row:9;margin-top:10px}
.library-visit-home-control label{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;font:600 14px/1.4 Arial,sans-serif;color:#175e6b;cursor:pointer}
.library-visit-home-control input[type=checkbox]{position:static;display:block;appearance:auto;box-sizing:border-box;flex:0 0 20px;width:20px;height:20px;min-height:0;margin:0;padding:0;opacity:1;accent-color:#227482}
.library-visit-home-control input:focus-visible{outline:2px solid #175e6b;outline-offset:3px}
.library-visit-home-control p{margin:4px 0;font:400 13px/1.5 Arial,sans-serif;overflow-wrap:anywhere}

.library-weekly-stops .library-visit-fields>.library-visit-home-control>label{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start;gap:10px;min-height:44px;margin:0!important;padding:0!important;width:100%;text-align:left}
.library-weekly-stops .library-visit-home-control>label>input[type=checkbox]{position:static!important;display:block!important;float:none!important;flex:0 0 20px!important;width:20px!important;height:20px!important;min-height:0!important;margin:0!important;padding:0!important;opacity:1!important}
.library-weekly-stops .library-visit-home-control>label>span{display:block;flex:1;min-width:0;line-height:1.4}

.library-visit-home-control .library-home-info-button{display:block;margin:4px 0 0;min-height:44px;padding:8px 12px;border:1px solid #9bbcc4;border-radius:8px;background:#fff;color:#175e6b;font:600 14px/1.4 Arial,sans-serif;cursor:pointer}
.library-visit-home-control .library-home-info-button[hidden]{display:none!important}
.library-visit-home-control .library-home-info-button:hover{background:#e6f2f4}
.library-visit-home-control .library-home-info-button:focus-visible{outline:2px solid #175e6b;outline-offset:3px}
.library-home-info-dialog{box-sizing:border-box;max-width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.library-home-info-dialog textarea{min-height:100px;max-height:none;overflow-y:hidden;resize:none}

.library-home-info-dialog .library-visit-action-buttons button{min-width:110px;min-height:44px;padding:10px 18px;transition:background-color .15s}
.library-home-info-dialog .library-visit-action-buttons .library-home-info-save{background:#227482;border-color:#227482;color:#fff}
.library-home-info-dialog .library-visit-action-buttons .library-home-info-save:hover{background:#195c66}
.library-home-info-dialog .library-visit-action-buttons button:disabled{opacity:.6;cursor:wait}

@media(max-width:600px){
.library-home-info-dialog .library-visit-action-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;flex-wrap:nowrap}
.library-home-info-dialog .library-visit-action-buttons button{box-sizing:border-box;min-width:0;width:100%;min-height:44px;padding:9px 5px;font-size:14px;white-space:nowrap}
}

.library-favourite-cancellations{margin:10px 0 12px;padding:0 12px;border:1px solid #d5a18b;border-radius:8px;background:#fff6ee;color:#7b351e;text-align:left}
.library-favourite-cancellations summary{cursor:pointer;padding:12px 0;min-height:44px;box-sizing:border-box;font:600 14px/1.5 Arial,sans-serif}
.library-favourite-cancellations summary:focus-visible{outline:2px solid #175e6b;outline-offset:3px}
.library-favourite-cancellations ul{display:block;list-style:none;margin:0;padding:0;max-height:320px;overflow-y:auto;overscroll-behavior:contain}
.library-favourite-cancellations li{display:block;padding:10px 0;border-top:1px solid #e8cbbb}
.library-favourite-cancellations li p{margin:3px 0;font:400 14px/1.5 Arial,sans-serif;color:#73351f}
.library-favourite-cancellations li button{min-height:44px;padding:6px 0;border:0;background:transparent;color:#175e6b;font:600 15px/1.4 Arial,sans-serif;text-align:left;text-decoration:underline;cursor:pointer}

[data-library-favourite-cancellations]{width:100%;max-width:620px;margin:0 auto;text-align:left}

.library-home-highlights .library-home-highlight-visit{box-sizing:border-box;padding:12px;border:1px solid #ccdee2;border-radius:10px;background:#fff;overflow-wrap:anywhere}

/* Upcoming favourite visits with visit-specific news. */
.library-favourite-info{margin:10px 0 12px;padding:0 12px;border:1px solid #e3c66b;border-radius:8px;background:#fff8dc;color:#634600;text-align:left}
.library-favourite-info summary{cursor:pointer;padding:12px 0;min-height:44px;box-sizing:border-box;font:600 14px/1.5 Arial,sans-serif}
.library-favourite-info summary:focus-visible{outline:2px solid #175e6b;outline-offset:3px}
.library-favourite-info ul{display:block;list-style:none;margin:0;padding:0;max-height:320px;overflow-y:auto;overscroll-behavior:contain}
.library-favourite-info li{display:block;padding:10px 0;border-top:1px solid #e7d99d}
.library-favourite-info li p{margin:3px 0;font:400 14px/1.5 Arial,sans-serif;color:#634600}
.library-favourite-info li button{min-height:44px;padding:6px 0;border:0;background:transparent;color:#175e6b;font:600 15px/1.4 Arial,sans-serif;text-align:left;text-decoration:underline;cursor:pointer}
.library-favourite-info-text{white-space:pre-wrap;overflow-wrap:anywhere}

/* One-tap favourites on stop-card photos. */
.library-stop-card .library-card-photo{position:relative;min-height:44px}
.library-stop-card .library-card-favourite{position:absolute;top:0;right:0;z-index:2;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:#175e6b;cursor:pointer;touch-action:manipulation}
.library-card-favourite::before{content:"";position:absolute;inset:4px;border:1px solid #bccbd0;border-radius:50%;background:rgba(255,255,255,.96);box-shadow:0 2px 6px rgba(23,44,64,.18)}
.library-card-favourite svg{position:relative;width:22px;height:22px;pointer-events:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.library-card-favourite[aria-pressed="true"] svg{fill:#f2c14c;stroke:#725200}
.library-stop-card .library-card-favourite:hover::before{background:#fff}
.library-stop-card .library-card-favourite:focus-visible{outline:3px solid #175e6b;outline-offset:3px}
.library-favourite-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:100000;max-width:calc(100vw - 40px);box-sizing:border-box;padding:12px 18px;border-radius:8px;background:#175e6b;color:#fff;font:600 15px/1.4 Arial,sans-serif;box-shadow:0 3px 12px rgba(23,44,64,.2);text-align:center;pointer-events:none}
.library-favourite-toast[hidden]{display:none}

/* Dated time changes on favourite stops. */
.library-favourite-time-changes{margin:10px 0 12px;padding:0 12px;border:1px solid #a7bfce;border-radius:8px;background:#edf5fa;color:#23475e;text-align:left}
.library-favourite-time-changes summary{cursor:pointer;padding:12px 0;min-height:44px;box-sizing:border-box;font:600 14px/1.5 Arial,sans-serif}
.library-favourite-time-changes summary:focus-visible{outline:2px solid #175e6b;outline-offset:3px}
.library-favourite-time-changes ul{display:block;list-style:none;margin:0;padding:0;max-height:320px;overflow-y:auto;overscroll-behavior:contain}
.library-favourite-time-changes li{display:block;padding:10px 0;border-top:1px solid #c3d7e2}
.library-favourite-time-changes li p{margin:3px 0;font:400 14px/1.5 Arial,sans-serif;color:#23475e}
.library-favourite-time-changes li button{min-height:44px;padding:6px 0;border:0;background:transparent;color:#175e6b;font:600 15px/1.4 Arial,sans-serif;text-align:left;text-decoration:underline;cursor:pointer}
.library-favourite-time-changes .library-favourite-new-time{font-weight:600}
