/* natgas_map.css: the main gas map's frame (web/natgas_map.html). Thomas,
 * 2026-11-04 ~20:35Z: the map with its key, the picked item's volumes right
 * under it, then the list; as on the Texas map. The key card, the credits
 * pill and the sub-bar are shell.css's; the block, the tables and the chart
 * are natgas.css's, shared with the LNG pages. */

/* THE WORK AREA (Thomas via HQ, 2026-11-17: "One list + switch"; the map
 * "Beside the list"): natgas.css's .ngw. The map beside the list, as tall as
 * the list's frame while nothing is open; with an item open it gives the room
 * to that item's block under it. */
.ngm { max-width: 1280px; padding-top: 0; }
.ngm-map { position: relative; height: clamp(420px, calc(100vh - 190px), 640px); background: var(--bg);
           border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
@media (min-width: 1001px) {
  .ngw-side:has(> .ng-detail:not([hidden])) .ngm-map { height: 296px; position: relative; background: var(--bg); }
  .ngw-side:has(> .ng-detail:not([hidden])) .ngm-map .map-key-body { max-height: 216px; }
}
.map-tools { display: none; }
.ngm-page .ng-synth { margin: 0; }
/* The list's search: a folded row that matches shows; the folds' own rows,
 * the status headings and the "Show all" toggle step aside while it is on. */
.ngw-list.is-searching tr.ng-row[hidden]:not(.ngw-q-off) { display: table-row; }
.ngw-list.is-searching tr.ngw-q-off, .ngw-list.is-searching tr.ngm-fold,
.ngw-list.is-searching tr.ngm-group { display: none; }
.ngw-list.is-searching .ngm-more-btn { display: none; background: none; }
.ngm-none { margin: 0 0 var(--sp-2); color: var(--ink-body); font-size: var(--t-data); }
.ngm-none a { color: var(--ink); text-decoration-color: var(--line-strong); }
.ngm-noroute { font-size: var(--t-label); margin-left: var(--sp-1); }
/* The terminal list's status groups (HQ, 2026-11-04). */
.ngm-table tr.ngm-group th { text-align: left; padding-top: var(--sp-2); font-size: var(--t-label);
                             letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-body); }
.ng-src a { color: inherit; }
/* The one toggle under a phase B list. */
.ngm-more-btn { appearance: none; background: none; border: 0; padding: 0; margin: 0 0 var(--sp-1);
                font: inherit; color: var(--ink); text-decoration: underline;
                text-decoration-color: var(--line-strong); cursor: pointer; }

/* The hover card: the crude map's (style.css .hover-card), for these maps. */
.leaflet-tooltip.ngm-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  box-shadow: var(--shadow-panel);
  color: var(--ink-body);
  font-family: var(--font-data);
  font-size: var(--t-label);
  line-height: 1.45;
  padding: 6px var(--sp-2);
  white-space: nowrap;
}
.leaflet-tooltip.ngm-card strong { color: var(--ink); font-weight: 500; }
.leaflet-tooltip-top.ngm-card::before { border-top-color: var(--surface); }
.leaflet-tooltip-bottom.ngm-card::before { border-bottom-color: var(--surface); }
.leaflet-tooltip-left.ngm-card::before { border-left-color: var(--surface); }
.leaflet-tooltip-right.ngm-card::before { border-right-color: var(--surface); }

/* An import terminal: a diamond (the crude map's hub mark), by status as the
 * export dots are: filled, a ring, or dashed and hollow. */
.ngm-import-icon { background: none; border: 0; }
.ngm-import { display: block; width: 100%; height: 100%; box-sizing: border-box; transform: rotate(45deg) scale(0.75);
              background: var(--map-hub); border: 1.5px solid var(--surface); }
.ngm-import.is-bare { background: var(--map-no-data); }
.ngm-import.ngm-st-commissioning { background: none; border: 3px solid var(--map-hub); }
.ngm-import.ngm-st-under_construction { background: none; border: 2px dashed var(--map-hub); }
.ngm-import.ngm-st-unconfirmed { background: none; border: 2px solid var(--map-no-data); }
.ngm-import-icon.is-on .ngm-import { border: 3px solid var(--map-selected); background: var(--map-hub); }

/* A storage field: a hollow dotted triangle filling its icon's box (phase C;
   approximate, placed by county, HQ 2026-11-06). */
.ngm-tri-icon { background: none; border: 0; }
.ngm-tri { display: block; width: 100%; height: 100%; overflow: visible; }
.ngm-tri polygon { fill: none; stroke: var(--map-padd-4); stroke-width: 1.6;
                   stroke-dasharray: 1.8 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ngm-tri-icon.is-on .ngm-tri polygon { stroke: var(--map-selected); stroke-width: 2.4; stroke-dasharray: none; }

/* The key card in the map's corner on a desktop; its width is shell.css's. */
.ngm-map .map-key-body { max-height: 340px; overflow-y: auto; }

/* ------------------------------------------------------------ the phone */
/* The map, then the key folded under it, then the block and the list. */
@media (max-width: 820px) {
  .ngm-map { height: 60vh; height: 60svh; min-height: 300px; }
  .map-tools {
    display: block;
    padding: var(--sp-2) 0 0;
  }
  .map-tools .leaflet-control { float: none; clear: none; margin: 0; }
  .map-tools .map-key { width: auto; background: var(--surface); box-shadow: none; }
  .map-tools .map-key-body { max-height: none; overflow-y: visible; }
  .leaflet-tooltip.ngm-card { white-space: normal; max-width: 240px; }
  .ngm-table td:nth-child(2), .ngm-table th:nth-child(2) { display: none; }
}

/* The page's heading, for screen readers: the map is the title (audit S1). */
.ngm .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* THE STANDARD BLOCK (HQ 2026-11-06): the stat row, "Daily data", the one
   source line -- the crude map panel's pattern. */
.ngm .ng-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-2) var(--sp-4);
  margin: var(--sp-2) 0 var(--sp-3);
}
.ngm .ng-stat { display: flex; flex-direction: column; min-width: 0; }
.ngm .ng-stat-label {
  font-size: var(--t-label);
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ngm .ng-stat-value { color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ngm .ng-daily { margin: var(--sp-2) 0; }
.ngm .ng-daily > summary { cursor: pointer; color: var(--ink-body); }
.ngm .ng-daily .ng-table-wrap { max-height: 280px; overflow-y: auto; }
.ngm .ng-source {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* QUIET LISTS (Thomas via HQ, 2026-11-06). The headline row sits on the
   page's gutter above the full-width map; the pipelines' Operator column
   goes where most rows have none; an approximate route is the key's dotted
   mark; what a line feeds follows its name; the gas day sits small beside
   its figure. */
.ngm-hero { max-width: 1280px; margin: 0 auto; padding: var(--sp-2) var(--sp-4); }
.ngm-hide-op td:nth-child(2), .ngm-hide-op th:nth-child(2) { display: none; }
.ngm-hide-type td:nth-child(3), .ngm-hide-type th:nth-child(3) { display: none; }
.ngm-table tr.ngm-fold + tr.ngm-fold td { padding-top: 0; }
.ngm-approx { display: inline-block; width: 16px; height: 0; margin: 0 0 0 var(--sp-2); vertical-align: middle;
              border-top: 2px dotted var(--map-pipe); cursor: help; }
.ngm-feeds { margin-left: var(--sp-2); color: var(--ink-faint); font-size: var(--t-label); }
.ngm-day { margin-right: var(--sp-2); color: var(--ink-faint); font-size: var(--t-label); }
/* FERC Form 2's company totals (HQ, 2026-11-07): their own column, muted,
   never in Latest (daily only); off where the page has none, and on a phone
   (the line's panel still shows its total). */
.ngm-f2-h, .ngm-f2c { color: var(--ink-faint); }
/* The other stations at a station's point: one short line (HQ, 2026-11-07). */
.ngm-also { margin: var(--sp-2) 0 0; color: var(--ink-body); font-size: var(--t-label); }
.ngm-no-f2 .ngm-f2-h, .ngm-no-f2 .ngm-f2c { display: none; }
/* The column's caption goes where the column goes. */
@media (max-width: 480px) { .ngm-f2-h, .ngm-f2c, .ngm-f2-note { display: none; } }
.ngm-table tr.ngm-fold td { padding-top: var(--sp-2); text-align: left; border-bottom: 0; }
.ngm-fold-btn { color: var(--ink-body); }
.ngm-fold-btn[aria-expanded="true"] { margin-bottom: var(--sp-1); }
/* The lists with no box, as on the LNG pages (HQ, 2026-11-06): text cells
   in the reading face, left; figures right, tabular. */
/* (Their frame is the work area's list now: natgas.css .ngw-list.) */
.ngm-table td:not(.num) { font-family: var(--font-ui); text-align: left; }
.ngm-table thead th:not(.num) { text-align: left; }
/* In the list a line's terminals sit on a line of their own under its name:
   beside it they broke mid-name at the list's width ("Golden / Pass LNG"). */
.ngw-list .ngm-feeds { display: block; margin-left: 0; }
/* Where the pipelines' Operator or Type column is on show (the script hides
   each where it tells no rows apart, as on the published lines), the list
   takes their width from the map: six columns in 540px squeezed a name to
   five lines. Only once its rows are drawn, so the frame does not jump. */
@media (min-width: 1001px) {
  .ngw:has(#ngm-pipes-box.is-view .ngm-table:not(.ngm-hide-op.ngm-hide-type) > tbody > tr) {
    grid-template-columns: minmax(0, 740px) minmax(0, 1fr);
  }
}
