/* Ecoverity maps. Sits on top of the site stylesheet (../style.css) and uses its
   colours and fonts. The fallbacks keep the page readable if that file is missing. */

.mapwrap { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 72px); }
.mapwrap h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.015em; margin: 10px 0 10px; }
.mapwrap .lede { color: var(--muted, #56625B); max-width: 68ch; margin: 0 0 18px; }
.mapnav { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 22px; padding: 10px 0; border-top: 1px solid var(--rule, #D3DAD5); border-bottom: 1px solid var(--rule, #D3DAD5); font-size: 15px; font-weight: 500; }
.mapnav a { color: var(--ink, #15201A); text-decoration: none; }
.mapnav a:hover { color: var(--accent, #1B5E3B); }
.mapnav a[aria-current] { color: var(--accent, #1B5E3B); border-bottom: 2px solid var(--accent, #1B5E3B); }

.controls { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; margin-bottom: 14px; }
.controls fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.controls legend, .controls .lab { font-family: var(--mono, monospace); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted, #56625B); padding: 0; margin-bottom: 6px; display: block; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink, #15201A); border-radius: 2px; overflow: hidden; background: #fff; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 13px; font-size: 15px; color: var(--ink, #15201A); border-right: 1px solid var(--rule, #D3DAD5); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--ink, #15201A); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent, #1B5E3B); outline-offset: -3px; }
.pick { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--ink, #15201A); border-radius: 2px; background: #fff; color: var(--ink, #15201A); max-width: 100%; }
.pick.wide { width: 300px; }
#find { font: inherit; font-size: 15px; padding: 7px 10px; width: 250px; max-width: 100%; border: 1px solid var(--ink, #15201A); border-radius: 2px; background: #fff; color: var(--ink, #15201A); }

.timebar { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; flex-wrap: wrap; }
.timebar button { font: inherit; font-size: 15px; font-weight: 500; padding: 6px 14px; border: 1px solid var(--ink, #15201A); border-radius: 2px; background: #fff; color: var(--ink, #15201A); cursor: pointer; min-width: 76px; }
.timebar button:hover { background: var(--tint, #EAF2ED); }
.timebar input[type=range] { flex: 1 1 260px; max-width: 560px; accent-color: var(--ink, #15201A); }
.timebar .when { font-family: var(--display, Georgia, serif); font-size: 22px; min-width: 160px; }

.stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .stage { grid-template-columns: minmax(0, 1fr); } }
.mapbox { position: relative; }
#map { height: min(66vh, 680px); min-height: 400px; border: 1px solid var(--ink, #15201A); background: #EEF1EF; }
.scope { position: absolute; left: 10px; top: 10px; right: 54px; pointer-events: none; }
.scope span { display: inline-block; background: rgba(251, 252, 250, 0.95); border: 1px solid var(--rule, #D3DAD5); padding: 5px 10px; font-size: 14px; color: var(--muted, #56625B); }
#tip { position: absolute; left: 0; top: 0; pointer-events: none; display: none; background: var(--ink, #15201A); color: #fff; font-size: 13.5px; padding: 5px 9px; border-radius: 2px; white-space: nowrap; transform: translate(12px, 12px); z-index: 5; }
#tip.on { display: block; }

.key { margin-top: 14px; }
.key h2, .panel h2 { font-family: var(--mono, monospace); font-weight: 400; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted, #56625B); margin: 0 0 8px; line-height: 1.5; text-wrap: wrap; }
.panel h2.gap { margin-top: 20px; }
.swatches { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 14px; color: var(--muted, #56625B); }
.swatches div { display: flex; align-items: center; gap: 6px; }
.swatches i { width: 22px; height: 14px; border: 1px solid #555; display: inline-block; }
.g7-0, .g6-0 { background: #ffffff; }
.g7-1 { background: #e2e2e2; } .g7-2 { background: #c2c2c2; } .g7-3 { background: #9a9a9a; }
.g7-4 { background: #6e6e6e; } .g7-5 { background: #3f3f3f; } .g7-6, .g6-5 { background: #111111; }
.g6-1 { background: #dcdcdc; } .g6-2 { background: #b4b4b4; } .g6-3 { background: #858585; } .g6-4 { background: #525252; }
.swatches i.hatch { background: repeating-linear-gradient(135deg, #EEF1EF 0 3px, #555 3px 4.5px); }
.swatches i.dots { background: #9a9a9a radial-gradient(circle at 50% 50%, #1B5E3B 0 1.5px, #fff 1.6px 2.6px, transparent 2.8px) 0 0 / 8px 8px; }
.keynote { font-size: 14px; color: var(--muted, #56625B); margin: 8px 0 0; max-width: 72ch; }

.panel { border-top: 2px solid var(--ink, #15201A); border-bottom: 1px solid var(--rule, #D3DAD5); padding: 14px 0 18px; min-height: 220px; }
.panel h3 { font-size: 26px; line-height: 1.15; margin: 0 0 2px; }
.panel .sub { font-size: 14px; color: var(--muted, #56625B); margin: 0 0 14px; }
.panel .sentence { margin: 0 0 14px; font-size: 16px; }
.panel .empty { color: var(--muted, #56625B); font-size: 16px; }
.bars { margin: 0 0 16px; }
.bar { display: grid; grid-template-columns: 104px 1fr 58px; gap: 8px; align-items: center; font-size: 14px; margin: 5px 0; }
.bar .nm { color: var(--muted, #56625B); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar svg { display: block; width: 100%; height: 14px; }
.bar .trk { fill: var(--tint, #EAF2ED); }
.bar .fil { fill: #222; }
.bar .zero { stroke: #555; stroke-width: 1; vector-effect: non-scaling-stroke; }
.bar .val { text-align: right; font-variant-numeric: tabular-nums; }

/* The site stylesheet styles tables for its services table; undo that inside the panel. */
.panel table { display: table; width: 100%; border-collapse: collapse; font-size: 14.5px; }
.panel thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: table-header-group; }
.panel tbody { display: table-row-group; }
.panel tr, .panel tbody tr, .panel tbody tr:last-child { display: table-row; border: 0; padding: 0; }
.panel thead th, .panel tbody td, .panel tbody tr:last-child td { display: table-cell; width: auto; text-align: right; vertical-align: baseline; padding: 5px 0 5px 8px; border: 0; border-top: 1px solid var(--rule, #D3DAD5); font-family: inherit; font-size: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; white-space: normal; margin: 0; }
.panel thead th { border-top: 0; color: var(--muted, #56625B); font-size: 13px; }
.panel tbody td:not(:first-child) { white-space: nowrap; }
.panel thead th:first-child, .panel tbody td:first-child, .panel tbody tr:last-child td:first-child { text-align: left; padding-left: 0; color: var(--muted, #56625B); }
.caution { font-size: 14px; color: var(--muted, #56625B); border-left: 2px solid var(--accent, #1B5E3B); padding-left: 10px; margin: 14px 0 0; }
.chart { margin: 2px 0 14px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .cap { font-size: 13px; color: var(--muted, #56625B); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; }
.chart .cap i { display: inline-block; width: 16px; height: 0; border-top: 2px solid #111; vertical-align: middle; margin-right: 5px; }
.chart .cap i.par { border-top-color: #a9a9a9; }
.sources { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--rule, #D3DAD5); font-size: 14px; line-height: 1.5; color: var(--muted, #56625B); }
.sources p { max-width: 86ch; margin: 0 0 8px; }
