/* JECHAĆ.PL / KOLEJ — station detail pilot
   Composes the SAME global, hero, KPI and panel styles as train detail.
   Only station-specific board and analytics presentation lives here. */
.station-hero .container{padding-bottom:22px}
.station-hero .detail-titlebar h1{overflow-wrap:anywhere}
.station-hero-summary{
 display:grid;grid-template-columns:minmax(0,1fr) 235px minmax(0,1fr);
 gap:14px;align-items:center;margin-bottom:13px;
 padding:20px 24px;min-height:141px;background:#fff;
 border:1px solid #cfdfea;border-radius:11px;
 box-shadow:0 6px 18px rgba(20,61,93,.055)
}
.station-overview{display:flex;flex-direction:column;min-width:0;gap:3px}
.station-overview small{font-size:9px;font-weight:890;letter-spacing:1px;color:#7892a4}
.station-overview strong{font-weight:910;font-size:23px;line-height:1.2;letter-spacing:-.6px;color:#214f70;overflow-wrap:anywhere}
.station-overview span{font-size:11px;color:#7f95a6;line-height:1.5}
.station-overview.right{align-items:flex-end;text-align:right}
.station-connection{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;color:#728b9b}
.station-connection>i,.station-connection>span{display:block}
.station-connection>i:first-child{display:none}
.station-connection>span{width:100%;height:2px;background:linear-gradient(90deg,#87bad8,#c1ddeb,#87bad8);position:relative;margin-bottom:8px}
.station-connection>span:before,.station-connection>span:after{content:"";position:absolute;top:-5px;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid #3b85b8}
.station-connection>span:before{left:0}
.station-connection>span:after{right:0;background:#3b85b8}
.station-connection strong{font-size:12px;color:#356c8f;font-weight:910;letter-spacing:.7px}
.station-connection small{font-size:10px;color:#8ba0b0}
.station-kpis strong.muted{color:#8299aa}
.station-body{padding-top:16px}
.station-filter{
 display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;
 background:#fff;border:1px solid #d5e3ed;border-radius:9px;
 padding:12px 15px;margin-bottom:15px
}
.station-filter label{display:flex;flex-direction:column;gap:5px}
.station-filter label span{font-size:10px;font-weight:810;color:#62849b}
.station-filter input{
 padding:9px 11px;border-radius:7px;
 border:1px solid #cbdde9;background:#fff;outline-offset:3px;
 font-size:12px;font-weight:780;color:#214b69;min-height:38px
}
.station-apply{
 min-height:38px;padding:9px 15px;border:0;border-radius:7px;
 color:#fff;background:#2c74a7;font-size:11px;font-weight:870
}
.station-apply:hover{background:#225f8b}
.station-window-navigation{margin-left:auto;display:flex;gap:7px;flex-wrap:wrap}
.station-window-navigation a{
 background:#f4f9fc;color:#36789f;border:1px solid #d7e7f1;
 border-radius:7px;padding:9px 10px;font-size:10px;font-weight:840;white-space:nowrap
}
.station-window-navigation a:hover{background:#eaf4fa}
.station-warning{margin-bottom:12px;padding:11px 15px;border:1px solid #e9d8b4;background:#fff9ed;border-radius:8px;color:#8b6a39;font-size:11px}
.station-columns{grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr)}
.station-board{min-width:0;overflow:hidden}
.station-board .panel-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.station-board-tabs{
 display:flex;gap:7px;padding:12px 16px 0;background:#fff;
 border-bottom:1px solid #dae7f0
}
.station-board-tabs button{
 background:transparent;border:0;border-bottom:3px solid transparent;
 padding:8px 15px 11px;display:inline-flex;align-items:center;gap:11px;
 color:#8197a9;font-size:13px;font-weight:850
}
.station-board-tabs button.active,
.station-board-tabs button[aria-selected="true"]{color:#246b9a;border-color:#307ba9}
.station-board-tabs button span{
 color:inherit;background:#edf5fa;border-radius:6px;padding:2px 6px;
 font-size:10px;font-variant-numeric:tabular-nums
}
.station-board-legend{
 display:flex;align-items:center;flex-wrap:wrap;gap:10px 15px;
 padding:12px 18px;color:#7a91a2;font-size:10px;font-weight:740
}
.station-board-legend span{display:inline-flex;align-items:center;gap:6px}
.station-key{display:inline-block;width:10px;height:10px;border-radius:50%;background:#edf2f5;border:2px solid #a3b8c8}
.station-key.confirmed{background:#36a084;border-color:#36a084}
.station-key.forecast{background:#fff7e9;border-color:#d8a84c}
.station-key.planned{background:#fff;border-color:#a3b8c8}
.station-key.cancelled{background:#d67870;border-color:#d67870}
.station-board-heading,.station-event{
 display:grid;grid-template-columns:90px minmax(0,1fr) 74px 87px;
 gap:9px;align-items:center
}
.station-board-heading{
 padding:11px 14px;background:#f5f9fc;border-top:1px solid #e5edf3;
 border-bottom:1px solid #e0ebf2;color:#8498a9;font-size:9px;
 font-weight:850;letter-spacing:.3px;text-transform:uppercase
}
.station-board-heading span:last-child,.station-board-heading span:nth-last-child(2){text-align:center}
.station-event{
 position:relative;padding:12px 14px;min-height:80px;
 border-bottom:1px solid #eaf0f5;background:#fff
}
.station-event:hover{background:#f5faff}
.station-event:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#c1d1dd}
.station-event.event-confirmed:before{background:#4ba48b}
.station-event.event-forecast:before{background:#d3ac68}
.station-event.event-cancelled:before{background:#ca776f}
.station-event.event-confirmed.severity-late:before{background:#ce6251}
.station-event.event-confirmed.severity-moderate:before{background:#e48f47}
.station-event.event-confirmed.severity-minor:before{background:#d7ad46}
.station-event.event-confirmed.severity-early:before{background:#2494a8}
.station-event.event-confirmed.severity-exact:before{background:#8e9ca8}
.station-event:last-child{border-bottom:0}
.station-event-time{display:flex;flex-direction:column;gap:3px;align-items:flex-start}
.station-event-time strong{
 color:#366e91;font-size:18px;line-height:1.05;
 font-weight:920;letter-spacing:-.55px;font-variant-numeric:tabular-nums
}
.station-event.event-confirmed .station-event-time strong{color:#22876c}
.station-event.event-confirmed.severity-late .station-event-time strong{color:#c3564e}
.station-event.event-confirmed.severity-moderate .station-event-time strong{color:#ca8248}
.station-event.event-confirmed.severity-minor .station-event-time strong{color:#b89044}
.station-event.event-confirmed.severity-exact .station-event-time strong{color:#617c90}
.station-event.event-forecast .station-event-time strong{color:#bf873c}
.station-event.event-cancelled .station-event-time strong{color:#b76b65}
.station-time-type{color:#7293a7;font-size:9px;font-weight:790}
.station-event-time small{font-size:9px;color:#8da2b2}
.station-event-train{min-width:0;display:flex;flex-direction:column;gap:3px}
.station-event-link{
 color:#275773;font-size:11px;font-weight:890;
 display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;
 line-height:1.35;text-decoration:none
}
a.station-event-link:hover{color:#1d82b9;text-decoration:underline}
.station-event-link .train-badge{
 font-size:9px;font-weight:900;border:1px solid #d9e8f2;
 background:#edf5fa;padding:2px 5px;border-radius:5px;color:#3677a0
}
.station-train-name{font-size:10px;color:#7493a9;font-weight:800}
.station-event-direction{font-size:13px;color:#22506e;font-weight:870;line-height:1.28;overflow-wrap:anywhere}
.station-event-train small{font-size:9px;line-height:1.35;color:#95a8b5}
.station-platform{display:flex;flex-direction:column;gap:3px;align-items:center;text-align:center}
.station-platform strong{font-size:11px;color:#527894;font-weight:820;white-space:nowrap}
.station-platform small{font-size:10px;color:#8da2af}
.station-event-delay{text-align:center;min-width:0}
.delay-pill{display:inline-block;border-radius:6px;padding:5px 6px;white-space:nowrap;font-size:10px;font-weight:830}
.delay-pill.delay-early{color:#198d9c;background:#e7f6f8}
.delay-pill.delay-exact{color:#718392;background:#edf2f5}
.delay-pill.delay-on-time{color:#208773;background:#e9f7f0}
.delay-pill.delay-minor{color:#aa7d28;background:#fff6e1}
.delay-pill.delay-moderate{color:#b9702f;background:#fff0df}
.delay-pill.delay-late,.delay-pill.cancelled{color:#c4564c;background:#fff0ec}
.delay-pill.confirmed{color:#27846d;background:#eaf7f1}
.delay-pill.forecast{color:#ac833e;background:#fff8e8}
.delay-pill.missing{color:#7f97a7;background:#f1f5f8}
.station-board-empty,.station-no-map{padding:26px 18px;color:#8296a6;font-size:12px;text-align:center}
.station-board-foot{
 display:flex;flex-direction:column;gap:5px;padding:12px 17px;
 color:#8196a5;border-top:1px solid #dce8f0;
 font-size:10px;line-height:1.55;background:#f9fbfd
}
.station-board-foot strong{color:#ac7736}
.station-aside{display:flex;flex-direction:column;gap:14px;min-width:0}
.station-aside>section{min-width:0;overflow:hidden}
.station-map{
 height:285px;width:calc(100% - 28px);margin:13px 14px 10px;
 border:1px solid #d8e8f1;border-radius:8px;background:#edf3f7;
 overflow:hidden
}
.station-map-foot{
 display:flex;justify-content:space-between;gap:10px;align-items:center;
 padding:2px 14px 15px;flex-wrap:wrap;font-size:10px;color:#839aa8
}
.station-map-foot a{color:#2b79a7;font-weight:840}
.station-map .leaflet-control-attribution{font-size:9px}
.station-traffic-legend{display:flex;gap:18px;padding:12px 17px 2px;font-size:10px;color:#7791a2;font-weight:800}
.station-traffic-legend span{display:flex;align-items:center;gap:6px}
.station-traffic-legend i{width:13px;height:4px;border-radius:5px;display:inline-block}
.station-traffic-legend i.departure{background:#347cad}
.station-traffic-legend i.arrival{background:#35a188}
.station-traffic-chart{height:190px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:10px 15px 17px;align-items:end}
.station-traffic-hour{height:100%;min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;gap:8px}
.station-traffic-pair{height:150px;display:flex;gap:3px;align-items:end;justify-content:center;width:100%;border-bottom:1px solid #d3e0eb}
.station-traffic-bar{
 width:min(43%,30px);min-height:2px;border-radius:5px 5px 0 0;
 position:relative;display:block;background:#347cad;
 transition:height .2s ease
}
.station-traffic-bar.arr{background:#35a188}
.station-traffic-bar span{position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);font-size:9px;color:#7891a3;font-weight:870}
.station-traffic-hour small{font-size:9px;color:#8498a9;white-space:nowrap}
.station-insight{font-size:10px;line-height:1.55;color:#869aa8;margin:0;padding:11px 15px 14px;border-top:1px solid #e7eef4}
.station-punctuality-main{display:flex;gap:10px;align-items:baseline;padding:14px 16px 8px}
.station-punctuality-main strong{font-size:33px;letter-spacing:-1px;line-height:1;color:#247f73;font-variant-numeric:tabular-nums}
.station-punctuality-main span{font-size:10px;color:#8ba0ad;line-height:1.35}
.station-distribution{display:flex;margin:7px 16px 15px;height:11px;border-radius:10px;overflow:hidden;background:#e9f0f4}
.station-distribution>span{display:block;height:100%}
.station-distribution-legend{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding:0 16px 15px}
.station-distribution-legend>div{display:flex;gap:6px;align-items:center;font-size:10px;color:#7a91a1}
.station-distribution-legend i{width:8px;height:8px;flex:none;border-radius:50%}
.station-distribution-legend strong{margin-left:auto;color:#35617e;font-variant-numeric:tabular-nums}
.station-no-data{padding:21px 18px 26px;color:#7d96a7}
.station-no-data strong{font-size:14px;color:#52758b}
.station-no-data p{font-size:11px;line-height:1.65}
.station-no-alert{padding:17px;color:#8098a7;font-size:11px;line-height:1.6;margin:0}
.station-alert{margin:9px 13px;border:1px solid #efd6d0;border-radius:8px;overflow:hidden;background:#fffaf8}
.station-alert summary{padding:10px 12px;font-size:11px;font-weight:870;color:#b75547;cursor:pointer}
.station-alert p{margin:0;padding:12px;border-top:1px solid #f1dfda;font-size:10px;line-height:1.65;color:#6f879a}
.station-data-source dl{margin:0;padding:9px 15px}
.station-data-source dl>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline;padding:8px 0;border-bottom:1px solid #edf2f6;font-size:11px}
.station-data-source dt{color:#8196a5}
.station-data-source dd{color:#386481;font-weight:820;margin:0;text-align:right}
@media(max-width:1050px){
 .station-columns{grid-template-columns:minmax(0,1fr)}
 .station-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .station-data-source{grid-column:span 2}
 .station-hero-summary{grid-template-columns:minmax(0,1fr) 180px minmax(0,1fr)}
 .station-overview strong{font-size:19px}
}
@media(max-width:680px){
 .station-hero-summary{grid-template-columns:1fr 1fr;padding:15px 14px;min-height:0;gap:10px}
 .station-connection{display:none}
 .station-overview strong{font-size:17px}
 .station-overview span{font-size:9px}
 .station-aside{grid-template-columns:1fr}
 .station-data-source{grid-column:auto}
 .station-filter{padding:11px;gap:9px}
 .station-filter label{flex:1;min-width:115px}
 .station-filter input{width:100%}
 .station-apply{flex:1;min-width:100px}
 .station-window-navigation{width:100%;margin-left:0}
 .station-window-navigation a{flex:1;text-align:center}
 .station-board .panel-heading{align-items:flex-start}
 .station-board .panel-heading h2{font-size:19px}
 .station-board-heading{display:none}
 .station-event{grid-template-columns:73px minmax(0,1fr) 79px;grid-template-areas:"clock train delay" "clock train platform";gap:7px 9px;padding:12px 10px}
 .station-event-time{grid-area:clock;align-self:start}
 .station-event-time strong{font-size:16px}
 .station-event-train{grid-area:train}
 .station-event-direction{font-size:12px}
 .station-event-delay{grid-area:delay;align-self:start}
 .station-platform{grid-area:platform;align-self:end}
 .station-platform strong,.station-platform small{font-size:9px}
 .delay-pill{font-size:9px;padding:5px 4px}
 .station-event-link{font-size:10px}
 .station-board-legend{gap:8px 11px}
 .station-board-tabs button{font-size:12px;padding:8px 13px}
}
@media(max-width:390px){
 .station-event{grid-template-columns:65px minmax(0,1fr) 70px;gap:5px;padding:10px 7px}
 .station-event-time strong{font-size:15px}
 .station-platform strong,.station-platform small{font-size:8px}
 .station-train-name{font-size:9px}
}


/* Mobile: section tabs wrap rather than escaping the viewport. */
.station-body .detail-tabs{
  flex-wrap:wrap!important;
  overflow:visible!important;
  max-width:100%;
}
@media(max-width:680px){
  .station-body .detail-tabs{gap:6px!important}
  .station-body .detail-tabs>a{
    font-size:10px;padding:7px 9px;
    white-space:normal;
  }
}


/* Keep classic station access features until their new implementation is verified. */
.station-legacy-tools .panel-heading{padding-bottom:12px}
.station-legacy-action{
 margin:0 14px 15px;display:block;padding:11px 13px;
 border:1px solid #cbdfea;border-radius:8px;background:#f5fafe;
 color:#286f9b;font-size:11px;font-weight:850;text-align:center;
 text-decoration:none
}
.station-legacy-action:hover,.station-legacy-action:focus-visible{
 background:#eaf5fb;border-color:#8ebddb;text-decoration:underline
}
