/* One-purpose TrafficFlow analytics page. Works with existing site tokens and typography. */
.flow-shell{padding-top:28px;padding-bottom:54px}
.flow-panel{padding:clamp(20px,3vw,34px);background:linear-gradient(150deg,#f7fbff,#fff 62%);border:1px solid #d9e7ee;border-radius:22px;box-shadow:0 14px 38px rgba(17,54,82,.07)}
.flow-toolbar{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:end;margin-bottom:24px}
.flow-field{display:flex;flex:1 1 250px;flex-direction:column;gap:8px;min-width:0}
.flow-field label{font-weight:750;font-size:14px;color:#27435a}
.flow-field select{width:100%;border:1px solid #bdd2e0;background:#fff;color:#102f48;font:inherit;font-size:16px;border-radius:12px;padding:12px 14px}
.flow-field select:focus-visible,.flow-panel a:focus-visible{outline:3px solid #f9bf48;outline-offset:3px}
.flow-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}
.flow-metric{min-height:105px;background:#0e2941;color:#fff;border-radius:16px;padding:18px;display:flex;flex-direction:column;justify-content:center;gap:9px}
.flow-metric strong{font-size:clamp(19px,2vw,27px);letter-spacing:-.04em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.flow-metric small{color:#c1d8e5;line-height:1.35;font-size:13px}
.flow-metric:nth-child(2){background:#0a5066}.flow-metric:nth-child(3){background:#0f4568}.flow-metric:nth-child(4){background:#20536a}
.flow-data-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:14px}
.flow-data-table th,.flow-data-table td{text-align:left;padding:13px 11px;border-bottom:1px solid #dde6eb;vertical-align:middle}
.flow-data-table thead th{background:#e9f3f7;font-weight:800;color:#203b4f;position:sticky;top:0}
.flow-data-table tbody tr:hover{background:#f4f9fc}
.flow-data-table tbody th{font-weight:700;color:#163a56;max-width:220px;overflow-wrap:anywhere}
.flow-data-table a{color:#0769a0;text-underline-offset:3px;font-weight:700;white-space:nowrap}
.flow-table-wrap{overflow:auto;border:1px solid #dbe6ec;border-radius:14px}
.flow-panel .flow-status{padding:12px 15px;background:#e6f3f9;border-left:4px solid #3f9ac0;border-radius:8px;color:#28536b;font-size:14px;margin:0 0 15px}
.flow-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;color:#526b7c;margin-top:15px;font-size:13px}
.flow-explainer{margin-top:25px;padding:clamp(22px,3vw,32px);border:1px solid #dbe7ed;border-radius:19px;background:#fff}
.flow-explainer p{max-width:900px;line-height:1.7;color:#3b5266}
.flow-explainer p:last-child{margin-bottom:0}
@media(max-width:900px){.flow-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.flow-panel{padding:15px;border-radius:15px}.flow-metrics{gap:9px}.flow-metric{min-height:100px;padding:12px}.flow-metric strong{font-size:20px}.flow-metric small{font-size:12px}.flow-data-table{font-size:13px}.flow-data-table th,.flow-data-table td{padding:11px 8px}}


/* A county with no detector records is a coverage limitation, not zero road traffic. */
.flow-empty-actions[hidden]{display:none}
.flow-empty-actions{margin:0 0 18px;padding:15px 17px;border:1px solid #c9dce9;border-radius:13px;background:#f4f9fc;color:#274b64}
.flow-empty-actions strong{font-size:14px;display:block;margin-bottom:11px}
.flow-region-buttons{display:flex;gap:9px;flex-wrap:wrap}
.flow-region-buttons button{appearance:none;font:inherit;font-weight:750;font-size:14px;cursor:pointer;background:#fff;color:#14587d;border:1px solid #b5d4e4;border-radius:999px;padding:9px 14px;min-height:40px;transition:background-color .14s,border-color .14s}
.flow-region-buttons button:hover{background:#e3f1f9;border-color:#5c9aba}
.flow-region-buttons button:focus-visible{outline:3px solid #e1a71b;outline-offset:2px}


/* Real observations from other Trafikverket feeds when no live flow detector covers a county. */
.flow-metrics[hidden],.flow-table-wrap[hidden],.flow-support[hidden]{display:none!important}
.flow-support{margin-top:20px;padding:clamp(18px,3vw,26px);border:1px solid #d4e5ef;border-radius:18px;background:linear-gradient(155deg,#f4f9fc,#fff 58%)}
.flow-support-heading h3{font-size:clamp(20px,2vw,27px);margin:0 0 9px}
.flow-support-heading p{color:#456176;line-height:1.55;max-width:890px;margin:0 0 22px}
.flow-support-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.flow-support-block{min-width:0;background:#fff;border:1px solid #dde9ef;border-radius:15px;padding:16px}
.flow-support-block h4{font-size:17px;margin:0 0 10px}
.flow-support-status{font-size:13px;color:#536d80;margin:0 0 13px}
.flow-cameras,.flow-weather{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.flow-camera{min-width:0;display:block;overflow:hidden;border:1px solid #dfebef;border-radius:11px;background:#f3f8fa;text-decoration:none}
.flow-camera img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#e4edf4}
.flow-camera .flow-camera-copy{padding:9px 10px}
.flow-camera strong,.flow-weather-card strong{display:block;font-size:13px;color:#164466;line-height:1.3;overflow-wrap:anywhere}
.flow-camera small,.flow-weather-card small{font-size:12px;color:#607585}
.flow-weather-card{border:1px solid #d9e9ee;border-radius:11px;padding:13px;background:#f3f8fc;min-width:0}
.flow-weather-card .flow-temp{font-weight:800;font-size:22px;display:block;margin:6px 0;color:#155276}
.flow-weather-card .flow-sensor-flags{font-size:12px;color:#995328;font-weight:650}
.flow-support-links{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:20px}
.flow-support-links .button{font-size:14px;text-decoration:none}
.flow-support-note{font-size:13px;line-height:1.6;color:#5c7181;margin-top:16px}
@media(max-width:950px){.flow-support-columns{grid-template-columns:1fr}}
@media(max-width:540px){.flow-cameras,.flow-weather{grid-template-columns:1fr 1fr;gap:8px}.flow-support-block{padding:12px}.flow-support-links .button{width:100%;text-align:center}.flow-camera img{aspect-ratio:4/3}}
