:root {
  --navy: #102a43;
  --navy-2: #263442;
  --ink: #172127;
  --muted: #62717b;
  --line: #d8dedb;
  --paper: #ffffff;
  --canvas: #f6f5ef;
  --panel: #fbfcfb;
  --map-bg: #e7ece8;
  --retired: #b5523c;
  --retired-dark: #733226;
  --planned: #138fa0;
  --planned-dark: #0b5964;
  --data-center-planned: #2c6fb7;
  --data-center-operating: #13836b;
  --data-center-canceled: #747d85;
  --manufacturing: #8a6b2f;
  --manufacturing-dark: #614914;
  --teal: #3db7c7;
  --red: #bf0d3e;
  --gold: #e4b84a;
  --scope-active-bg: #102a43;
  --scope-active-fg: #ffffff;
  --shadow: 0 4px 12px rgba(16, 42, 67, 0.08);
  color-scheme: light dark;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

p,
li,
dd {
  line-height: 1.55;
}

.utility-bar {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 5px 30px;
  font-size: 0.75rem;
  font-weight: 700;
}

.utility-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.utility-login {
  color: #ffffff;
  font-weight: 800;
}

.utility-bar nav,
.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-bar a:hover,
.site-footer a:hover,
.text-link:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 70px;
  border-bottom: 1px solid rgba(16, 42, 67, 0.12);
  background: rgba(255, 255, 255, 0.97);
  padding: 10px 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  forced-color-adjust: none;
}

.brand-logo {
  display: block;
}

.brand img {
  display: block;
  width: 194px;
  height: auto;
  forced-color-adjust: none;
}

.site-nav {
  justify-content: flex-end;
  color: var(--navy-2);
  font-size: 0.84rem;
  font-weight: 800;
  min-width: 0;
  max-width: 100%;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding: 10px 2px 8px;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-bottom-color: var(--red);
  color: var(--navy);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  gap: 42px;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 32px;
}

.hero-copy {
  padding-top: 8px;
}

.hero-media {
  display: grid;
  align-self: end;
  gap: 14px;
}

.site-photo {
  display: block;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}

.site-photo img,
.card-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-photo {
  aspect-ratio: 16 / 10;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero h1,
.page-heading h1 {
  color: var(--navy);
  font-size: clamp(2rem, 4.6vw, 3.28rem);
  line-height: 1.08;
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: normal;
}

.home-hero p,
.page-heading p {
  max-width: 720px;
  margin-top: 16px;
  color: var(--navy-2);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 9px 13px;
  font-size: 0.9rem;
  font-weight: 800;
}

.button.primary {
  background: var(--red);
  color: #ffffff;
}

.button.primary:hover {
  background: #a30b34;
}

.button.secondary {
  border-color: rgba(16, 42, 67, 0.38);
  background: var(--paper);
  color: var(--navy);
}

.button.secondary:hover {
  border-color: var(--navy);
}

.button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-panel,
.event-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}

.hero-panel {
  align-self: end;
  border-top: 4px solid var(--red);
  padding: 20px;
}

.hero-panel h2,
.event-panel h2,
.side-panel h2,
.main-copy h2,
.section h2 {
  color: var(--navy);
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-right: 0;
  background: var(--paper);
}

.quick-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding: 10px;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.quick-links a:hover {
  background: #f0f3f2;
  text-decoration: underline;
}

.priority-list,
.plain-list {
  margin: 16px 0 0;
  padding-left: 19px;
}

.priority-list li,
.plain-list li {
  margin: 10px 0;
}

.section,
.page-heading,
.map-section {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.page-heading {
  padding: 42px 0 28px;
}

.membership-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
}

.membership-heading-copy {
  min-width: 0;
}

.membership-heading-mark {
  display: flex;
  justify-content: flex-end;
  forced-color-adjust: none;
}

.membership-heading-mark img {
  display: block;
  width: min(310px, 30vw);
  height: auto;
  forced-color-adjust: none;
}

.membership-lockup {
  display: block;
}

.membership-lockup img {
  width: min(270px, 26vw);
}

.intro-grid,
.content-grid,
.news-events {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 40px;
  align-items: start;
}

.intro-grid {
  display: block;
}

.intro-copy {
  max-width: 860px;
}

.intro-copy p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.02rem;
}

.intro-grid h2,
.section-heading h2,
.main-copy h2,
.join-band h2 {
  font-size: 1.72rem;
  line-height: 1.18;
}

.section-heading {
  display: grid;
  gap: 6px;
  max-width: 720px;
  margin-bottom: 18px;
}

.program-recap {
  max-width: 820px;
  color: var(--muted);
}

.program-meta {
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 800;
}

.feature-grid,
.membership-grid,
.policy-grid,
.resource-layout,
.mission-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
}

.membership-grid,
.policy-grid,
.resource-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mission-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 0;
  padding-top: 0;
}

.feature-card,
.membership-grid article,
.policy-grid article,
.resource-card,
.mission-grid article,
.stack-list article {
  display: block;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  padding: 16px;
}

.feature-card {
  min-height: 148px;
  border-top: 3px solid var(--teal);
}

.feature-card.has-photo {
  overflow: hidden;
  padding: 0;
}

.feature-card.has-photo .card-photo {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
}

.feature-card.has-photo .card-body {
  padding: 16px;
}

.annual-conference-card .annual-photo,
.membership-meetings-card .membership-meetings-photo {
  height: auto;
  aspect-ratio: auto;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  object-fit: contain;
}

.facility-tour-photo {
  object-position: right center;
}

.inline-photo {
  aspect-ratio: 16 / 10;
  margin-top: 18px;
}

.side-photo {
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
}

.feature-card:nth-child(2),
.membership-grid article:nth-child(2n),
.policy-grid article:nth-child(2n) {
  border-top-color: var(--gold);
}

.feature-card:nth-child(3),
.membership-grid article:nth-child(3n),
.policy-grid article:nth-child(3n) {
  border-top-color: var(--red);
}

.feature-card:nth-child(4) {
  border-top-color: var(--navy);
}

.feature-card:nth-child(5) {
  border-top-color: var(--teal);
}

.feature-card h3,
.membership-grid h3,
.policy-grid h3,
.resource-card h3,
.stack-list h3,
.mission-grid h3 {
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.28;
}

.feature-card p,
.membership-grid p,
.policy-grid p,
.resource-card p,
.mission-grid p,
.main-copy p,
.side-panel p {
  margin-top: 8px;
  color: var(--muted);
}

.feature-card[href]:hover {
  border-color: #b9c4c1;
}

.stack-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.news-events .event-panel {
  margin-top: 82px;
}

.stack-list span,
.resource-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stack-list article {
  border-top: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.event-panel,
.side-panel {
  padding: 18px;
}

.event-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
}

.event-list div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.event-list dt {
  color: var(--navy);
  font-weight: 800;
}

.event-list dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--red);
  font-weight: 800;
}

.text-link[data-login-trigger] {
  cursor: pointer;
}

.main-copy {
  display: grid;
  gap: 16px;
}

.resource-card {
  min-height: 180px;
}

.join-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto 60px;
  border: 1px solid rgba(16, 42, 67, 0.16);
  border-left: 5px solid var(--red);
  border-radius: 3px;
  background: var(--paper);
  padding: 22px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px 40px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 34px 30px;
}

.site-footer img {
  display: block;
  width: 228px;
  height: auto;
  margin-bottom: 14px;
  forced-color-adjust: none;
}

.site-footer p {
  max-width: 860px;
  font-size: 0.82rem;
}

.site-footer nav {
  justify-content: stretch;
  align-content: start;
  font-size: 0.84rem;
  font-weight: 800;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 22px;
}

.footer-columns div {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-columns h2 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.copyright {
  grid-column: 1 / -1;
}

.map-section {
  width: min(1720px, calc(100vw - 32px));
  padding: 0 0 60px;
}

.research-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 24px;
  width: min(1720px, calc(100vw - 32px));
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  background: var(--paper);
  padding: 16px 18px;
}

.research-note h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
}

.research-note p:last-child {
  margin: 0;
  color: var(--muted);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(310px, 372px) minmax(0, 1fr);
  min-height: 740px;
  height: clamp(740px, 78vh, 940px);
  overflow: hidden;
  border: 1px solid rgba(16, 42, 67, 0.16);
  border-radius: 3px;
  background: var(--map-bg);
}

.panel {
  z-index: 5;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.panel-header {
  display: grid;
  gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.control-heading {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: bold;
  line-height: 1.14;
}

.reference-toggle {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.panel-layer-toggles {
  display: grid;
  gap: 8px;
}

.panel-layer-status {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 9px;
}

.metric {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  padding: 10px;
}

.metric strong {
  display: block;
  color: var(--navy);
  font-size: 1.06rem;
  line-height: 1.15;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.controls {
  display: grid;
  gap: 10px;
  padding: 10px 16px 14px;
  border-bottom: 1px solid var(--line);
}

.layer-module {
  gap: 11px;
  padding-top: 13px;
  padding-bottom: 15px;
}

.module-heading {
  display: grid;
  gap: 4px;
}

details.layer-module > summary.module-heading {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  outline: none;
}

details.layer-module > summary.module-heading::-webkit-details-marker {
  display: none;
}

details.layer-module > summary.module-heading::before {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--navy);
  content: "";
  transition: transform 0.14s ease;
}

details.layer-module[open] > summary.module-heading::before {
  transform: rotate(90deg);
}

details.layer-module > summary.module-heading:focus-visible {
  border-radius: 3px;
  box-shadow: 0 0 0 3px rgba(191, 13, 62, 0.14);
}

.module-kicker {
  margin: 0;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.38;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c5cdd1;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 10px;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--planned);
  box-shadow: 0 0 0 3px rgba(19, 143, 160, 0.16);
}

.toggle-row,
.pipeline-filter-grid,
.data-center-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.data-center-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.toggle {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 750;
}

.toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--planned);
}

.toggle:has(input:disabled) {
  color: var(--muted);
  opacity: 0.72;
}

.scope-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color-scheme: light;
}

.scope-toggle label {
  position: relative;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}

.scope-toggle span {
  color: inherit;
}

.scope-toggle label + label {
  border-left: 1px solid var(--line);
}

.scope-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scope-toggle label:has(input:checked) {
  background: var(--scope-active-bg);
  color: var(--scope-active-fg);
}

.scope-toggle label:has(input:focus-visible) {
  outline: 3px solid rgba(19, 143, 160, 0.22);
  outline-offset: -3px;
}

.summary-layer-toggle {
  min-height: 30px;
  margin-left: auto;
  padding: 5px 8px;
  color: var(--navy);
  font-size: 0.76rem;
  line-height: 1;
  cursor: pointer;
}

.summary-layer-toggle input {
  width: 15px;
  height: 15px;
}

.summary-toggle-state::before {
  content: "Off";
}

.summary-layer-toggle input:checked + .summary-toggle-state::before {
  content: "On";
}

.retired-toggle input {
  accent-color: var(--retired);
}

.gas-plant-toggle input {
  accent-color: var(--retired);
}

.pipeline-toggle input {
  accent-color: #1f5e72;
}

.parcel-toggle input {
  accent-color: #2f6b52;
}

.manufacturing-toggle input {
  accent-color: var(--manufacturing);
}

.data-center-toggle input,
.data-center-status-toggle.is-planned input {
  accent-color: var(--data-center-planned);
}

.data-center-status-toggle.is-operating input {
  accent-color: var(--data-center-operating);
}

.data-center-status-toggle.is-canceled input {
  accent-color: var(--data-center-canceled);
}

.county-toggle input {
  accent-color: #5f777c;
}

.control-heading {
  flex: 1 1 auto;
}

.parcel-module {
  border-bottom: 0;
}

.source-note {
  margin-top: auto;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.map-area {
  position: relative;
  min-height: 740px;
}

#map {
  position: absolute;
  inset: 0;
  background: var(--map-bg);
}

.leaflet-container {
  font: inherit;
}

.leaflet-popup-content-wrapper {
  border-radius: 3px;
}

.leaflet-popup-content {
  width: min(500px, calc(100vw - 72px)) !important;
  margin: 14px;
}

.popup-title {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 1rem;
}

.popup-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
}

.popup-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.popup-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.popup-row span:first-child {
  color: var(--muted);
  font-weight: 750;
}

.popup-row span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.popup-row a {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
}

.popup-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.38;
}

.parcel-popup .leaflet-popup-content {
  width: min(560px, calc(100vw - 72px)) !important;
  margin: 0;
}

.parcel-info-card {
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}

.parcel-card-header {
  border-bottom: 1px solid var(--line);
  background: #f6f4ef;
  box-shadow: inset 4px 0 0 var(--red);
  padding: 16px 18px 15px 20px;
}

.parcel-card-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.parcel-card-status {
  border-bottom: 1px solid var(--line);
  background: rgba(47, 107, 82, 0.08);
  color: var(--navy);
  padding: 10px 20px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.parcel-card-status.is-error {
  background: rgba(181, 82, 60, 0.1);
  color: var(--retired-dark);
}

.parcel-detail-list {
  display: grid;
  gap: 0;
  padding: 4px 20px 6px;
}

.parcel-card-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(112, 127, 132, 0.18);
}

.parcel-card-row:last-child {
  border-bottom: 0;
}

.parcel-card-row span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.parcel-card-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.parcel-card-row.is-value strong {
  color: var(--red);
  font-size: 0.92rem;
  font-weight: 900;
}

.parcel-card-row.is-owner strong {
  color: var(--navy);
}

.parcel-card-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.3;
}

.popup-row.is-coal span:last-child {
  color: var(--retired-dark);
  font-weight: 850;
}

.popup-row.is-coal-record span:last-child {
  color: #6d5b25;
  font-weight: 750;
}

.county-popup .leaflet-popup-content {
  width: auto !important;
  min-width: 138px;
  margin: 10px 12px;
}

.county-popup strong {
  display: block;
  font-size: 0.86rem;
}

.texas-outline {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.75));
}

.plant-marker {
  background: transparent;
  border: 0;
}

.data-center-marker {
  background: transparent;
  border: 0;
}

.data-center-diamond {
  display: block;
  width: var(--size);
  height: var(--size);
  border: 2px solid #ffffff;
  border-radius: 2px;
  background: var(--dc-color);
  box-shadow: 0 4px 10px rgba(17, 24, 28, 0.26);
  opacity: 0.88;
  transform: rotate(45deg);
}

.data-center-diamond.is-canceled {
  opacity: 0.7;
}

.map-dot {
  position: relative;
  display: block;
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--dot-color);
  box-shadow: 0 5px 14px rgba(17, 24, 28, 0.32);
}

.map-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px solid transparent;
}

.map-dot.is-both::after {
  border-color: var(--gold);
}

.map-dot.is-planned {
  z-index: 2;
}

.login-open {
  overflow: hidden;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.login-modal[hidden] {
  display: none;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 33, 39, 0.52);
}

.login-dialog {
  position: relative;
  width: min(430px, 100%);
  border: 1px solid #c8d0cd;
  border-top: 4px solid var(--red);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(10, 24, 34, 0.28);
  padding: 26px;
}

.login-dialog h2 {
  color: var(--navy);
  font-size: 1.58rem;
  line-height: 1.18;
}

.login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.login-close:hover,
.login-close:focus {
  border-color: var(--line);
  color: var(--navy);
  outline: none;
}

.login-context,
.login-support {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-form {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.login-field {
  display: grid;
  gap: 6px;
}

.login-field span,
.remember-me {
  color: var(--navy-2);
  font-size: 0.82rem;
  font-weight: 800;
}

.login-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bfc8c5;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

.login-field input:focus {
  border-color: var(--planned);
  box-shadow: 0 0 0 3px rgba(19, 143, 160, 0.16);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.remember-me input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--red);
}

.login-options a,
.login-support a {
  color: var(--red);
  font-weight: 800;
}

.login-submit {
  width: 100%;
  margin-top: 2px;
}

.login-status {
  border: 1px solid #e3b8ad;
  border-left: 4px solid var(--retired);
  background: #fff8f6;
  color: var(--retired-dark);
  padding: 10px 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.fallback-map {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #dbe6e2, #edf0eb);
}

.fallback-map svg {
  width: min(92vw, 980px);
  height: min(82vh, 720px);
}

.fallback-point {
  cursor: pointer;
  stroke: #ffffff;
  stroke-width: 1.8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #e6f4fb;
    --navy-2: #cfdee5;
    --ink: #edf7fb;
    --muted: #aebdc4;
    --line: #2f424b;
    --paper: #121a20;
    --canvas: #0c1115;
    --panel: #101820;
    --map-bg: #172126;
    --retired: #d06b55;
    --retired-dark: #f0b2a4;
    --planned: #38b8c7;
    --planned-dark: #81dce6;
    --data-center-planned: #6aa8e8;
    --data-center-operating: #37b592;
    --data-center-canceled: #a8b1ba;
    --manufacturing: #d7ae68;
    --manufacturing-dark: #f0d9a8;
    --teal: #53c8d6;
    --gold: #e7c25f;
    --scope-active-bg: #0d4c5c;
    --scope-active-fg: #ffffff;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.26);
    color-scheme: dark;
  }

  .utility-bar,
  .site-footer {
    background: #071d2e;
    color: rgba(237, 247, 251, 0.84);
  }

  .site-header {
    border-bottom-color: rgba(214, 226, 232, 0.14);
    background: rgba(12, 17, 21, 0.97);
  }

  .site-nav {
    color: #d7e5eb;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    color: #ffffff;
  }

  .home-hero p,
  .page-heading p,
  .intro-copy p:not(.eyebrow),
  .feature-card p,
  .membership-grid p,
  .policy-grid p,
  .resource-card p,
  .mission-grid p,
  .main-copy p,
  .side-panel p,
  .event-list dd,
  .research-note p:last-child,
  .metric span,
  .field span,
  .source-note,
  .popup-subtitle,
  .popup-row span:first-child,
  .login-context,
  .login-support {
    color: var(--muted);
  }

  .button.secondary {
    border-color: rgba(214, 226, 232, 0.36);
  }

  .button.secondary:hover {
    border-color: #d9ebf2;
  }

  .quick-links {
    border-color: var(--line);
  }

  .quick-links a {
    border-right-color: var(--line);
  }

  .quick-links a:hover {
    background: #17242b;
  }

  .hero-panel,
  .event-panel,
  .side-panel,
  .feature-card,
  .membership-grid article,
  .policy-grid article,
  .resource-card,
  .mission-grid article,
  .stack-list article,
  .research-note,
  .join-band,
  .metric,
  .toggle {
    border-color: var(--line);
    background: var(--paper);
  }

  .stack-list {
    background: var(--paper);
  }

  .feature-card[href]:hover {
    border-color: #516972;
  }

  .app-shell {
    border-color: rgba(214, 226, 232, 0.16);
  }

  .field input,
  .field select,
  .login-field input {
    border-color: #48606a;
  }

  .field input:focus,
  .field select:focus,
  .login-field input:focus {
    box-shadow: 0 0 0 3px rgba(56, 184, 199, 0.18);
  }

  .leaflet-popup-content-wrapper,
  .leaflet-popup-tip {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
  }

  .parcel-card-header {
    background: #18242b;
  }

  .parcel-card-header h3 {
    color: var(--ink);
  }

  .popup-row.is-coal-record span:last-child {
    color: #e7c25f;
  }

  .map-dot {
    border-color: #0c1115;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.46);
  }

  .data-center-diamond {
    border-color: #0c1115;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.42);
  }

  .login-backdrop {
    background: rgba(2, 8, 12, 0.68);
  }

  .login-dialog {
    border-color: #3b5059;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.48);
  }

  .login-close:hover,
  .login-close:focus {
    border-color: var(--line);
    color: #ffffff;
  }

  .login-status {
    border-color: rgba(208, 107, 85, 0.48);
    background: rgba(208, 107, 85, 0.12);
    color: #f0b2a4;
  }

  .fallback-map {
    background: linear-gradient(180deg, #172126, #101820);
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .home-hero,
  .membership-heading,
  .intro-grid,
  .content-grid,
  .news-events {
    grid-template-columns: 1fr;
  }

  .membership-heading {
    gap: 20px;
  }

  .membership-heading-mark {
    justify-content: flex-start;
  }

  .membership-heading-mark img {
    width: 260px;
  }

  .news-events .event-panel {
    margin-top: 0;
  }

  .feature-grid,
  .membership-grid,
  .policy-grid,
  .resource-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .app-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .panel {
    order: 2;
    overflow: visible;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }

  .map-area {
    order: 1;
  }

  .panel-header {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    align-items: start;
    padding: 12px;
  }

  .panel-header h2,
  .panel-layer-status {
    grid-column: 1 / -1;
  }

  .panel-layer-toggles {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .reference-toggle {
    width: 100%;
  }

  .metrics {
    grid-template-columns: repeat(4, minmax(128px, 1fr));
    overflow-x: auto;
    padding: 12px;
  }

  .controls {
    grid-template-columns: 1fr 1fr;
    padding: 10px 12px 12px;
  }

  .module-heading,
  .data-center-toggle,
  .data-center-status-grid,
  .scope-toggle,
  .pipeline-toggle,
  .pipeline-filter-grid,
  .parcel-toggle,
  .module-note {
    grid-column: 1 / -1;
  }

  .toggle-row {
    grid-column: 1 / -1;
  }

  .source-note {
    display: none;
  }

  .map-area {
    min-height: 620px;
  }

}

@media (max-width: 720px) {
  .utility-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 8px 16px;
  }

  .utility-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .site-header {
    padding: 10px 16px;
  }

  .brand img {
    width: 168px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .home-hero,
  .section,
  .page-heading,
  .map-section,
  .quick-links,
  .research-note,
  .join-band {
    width: min(1160px, calc(100vw - 28px));
  }

  .home-hero {
    gap: 28px;
    padding: 46px 0 44px;
  }

  .page-heading {
    padding: 42px 0 30px;
  }

  .section {
    padding: 46px 0;
  }

  .hero-copy {
    padding-top: 0;
  }

  .home-hero h1,
  .page-heading h1 {
    font-size: 2rem;
    overflow-wrap: anywhere;
  }

  .home-hero p,
  .page-heading p {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .eyebrow,
  .feature-card p,
  .membership-grid p,
  .policy-grid p,
  .resource-card p,
  .main-copy p,
  .side-panel p {
    overflow-wrap: anywhere;
  }

  .membership-heading-mark img {
    width: min(250px, 78vw);
  }

  .feature-grid,
  .membership-grid,
  .policy-grid,
  .resource-layout,
  .mission-grid,
  .quick-links,
  .research-note,
  .join-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .quick-links {
    border-bottom: 0;
  }

  .quick-links a {
    border-bottom: 1px solid var(--line);
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .controls,
  .pipeline-filter-grid,
  .data-center-status-grid,
  .toggle-row {
    grid-template-columns: 1fr;
  }

  .panel-header {
    grid-template-columns: 1fr;
  }

  .panel-layer-toggles {
    grid-template-columns: 1fr;
  }

  .reference-toggle {
    justify-self: stretch;
  }

  .map-area {
    min-height: 540px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .leaflet-popup-content {
    width: min(360px, calc(100vw - 54px)) !important;
  }

  .popup-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .parcel-card-header,
  .parcel-card-status,
  .parcel-detail-list {
    padding-left: 14px;
    padding-right: 14px;
  }

  .parcel-card-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }

}
