/* River flood map: additions to the shared map page styles. Each depth class's colour is set from flood-core.js. */
::selection{background:#cfe0f2;color:#12343a}input{caret-color:#176b73}
.calm-tiles{filter:grayscale(1) contrast(.85) brightness(1.08)}.map-stage .leaflet-container{background:#eceeed}
.noscript-note{position:relative;z-index:5;max-width:640px;margin:0 auto;padding:20px 16px;background:#fff;line-height:1.6}
.flood-key{position:absolute;left:12px;bottom:28px;z-index:700;width:min(340px,calc(100% - 24px));background:#fffffff5;border:1px solid #d7e3df;border-radius:13px;box-shadow:0 4px 20px #28434a20;padding:12px 14px;font-size:13px}
.flood-key-title{font-weight:650;margin:0 0 5px}.flood-scale-title{margin-top:12px}
.flood-scenarios{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;background:#f2f6f5;padding:3px;border-radius:10px}
.flood-scenarios button{border:0;background:none;padding:6px 4px;min-height:40px;font-size:13px;line-height:1.2;border-radius:8px;color:#24444a}
.flood-scenarios button:hover{background:#e3eeec}.flood-scenarios [aria-pressed=true],.flood-scenarios [aria-pressed=true]:hover{background:#176b73;color:#fff}
.flood-facts{margin:7px 0 0}
.flood-scale{display:grid;grid-template-columns:repeat(5,1fr);list-style:none;margin:0;padding:0;border-radius:6px;overflow:hidden;border:1px solid #0000002e}
.flood-scale li{background:var(--chip,#eee);color:#16303a;text-align:center;font-weight:650;font-size:12px;line-height:1;padding:7px 0;font-variant-numeric:tabular-nums}.flood-scale li.dark{color:#fff}
.flood-marks{display:flex;flex-wrap:wrap;gap:4px 14px;margin:10px 0 0}.flood-marks span{display:inline-flex;align-items:center;gap:6px}
.mark-water,.mark-none{width:18px;height:12px;border-radius:2px;border:1px solid #0000002e;flex:none}.mark-water{background:var(--water,#c2cbd0)}.mark-none{background:#eceeed}
/* The chosen point: its depth in the flood on the map, then in all three floods. */
.flood-event{margin:0 0 6px}
.flood-lead{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700;line-height:1.3;margin:0 0 8px}
.flood-chip{display:inline-grid;place-items:center;flex:none;min-width:36px;height:26px;padding:0 7px;border-radius:5px;border:1px solid #0000002e;background:var(--chip,#fff);color:#16303a;font-size:12px;font-weight:700;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}.flood-chip.dark{color:#fff}
.flood-swatch{flex:none;width:26px;height:26px;border-radius:5px;border:1px solid #0000002e;background:var(--chip,#eceeed)}.flood-swatch.water{background:var(--water,#c2cbd0)}
.flood-chip.none{background:#eceeed;color:#4d6061}.flood-chip.water{background:var(--water,#c2cbd0)}
.flood-history{list-style:none;margin:8px 0 10px;padding:0;display:grid;gap:5px}
.flood-history button{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;width:100%;text-align:left;font-weight:500;font-size:14px;line-height:1.35;padding:8px 10px;min-height:44px;border-color:#dbe5e3}
.flood-history button[aria-pressed=true]{border-color:#176b73;box-shadow:inset 0 0 0 1px #176b73;background:#f1f7f6}
.flood-row-chance{display:block;color:#5d7377;font-size:13px}
/* The static part of the page. */
.map-about h2:not(:first-child){margin-top:36px}
.flood-limits{margin:0 0 18px;padding-left:20px;display:grid;gap:8px}
.flood-table-wrap{overflow-x:auto;margin:0 0 20px}
.flood-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5;font-variant-numeric:tabular-nums}
.flood-table th,.flood-table td{text-align:left;vertical-align:top;padding:10px 14px 10px 0;border-bottom:1px solid #d7e2e0;font-weight:400}
.flood-table thead th{font-size:13px;font-weight:650;color:#4d6061;vertical-align:bottom}
.flood-table tbody th{white-space:nowrap;font-weight:650}.flood-depths tbody th{font-weight:400}
.flood-places{list-style:none;margin:0 0 20px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:0 28px}
.flood-places li{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:9px 0;border-bottom:1px solid #d7e2e0}
.flood-places span{color:#4d6061;font-size:14px}
.flood-places .place-open{border:0;border-radius:4px;background:none;padding:0;min-height:0;font:inherit;font-weight:650;color:#176b70;text-align:left;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.flood-places .place-open:hover{background:none;color:#104d51}
@media(max-width:760px){
 .flood-key{left:9px;right:9px;bottom:auto;top:10px;width:auto;padding:8px 10px}
 .flood-key-title:not(.flood-scale-title){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .flood-scale-title{margin:6px 0 3px;font-size:12px;font-weight:600;color:#4d6061}.flood-facts,.flood-marks{display:none}.flood-scenarios button{min-height:36px}
 .leaflet-top.leaflet-left{top:124px}.leaflet-top,.leaflet-bottom{z-index:650}.panel{max-height:52dvh}.map-message{top:132px}
 .flood-table{font-size:14px}.flood-table th,.flood-table td{padding-right:10px}
}
/* The same colours as COLORS and WATER in flood-core.js (a unit test keeps them in step), so the key reads without JavaScript. */
[data-class="1"]{--chip:#b4d8f2}[data-class="2"]{--chip:#78b4e8}[data-class="3"]{--chip:#2f74c8}[data-class="4"]{--chip:#254fa3}[data-class="5"]{--chip:#252a73}
