:root {
  --ink: #071535;
  --muted: #526079;
  --line: #d9e4ef;
  --paper: #f5f8fc;
  --panel: #ffffff;
  --accent: #12cbb8;
  --accent-strong: #079ad8;
  --navy: #071f5c;
  --deep: #05102c;
  --success: #17b26a;
  --amber: #f0a31a;
  --danger: #d04437;
  --warm: #18d7ce;
  --soft: #e8fbfa;
  --shell-wide: min(94vw, 1680px);
  --shell-content: min(94vw, 1540px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(18, 203, 184, 0.14), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(7, 154, 216, 0.12), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 44%, #f6f9fd 100%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(7, 31, 92, 0.06);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 64px;
  padding: 0 5vw;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 5;
}

.brand {
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo img {
  display: block;
  height: 42px;
  width: auto;
}

nav {
  align-items: center;
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

nav a,
.link-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: none;
}

nav a:hover,
.link-button:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  min-height: clamp(450px, 56vh, 610px);
  overflow: hidden;
  position: relative;
}

.hero-media {
  background:
    linear-gradient(110deg, rgba(5, 16, 44, 0.98) 0%, rgba(7, 31, 92, 0.96) 42%, rgba(10, 31, 89, 0.82) 64%, rgba(18, 203, 184, 0.16) 100%),
    repeating-linear-gradient(116deg, transparent 0 46px, rgba(18, 203, 184, 0.08) 47px 49px),
    linear-gradient(180deg, #071f5c 0%, #05102c 100%);
  animation: heroDrift 14s ease-in-out infinite alternate;
  background-position: center;
  background-size: 120% 120%, auto, auto;
  inset: 0;
  position: absolute;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
}

.hero-media::before {
  background:
    linear-gradient(100deg, transparent 0 18%, rgba(18, 203, 184, 0.26) 18.5% 19%, transparent 19.5% 100%),
    linear-gradient(100deg, transparent 0 38%, rgba(255, 255, 255, 0.18) 38.5% 38.8%, transparent 39.2% 100%),
    linear-gradient(100deg, transparent 0 60%, rgba(7, 154, 216, 0.32) 60.4% 60.9%, transparent 61.4% 100%);
  inset: 0;
  opacity: 0.8;
}

.hero-media::after {
  background: linear-gradient(90deg, rgba(18, 203, 184, 0.92), rgba(7, 154, 216, 0.25), transparent);
  bottom: 28%;
  height: 1px;
  left: 5vw;
  right: 38vw;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(18, 203, 184, 0), rgba(18, 203, 184, 0.46), rgba(7, 154, 216, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-content {
  animation: fadeLift 700ms ease both;
  align-self: center;
  color: #fff;
  justify-self: start;
  max-width: 1040px;
  padding: clamp(44px, 7vh, 78px) clamp(48px, 6vw, 112px);
  position: relative;
  width: min(960px, 62vw);
  z-index: 1;
}

.eyebrow {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.25rem, 5.05vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
  margin: 0;
  max-width: 16ch;
}

.hero-content p:not(.eyebrow) {
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.7;
  margin: 20px 0 28px;
  max-width: 64ch;
}

.button,
.secondary-button,
.ghost-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
}

.button {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 26px rgba(7, 154, 216, 0.22);
  color: var(--deep);
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(7, 154, 216, 0.28);
  transform: translateY(-1px);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.56);
  color: #fff;
}

.secondary-button {
  background: var(--soft);
  color: var(--navy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-product {
  bottom: 4px;
  display: grid;
  pointer-events: none;
  position: absolute;
  right: clamp(14px, 3.4vw, 62px);
  top: 34px;
  width: min(40vw, 590px);
  z-index: 1;
}

.product-stage {
  align-self: center;
  aspect-ratio: 1 / 1;
  display: grid;
  isolation: isolate;
  place-items: center;
  position: relative;
}

.product-stage::before {
  background:
    linear-gradient(135deg, rgba(18, 203, 184, 0.34), rgba(7, 154, 216, 0.04)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.08) 19px 20px);
  border: 1px solid rgba(18, 203, 184, 0.26);
  border-radius: 8px;
  content: "";
  height: 72%;
  position: absolute;
  right: 6%;
  top: 14%;
  transform: skewX(-10deg);
  width: 58%;
}

.charger {
  display: block;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.36));
  position: absolute;
}

.charger-main {
  max-height: 82%;
  max-width: 72%;
  right: 18%;
  top: 6%;
  z-index: 2;
}

.charger-secondary {
  max-height: 42%;
  max-width: 42%;
  bottom: 11%;
  left: 5%;
  opacity: 0.9;
  z-index: 1;
}

.charge-line {
  background: linear-gradient(90deg, transparent, rgba(18, 203, 184, 0.9), transparent);
  height: 2px;
  position: absolute;
  transform: rotate(-18deg);
  z-index: 0;
}

.line-one {
  left: 3%;
  right: 8%;
  top: 34%;
}

.line-two {
  left: 18%;
  right: 0;
  top: 68%;
}

.stats-band {
  background: var(--deep);
  border: 1px solid rgba(18, 203, 184, 0.15);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(5, 16, 44, 0.24);
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -34px auto 0;
  width: var(--shell-content);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  padding: 26px clamp(28px, 4vw, 76px);
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  color: var(--warm);
  font-size: 1.25rem;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.stat span {
  color: #b8c7df;
}

.stat-eligible strong {
  color: var(--success);
}

.stat-review strong {
  color: var(--amber);
}

.stat-blocked strong {
  color: var(--danger);
}

.map-band {
  align-items: stretch;
  display: grid;
  gap: clamp(24px, 3vw, 48px);
  grid-template-columns: minmax(250px, 0.5fr) minmax(0, 1.25fr) minmax(270px, 0.55fr);
  margin: 28px auto 0;
  width: var(--shell-wide);
}

.map-copy {
  align-self: center;
}

.map-copy h2 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.map-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
  margin: 14px 0 18px;
  max-width: 34ch;
}

.map-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-summary span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 8px 11px;
  text-transform: uppercase;
}

.program-map {
  background: #d9e6ec;
  border: 1px solid rgba(18, 203, 184, 0.3);
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(7, 31, 92, 0.18);
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.map-canvas {
  height: 100%;
  min-height: 560px;
  position: relative;
}

.program-map .leaflet-container {
  background: #d9e6ec;
  font-family: inherit;
  z-index: 1;
}

.program-map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.program-map .leaflet-control-zoom a {
  background: #fff;
  border-color: rgba(5, 16, 44, 0.12);
  color: var(--navy);
  font-weight: 950;
}

.program-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.68rem;
}

.program-map .leaflet-control-attribution a {
  color: var(--accent);
}

.map-count-marker {
  align-items: center;
  background: rgba(18, 203, 184, 0.18);
  border: 1px solid rgba(18, 203, 184, 0.42);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.map-count-marker span {
  align-items: center;
  background: linear-gradient(135deg, #13c6ff, #079ad8);
  border-radius: 999px;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.22), 0 18px 28px rgba(0, 0, 0, 0.34);
  color: #fff;
  display: grid;
  font-size: 0.76rem;
  font-weight: 950;
  height: calc(100% - 10px);
  place-items: center;
  width: calc(100% - 10px);
}

.map-count-marker.is-active span {
  box-shadow: 0 0 0 6px rgba(18, 203, 184, 0.2), 0 8px 0 rgba(0, 0, 0, 0.2), 0 18px 34px rgba(0, 0, 0, 0.38);
  outline: 3px solid rgba(255, 255, 255, 0.88);
}

.map-count-marker.is-review span {
  background: linear-gradient(135deg, #12cbb8, #079ad8);
}

.map-count-marker.is-blocked span {
  background: linear-gradient(135deg, #f05a73, #c7234c);
}

.map-count-marker.is-active span {
  background: linear-gradient(135deg, #12cbb8, #08a0e7);
}

.rebate-map-tooltip {
  background: rgba(5, 16, 44, 0.94);
  border: 1px solid rgba(18, 203, 184, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 8px 10px;
}

.map-empty {
  background: rgba(5, 16, 44, 0.86);
  border: 1px solid rgba(18, 203, 184, 0.28);
  border-radius: 8px;
  color: #fff;
  font-weight: 850;
  inset: 50% auto auto 50%;
  margin: 0;
  padding: 12px 14px;
  position: absolute;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 500;
}

.map-library-missing {
  display: grid;
  place-items: center;
}

.map-library-missing p {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 900;
  margin: 0;
  padding: 16px;
}

.map-location-panel {
  align-self: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 255, 0.98));
  border: 1px solid rgba(155, 184, 211, 0.62);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(7, 31, 92, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
}

.map-location-panel h3 {
  color: var(--navy);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.map-location-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.map-location-counts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.map-location-counts span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  font-size: 0.75rem;
  font-weight: 850;
  gap: 4px;
  padding: 12px;
  text-transform: uppercase;
}

.map-location-counts strong {
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
}

.map-location-list {
  display: grid;
  gap: 10px;
}

.map-location-list a,
.recent-list a {
  background: #fff;
  border: 1px solid rgba(155, 184, 211, 0.55);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 5px;
  padding: 12px;
  text-decoration: none;
}

.map-location-list strong,
.recent-list strong {
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.25;
}

.map-location-list span,
.recent-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.content-band {
  padding: 64px 3vw 80px;
}

.section-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  width: var(--shell-wide);
}

.section-card {
  background: var(--panel);
  border: 1px solid rgba(217, 228, 239, 0.9);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(7, 31, 92, 0.055);
  display: flex;
  flex-direction: column;
  gap: 13px;
  isolation: isolate;
  min-height: 430px;
  overflow: hidden;
  padding: 20px;
  position: relative;
  transform: translateY(0);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  animation: cardIn 520ms ease both;
  animation-delay: calc(var(--card-index, 0) * 45ms);
}

.section-card::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.section-card.is-eligible::before {
  background: linear-gradient(90deg, var(--success), var(--accent));
}

.section-card.is-review::before {
  background: linear-gradient(90deg, var(--amber), var(--accent));
}

.section-card.is-blocked::before {
  background: linear-gradient(90deg, var(--danger), var(--amber));
}

.section-card[data-detail-url] {
  cursor: pointer;
}

.section-card[data-detail-url]:hover,
.section-card[data-detail-url]:focus {
  border-color: rgba(18, 203, 184, 0.62);
  box-shadow: 0 20px 46px rgba(7, 31, 92, 0.13);
  outline: 0;
  transform: translateY(-5px);
}

.section-card h3 {
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 0;
  text-transform: uppercase;
}

.section-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

.card-topline {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 28px;
}

.card-kicker {
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-chip {
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 900;
  max-width: 140px;
  overflow: hidden;
  padding: 5px 9px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-card.is-eligible .status-chip {
  background: rgba(23, 178, 106, 0.1);
  border-color: rgba(23, 178, 106, 0.28);
  color: #087443;
}

.section-card.is-review .status-chip {
  background: rgba(240, 163, 26, 0.12);
  border-color: rgba(240, 163, 26, 0.32);
  color: #8a5600;
}

.section-card.is-blocked .status-chip {
  background: rgba(208, 68, 55, 0.1);
  border-color: rgba(208, 68, 55, 0.28);
  color: #9d271f;
}

.incentive-strip {
  align-items: flex-start;
  background: #f7fbfd;
  border: 1px solid rgba(120, 154, 186, 0.26);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  min-height: 0;
  padding: 14px 15px;
  position: relative;
}

.incentive-strip::before {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  bottom: 14px;
  content: "";
  left: 0;
  position: absolute;
  top: 14px;
  width: 3px;
}

.incentive-strip span {
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.incentive-strip strong {
  color: var(--navy);
  display: block;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

.rebate-meta {
  border-block: 1px solid var(--line);
  display: grid;
  gap: 7px 12px;
  grid-template-columns: minmax(74px, max-content) 1fr;
  margin: 0;
  padding: 12px 0;
}

.rebate-meta dt {
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rebate-meta dd {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.text-link {
  color: var(--accent-strong);
  display: inline-flex;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--navy);
}

.card-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.back-link {
  color: var(--accent-strong);
  display: inline-flex;
  font-weight: 900;
  margin-bottom: 24px;
  text-decoration: none;
}

.detail-shell {
  margin: 0 auto;
  padding: 44px 0 80px;
  width: var(--shell-content);
}

.detail-hero {
  background:
    linear-gradient(115deg, rgba(5, 16, 44, 0.98), rgba(7, 31, 92, 0.94) 68%, rgba(7, 154, 216, 0.22)),
    repeating-linear-gradient(116deg, transparent 0 42px, rgba(18, 203, 184, 0.07) 43px 45px),
    var(--deep);
  border: 1px solid rgba(18, 203, 184, 0.38);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  overflow: hidden;
  padding: clamp(30px, 4.2vw, 60px);
  position: relative;
}

.detail-hero::after {
  background: linear-gradient(90deg, rgba(18, 203, 184, 0.84), rgba(7, 154, 216, 0.12), transparent);
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.detail-hero-copy,
.detail-hero-panel {
  position: relative;
  z-index: 1;
}

.detail-hero h1 {
  font-size: clamp(2.25rem, 4.2vw, 4.35rem);
  line-height: 1.02;
  max-width: 22ch;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.detail-hero p:not(.eyebrow) {
  color: #c9d7eb;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 82ch;
}

.detail-hero-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.detail-hero-panel div {
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.detail-hero-panel span,
.detail-hero-panel strong {
  display: block;
}

.detail-hero-panel span {
  color: var(--warm);
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.detail-hero-panel strong {
  color: #fff;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.detail-grid {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.72fr);
  margin-top: 24px;
}

.detail-side,
.detail-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(7, 31, 92, 0.055);
  padding: 24px;
}

.detail-side {
  position: sticky;
  top: 84px;
}

.detail-meta {
  border-block: 0;
  gap: 10px 14px;
  grid-template-columns: minmax(92px, max-content) 1fr;
  padding: 0;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-block:first-child,
.detail-links-block {
  grid-column: 1 / -1;
}

.detail-highlight-block {
  background: linear-gradient(135deg, rgba(232, 251, 250, 0.98), #fff);
  border-color: rgba(18, 203, 184, 0.35);
}

.detail-links-block div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-block h2 {
  color: var(--navy);
  font-size: 1.1rem;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.detail-block p,
.detail-block li {
  color: var(--muted);
  line-height: 1.75;
}

.detail-block p {
  margin: 0;
}

.detail-block p + p {
  margin-top: 14px;
}

.detail-block ul,
.detail-block ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 1.2rem;
}

.detail-block li::marker {
  color: var(--accent-strong);
  font-weight: 900;
}

.kb-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 18px;
  width: var(--shell-wide);
}

.kb-heading h2,
.section-editor-head h2 {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
  margin: 0;
}

.search-box {
  min-width: min(420px, 100%);
}

.selector-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(7, 31, 92, 0.08);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 0.9fr) minmax(260px, 1.4fr);
  margin: 0 auto 18px;
  width: var(--shell-wide);
  padding: 18px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 24px;
  width: var(--shell-wide);
}

.filter-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 38px;
  padding: 0 15px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.filter-pill:hover {
  border-color: rgba(7, 154, 216, 0.45);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.status-filter-row {
  align-items: center;
  background: var(--deep);
  border: 1px solid rgba(18, 203, 184, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(7, 31, 92, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px auto 24px;
  width: var(--shell-wide);
  padding: 10px;
}

.status-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #c8d5e8;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  gap: 10px;
  min-height: 40px;
  padding: 0 8px 0 15px;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease, background 150ms ease;
}

.status-pill:hover {
  border-color: rgba(18, 203, 184, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.status-pill strong {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #fff;
  display: inline-grid;
  min-width: 30px;
  padding: 4px 8px;
  place-items: center;
}

.status-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--deep);
}

.status-pill.active strong {
  background: rgba(5, 16, 44, 0.14);
  color: var(--deep);
}

.status-pill.is-eligible.active {
  background: var(--success);
  border-color: var(--success);
}

.status-pill.is-review.active {
  background: var(--amber);
  border-color: var(--amber);
}

.status-pill.is-blocked.active {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.status-pill.is-blocked.active strong {
  color: #fff;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.045);
  }
}

.result-heading {
  margin: 0 auto 16px;
  width: var(--shell-wide);
}

.result-heading h3 {
  color: var(--navy);
  font-size: 1.4rem;
  margin: 0;
  text-transform: uppercase;
}

.contractor-portal {
  align-items: center;
  background: var(--deep);
  border: 1px solid rgba(18, 203, 184, 0.4);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto 18px;
  width: var(--shell-wide);
  padding: 22px;
}

.contractor-portal[hidden] {
  display: none;
}

.contractor-portal h3 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.contractor-portal p:not(.eyebrow) {
  color: #b8c7df;
  line-height: 1.6;
  margin: 0;
}

.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 28px 5vw;
}

.admin-body {
  background:
    linear-gradient(116deg, rgba(18, 203, 184, 0.08) 0 1px, transparent 1px 68px),
    linear-gradient(180deg, rgba(235, 248, 246, 0.92) 0%, rgba(247, 251, 255, 0.96) 38%, rgba(238, 245, 252, 0.98) 100%),
    var(--paper);
  min-height: 100vh;
}

.admin-shell {
  margin: 0 auto;
  padding: clamp(30px, 4vw, 56px) 0 96px;
  width: var(--shell-content);
}

.login-panel,
.editor {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(155, 184, 211, 0.52);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(7, 31, 92, 0.12);
  overflow: hidden;
  position: relative;
}

.login-panel::before,
.editor::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong), var(--navy));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  margin: clamp(46px, 8vh, 86px) auto 0;
  max-width: 1120px;
  min-height: 560px;
  padding: 0;
}

.editor {
  padding: clamp(18px, 2.2vw, 34px);
}

.editor h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  max-width: 14ch;
}

.login-brand-panel {
  background:
    linear-gradient(116deg, transparent 0 52px, rgba(18, 203, 184, 0.08) 53px 55px, transparent 56px 112px),
    linear-gradient(135deg, #05102c 0%, #071f5c 66%, #07345f 100%);
  color: #fff;
  display: grid;
  gap: 28px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 58px);
  position: relative;
}

.login-brand-panel::before {
  background: linear-gradient(90deg, rgba(18, 203, 184, 0.95), rgba(7, 154, 216, 0.2), transparent);
  bottom: 260px;
  content: "";
  height: 1px;
  left: clamp(34px, 5vw, 58px);
  position: absolute;
  right: 20%;
}

.login-brand-panel h1 {
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.93;
  max-width: 10ch;
}

.login-lead {
  color: #d7e4f3;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7;
  margin: 18px 0 0;
  max-width: 52ch;
}

.login-form-panel {
  align-content: center;
  display: grid;
  padding: clamp(30px, 4vw, 48px);
}

.login-form-panel .eyebrow {
  color: var(--accent-strong);
}

.login-form-panel h2 {
  color: var(--navy);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 0.95;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.login-form-panel form,
.editor form {
  display: grid;
  gap: 20px;
}

.login-form-panel .button {
  width: 100%;
}

.login-graphic {
  align-self: end;
  background:
    linear-gradient(116deg, transparent 0 42px, rgba(18, 203, 184, 0.13) 43px 45px, transparent 46px 88px),
    linear-gradient(135deg, rgba(18, 203, 184, 0.12), rgba(7, 154, 216, 0.1));
  border: 1px solid rgba(18, 203, 184, 0.24);
  border-radius: 8px;
  height: 220px;
  max-width: 520px;
  overflow: hidden;
  position: relative;
}

.login-route {
  background: linear-gradient(90deg, rgba(18, 203, 184, 0.05), rgba(18, 203, 184, 0.75), rgba(7, 154, 216, 0.18));
  border-radius: 999px;
  display: block;
  height: 3px;
  position: absolute;
  transform-origin: left center;
}

.route-a {
  left: 42px;
  top: 72px;
  transform: rotate(18deg);
  width: 360px;
}

.route-b {
  left: 76px;
  top: 150px;
  transform: rotate(-12deg);
  width: 300px;
}

.login-pin {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  color: var(--deep);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  position: absolute;
  width: 52px;
}

.pin-a {
  left: 44px;
  top: 48px;
}

.pin-b {
  left: 220px;
  top: 124px;
}

.pin-c {
  right: 48px;
  top: 70px;
}

.login-energy-ring {
  border: 12px solid rgba(18, 203, 184, 0.24);
  border-right-color: rgba(7, 154, 216, 0.86);
  border-top-color: rgba(18, 203, 184, 0.86);
  border-radius: 999px;
  bottom: -72px;
  height: 190px;
  position: absolute;
  right: -48px;
  width: 190px;
}

.editor-heading {
  align-items: stretch;
  background:
    linear-gradient(116deg, transparent 0 52px, rgba(18, 203, 184, 0.08) 53px 55px, transparent 56px 112px),
    linear-gradient(135deg, #05102c 0%, #071f5c 68%, #07345f 100%);
  border: 1px solid rgba(18, 203, 184, 0.2);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(5, 16, 44, 0.22);
  color: #fff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 0 0 18px;
  overflow: hidden;
  padding: clamp(26px, 3.2vw, 46px);
  position: relative;
}

.editor-heading::after {
  background: linear-gradient(90deg, rgba(18, 203, 184, 0.95), rgba(7, 154, 216, 0.24), transparent);
  bottom: 30px;
  content: "";
  height: 1px;
  left: clamp(26px, 3.2vw, 46px);
  position: absolute;
  right: 28%;
}

.editor-heading-copy,
.editor-heading-side {
  position: relative;
  z-index: 1;
}

.editor-heading h1 {
  color: #fff;
  line-height: 0.95;
}

.editor-heading-copy p:not(.eyebrow) {
  color: #d7e4f3;
  line-height: 1.65;
  margin: 18px 0 0;
  max-width: 64ch;
}

.editor-heading-side {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 180px;
}

.admin-live-badge {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #e8fbfa;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 9px 12px;
  text-transform: uppercase;
}

.admin-overview-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 22px;
}

.admin-overview-card {
  background: #fff;
  border: 1px solid rgba(155, 184, 211, 0.52);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(7, 31, 92, 0.07);
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 20px;
}

.admin-overview-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-overview-card strong {
  color: var(--navy);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 0.9;
}

.admin-overview-card.is-good strong {
  color: var(--success);
}

.admin-overview-card.is-review strong {
  color: var(--amber);
}

.admin-dashboard-panels {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin: 0 0 22px;
}

.admin-mini-panel,
.import-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(155, 184, 211, 0.54);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(7, 31, 92, 0.07);
  padding: 22px;
}

.admin-mini-panel h2 {
  color: var(--navy);
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.approval-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.approval-metrics span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 5px;
  padding: 13px;
  text-transform: uppercase;
}

.approval-metrics strong {
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1;
}

.recent-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.recent-list p {
  color: var(--muted);
  margin: 0;
}

.editor-actions,
.save-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.settings-panel,
.import-panel,
.location-workflow,
.section-editor-head {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(155, 184, 211, 0.54);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(7, 31, 92, 0.07);
}

.settings-panel {
  overflow: hidden;
}

.card-details-panel {
  background: linear-gradient(180deg, #f7fbff, #ffffff);
  border: 1px solid rgba(155, 184, 211, 0.6);
  border-radius: 8px;
  overflow: hidden;
}

.card-details-panel summary {
  align-items: center;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  list-style: none;
  padding: 16px 18px;
  text-transform: uppercase;
}

.card-details-panel summary::-webkit-details-marker {
  display: none;
}

.card-details-panel summary::after {
  color: var(--accent-strong);
  content: "+";
  font-size: 1.25rem;
}

.card-details-panel[open] summary::after {
  content: "-";
}

.card-details-panel small {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: none;
}

.card-details-fields {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.settings-panel summary {
  align-items: center;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  font-weight: 900;
  gap: 14px;
  justify-content: space-between;
  list-style: none;
  padding: 20px 22px;
  text-transform: uppercase;
}

.settings-panel summary::-webkit-details-marker {
  display: none;
}

.settings-panel summary::after {
  color: var(--accent-strong);
  content: "+";
  font-size: 1.4rem;
}

.settings-panel[open] summary::after {
  content: "-";
}

.settings-panel small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
}

.settings-fields {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  padding: 22px;
}

.import-panel {
  display: grid;
  gap: 20px;
}

.import-grid {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.file-input-label {
  grid-column: span 3;
}

input[type="file"] {
  cursor: pointer;
  padding: 10px;
}

.location-workflow {
  background:
    linear-gradient(135deg, rgba(232, 251, 250, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
  border-color: rgba(18, 203, 184, 0.34);
  display: grid;
  gap: 20px;
  padding: clamp(20px, 2.6vw, 30px);
}

.section-editor-head {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px;
}

.workflow-copy {
  align-items: center;
  display: flex;
  gap: 16px;
}

.workflow-copy.compact {
  align-items: flex-start;
}

.workflow-copy h2 {
  color: var(--navy);
  font-size: clamp(1.45rem, 2.3vw, 2.45rem);
  line-height: 0.98;
  margin: 0;
  text-transform: uppercase;
}

.step-badge {
  align-items: center;
  background: linear-gradient(135deg, var(--navy), #0a327a);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(7, 31, 92, 0.22);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 42px;
  min-width: 42px;
  justify-content: center;
  padding: 0 13px;
}

.quick-add-grid {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr 1fr auto;
}

.admin-help {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}

form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid #cbd8e4;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(18, 203, 184, 0.14);
  outline: 0;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-strong) 50%),
    linear-gradient(135deg, var(--accent-strong) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 42px;
}

#sectionEditor {
  display: grid;
  gap: 18px;
}

.section-edit-card {
  background: #fff;
  border: 1px solid rgba(155, 184, 211, 0.62);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(7, 31, 92, 0.08);
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2vw, 26px);
  position: relative;
}

.section-edit-card::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 8px 8px 0 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.section-edit-card:first-child {
  border-color: rgba(18, 203, 184, 0.58);
  box-shadow: 0 18px 48px rgba(7, 31, 92, 0.12);
}

.edit-card-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.edit-card-toolbar > span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.publication-badge {
  background: var(--soft);
  border: 1px solid rgba(18, 203, 184, 0.35);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 950;
  padding: 8px 11px;
  text-transform: uppercase;
}

.section-edit-card.publish-draft::before {
  background: linear-gradient(90deg, #8a96aa, #c8d2df);
}

.section-edit-card.publish-needs-review::before {
  background: linear-gradient(90deg, var(--amber), var(--accent));
}

.section-edit-card.publish-published::before {
  background: linear-gradient(90deg, var(--success), var(--accent));
}

.section-edit-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.danger-button {
  background: #fff1ee;
  border: 1px solid #f0c7bd;
  border-radius: 8px;
  color: #9b341f;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 46px;
  padding: 0 16px;
}

.admin-empty-state {
  background: #fff;
  border: 1px dashed rgba(7, 154, 216, 0.45);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(7, 31, 92, 0.06);
  padding: 34px;
  text-align: center;
}

.admin-empty-state h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.admin-empty-state p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 560px;
}

.status {
  color: var(--muted);
  margin: 0;
  min-height: 1.4em;
}

.status a {
  color: var(--accent-strong);
  font-weight: 900;
}

.save-footer {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(155, 184, 211, 0.64);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 18px 44px rgba(7, 31, 92, 0.14);
  justify-content: space-between;
  padding: 16px;
  position: sticky;
  z-index: 4;
}

@media (max-width: 1040px) {
  .admin-overview-strip,
  .admin-dashboard-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-band {
    grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
  }

  .map-location-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1240px) {
  .section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-panel {
    grid-template-columns: 1fr;
    max-width: 680px;
    min-height: 0;
  }

  .login-brand-panel {
    min-height: 430px;
  }

  .section-card {
    min-height: 390px;
  }

  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

.storage-banner {
  align-items: center;
  background: var(--navy);
  bottom: 0;
  color: #fff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  left: 0;
  padding: 14px 24px;
  position: fixed;
  right: 0;
  z-index: 999;
}

.storage-banner p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}

.storage-banner button {
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 18px;
  white-space: nowrap;
}

.storage-banner button:hover {
  background: var(--accent-strong);
}

@media (max-width: 640px) {
  .storage-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 780px) {
  .section-grid,
  .detail-grid,
  .form-grid,
  .stats-band,
  .selector-panel,
  .admin-overview-strip,
  .admin-dashboard-panels,
  .approval-metrics,
  .import-grid,
  .quick-add-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    width: auto;
    padding-right: 5vw;
    padding-bottom: 88px;
  }

  .hero-product {
    bottom: 4px;
    opacity: 0.28;
    right: -80px;
    top: auto;
    width: 360px;
  }

  .detail-shell {
    padding-top: 28px;
  }

  .detail-hero {
    padding: 26px;
  }

  .detail-side {
    position: static;
  }

  .stats-band {
    margin: -22px 4vw 0;
  }

  .map-band {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .program-map {
    min-height: 300px;
  }

  .map-canvas {
    min-height: 300px;
  }

  .file-input-label {
    grid-column: auto;
  }

  .login-brand-panel,
  .login-form-panel {
    padding: 28px;
  }

  .login-brand-panel h1 {
    font-size: clamp(2.35rem, 12vw, 4.2rem);
  }

  .login-graphic {
    height: 190px;
  }

  .login-brand-panel::before {
    bottom: 230px;
  }

  .editor-heading,
  .section-editor-head,
  .editor-actions,
  .editor-heading-side,
  .save-footer,
  .contractor-portal,
  .kb-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    padding: 0 20px;
  }
}

@media (max-width: 560px) {
  .login-brand-panel {
    min-height: 360px;
  }

  .login-graphic {
    height: 150px;
  }

  .login-brand-panel::before {
    bottom: 188px;
  }

  .pin-b {
    left: 150px;
  }

  .pin-c {
    right: 22px;
  }

  .section-card {
    min-height: 0;
  }

  .card-topline,
  .incentive-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .incentive-strip strong {
    text-align: left;
  }

  .rebate-meta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
