/* deaudits.com /natural-gas-pipeline-map/: interactive map. Uses site.css tokens; classes only (CSP: no inline styles). */
:root {
  --gm-sea: #dfe8ee; --gm-land: #fbfcfa; --gm-other: #eef0ec;
  --gm-inter: #1d5b9a; --gm-intra: #d98a4e; --gm-cer: #7b4fa0; --gm-shale: #bdd73c;
  --gm-storage: #2f7d3a; --gm-proc: #8a6d3b; --gm-hub: #141c18; --gm-border: #b3261e;
  --gm-lng: #0f8b8d; --gm-lng-uc: #0f8b8d; --gm-lng-imp: #66706b; --gm-nuc: #c2185b; --gm-hl: #e0218a;
}

.gm-app { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 0; background: #fff; border-radius: 24px;
  box-shadow: var(--shadow); overflow: hidden; margin: 28px 0 8px; min-height: 620px; }
.gm-side { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; border-right: 1px solid var(--line);
  background: var(--card, #f7f8fa); max-height: 760px; overflow-y: auto; }
.gm-mapwrap { position: relative; min-height: 620px; }
.gm-map { position: absolute; inset: 0; background: var(--gm-sea); }
.gm-map:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }

/* search */
.gm-search { position: relative; }
.gm-search label { display: block; font: 600 13px/1.3 var(--font); color: var(--ink); margin: 0 0 6px; }
.gm-search input { width: 100%; box-sizing: border-box; font: 15px/1.3 var(--font); padding: 11px 14px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.gm-search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(114 184 76 / .2); }
.gm-results { position: absolute; z-index: 1200; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); max-height: 320px; overflow-y: auto; }
.gm-results[hidden] { display: none; }
.gm-results li { margin: 0; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; line-height: 1.3; }
.gm-results li[aria-selected="true"], .gm-results li:hover { background: var(--soft); }
.gm-results .gm-rk { display: block; font-size: 12px; color: var(--muted); }

/* layers */
.gm-layers { border: 0; margin: 0; padding: 0; }
.gm-layers legend { font: 600 13px/1.3 var(--font); color: var(--ink); margin: 0 0 6px; padding: 0; }
.gm-layer { display: grid; grid-template-columns: 20px 22px 1fr auto; align-items: center; gap: 8px; padding: 6px 4px; font-size: 14px;
  line-height: 1.25; cursor: pointer; border-radius: 8px; }
.gm-layer:hover { background: var(--soft); }
.gm-layer input { width: 18px; height: 18px; margin: 0; accent-color: var(--green-dark); }
.gm-layer .gm-n { font: 12px/1 var(--mono); color: var(--muted); }
.gm-sw { width: 22px; height: 14px; display: inline-block; position: relative; }
.gm-sw--inter { border-top: 3px solid var(--gm-inter); height: 0; top: 0; }
.gm-sw--intra { border-top: 2px solid var(--gm-intra); height: 0; }
.gm-sw--cer { border-top: 3px solid var(--gm-cer); height: 0; }
.gm-sw--shale { background: rgb(189 215 60 / .45); border: 1px solid #8fa62a; border-radius: 3px; }
.gm-sw--storage::before, .gm-sw--proc::before, .gm-sw--nuc::before, .gm-sw--border::before { content: ""; position: absolute; left: 5px; top: 1px;
  width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .25); }
.gm-sw--storage::before { background: var(--gm-storage); }
.gm-sw--proc::before { background: var(--gm-proc); width: 8px; height: 8px; left: 6px; top: 2px; }
.gm-sw--nuc::before { background: var(--gm-nuc); }
.gm-sw--border::before { background: #fff; border: 3px solid var(--gm-border); box-shadow: none; width: 6px; height: 6px; }
.gm-sw--hub::before { content: ""; position: absolute; left: 6px; top: 2px; width: 9px; height: 9px; background: var(--gm-hub); border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--gm-hub); }
.gm-sw--lng::before { content: ""; position: absolute; left: 6px; top: 1px; width: 10px; height: 10px; background: var(--gm-lng); transform: rotate(45deg); border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--gm-lng); }

.gm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-btn { font: 600 13px/1.2 var(--font); padding: 8px 12px; min-height: 36px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; cursor: pointer; }
.gm-btn:hover { border-color: var(--ink); }
.gm-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.gm-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gm-note { font-size: 12px; line-height: 1.45; color: var(--muted); margin: auto 0 0; }
.gm-hint { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }

/* the info card */
.gm-card { position: absolute; z-index: 1000; top: 14px; right: 14px; width: 330px; max-height: calc(100% - 28px); overflow-y: auto;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lift); padding: 18px 18px 16px; font-size: 14px; line-height: 1.45; }
.gm-card[hidden] { display: none; }
.gm-card__k { font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green-text); margin: 0 30px 6px 0; }
.gm-card h3 { font: 700 19px/1.25 var(--display); color: var(--ink); margin: 0 30px 10px 0; }
.gm-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
.gm-card dt { color: var(--muted); font-size: 13px; }
.gm-card dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.gm-card p { margin: 10px 0 0; color: var(--body, #46504b); }
.gm-card ol { margin: 6px 0 0; padding-left: 1.2rem; }
.gm-card li { margin: 2px 0; }
.gm-card .gm-link { background: none; border: 0; padding: 0; color: var(--green-text); font: inherit; text-decoration: underline; cursor: pointer; text-align: left; }
.gm-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font: 600 18px/1 var(--font); color: var(--ink); }
.gm-close:hover { border-color: var(--ink); }
.gm-cta { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--band, #e6f2dc); font-size: 13px; }
.gm-cta a { font-weight: 600; }

.gm-loading { position: absolute; z-index: 999; inset: 0; display: grid; place-items: center; background: rgb(223 232 238 / .7);
  font: 600 15px/1.3 var(--font); color: var(--ink); }
.gm-loading[hidden] { display: none; }

/* Leaflet overrides */
.gm-map.leaflet-container { font-family: var(--font); background: var(--gm-sea); }
.gm-map .leaflet-control-attribution { font-size: 11px; background: rgb(255 255 255 / .85); }
.gm-map .leaflet-control-zoom a { color: var(--ink); }
.gm-map .leaflet-tooltip.gm-tip { font: 600 12px/1.3 var(--font); color: var(--ink); border-radius: 8px; border: 0; box-shadow: var(--shadow); padding: 5px 8px; }
.gm-lbl { font: 600 11px/1 var(--font); color: #7d8781; text-align: center; white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.gm-lbl--ca { color: #9aa093; }
.gm-ico { box-sizing: border-box; }
.gm-ico--hub { width: 11px; height: 11px; background: var(--gm-hub); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gm-hub); }
.gm-ico--lng { width: 14px; height: 14px; }
.gm-ico--lng::before { content: ""; position: absolute; inset: 2px; transform: rotate(45deg); background: var(--gm-lng); border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--gm-lng); }
.gm-ico--lng.is-uc::before { background: #fff; border: 2.5px solid var(--gm-lng-uc); box-shadow: 0 0 0 1px #fff; }
.gm-ico--lng.is-pr::before { background: #fff; border: 2px dashed var(--gm-lng-uc); box-shadow: none; }
.gm-ico--lng.is-imp::before { background: var(--gm-lng-imp); box-shadow: 0 0 0 1px var(--gm-lng-imp); }
.gm-ico.is-sel { outline: 3px solid var(--gm-hl); outline-offset: 2px; }

/* full screen */
.gm-app.is-full { position: fixed; z-index: 5000; inset: 0; margin: 0; border-radius: 0; min-height: 0; }
.gm-app.is-full .gm-side { max-height: none; }
body.gm-noscroll { overflow: hidden; }

/* tables under the map */
.gm-table-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 0; }
.gm-table-tools input { font: 15px/1.3 var(--font); padding: 10px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 14px; min-width: 240px; }
.gm-show { font: 600 13px/1.2 var(--font); padding: 6px 10px; min-height: 32px; border: 1px solid var(--line); background: #fff; color: var(--green-text);
  border-radius: 999px; cursor: pointer; white-space: nowrap; }
.gm-show:hover { border-color: var(--green-text); }
table.data th[data-sort] { cursor: pointer; }
table.data th[aria-sort="descending"]::after { content: " \2193"; }
table.data th[aria-sort="ascending"]::after { content: " \2191"; }
td.gm-num, th.gm-num { text-align: right; font-variant-numeric: tabular-nums; }
.gm-pill { display: inline-block; font: 600 11px/1 var(--mono); padding: 4px 7px; border-radius: 999px; background: var(--soft); color: var(--ink); white-space: nowrap; }
.gm-pill--op { background: #d7efe9; color: #0b5e5f; }
.gm-pill--uc { background: #fff3d6; color: #6b4b00; }
.gm-pill--pr { background: var(--soft); color: var(--muted); }
.gm-pill--imp { background: #eceeed; color: #46504b; }
.gm-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 22px 0 0; }

@media (max-width: 900px) {
  .gm-app { grid-template-columns: 1fr; min-height: 0; }
  .gm-side { order: 2; max-height: none; border-right: 0; border-top: 1px solid var(--line); }
  .gm-mapwrap { order: 1; min-height: 0; height: 68vh; max-height: 640px; }
  .gm-app.is-full .gm-mapwrap { height: 70vh; max-height: none; }
  .gm-card { top: auto; bottom: 10px; left: 10px; right: 10px; width: auto; max-height: 55%; }
}
@media (max-width: 600px) {
  .gm-mapwrap { height: 58vh; min-height: 380px; }
}
@media (max-width: 520px) {
  .gm-app { border-radius: 16px; margin-left: -6px; margin-right: -6px; }
  .gm-table-tools input { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .gm-map * { transition: none !important; } }
.gm-hubs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 28px; }
.gm-hubs li { margin: 0; }
.gm-hubs .gm-show { color: var(--ink); font-weight: 500; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gm-page .table-scroll { position: relative; }
.gm-tall { max-height: 640px; overflow-y: auto; }
.gm-tall thead th { position: sticky; top: 0; z-index: 1; background: var(--card, #f7f8fa); box-shadow: 0 1px 0 var(--line); }
td.gm-ops { font-size: 14px; color: var(--muted); min-width: 220px; }
.gm-app { scroll-margin-top: 150px; }
