/* Light institutional demonstration. Density is rendered from data by the map. */
.fm-demo {
  color-scheme: light;
  background: #fff;
  color: #26333d;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  --demo-story-blue: #0072bb;
  --demo-story-gold: #a56c0a;
  --demo-story-ink: #26333d;
  --demo-story-muted: #536371;
  --demo-story-line: #d9e1e7;
  --demo-story-panel: rgba(255, 255, 255, .97);
}
.fm-demo::backdrop { background: rgba(235, 240, 244, .97); }
.fm-demo :focus-visible { outline-color: #0072bb; }
.fm-demo-top { background: #fff; border-bottom-color: #dce3e8; box-shadow: 0 1px 3px rgba(29, 51, 67, .04); }
.fm-demo-wordmark { color: #3b4c59; font-weight: 500; }
.fm-demo-period { color: #5d6c78; }
.fm-demo-close { color: #0068ab; border-color: #cbd8e2; background: #fff; border-radius: 3px; }
.fm-demo-close:hover { background: #eef5fa; border-color: #80b0d2; }
.fm-demo-act { color: #0072bb; }
.fm-demo h2 { color: #202c35; font-weight: 500; }
.fm-demo-explainer { color: #50616f; }
.fm-demo-number { color: #0072bb; }
.fm-demo-unit { color: #4e6070; }
.fm-demo-scope { color: #63717d; }
.fm-demo-mapwrap { border-color: #d3dfe7; border-radius: 4px; background: #f2f3f4; }
#fm-demo-map { background: #f3f5f6; }
.fm-demo-map-status { color: #435764; background: rgba(255, 255, 255, .97); border-color: #cbd9e2; border-radius: 3px; box-shadow: 0 1px 4px rgba(39, 64, 82, .08); }
.fm-demo-map-legend { color: #415361; background: rgba(255, 255, 255, .97); border: 1px solid #d6e0e7; border-radius: 3px; gap: 8px 14px; box-shadow: 0 1px 4px rgba(39, 64, 82, .07); }
.fm-demo-map-legend i { background: #e9772e; border-radius: 50%; }
.fm-demo-map-legend .demo-static { background: #ba7c1b; }
.fm-demo-map-legend .demo-clean { background: #0072bb; }
.fm-demo-compare { position: absolute; left: 14px; top: 54px; z-index: 5; display: flex; flex-wrap: wrap; gap: 2px; max-width: calc(100% - 350px); padding: 3px; border: 1px solid #cbd9e2; border-radius: 3px; background: rgba(255, 255, 255, .98); box-shadow: 0 1px 4px rgba(39, 64, 82, .08); }
.fm-demo-compare button[data-demo-compare] { border: 0; border-radius: 2px; background: transparent; color: #496273; padding: 6px 10px; font-size: 11px; line-height: 1.35; min-height: 32px; }
.fm-demo-compare button[data-demo-compare]:hover { background: #eef5fa; color: #0068ab; }
.fm-demo-compare button[data-demo-compare][aria-pressed="true"] { background: #0072bb; color: #fff; }
.fm-demo-info,
.fm-demo-transfer-card,
.fm-demo-validation { color: #26333d; background: rgba(255, 255, 255, .97); border-color: #d1dce5; border-radius: 4px; box-shadow: 0 3px 14px rgba(32, 61, 82, .09); }
.demo-info-eyebrow { color: #0072bb; font-weight: 500; }
.fm-demo-info h3, .fm-demo-transfer-card h3, .fm-demo-validation h3 { color: #26333d; }
.demo-info-visual { color: #0072bb; }
.fm-demo .demo-info-visual svg text { fill: #344b5c !important; }
.demo-info-caption { color: #526371; }
.demo-info-caption strong { color: #263c4b; }
.demo-info-scope { color: #657582; border-top-color: #dce4e9; }
.demo-info-equation { color: #0072bb; }
.demo-info-equation small, .demo-info-bar, .fm-demo-route-node small, .fm-demo-validation-metrics span { color: #5f707d; }
.demo-info-bar strong { color: #344b5c; }
.demo-info-bar i { background: #0072bb; }
.demo-info-bar[data-observed] i { background: #e5a43b; }
.fm-demo-route-node { color: #3b5262; }
.fm-demo-route-node::before { background: #0072bb; }
.fm-demo-route-node:last-child::before { background: #d69a33; }
.fm-demo-route-line { background: #adc3d3; }
.fm-demo-validation-metrics strong { color: #0072bb; }
.fm-demo-validation-metrics > div:last-child strong { color: #8a600e; }
.fm-demo-controlbar { color: #364b5a; }
.fm-demo-step { color: #687986; border-top-color: #cad6df; }
.fm-demo-step:hover { color: #0072bb; border-top-color: #7db3d8; }
.fm-demo-step small { color: #697c8a; }
.fm-demo-step[aria-current="step"] { color: #005f9f; border-top-color: #0072bb; }
.fm-demo-step[aria-current="step"] small { color: #0072bb; }
.fm-demo-progress-label { color: #5c6f7d; }
.fm-demo-progress-label strong, .fm-demo-progress-label output { color: #235b80; }
#fm-demo-stage-progress { accent-color: #0072bb; }
.fm-demo-control { color: #0068aa; background: #fff; border-color: #bfceda; border-radius: 3px; }
.fm-demo-control:hover:not(:disabled) { background: #eef5fa; border-color: #6ba2ca; }
.fm-demo-primary { color: #fff; background: #0072bb; border-color: #0072bb; border-radius: 3px; }
.fm-demo-primary:hover { background: #005e9c; border-color: #005e9c; }
.fm-demo-control:disabled { color: #84919b; border-color: #dbe2e7; background: #f5f7f8; opacity: 1; }
.fm-demo-foot { color: #64747f; }
.fm-demo-foot strong { color: #415969; }
.fm-demo .fm-demo-density-key { display: grid; gap: 4px; min-width: 170px; max-width: 310px; width: 100%; color: #425868; }
.fm-demo-density-key > strong, .fm-demo-density-key > label { font-size: 11px; line-height: 1.4; font-weight: 500; color: #405664; }
.fm-demo-map-legend .fm-demo-gradient-band,
.fm-demo-gradient-band { display: block; width: 100%; height: 10px; min-width: 160px; border: 0; border-radius: 2px; background: linear-gradient(90deg, #205bff 0%, #00c9ff 19%, #22df8b 39%, #c9ed27 57%, #ffdc26 70%, #ff8a1c 84%, #e52b18 100%); }
.fm-demo .fm-demo-density-scale { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: 100%; font-size: 10px; line-height: 1.35; color: #5c6d79; font-variant-numeric: tabular-nums; }
.fm-demo-map-legend .fm-demo-density-scale span { display: inline; font-size: inherit; }
.fm-demo .fm-demo-density-note { display: block; font-size: 10px; line-height: 1.45; color: #5d707d; max-width: 40ch; margin: 3px 0 0; }
.fm-demo-basin-key { display: inline-flex; gap: 6px; align-items: center; color: #655425; font-size: 11px; }
.fm-demo-map-legend .fm-demo-basin-key i,
.fm-demo-basin-key i { display: inline-block; width: 12px; height: 9px; background: rgba(219, 170, 57, .12); border: 1px solid #b68a27; border-radius: 2px; flex: none; }
.fm-demo-fallback { background: #f3f6f8; color: #375366; }
.fm-demo-fallback td, .fm-demo-fallback th { color: #405969; border-bottom-color: #cbd9e2; }
.fm-demo-fallback-meter { background: #dce8f0; }
.fm-demo-fallback-meter > span { background: #0072bb; }
.fm-demo .maplibregl-popup-content { background: #fff; color: #324d60; border: 1px solid #d1dee8; border-radius: 4px; box-shadow: 0 3px 14px rgba(30, 58, 80, .16); }
.fm-demo .maplibregl-popup-close-button { color: #3d576b; }
.fm-demo .maplibregl-popup-tip { border-top-color: #fff; }
.fm-demo .maplibregl-popup-anchor-top .maplibregl-popup-tip,
.fm-demo .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.fm-demo .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: #fff; }
.fm-demo .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #fff; }
.fm-demo .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #fff; }
.fm-demo .maplibregl-ctrl-group { background: #fff; border: 1px solid #ccd9e2; border-radius: 3px; box-shadow: 0 1px 4px rgba(37, 65, 86, .13); }
.fm-demo .maplibregl-ctrl-group button { color: #324f65; border-color: #e2e9ee; background-color: #fff; }
.fm-demo .maplibregl-ctrl-group button:hover { background-color: #edf5fa; }
.fm-demo .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: none; }
.fm-demo .maplibregl-ctrl-attrib { color: #5d6e7a; background: rgba(255, 255, 255, .88); }
.fm-demo .maplibregl-ctrl-attrib a { color: #435e71; }
.fm-demo .maplibregl-ctrl-attrib-button { background-color: #fff; }
.fm-demo .maplibregl-ctrl-scale { color: #455d6f; background: rgba(255, 255, 255, .8); border-color: #6e8799; }
.fm-demo[data-travel-focus="true"] .fm-demo-story,
.fm-demo[data-travel-focus="true"] .fm-demo-info,
.fm-demo[data-travel-focus="true"] .fm-demo-map-legend,
.fm-demo[data-travel-focus="true"] .fm-demo-explainer,
.fm-demo[data-travel-focus="true"] .fm-demo-number-block,
.fm-demo[data-travel-focus="true"] .fm-demo-scope { display: none !important; }
.fm-demo[data-travel-focus="true"] .fm-demo-stage { display: block; padding: 10px 32px 12px; }
.fm-demo[data-travel-focus="true"] .fm-demo-act { margin-bottom: 5px; font-size: 10px; }
.fm-demo[data-travel-focus="true"] h2 { font-size: 30px; line-height: 1.15; max-width: none; letter-spacing: -.025em; }
.fm-demo[data-travel-focus="true"] #fm-demo-map { height: min(60dvh, 650px); min-height: 350px; transition: height .3s ease; }
.fm-demo[data-travel-focus="true"] .fm-demo-map-status { max-width: calc(100% - 130px); }
.fm-demo[data-travel-focus="true"] .maplibregl-ctrl-top-right { right: 0; }
.fm-demo[data-travel-focus="true"] .maplibregl-ctrl-bottom-right { right: 0; max-width: 100%; }
@media (max-width: 700px) {
  .fm-demo-info, .fm-demo-transfer-card, .fm-demo-validation { background: #fff; border-color: #dce4ea; border-radius: 0; box-shadow: none; }
  .fm-demo-map-legend { background: #fff; border: 0; border-top: 1px solid #dce4ea; border-radius: 0; box-shadow: none; }
  .fm-demo .fm-demo-density-key { max-width: none; min-width: 0; }
  .fm-demo-gradient-band { min-width: 0; }
  .fm-demo .fm-demo-density-note { max-width: none; }
  .fm-demo-map-status { background: rgba(255, 255, 255, .96); }
  .fm-demo-compare { top: 56px; left: 11px; right: auto; max-width: calc(100% - 22px); }
  .fm-demo-compare button[data-demo-compare] { font-size: 11px; padding: 6px 9px; }
  .fm-demo[data-travel-focus="true"] .fm-demo-stage { padding: 10px 16px 12px; }
  .fm-demo[data-travel-focus="true"] h2 { font-size: 26px; line-height: 1.15; }
  .fm-demo[data-travel-focus="true"] #fm-demo-map { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .fm-demo .fm-demo-gradient-band { animation: none !important; transition: none !important; }
  .fm-demo[data-travel-focus="true"] #fm-demo-map { transition: none !important; }
}
