/* BCP Roadworks Watch theme: the one source of palette and type (docs/DESIGN.md section 2). */
:root{--red:#C62828;--amber:#E08600;--other:#9E9E9E;--junction:#37474F;--crossing:#78909C;--ok:#2E7D32;--warn:#E08600;--bad:#C62828;
--text:#1A1A1A;--muted:#5F6368;--bg:#F6F7F9;--card:#fff;--border:#E3E6EA}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-variant-numeric:tabular-nums}
h1{font-size:22px;font-weight:600;margin:0 0 8px}h2{font-size:18px;font-weight:600;margin:20px 0 8px}h3{font-size:16px;font-weight:600;margin:14px 0 6px}
a{color:#1A5FB4}
small,.muted{color:var(--muted)}small{font-size:15px}
.site-header{background:#fff;border-bottom:1px solid var(--border);padding:8px 14px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px}
.site-header .brand{font-weight:600;font-size:18px;color:var(--text);text-decoration:none}
.site-header nav{display:flex;gap:2px;flex-wrap:wrap}
.site-header nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;color:var(--text);text-decoration:none;font-size:16px}
.site-header nav a.on{background:#EEF1F5;font-weight:600}
.pill{margin-left:auto;font-size:15px;color:var(--muted);background:var(--bg);border:1px solid var(--border);border-radius:999px;padding:4px 12px;cursor:pointer;display:inline-flex;align-items:center;min-height:44px}
.pill.late{color:var(--warn);border-color:var(--warn)}
.bw{display:inline}
.site-header .brand{display:inline-flex;align-items:center;min-height:44px}
.wrap{max-width:960px;margin:0 auto;padding:14px}
.card{background:var(--card);border:1px solid var(--border);border-radius:8px;padding:14px 16px;margin:0 0 12px}
.badge{display:inline-block;font-weight:700;font-size:15px;line-height:1.3;border-radius:4px;padding:0 7px;letter-spacing:.02em}
.badge.RED{background:var(--red);color:#fff}.badge.AMBER{background:var(--amber);color:#1A1A1A}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;font:inherit;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);cursor:pointer;text-decoration:none}
.btn.primary{background:var(--red);border-color:var(--red);color:#fff;font-weight:600}
ul.plain{list-style:none;margin:0;padding:0}
ul.plain li{padding:8px 0;border-top:1px solid var(--border)}ul.plain li:first-child{border-top:0}
.ref{font-size:15px;color:var(--muted)}
.leaflet-tile-pane{filter:grayscale(.85) brightness(1.05)}
.ps,.psa{display:none}
@media(max-width:759px){
.site-header{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"brand pill" "nav nav";gap:0 8px;padding:0 12px}
.site-header .brand{grid-area:brand;font-size:17px;min-height:44px}
.site-header nav{grid-area:nav;display:flex;justify-content:space-between;gap:0;min-height:44px}
.site-header nav a{flex:1 1 0;justify-content:center;padding:0 4px;font-size:15px}
.pill{grid-area:pill;justify-self:end;align-self:center;font-size:14px;padding:0;min-height:0;width:auto;margin:0;line-height:1.2;border:0;background:none;border-radius:0;cursor:default;display:inline-flex;align-items:center;text-align:right;white-space:normal;pointer-events:none}
.pl,.pla{display:none}.ps,.psa{display:inline}
.bw{display:none}
}
summary{padding:10px 0;min-height:44px;box-sizing:border-box;cursor:pointer}
