/* The Lake Urmia explorer (blog post "lake-urmia"). Loaded only by that post.
   Light only, like every blog page on this site. Chart colours follow explorer.js. */

.urmia { margin: 2rem 0; }

.urmia-map,
.urmia-trend { max-width: 25rem; margin: 0 auto; }
.urmia-trend { margin: 2rem auto; }
.urmia-map img,
.urmia-trend img { display: block; width: 100%; height: auto; border-radius: .5rem; background: #f4f3ee; }

.urmia-readout { margin: .75rem 0 .5rem; text-align: center; color: #52514e; line-height: 1.6; }
.urmia-readout strong { color: #0b0b0b; font-size: 1.6rem; font-weight: 600; }
.urmia-date { display: block; font-size: .9rem; }

.urmia-controls { max-width: 40rem; margin: 0 auto; }
/* Without JavaScript the slider and chart cannot work; the map, readout and table still show. */
.urmia:not(.urmia-js) .urmia-slider,
.urmia:not(.urmia-js) .urmia-ends,
.urmia:not(.urmia-js) .urmia-hint,
.urmia:not(.urmia-js) .urmia-chart-title,
.urmia:not(.urmia-js) .urmia-chart-wrap { display: none; }

.urmia-slider { display: block; width: 100%; height: 2rem; margin: 0; accent-color: #2a78d6; }
.urmia-ends { display: flex; justify-content: space-between; font-size: .8rem; color: #6f6e69; }
.urmia-hint { margin: .5rem 0 1rem; text-align: center; font-size: .9rem; color: #6f6e69; }

.urmia-key { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .5rem 0;
             font-size: .85rem; color: #52514e; }
.urmia-key-bar { flex: 0 0 8rem; height: .6rem; border-radius: .3rem; }
/* the map colours: land is BrBG from -0.5 (dry, brown) to 0 (bare or salty, pale); lake water is one colour */
.urmia-key-bar--land { flex-basis: 5rem; background: linear-gradient(to right, #8c510a, #dfc27d, #f5f5f5); }
.urmia-key-swatch { flex: 0 0 .9rem; height: .9rem; margin-inline-start: .75rem; border-radius: .2rem; background: #35978f; }
/* the trend colours: RdBu, drier (red) to wetter (blue), grey middle */
.urmia-key-bar--trend { background: linear-gradient(to right, #b2182b, #ef8a62, #fddbc7, #f7f7f7, #d1e5f0, #67a9cf, #2166ac); }

.urmia-chart-title { margin: 1.25rem 0 .25rem; font-size: .9rem; font-weight: 600; color: #0b0b0b; }
.urmia-chart-wrap { position: relative; }
.urmia-chart { width: 100%; min-height: 220px; touch-action: pan-y; cursor: crosshair; }
.urmia-chart svg { display: block; font-family: inherit; }
.urmia-tip { position: absolute; top: 0; padding: .3rem .55rem; background: #fff; border: 1px solid rgba(11, 11, 11, .1);
             border-radius: .4rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); font-size: .8rem; line-height: 1.4;
             white-space: nowrap; pointer-events: none; }
.urmia-tip strong { display: block; color: #0b0b0b; }
.urmia-tip span { color: #52514e; }

.urmia-table { margin-top: 1.25rem; }
.urmia-table summary { cursor: pointer; font-weight: 600; }
.urmia-table table { width: 100%; margin-top: .5rem; border-collapse: collapse; font-size: .9rem;
                     font-variant-numeric: tabular-nums; }
.urmia-table th,
.urmia-table td { padding: .35rem .5rem; border-bottom: 1px solid #e1e0d9; text-align: start; }
.urmia-gap { font-size: .85rem; color: #6f6e69; }

.urmia figcaption { margin-top: .5rem; text-align: center; font-size: .85rem; line-height: 1.7; color: #52514e; }

.urmia-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
                         clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
