/* Earthquake intensity map: additions to the shared map page styles. Each degree's colour is set from shake-core.js. */
::selection{background:#cfe5e2;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}
.shake-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}
.shake-key label,.shake-scale-title{display:block;font-weight:650;margin:0 0 4px}
.shake-key select{width:100%;min-height:44px;font:inherit;font-size:14px;color:#20343a;background:#fff;border:1px solid #bdcece;border-radius:9px;padding:8px 10px}
.shake-key select:focus-visible{outline:3px solid #277b84;outline-offset:3px}
.shake-facts{margin:6px 0 0}.shake-scale-title{margin-top:12px}
.shake-scale{display:grid;grid-template-columns:repeat(7,1fr);list-style:none;margin:0;padding:0;border-radius:6px;overflow:hidden;border:1px solid #0000002e}
.shake-scale li{background:var(--chip,#eee);color:#20343a;text-align:center;font-weight:650;font-size:12px;line-height:1;padding:7px 0}.shake-scale li.dark{color:#fff}
.shake-scale-ends{display:flex;justify-content:space-between;margin:3px 0 0;font-size:12px;color:#5d7377}
.shake-marks{display:flex;flex-wrap:wrap;gap:4px 14px;margin:10px 0 0}.shake-marks span{display:inline-flex;align-items:center;gap:6px}
.mark-star{font-style:normal;color:#12343a;font-size:15px;line-height:1}.mark-line{width:22px;border-top:3px solid #12343a}.mark-frame{width:18px;height:12px;border:1.5px dashed #30535a}
.epicentre{display:grid;place-items:center;font-size:24px;line-height:1;color:#12343a;text-shadow:0 0 2px #fff,0 0 2px #fff,0 0 3px #fff,0 0 5px #fff;pointer-events:none}
/* The degree colours, also for readers without JavaScript; a unit test keeps them equal to COLORS in shake-core.js. */
[data-degree="4"]{--chip:#f7f1dc}[data-degree="5"]{--chip:#f1dfa6}[data-degree="6"]{--chip:#ecc072}[data-degree="7"]{--chip:#e09a52}[data-degree="8"]{--chip:#c9652f}[data-degree="9"]{--chip:#8f2f1a}[data-degree="10"]{--chip:#4a1512}
/* The chosen point: its degree in the earthquake on the map, then every earthquake that reached it. */
.shake-event{margin:0 0 6px}
.shake-lead{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700;line-height:1.3;margin:0 0 8px}
.shake-chip{display:inline-grid;place-items:center;flex:none;min-width:36px;height:26px;padding:0 6px;border-radius:5px;border:1px solid #0000002e;background:var(--chip,#fff);color:#20343a;font-size:12px;font-weight:700;line-height:1;white-space:nowrap}.shake-chip.dark{color:#fff}
.shake-history{list-style:none;margin:8px 0 6px;padding:0;display:grid;gap:5px}
.shake-history button{display:grid;grid-template-columns:auto 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}
.shake-history button[aria-pressed=true]{border-color:#176b73;box-shadow:inset 0 0 0 1px #176b73;background:#f1f7f6}
.shake-row-mag{color:#5d7377;font-size:13px;white-space:nowrap}
/* The static part of the page: the degrees and the list of earthquakes. */
.map-about h2:not(:first-child){margin-top:36px}
.shake-table-wrap{overflow-x:auto;margin:0 0 20px}
.shake-degrees,.shake-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5}
.shake-degrees th,.shake-degrees td,.shake-table th,.shake-table td{text-align:left;vertical-align:top;padding:10px 14px 10px 0;border-bottom:1px solid #d7e2e0;font-weight:400}
.shake-degrees thead th,.shake-table thead th{font-size:13px;font-weight:650;color:#4d6061;vertical-align:bottom}
.shake-degrees tbody th{white-space:nowrap}.shake-degrees td:nth-child(2){font-weight:650;white-space:nowrap}
.shake-table td:first-child,.shake-table td:nth-child(3){white-space:nowrap}
.shake-table .event-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}
.shake-table .event-open:hover{background:none;color:#104d51}.shake-table .event-open[aria-pressed=true]{color:#12343a;text-decoration:none}
@media(max-width:760px){
 .shake-key{left:9px;right:9px;bottom:auto;top:10px;width:auto;padding:8px 10px}
 .shake-key label,.shake-scale-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .shake-facts,.shake-marks,.shake-scale-ends{display:none}.shake-scale{margin-top:8px}
 .leaflet-top.leaflet-left{top:104px}.leaflet-top,.leaflet-bottom{z-index:650}.panel{max-height:44dvh}.map-message{top:112px}
 .shake-table td:first-child{white-space:normal}.shake-table thead th:nth-child(3){font-size:0}.shake-table thead th:nth-child(3)::after{content:'M';font-size:13px}
 .shake-degrees,.shake-table{font-size:14px}.shake-degrees th,.shake-degrees td,.shake-table th,.shake-table td{padding-right:10px}
}
/* Short phones: the result sheet leaves the map room to show the chosen point. */
@media(max-width:760px) and (max-height:700px){.panel{max-height:34dvh}}
