/* The Energy & Power page (src/energy/energy-twin.js). It wears the Water Quality page's components
   (styles/modules/wq-twin.css); this file holds only what that page did not need: fuel-coloured marks, plant and project
   rows, the water-right list. Tokens only. A figure that is not a full year is hollow and dashed wherever it appears. */

/* the Infrastructure page is a 72ch reading column; this page is a dashboard and needs the width (roads-twin.css sets it
   too; the rule is repeated so either page works alone) */
.infra-page.infra-page--wide { max-width: 1180px; }
.infra-page--wide .infra-page__lede { max-width: 72ch; }

.enx .enx-of, .wqx .wqx-tile .enx-of { display: inline; font-size: var(--guide-fs-sm); font-weight: 400; color: var(--guide-color-ink-muted); }
.enx-na { font-size: var(--guide-fs-sm); font-weight: 400; color: var(--guide-color-ink-muted); }
.enx-cap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.enx .enx-src { max-width: 80ch; }
.enx .wqx-big { max-width: 36ch; }

/* a chart drawn in a 560 to 640 unit box is not stretched across a 1,100px card: its labels would grow with it */
.enx .wqx-svg { display: block; width: 100%; max-width: 760px; height: auto; }

/* "Other fuels" carries a pattern as well as grey (the chart's SVG uses hatching; a legend swatch or bar part gets a dashed inner edge) */
.enx-hatch { outline: 2px dashed var(--guide-color-paper); outline-offset: -3px; }

/* start from your question */
.enx-asks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.enx-asks .wqx-btn { font-size: var(--guide-fs-sm); }

/* marks */
.enx-seg { stroke-linejoin: round; }
.enx-seg:hover { opacity: 0.85; }
.enx-seg.is-partial { opacity: 1; }
.enx .enx-sub { font-size: var(--guide-fs-xs); fill: var(--guide-color-ink-muted); }
.enx-unit { margin-top: 2px; }
.enx-line { cursor: help; }
.enx-line:hover { stroke-width: 3.4; opacity: 1; }
.enx-plant { cursor: pointer; }
.enx-plant:hover { stroke-width: 2.4; }
.enx-planned { cursor: help; }
.wqx-legend i.enx-key-dot { border-radius: 50%; width: 10px; height: 10px; }
.wqx-legend i.enx-key-dot.is-hollow { background: var(--guide-color-paper); border: 1.5px solid var(--guide-color-ink-soft); }
.wqx-legend i.enx-key-diamond { width: 9px; height: 9px; background: var(--guide-color-paper); border: 2px solid var(--guide-color-ink-soft); transform: rotate(45deg) scale(.85); border-radius: 0; }
.wqx-legend i.enx-key-line { width: 18px; border-radius: 2px; }

/* lists */
.enx-filter { margin: 4px 0 10px; }
.enx-rows, .enx-projects { list-style: none; margin: 0; padding: 0; display: grid; }
.enx-row { border-bottom: 1px solid var(--guide-color-border-subtle); }
.enx-plantbtn { width: 100%; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 10px 4px; background: transparent; border: 0; cursor: pointer; font: inherit; color: inherit; }
.enx-plantbtn:hover, .enx-plantbtn:focus-visible { background: var(--guide-color-bg-1); }
.enx-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.enx-dot.is-diamond { border-radius: 0; background: var(--guide-color-paper); border: 2px solid var(--guide-color-ink-soft); transform: rotate(45deg) scale(.8); margin-top: 6px; }
.enx-pname b, .enx-pnum b { display: block; font-size: var(--guide-fs-md); overflow-wrap: anywhere; }
.enx-pname small, .enx-pnum small { display: block; font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); overflow-wrap: anywhere; }
.enx-pnum { text-align: right; font-variant-numeric: tabular-nums; }

.enx-proj { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--guide-color-border-subtle); }
.enx-proj p { margin: 3px 0; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); line-height: 1.45; overflow-wrap: anywhere; }
.enx-proj small { font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); }
.enx-who { color: var(--guide-color-ink); }
.enx-review { margin: 8px 0; padding: 12px 14px; border-radius: 12px; background: var(--guide-color-bg-1); border: 1px solid var(--guide-color-border-default); font-size: var(--guide-fs-sm); line-height: 1.5; }
.enx-review p { margin: 4px 0; }
.enx-review ul { margin: 6px 0 0; padding-left: 18px; color: var(--guide-color-ink-soft); }

.enx-rf { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 10px 0; }
.enx-rf .wqx-search { flex: 1 1 260px; }
.enx-right { padding: 10px 0; border-bottom: 1px solid var(--guide-color-border-subtle); }
.enx-right b { font-size: var(--guide-fs-md); }
.enx-right p { margin: 3px 0; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-soft); overflow-wrap: anywhere; }
.enx-right small { font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); line-height: 1.5; overflow-wrap: anywhere; }
.enx-callout { max-width: 90ch; }
.enx-points { margin: 10px 0; padding-left: 20px; display: grid; gap: 8px; font-size: var(--guide-fs-sm); line-height: 1.5; }

.enx-dot-county { background: var(--guide-color-ink); }
.enx-dot-plant { background: var(--guide-color-lake); }
.enx-dot-operator { background: var(--guide-color-neutral-400); }

@media (max-width: 560px) {
  .enx-plantbtn { grid-template-columns: 12px minmax(0, 1fr); }
  .enx-pnum { grid-column: 2; text-align: left; }
  .enx .wqx-big { max-width: none; }
}
@media print {
  .enx .enx-asks, .enx .wqx-actions, .enx .wqx-seg-ctl, .enx .wqx-tabs, .enx .wqx-searchwrap, .enx .enx-filter, .enx .enx-rf, .enx .wqx-pager { display: none; }
  .enx-row, .enx-proj, .enx-right, .enx-review { break-inside: avoid; }
}
