/* BusStandTimetable.in brand system — scoped to article output */
.bsam-article{--bsam-navy:#09224a;--bsam-panel:#122d54;--bsam-red:#e91f32;--bsam-border:#dce5f0;--bsam-muted:#52647c;color:#162c49;font-family:inherit;max-width:100%;margin:18px 0 32px}
.bsam-article *{box-sizing:border-box}
.bsam-article .bsam-crumb{display:flex;align-items:center;flex-wrap:wrap;gap:0;margin:16px 0 25px;line-height:1.4}
.bsam-crumb a,.bsam-crumb .bsam-chevron{display:inline-flex;align-items:center;min-height:42px;padding:10px 20px;background:var(--bsam-navy);color:white!important;font-size:12px;font-weight:700;text-decoration:none!important}
.bsam-crumb a{border-radius:8px 0 0 8px}.bsam-crumb .bsam-chevron{clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%,12px 50%);padding-left:24px;margin-left:-7px;padding-right:26px}.bsam-crumb .bsam-current{background:var(--bsam-red)}
.bsam-article h2{color:var(--bsam-navy);font-size:clamp(21px,2.5vw,27px);font-weight:750;line-height:1.3;margin:7px 0 20px}
.bsam-overview{margin:0 0 28px;padding:8px 0 15px;background:transparent}.bsam-eyebrow{font-size:11px;letter-spacing:1.2px;font-weight:800;color:var(--bsam-red)}
.bsam-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.bsam-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;min-height:165px;min-width:0;padding:16px 10px;border:2px solid var(--bsam-red);border-radius:17px;background:#fff}.bsam-stat-icon{display:block!important;font-size:25px!important;line-height:1.3;color:inherit!important;margin:0!important;font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif}.bsam-stat .bsam-stat-label{display:block;font-size:15px;color:var(--bsam-navy);font-weight:700;margin:0}.bsam-stat strong{display:block;font-size:15px;color:#111;font-weight:800;line-height:1.45;overflow-wrap:anywhere}
.bsam-section{margin:30px 0}.bsam-section>h2{border-left:4px solid var(--bsam-red);padding-left:13px}.bsam-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--bsam-border);border-radius:12px}.bsam-table-wrap table{min-width:540px}.bsam-table-wrap thead th{background:var(--bsam-navy);color:#fff}.bsam-note{font-size:12px;color:var(--bsam-muted);margin-top:12px}
.bsam-stops{list-style:none!important;counter-reset:stops;padding:0 0 0 6px!important;margin:0!important}.bsam-stops li{counter-increment:stops;position:relative;padding:0 0 20px 43px;border-left:2px solid #b6c8de;margin-left:14px}.bsam-stops li:last-child{border-left-color:transparent}.bsam-stops li:before{content:counter(stops);position:absolute;left:-15px;top:0;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--bsam-red);color:#fff;font-size:12px;font-weight:700}
.bsam-map{background:#f5f7fa;padding:20px;border:1px solid var(--bsam-border);border-radius:13px}.bsam-map p{margin:8px 0}.bsam-map-link{color:var(--bsam-navy);font-weight:700;text-decoration:none}.bsam-map-link:hover{color:var(--bsam-red)}.bsam-map-frame{display:block;width:100%;height:340px;border:0;border-radius:10px;margin-bottom:14px}
.bsam-faq{border:1px solid var(--bsam-border);border-radius:11px;margin:10px 0;background:#fff;overflow:hidden}.bsam-faq summary{cursor:pointer;list-style:none;position:relative;padding:17px 50px 17px 18px;font-weight:700;color:var(--bsam-navy)}.bsam-faq summary::-webkit-details-marker{display:none}.bsam-faq summary:after{content:'+';position:absolute;right:16px;top:50%;transform:translateY(-50%);background:#fff0f2;color:var(--bsam-red);border-radius:50%;height:26px;width:26px;display:grid;place-items:center;font-size:19px}.bsam-faq[open] summary:after{content:'−';background:var(--bsam-red);color:#fff}.bsam-faq[open] summary{border-bottom:1px solid var(--bsam-border)}.bsam-faq p{padding:15px 18px;margin:0;color:#465a70}
.bsam-related{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bsam-related a{display:flex;flex-direction:column;justify-content:space-between;gap:14px;border:1px solid var(--bsam-border);padding:17px;border-radius:12px;text-decoration:none!important;color:var(--bsam-navy);font-weight:700}.bsam-related a span{font-size:12px;color:var(--bsam-red)}.bsam-related a:hover{border-color:var(--bsam-red);background:#fff8f9}
@media(max-width:680px){.bsam-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bsam-stat{min-height:145px;padding:12px 7px;gap:10px;border-radius:14px}.bsam-stat .bsam-stat-label,.bsam-stat strong{font-size:13px}.bsam-stat-icon{font-size:23px!important}.bsam-map-frame{height:260px}.bsam-related{grid-template-columns:1fr}.bsam-section{margin:25px 0}.bsam-crumb .bsam-chevron{font-size:11px}}
@media(max-width:350px){.bsam-stats{gap:7px}.bsam-stat{padding:10px 5px}.bsam-stat strong{font-size:12px}}

/* v1.5 branded refinements */
.bsam-has-article .entry-header .entry-title,.bsam-has-article .wp-block-post-title,.bsam-has-article .elementor-widget-theme-post-title{display:none!important}
.bsam-article .bsam-post-head h1{font-size:clamp(27px,3.5vw,40px);line-height:1.2;font-weight:800;color:#09224a;margin:14px 0 20px}
.bsam-featured{margin:0 0 30px}.bsam-featured img{display:block;width:100%;height:auto;max-height:510px;object-fit:cover;border-radius:16px}
.bsam-stat{border-color:#09224a;box-shadow:0 5px 18px rgba(9,34,74,.035);transition:transform .2s,box-shadow .2s}.bsam-stat:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(9,34,74,.09)}
.bsam-eyebrow{color:#385c8c}.bsam-section>h2{border-left-color:#09224a}
.bsam-timetable-section .bsam-table-wrap{border:0;border-radius:12px;overflow-x:auto}
.bsam-route-panel{border:1px solid #dce5f0;background:linear-gradient(145deg,#f3f7fc,#fff 65%);padding:20px 24px;border-radius:18px}
.bsam-route-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:0 0 18px;margin-bottom:6px;border-bottom:1px solid #dce5f0;color:#09224a;font-weight:800}
.bsam-route-heading span:last-child{color:#657d9b;font-weight:500;font-size:12px}
.bsam-stops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:25px;counter-reset:stops}
.bsam-stops li{border-left:2px solid #c2d3e9;padding:15px 8px 18px 38px;margin-left:15px;min-height:59px;font-weight:650;color:#17345d}
.bsam-stops li:before{background:#09224a;left:-16px;top:12px;box-shadow:0 0 0 4px #e8f0fb}
.bsam-stops li:first-child:before,.bsam-stops li:last-child:before{background:#e91f32}
.bsam-map{background:#f5f8fc;border-color:#d8e3f1;padding:16px}.bsam-map-frame{height:390px;border:1px solid #d8e3f1;border-radius:13px}
.bsam-map-link{display:inline-flex;align-items:center;color:#09224a!important;background:#fff;padding:12px 15px;border:1px solid #dce5f0;border-radius:10px;line-height:1.4}.bsam-map-link:hover{background:#eaf2fc;border-color:#9cb8dc;color:#09224a!important}
.bsam-faq{border:1px solid #dbe5f0;border-radius:15px;margin:12px 0;box-shadow:0 3px 12px rgba(9,34,74,.035);transition:border-color .22s,box-shadow .22s}
.bsam-faq[open]{border-color:#a9c2e2;box-shadow:0 8px 24px rgba(9,34,74,.07)}
.bsam-faq summary{display:flex;align-items:center;min-height:69px;padding:17px 65px 17px 21px;font-size:16px;line-height:1.5;outline-offset:-3px;transition:background .2s}
.bsam-faq summary:hover{background:#f6f9fe}.bsam-faq summary:after{right:20px;width:32px;height:32px;line-height:32px;display:flex;align-items:center;justify-content:center;background:#eaf1fb;color:#09224a;font-size:22px;font-weight:500;transform:translateY(-50%)}
.bsam-faq[open] summary:after{background:#09224a;color:white}.bsam-faq[open] summary{border-bottom:1px solid #e4ebf4;background:#f8fbff}
.bsam-faq p{padding:18px 22px 22px;margin:0;color:#405a7b;line-height:1.8;font-size:15px;background:linear-gradient(180deg,#fbfdff,#fff)}
@media(max-width:680px){.bsam-stops{grid-template-columns:1fr}.bsam-route-panel{padding:14px}.bsam-route-heading{flex-wrap:wrap}.bsam-map-frame{height:275px}.bsam-faq summary{font-size:14px;padding:14px 56px 14px 15px}.bsam-faq p{padding:14px 16px 19px;font-size:14px}.bsam-stat{border-width:1.5px}.bsam-featured img{border-radius:11px}}
@supports (interpolate-size:allow-keywords){.bsam-article{interpolate-size:allow-keywords}.bsam-faq::details-content{height:0;overflow:hidden;transition:height .28s ease,content-visibility .28s allow-discrete}.bsam-faq[open]::details-content{height:auto}}

/* v1.6: one featured image, clean post header and connected route */
.bsam-has-article .inside-article>.post-image,.bsam-has-article .inside-article>.featured-image,.bsam-has-article .inside-article>.page-header-image-single,.bsam-has-article .inside-article>.entry-header .post-image,.bsam-has-article .inside-article>.entry-header .featured-image,.bsam-has-article .wp-block-post-featured-image:not(.bsam-article *){display:none!important}
.bsam-has-article .entry-header .entry-meta,.bsam-has-article .entry-header .posted-on,.bsam-has-article .entry-header .byline,.bsam-has-article .entry-meta,.bsam-has-article .post-meta,.bsam-has-article .wp-block-post-date,.bsam-has-article .wp-block-post-author{display:none!important}
.bsam-article .bsam-stats .bsam-stat{position:relative;isolation:isolate;overflow:hidden;border:1.5px solid #09224a;background:linear-gradient(145deg,#fff 35%,#f3f7fd);box-shadow:0 6px 20px rgba(9,34,74,.06);transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s}
.bsam-article .bsam-stats .bsam-stat:before{content:'';position:absolute;left:0;top:0;width:100%;height:4px;background:linear-gradient(90deg,#09224a,#215aa2);transform:scaleX(0);transform-origin:left;transition:transform .3s}
.bsam-article .bsam-stats .bsam-stat:hover{transform:translateY(-5px);border-color:#205a9c;box-shadow:0 15px 30px rgba(9,34,74,.13)}
.bsam-article .bsam-stats .bsam-stat:hover:before{transform:scaleX(1)}
.bsam-article .bsam-route-panel{background:linear-gradient(135deg,#f1f6fc,#fff);border-color:#cbdcf0}
.bsam-article .bsam-stops{display:block!important;position:relative;list-style:none!important;counter-reset:stops;margin:0!important;padding:16px 0 6px 0!important;columns:1!important}
.bsam-article .bsam-stops li{display:flex;align-items:center;counter-increment:stops;position:relative;min-height:65px;padding:12px 16px 12px 62px!important;margin:0 0 0 17px!important;border:0!important;border-left:3px solid #9eb9dc!important;font-size:16px;font-weight:700;break-inside:avoid;color:#09224a;background:transparent;transition:background .2s}
.bsam-article .bsam-stops li:last-child{border-left-color:transparent!important}
.bsam-article .bsam-stops li:before{content:counter(stops);position:absolute;left:-20px;top:13px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#09224a;color:#fff;border:4px solid #eaf1fb;box-shadow:0 2px 7px rgba(9,34,74,.1);font-size:13px;font-weight:800}
.bsam-article .bsam-stops li:first-child:before,.bsam-article .bsam-stops li:last-child:before{background:#e91f32}
.bsam-article .bsam-stops li:hover{background:#eaf2fc;border-radius:0 10px 10px 0}
.bsam-article .bsam-faq{border:1px solid #cbdcf0;border-radius:14px;overflow:hidden}
.bsam-article .bsam-faq summary{background:#09224a!important;color:#fff!important;transition:background .25s ease!important;padding:19px 65px 19px 20px}
.bsam-article .bsam-faq summary:hover{background:#153d74!important}
.bsam-article .bsam-faq[open] summary{background:#e91f32!important;color:#fff!important;border-bottom:0}
.bsam-article .bsam-faq summary:after{background:rgba(255,255,255,.15)!important;color:#fff!important;width:34px;height:34px;right:18px;top:50%;display:flex;align-items:center;justify-content:center;line-height:1;transform:translateY(-50%);font-size:21px;font-weight:700}
.bsam-article .bsam-faq[open] summary:after{background:rgba(255,255,255,.22)!important}
.bsam-article .bsam-faq p{background:#f7faff;color:#19395e;padding:22px 24px;line-height:1.75}
.bsam-author-card{margin:38px 0 18px;padding:25px 28px;border:1px solid #cbdcf0;border-radius:18px;background:linear-gradient(135deg,#f2f7ff,#fff 80%);box-shadow:0 8px 28px rgba(9,34,74,.06)}
.bsam-author-top{display:flex;align-items:center;gap:15px;margin-bottom:18px}.bsam-author-kicker{font-size:11px;letter-spacing:1.4px;font-weight:800;color:#e91f32}.bsam-author-line{height:1px;flex:1;background:#d9e5f3}
.bsam-author-main{display:flex;gap:20px;align-items:flex-start}.bsam-author-avatar{width:72px!important;height:72px!important;flex:0 0 72px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 2px #b8cde7;object-fit:cover}
.bsam-author-copy{min-width:0}.bsam-author-label{font-size:12px;color:#607899}.bsam-author-copy h2{border:0!important;padding:0!important;margin:2px 0 10px!important;font-size:22px!important}.bsam-author-copy h2 a{color:#09224a!important;text-decoration:none}.bsam-author-copy p{margin:0;color:#35516f;line-height:1.75;font-size:15px}
@media(max-width:680px){.bsam-author-card{padding:19px 16px}.bsam-author-main{gap:13px}.bsam-author-avatar{width:54px!important;height:54px!important;flex-basis:54px}.bsam-author-copy h2{font-size:19px!important}.bsam-author-copy p{font-size:14px}.bsam-article .bsam-stops li{font-size:14px;padding-left:46px!important}.bsam-article .bsam-faq summary{font-size:14px}}
@media(prefers-reduced-motion:reduce){.bsam-article .bsam-stat,.bsam-article .bsam-stat:before,.bsam-article .bsam-faq summary{transition:none!important}}

/* v1.7: fixed navy question headers, red expanded answer panels, red author profile */
.bsam-article .bsam-faq summary,.bsam-article .bsam-faq[open] summary,.bsam-article .bsam-faq summary:hover{background:#09224a!important;color:#fff!important}
.bsam-article .bsam-faq[open] p{background:#e91f32!important;color:#fff!important;border:0!important}
.bsam-article .bsam-faq[open]{border-color:#09224a!important}
.bsam-article .bsam-author-card{background:#e91f32!important;border-color:#e91f32!important;color:#fff!important;box-shadow:0 10px 25px rgba(9,34,74,.12)}
.bsam-article .bsam-author-kicker,.bsam-article .bsam-author-label,.bsam-article .bsam-author-copy p,.bsam-article .bsam-author-copy h2,.bsam-article .bsam-author-copy h2 a{color:#fff!important}
.bsam-article .bsam-author-line{background:rgba(255,255,255,.45)!important}
.bsam-article .bsam-author-avatar{background:#fff;border:3px solid #fff!important;box-shadow:0 0 0 2px rgba(255,255,255,.45)!important;object-fit:contain!important}
.bsam-article .bsam-route-heading span:empty{display:none!important}
