/* NZ energy data section. Scoped to .nze so it reuses the site's tokens
   (--ink, --paper, --copper, --line, --muted) without touching other pages. */
.nze { padding: 64px clamp(24px, 6vw, 100px) 110px; }
.nze-intro { max-width: 760px; margin-bottom: 36px; }
.nze-intro p { color: #62625f; font-size: 19px; line-height: 1.55; }
.nze-intro p.nze-small { font-size: 15px; color: var(--muted); }
.nze a.text-link { margin-top: 12px; }

.nze-ways-lead {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 8px 0 28px;
}

.nze-ways {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.nze-way {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.nze-way-num {
  font-size: clamp(42px, 5vw, 56px);
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--copper);
  font-weight: 700;
}

.nze-way-body h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.nze-way-body > p {
  max-width: 720px;
  color: #62625f;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.nze-way-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nze-way-links a {
  border: 1px solid var(--line);
  background: #fbfaf7;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, color .2s;
}

.nze-way-links a:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.nze-topic-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  grid-column: 1 / -1;
}

.nze-way--topics .nze-topic-list {
  margin-top: 8px;
}

.nze-topic-list li {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.nze-topic-list li:nth-child(2n) {
  border-right: 0;
  padding-left: 28px;
}

.nze-topic-list li:nth-child(2n + 1) {
  padding-right: 28px;
}

.nze-topic-list a {
  display: block;
  padding: 22px 0 20px;
  transition: color .15s;
  height: 100%;
}

.nze-topic-list a:hover strong {
  color: var(--copper);
}

.nze-topic-list strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: 8px;
  font-weight: 700;
}

.nze-topic-list span {
  display: block;
  color: #62625f;
  font-size: 16px;
  line-height: 1.5;
  max-width: none;
  font-weight: 400;
}

.nze-way-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0;
}

.nze-way-actions .text-link {
  margin-top: 0;
}

.nze-topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 50px; }
.nze-topic-card { border: 1px solid var(--line); padding: 26px 24px 22px; background: #fbfaf7; display: flex; flex-direction: column; min-height: 190px; transition: border-color .2s; }
.nze-topic-card:hover { border-color: var(--copper); }
.nze-topic-card span { color: var(--copper); letter-spacing: .2em; font-size: 11px; text-transform: uppercase; font-weight: 800; }
.nze-topic-card h2 { font-size: 24px; letter-spacing: -.02em; margin: 14px 0 10px; line-height: 1.15; }
.nze-topic-card p { color: #62625f; font-size: 15px; margin: 0 0 auto; line-height: 1.5; }
.nze-topic-card b { margin-top: 18px; font-size: 12px; color: var(--muted); font-weight: 600; }

.nze-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 10px 0 40px; }
.nze-stat { padding: 26px 22px; border-right: 1px solid var(--line); }
.nze-stat:last-child { border-right: 0; }
.nze-stat b { display: block; font-size: 38px; letter-spacing: -.03em; line-height: 1; }
.nze-stat b small { font-size: 16px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.nze-stat span { display: block; margin-top: 10px; font-size: 13px; color: #62625f; line-height: 1.4; }
.nze-stat em { color: var(--copper); font-size: 12px; }

.nze-section { margin: 56px 0 0; }
.nze-section > h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 14px; }
.nze-section > p { max-width: 720px; color: #62625f; font-size: 17px; line-height: 1.6; }
.nze-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.nze-grid .nze-chart.wide { grid-column: 1 / -1; }

/* chart card (mirrors the usenergydata.org chart component: header, view
   tabs with controls on the right, plot, timeline bar, data source line) */
.nze-chart { margin: 0; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.06); min-height: 260px; position: relative; display: flex; flex-direction: column; }
.nze-chart > .nze-empty { padding: 60px 20px; }
.nze-ch-head { padding: 16px 20px 6px; }
.nze-chart-title { font-size: 19px; letter-spacing: -.015em; line-height: 1.25; margin: 0 0 4px; }
.nze-chart-title a { border-bottom: 1px solid transparent; }
.nze-chart-title a:hover { border-color: var(--copper); }
.nze-chart-desc { color: #777; font-size: 13px; line-height: 1.5; margin: 0; }
.nze-chart:not(.is-ready) .nze-chart-head { padding: 16px 20px 6px; }
.nze-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 6px 20px 10px; border-bottom: 1px solid #e8e8e8; }
.nze-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.nze-tab { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 0; background: transparent; border-radius: 3px; cursor: pointer; font: inherit; font-size: 12px; color: #999; transition: all .15s; }
.nze-tab:hover { color: #3c4e66; background: #f3f5f8; }
.nze-tab.is-active { background: #e8edf3; color: #3c4e66; font-weight: 600; }
.nze-tab svg { flex-shrink: 0; }
.nze-ch-ctl { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.nze-control { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.nze-control-label { font-size: 11px; color: #777; font-weight: 600; white-space: nowrap; }
.nze-select { border: 1px solid #d3d3d3; background: #f7f7f7; padding: 5px 24px 5px 9px; font: inherit; font-size: 12px; color: #444; border-radius: 3px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 8px) 50%; background-size: 4px 4px; background-repeat: no-repeat; max-width: 240px; cursor: pointer; }
.nze-select:hover { background-color: #f2f2f2; }
/* region multiselect */
.nze-ms { position: relative; width: 190px; }
.nze-ms-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 9px; background: #f7f7f7; border: 1px solid #d3d3d3; border-radius: 3px; font: inherit; font-size: 12px; color: #5e5e5e; cursor: pointer; text-align: left; }
.nze-ms-head:hover { background: #f2f2f2; }
.nze-ms-arrow { font-size: 10px; color: #aaa; }
.nze-ms.is-open .nze-ms-head { border-radius: 3px 3px 0 0; }
.nze-ms-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid #d3d3d3; border-top: 0; border-radius: 0 0 3px 3px; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.nze-ms.is-open .nze-ms-panel { display: block; }
.nze-ms-search { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid #eee; padding: 7px 9px; font: inherit; font-size: 12px; outline: none; }
.nze-ms-clear { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 5px 9px; font: inherit; font-size: 11px; color: #1B55A5; cursor: pointer; border-bottom: 1px solid #eee; }
.nze-ms-clear:hover { background: #f5f5f5; }
.nze-ms-list { max-height: 240px; overflow-y: auto; padding: 4px 0; }
.nze-ms-item { display: flex; align-items: center; gap: 7px; padding: 4px 9px; font-size: 12px; color: #333; cursor: pointer; }
.nze-ms-item:hover { background: #f5f5f5; }
.nze-ms-item input { margin: 0; accent-color: #1B55A5; }
/* body */
.nze-ch-body { padding: 12px 20px 4px; flex: 1; }
.nze-plot { position: relative; min-height: 120px; }
.nze-plot svg text { font-family: inherit; font-size: 11px; }
.nze-empty { color: var(--muted); font-size: 14px; padding: 40px 0; text-align: center; }
.nze-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 6px 0 2px; font-size: 12px; color: #62625f; }
.nze-legend:empty { display: none; }
.nze-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.nze-swatch { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.nze-legend-title { width: 100%; text-align: center; font-size: 12px; color: #767676; margin: 4px 0 0; }
.nze-legend-ramp { display: block; margin: 0 auto; }
.nze-tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 14px rgba(0,0,0,.1); border-radius: 3px; padding: 8px 10px; font-size: 12px; line-height: 1.5; min-width: 160px; max-width: 280px; z-index: 5; }
.nze-tip b { display: block; margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid #eee; }
.nze-tip div { display: flex; align-items: center; gap: 6px; }
.nze-tip div span { margin-left: auto; font-variant-numeric: tabular-nums; padding-left: 14px; font-weight: 600; }
.nze-tip div i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.nze-map-holder { position: relative; }
/* timeline footer */
.nze-ch-footer { display: flex; align-items: center; gap: 10px; padding: 6px 20px 8px; min-height: 40px; }
.nze-play { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d3d3d3; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #3c4e66; flex-shrink: 0; padding: 0; transition: all .15s; }
.nze-play:hover { border-color: #3c4e66; background: #f0f4f8; }
.nze-play.is-playing { background: #3c4e66; color: #fff; border-color: #3c4e66; }
.nze-tl-year { font-size: 11px; color: #888; min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nze-tl-year.is-current { color: #222; font-weight: 700; font-size: 13px; min-width: 40px; }
.nze-tl-slider { flex: 1; display: flex; align-items: center; }
.nze-tl-slider input { width: 100%; height: 4px; border-radius: 2px; background: #e0e0e0; outline: none; -webkit-appearance: none; appearance: none; cursor: pointer; margin: 0; }
.nze-tl-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #3c4e66; cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.nze-tl-slider input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #3c4e66; cursor: pointer; border: 2px solid #fff; }
.nze-dual { flex: 1; position: relative; height: 20px; display: flex; align-items: center; }
.nze-dual-bg { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: #e0e0e0; pointer-events: none; }
.nze-dual-fill { position: absolute; height: 4px; border-radius: 2px; background: #3c4e66; pointer-events: none; }
.nze-dual input[type=range] { position: absolute; left: 0; width: 100%; pointer-events: none; -webkit-appearance: none; appearance: none; background: transparent; margin: 0; padding: 0; height: 4px; }
.nze-dual input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: all; width: 14px; height: 14px; border-radius: 50%; background: #3c4e66; cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.nze-dual input[type=range]::-moz-range-thumb { pointer-events: all; width: 14px; height: 14px; border-radius: 50%; background: #3c4e66; cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.nze-dual input[type=range]::-webkit-slider-runnable-track { background: transparent; }
.nze-dual input[type=range]::-moz-range-track { background: transparent; }
/* source line */
.nze-source { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 4px 20px 10px; font-size: 11px; color: #999; line-height: 1.5; border-top: 1px solid #f0f0f0; }
.nze-source b { font-weight: 600; color: #999; }
.nze-source a { color: #999; border-bottom: 1px solid #e5e5e5; }
.nze-source a:hover { color: #555; border-color: #555; }
.nze-downloads { display: flex; gap: 4px; flex-shrink: 0; }
.nze-dl { border: 1px solid #e0e0e0; background: #fff; border-radius: 3px; font: inherit; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 3px 7px; cursor: pointer; color: #888; }
.nze-dl:hover { border-color: #3c4e66; color: #3c4e66; }
/* table view */
.nze-table { margin: 0 0 8px; }
.nze-table-note { font-size: 12px; color: #777; margin: 0 0 8px; }
.nze-table-scroll { overflow: auto; max-height: 460px; border: 1px solid #e8e8e8; }
.nze-table table { border-collapse: collapse; font-size: 12px; width: 100%; font-variant-numeric: tabular-nums; }
.nze-table th, .nze-table td { padding: 5px 10px; text-align: right; border-bottom: 1px solid #efefef; white-space: nowrap; }
.nze-table th:first-child, .nze-table td:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; }
.nze-table th { position: sticky; top: 0; background: #f7f7f7; font-weight: 600; color: #555; z-index: 2; }
.nze-table th:first-child { z-index: 3; }
.nze-table tr.is-selected td { background: #f3f6fa; }
/* About / prose source table: wrap and left-align */
.nze > .nze-section > table.nze-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.nze > .nze-section > table.nze-table th,
.nze > .nze-section > table.nze-table td { text-align: left; white-space: normal; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #edece5; }
.nze > .nze-section > table.nze-table th { position: static; background: transparent; color: inherit; }
/* compact cards on the landing page */
.nze-chart[data-compact] .nze-ch-head { padding: 12px 16px 4px; }
.nze-chart[data-compact] .nze-chart-title { font-size: 16px; }
.nze-chart[data-compact] .nze-tabs-row, .nze-chart[data-compact] .nze-ch-body, .nze-chart[data-compact] .nze-ch-footer, .nze-chart[data-compact] .nze-source { padding-left: 16px; padding-right: 16px; }

/* chart page */
.nze-chart-page .nze-chart-title { font-size: 24px; }
.nze-related { margin-top: 44px; }
.nze-related h2 { font-size: 22px; margin-bottom: 14px; }
.nze-breadcrumb { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 20px; font-weight: 700; }
.nze-breadcrumb a { border-bottom: 1px solid var(--line); }
.nze-breadcrumb a:hover { border-color: var(--copper); }
.nze-breadcrumb span { margin: 0 8px; color: var(--copper); }

/* library */
.nze-search { width: 100%; max-width: 520px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 12px 0; font-size: 20px; margin: 10px 0 30px; outline: none; }
.nze-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.nze-card { border: 1px solid var(--line); padding: 18px 18px 16px; background: #fbfaf7; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s; }
.nze-card:hover { border-color: var(--copper); }
.nze-card span { color: var(--copper); letter-spacing: .18em; font-size: 10px; text-transform: uppercase; font-weight: 800; }
.nze-card h3 { font-size: 17px; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.nze-card p { font-size: 13px; color: #62625f; margin: 0; line-height: 1.5; }
.nze-library h2 { font-size: 24px; margin: 30px 0 14px; letter-spacing: -.02em; }

/* region list & pages */
.nze-region-list { columns: 3; column-gap: 40px; margin: 20px 0 40px; }
.nze-region-list a { display: block; padding: 6px 0; border-bottom: 1px solid #edece5; font-size: 15px; break-inside: avoid; }
.nze-region-list a:hover { color: var(--copper); }
.nze-region-list b { display: block; margin: 14px 0 6px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--copper); break-after: avoid; }
.nze-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: #62625f; margin: -10px 0 30px; }
.nze-facts b { color: var(--ink); }

.nze-about h2 { font-size: 26px; margin: 40px 0 12px; letter-spacing: -.02em; }
.nze-about p, .nze-about li { max-width: 760px; color: #444441; font-size: 16px; line-height: 1.65; }
.nze-about ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.nze-about table { border-collapse: collapse; font-size: 14px; margin: 14px 0 26px; width: 100%; max-width: 900px; }
.nze-about th, .nze-about td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.nze-about a { border-bottom: 1px solid var(--line); }
.nze-about a:hover { border-color: var(--copper); }

/* Front page (mirrors usenergydata.org home: centred hero, three numbered bands) */
.nze-hero .section-heading { max-width: 760px; margin: 0 auto; text-align: center; }
.nze-hero .eyebrow { justify-content: center; }
.nze-hero h1 { font-size: clamp(38px, 4.6vw, 62px); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 18px; }
.nze-hero p { font-size: 18px; color: #b7b6b0; line-height: 1.6; margin: 0; }
.nze-hero p + p { margin-top: 22px; }
.nze-home { padding: 0 0 100px; }
.nze-band { padding: 52px 0; border-top: 1px solid #e6e4dc; }
.nze-band:first-child { border-top: 0; }
.nze-band--tint { background: #ecebe6; }
.nze-band-in { max-width: 1240px; margin: 0 auto; padding: 0 clamp(24px, 6vw, 100px); }
.nze-band-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.nze-band-num { font-size: 30px; color: var(--copper); line-height: 1; font-weight: 700; }
.nze-band-head h2 { font-size: 27px; letter-spacing: -.02em; margin: 0; }
.nze-h-sub { font-size: 14px; color: var(--muted); margin-left: auto; max-width: 360px; text-align: right; }
.nze-tgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.nze-topic-card { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; background: #fff; transition: border-color .14s, box-shadow .14s, transform .14s; }
.nze-topic-card:hover { border-color: var(--copper); box-shadow: 0 8px 24px rgba(24,33,50,.09); transform: translateY(-2px); }
.nze-topic-card h3 { font-size: 17px; margin: 0 0 5px; line-height: 1.3; }
.nze-topic-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.nze-topic-ico { width: 30px; height: 30px; border-radius: 7px; background: rgba(215,119,53,.12); color: var(--copper); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.nze-topic-ico svg { width: 17px; height: 17px; }
.nze-mapband { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.nze-mapband-txt p { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0; }
.nze-mapband-txt a { color: var(--copper); font-weight: 600; }
.nze-hp-map { position: relative; }
.nze-hp-map svg { display: block; width: 100%; height: auto; max-height: 560px; }
.nze-hp-map .st { fill: #d9dfe8; stroke: #fff; stroke-width: 1; cursor: pointer; transition: fill .12s; }
.nze-hp-map .st:hover { fill: var(--copper); }
.nze-hp-map-tip { position: fixed; background: #373737; color: #fff; font-size: 12.5px; font-weight: 500; padding: 4px 9px; border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity .1s; z-index: 100; white-space: nowrap; }
.nze-searchband { max-width: 720px; }
.nze-hp-search { position: relative; }
.nze-hp-search-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; color: var(--ink); padding: 16px 18px 16px 50px; border: 1.5px solid #d3d9e2; border-radius: 10px; outline: none; background: #fff; transition: border-color .14s, box-shadow .14s; -webkit-appearance: none; appearance: none; }
.nze-hp-search-input:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(215,119,53,.14); }
.nze-hp-search-ico { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: #999; pointer-events: none; }
.nze-hp-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; max-height: min(60vh, 420px); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 34px rgba(24,33,50,.10); display: none; }
.nze-hp-results.is-open { display: block; }
.nze-hp-result { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 16px; border-bottom: 1px solid #eee; }
.nze-hp-result:last-child { border-bottom: 0; }
.nze-hp-result:hover { background: #f7f6f2; }
.nze-hp-result-t { font-size: 14px; color: var(--ink); }
.nze-hp-result-m { font-size: 11px; color: #999; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.nze-hp-result-none { padding: 12px 16px; color: #999; font-size: 13px; }
.nze-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.nze-chip { display: inline-block; font: inherit; font-size: 12.5px; color: var(--copper-dark); background: rgba(215,119,53,.08); border: 1px solid rgba(215,119,53,.25); padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: background .12s; }
.nze-chip:hover { background: rgba(215,119,53,.18); }
.nze-band--why { padding: 40px 0 36px; border-top: 0; }
.nze-home-why { max-width: 760px; }
.nze-home-why h3 { font-size: 17px; margin: 0 0 10px; }
.nze-home-why p { font-size: 15px; color: #62625f; line-height: 1.7; margin: 0 0 12px; }
.nze-home-why p.nze-small { font-size: 13px; color: var(--muted); margin: 0; }
.nze-home-why a { border-bottom: 1px solid var(--line); }
.nze-home-why .text-link { border-bottom: 1px solid var(--ink); margin: 6px 0 14px; }
@media (max-width: 1100px) { .nze-tgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .nze-tgrid { grid-template-columns: 1fr 1fr; } .nze-mapband { grid-template-columns: 1fr; } .nze-h-sub { display: none; } }
@media (max-width: 600px) { .nze-tgrid { grid-template-columns: 1fr; } .nze-home { padding: 0 0 60px; } .nze-band-in { padding: 0 20px; } }

/* Compare layout (US-aligned topic pages): sticky contents on the left,
   sections of explanation + chart card on the right, as on usenergydata.org */
.nze--compare { padding-top: 40px; }
.nze-page-intro { max-width: 760px; margin-bottom: 8px; }
.nze-page-intro p { color: #62625f; font-size: 18px; line-height: 1.55; margin: 0 0 12px; }
.nze-page-intro p.nze-small { font-size: 14px; color: var(--muted); }
.nze-compare { display: flex; gap: 64px; align-items: flex-start; margin-top: 24px; }
.nze-compare-main { flex: 1; min-width: 0; max-width: 960px; }
.nze-toc { width: 240px; flex-shrink: 0; position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: none; }
.nze-toc::-webkit-scrollbar { display: none; }
.nze-toc-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding-bottom: 12px; border-bottom: 1px solid #e0ded6; margin-bottom: 14px; user-select: none; }
.nze-toc-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #aaa; margin: 0; }
.nze-toc-toggle { color: #ccc; transition: transform .2s; }
.nze-toc.is-collapsed .nze-toc-toggle { transform: rotate(180deg); }
.nze-toc.is-collapsed .nze-toc-list { display: none; }
.nze-toc-list { list-style: none; margin: 0; padding: 0; }
.nze-toc-list li { margin: 0 0 1px; }
.nze-toc-link { display: block; font-size: 13px; color: #8a8a86; padding: 5px 8px 5px 10px; border-left: 2px solid transparent; line-height: 1.35; transition: color .12s, border-color .12s, background .12s; }
.nze-toc-link:hover { color: #373737; }
.nze-toc-link.is-active { color: #1B55A5; border-left-color: #1B55A5; background: rgba(27, 85, 165, .06); font-weight: 500; }
.nze-toc-link.is-unavailable { color: #c0beb6; }
.nze-toc-link.is-unavailable.is-active { color: #8a8a86; border-left-color: #c0beb6; background: rgba(0,0,0,.03); }
.nze-toc-link.is-unavailable:hover { color: #8a8a86; }
.nze-toc-flag { display: inline-block; margin-left: 6px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #c9c6bd; vertical-align: 1px; }
.nze-section--compare { margin: 0 0 56px; scroll-margin-top: 90px; }
.nze-section--compare > h2 { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 12px; }
.nze-section--compare > p { max-width: 720px; color: #444441; font-size: 16px; line-height: 1.65; margin: 0 0 12px; }
.nze-method { font-size: 14px !important; color: #62625f !important; border-left: 3px solid #e0ded6; padding-left: 12px; margin: 0 0 16px !important; }
.nze-compare-main .nze-chart { margin-top: 18px; }
.nze-chart-open { text-align: right; font-size: 12px; margin: 6px 0 0; }
.nze-chart-open a { color: #999; }
.nze-chart-open a:hover { color: #373737; }
.nze-unavailable { margin-top: 18px; border: 1px dashed #cfcabe; border-radius: 4px; background: #f7f6f2; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px 28px; color: #8a8880; }
.nze-unavailable-label { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #b0aea6; }
.nze-unavailable p:last-child { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.55; color: #777770; }
.nze-unavailable-us { margin: 12px 0 0 !important; font-size: 12px !important; }
.nze-unavailable-us a { color: #999; border-bottom: 1px solid #ddd; }
.nze-grid--single { grid-template-columns: 1fr; }

@media (max-width: 980px) {
  .nze-topic-grid, .nze-cards { grid-template-columns: 1fr 1fr; }
  .nze-stats { grid-template-columns: 1fr 1fr; }
  .nze-stat:nth-child(2) { border-right: 0; }
  .nze-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .nze-grid { grid-template-columns: 1fr; }
  .nze-region-list { columns: 2; }
  .nze-way { grid-template-columns: 48px 1fr; gap: 12px 16px; padding: 28px 0; }
  .nze-topic-list { grid-template-columns: 1fr 1fr; }
  .nze-compare { flex-direction: column; gap: 28px; }
  .nze-toc { position: static; width: auto; max-height: none; overflow: visible; }
  .nze-toc-list { display: flex; flex-wrap: wrap; gap: 2px 8px; }
  .nze-toc-link { border-left: 0; padding: 4px 6px; border-radius: 3px; }
  .nze-toc-link.is-active { border-left: 0; }
}
@media (max-width: 600px) {
  .nze { padding: 44px 20px 80px; }
  .nze-topic-grid, .nze-cards, .nze-stats { grid-template-columns: 1fr; }
  .nze-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .nze-ch-head, .nze-tabs-row, .nze-ch-body, .nze-ch-footer, .nze-source { padding-left: 12px; padding-right: 12px; }
  .nze-region-list { columns: 1; }
  .nze-source { flex-direction: column; }
  .nze-way { grid-template-columns: 1fr; }
  .nze-way-num { font-size: 36px; }
  .nze-topic-list { grid-template-columns: 1fr; }
  .nze-topic-list li,
  .nze-topic-list li:nth-child(2n),
  .nze-topic-list li:nth-child(2n + 1) { border-right: 0; padding-left: 0; padding-right: 0; }
  .nze-ms { width: 160px; }
  .nze-select { max-width: 160px; }
}
