/* Energy Site Screener: light theme. Builds on the Site Finder layout (/demos/site-finder/app.css) and overrides its dark colours. */
:root {
  --bg: #f4f6f5;
  --glass: rgb(255 255 255 / 92%);
  --glass-2: rgb(18 51 59 / 4%);
  --line: rgb(18 51 59 / 12%);
  --ink: #12333b;
  --ink-2: #5a7177;
  --accent: #0f8f80;
  --accent-ink: #ffffff;
  --hot: #e2504c;
  --ramp: linear-gradient(90deg, #eef5f4, #c6e9e2 35%, #7fd1c2 55%, #2fb3a0 70%, #f4c152 82%, #f08a4b 92%, #e2504c);
  color-scheme: light;
}
html, body { background: var(--bg); color: var(--ink); }

/* Loading */
.sf-loading { background: radial-gradient(ellipse at center, #ffffff, var(--bg) 70%); }

/* Panel */
.sf-panel { box-shadow: 0 20px 50px -24px rgb(18 51 59 / 35%); }
.sf-pill { border-color: rgb(15 143 128 / 35%); }
.sf-pill::before { box-shadow: 0 0 0 0 rgb(15 143 128 / 50%); }
.es-types { grid-template-columns: repeat(4, 1fr); }
.es-types button { padding: 10px 4px 8px; line-height: 1.2; text-align: center; }
.sf-types button[aria-pressed="true"] { background: rgb(15 143 128 / 10%); border-color: rgb(15 143 128 / 55%); }
input[type=range]::-webkit-slider-runnable-track { background: rgb(18 51 59 / 14%); }
input[type=range]::-moz-range-track { background: rgb(18 51 59 / 14%); }
input[type=range]::-webkit-slider-thumb { border-color: #ffffff; }
input[type=range]::-moz-range-thumb { border-color: #ffffff; }
.sf-top button:hover { border-color: rgb(15 143 128 / 50%); background: rgb(15 143 128 / 7%); }
.sf-top__n { color: #ffffff; }
.sf-top button.is-hot { border-color: rgb(240 138 75 / 70%); background: rgb(240 138 75 / 10%); box-shadow: inset 3px 0 0 #f08a4b; }
.sf-detail { background: linear-gradient(160deg, rgb(15 143 128 / 8%), rgb(255 255 255 / 60%)); border-color: rgb(15 143 128 / 28%); }
.sf-rank { background: rgb(240 138 75 / 16%); color: #b5521c; }
.sf-bars i { background: rgb(18 51 59 / 10%); }
.sf-facts div { background: rgb(18 51 59 / 5%); }
.es-facts { grid-template-columns: 1fr 1fr; }
.es-facts dd { font-size: 16px; }
.sf-sheet { color: var(--ink); }

/* Map furniture */
.maplibregl-ctrl-group { background: var(--glass) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: none; }
.maplibregl-ctrl-attrib.maplibregl-compact { background: rgb(255 255 255 / 90%); color: var(--ink-2); }
.sf-tools button { box-shadow: 0 4px 14px -8px rgb(18 51 59 / 40%); }
.es-dash { width: 16px; height: 0; border-top: 2px dashed #d48a00; }
.sf-tools button[aria-pressed="false"] .es-dash { border-top-color: var(--ink-2); }
.sf-legend { box-shadow: 0 4px 14px -8px rgb(18 51 59 / 40%); }
.es-legend b { width: 12px; height: 12px; border-radius: 3px; background: #d5dcde; border: 1px solid var(--line); margin-left: 6px; }
.sf-tip { background: rgb(255 255 255 / 96%); color: var(--ink); box-shadow: 0 6px 18px -8px rgb(18 51 59 / 40%); }
.sf-pin__head { box-shadow: 0 6px 16px rgb(226 80 76 / 35%), 0 0 0 2px #fff; }
.sf-pin__n { color: #ffffff; }

/* Popup */
.sf-popup .maplibregl-popup-content { background: rgb(255 255 255 / 98%); color: var(--ink); border-color: rgb(15 143 128 / 25%); box-shadow: 0 18px 44px -14px rgb(18 51 59 / 45%); }
.sf-popup .maplibregl-popup-tip { border-top-color: #ffffff !important; border-bottom-color: #ffffff !important; }
.sf-popup .es-facts dd { font-size: 15px; }

@media (max-width: 760px) {
  .sf-tools #es-infra span { display: none; }
  .es-types button span { font-size: 11px; }
  .sf-sheet { border-color: rgb(15 143 128 / 40%); background: rgb(15 143 128 / 8%); }
}
.sf-bars b { background: linear-gradient(90deg, #7fd1c2, #0f8f80); background-size: auto; }
.sf-popup .sf-bars { display: none; }
.sf-popup .sf-facts { margin-top: 10px; }
