.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.ercot-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 4rem));
  display: grid;
  align-items: start;
  overflow: hidden;
  background: #071119;
}

.ercot-hero-image,
.ercot-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ercot-hero-image {
  object-fit: cover;
  object-position: 68% center;
  opacity: 0.72;
}

.ercot-hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 10, 15, 0.97), rgba(4, 10, 15, 0.84) 36%, rgba(4, 10, 15, 0.42) 72%),
    linear-gradient(0deg, rgba(4, 10, 15, 0.86), rgba(4, 10, 15, 0.12) 52%);
}

.ercot-hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 6vw, 4.25rem) clamp(6rem, 11vw, 9rem);
}

.ercot-hero h1 {
  max-width: 12ch;
  margin: 0.8rem 0 1.2rem;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
}

.ercot-hero p:not(.eyebrow) {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.ercot-section,
.ercot-cta-section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ercot-section-subtle {
  background: rgba(255, 255, 255, 0.018);
}

.ercot-summary-layout,
.buyer-section-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.ercot-copy-block h2,
.ercot-section-heading h2,
.buyer-section-layout h2,
.ercot-cta-content h2 {
  max-width: 15ch;
  margin: 1.6rem 0 1rem;
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  line-height: 1.02;
}

.ercot-section-heading h2,
.buyer-section-layout h2 {
  max-width: 40ch;
}

.buyer-section-layout h2 {
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.04;
}

.ercot-title-line {
  display: block;
}

.ercot-copy-block p:not(.eyebrow),
.buyer-section-layout p,
.ercot-section-heading p:not(.eyebrow),
.ercot-cta-content p:not(.eyebrow) {
  max-width: 46rem;
  color: var(--muted);
  line-height: 1.75;
}

.ercot-summary-layout .ercot-copy-block p:not(.eyebrow) {
  max-width: 58rem;
  margin: 0;
}

.ercot-summary-layout .ercot-copy-block h2 {
  margin-bottom: 1.625rem;
}

.ercot-summary-layout .ercot-copy-block p:not(.eyebrow) + p:not(.eyebrow) {
  margin-top: 1.25rem;
}

.watch-card,
.analytics-anchor,
.buyer-question-list article,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow-soft);
}

.analytics-anchor,
.buyer-question-list article {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.watch-card h3,
.analytics-anchor h3,
.buyer-question-list h3 {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.watch-grid,
.analytics-anchor-grid {
  display: grid;
  gap: 1rem;
}

.watch-grid,
.analytics-anchor-grid {
  margin-top: 2.25rem;
}

.watch-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.85rem;
  height: 100%;
  min-height: 14.5rem;
  padding: 1.35rem 1rem;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.watch-card svg,
.buyer-question-list svg {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.watch-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
}

.watch-card p,
.analytics-anchor p,
.buyer-question-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.watch-card:hover,
.analytics-anchor:hover,
.analytics-anchor:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(154, 223, 217, 0.5);
  background: rgba(154, 223, 217, 0.04);
  box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, 0.18);
}

.watch-card:focus-visible,
.analytics-anchor:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.watch-card:hover svg {
  transform: translateX(2px);
  color: #d7fff9;
}

.watch-card-cta {
  align-self: end;
  margin-top: 0.35rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.watch-card-cta span {
  display: inline-block;
  transition: transform 180ms ease;
}

.watch-card:hover .watch-card-cta span,
.watch-card:focus-visible .watch-card-cta span {
  transform: translateX(3px);
}

.analytics-anchor {
  display: grid;
  align-content: start;
  min-height: 9rem;
  scroll-margin-top: 6rem;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.buyer-section-layout {
  gap: 2.25rem;
}

.buyer-image-panel {
  margin: 1rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #081219;
}

.buyer-image-panel img {
  display: block;
  width: 100%;
  max-height: 31rem;
  object-fit: cover;
  object-position: center center;
}

.buyer-image-panel figcaption {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--subtle);
  font-size: 0.82rem;
  padding: 0.75rem 1rem;
}

.buyer-question-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.buyer-question-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 1rem;
  border-left: 2px solid rgba(154, 223, 217, 0.24);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.buyer-question-list article:hover,
.buyer-question-list article:focus-within {
  transform: translateY(-4px);
  border-left-color: var(--accent);
  background: rgba(154, 223, 217, 0.045);
  box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, 0.2);
  outline: 2px solid transparent;
}

.buyer-question-list article:hover svg,
.buyer-question-list article:focus-within svg {
  color: #d7fff9;
}

.buyer-question-list svg {
  grid-row: span 2;
}

.market-disclaimer,
.footer-market-disclaimer {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.market-disclaimer {
  margin-top: 1.5rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.faq-item {
  overflow: hidden;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.faq-item:focus-within {
  border-color: rgba(154, 223, 217, 0.5);
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font: inherit;
  font-weight: 700;
  padding: 1.15rem 1.2rem;
  text-align: left;
}

.faq-item button::after {
  content: "+";
  color: var(--accent);
  font-size: 1.35rem;
}

.faq-item button[aria-expanded="true"]::after {
  content: "-";
}

.faq-item button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.faq-item div {
  padding: 0 1.2rem 1.2rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ercot-cta-section {
  position: relative;
  overflow: hidden;
  background: #071119;
}

.ercot-cta-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 19, 0.96), rgba(5, 13, 19, 0.78)),
    url("../../assets/images/markets/ercot/ercot-transmission-01.webp") center / cover;
  opacity: 0.9;
}

.ercot-cta-content {
  position: relative;
  z-index: 1;
}

.ercot-cta-content h2 {
  max-width: 13ch;
}

.footer-market-disclaimer {
  max-width: 32rem;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .watch-grid,
  .analytics-anchor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buyer-question-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .ercot-summary-layout {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.74fr);
    align-items: start;
  }

  .ercot-summary-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ercot-summary-layout .ercot-copy-block p:not(.eyebrow) {
    text-align: justify;
  }

  .ercot-summary-layout .ercot-copy-block h2 {
    margin-bottom: 2.25rem;
  }

  .ercot-summary-layout .ercot-copy-block p:not(.eyebrow) + p:not(.eyebrow) {
    margin-top: 1.625rem;
  }

  .analytics-anchor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

}

@media (min-width: 1280px) {
  .watch-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .ercot-title-line {
    white-space: nowrap;
  }
}

@media (max-width: 719px) {
  .ercot-hero {
    min-height: 640px;
  }

  .ercot-hero-image {
    object-position: 58% center;
  }

  .ercot-hero h1 {
    max-width: 10ch;
  }

  .buyer-question-list article {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .watch-card,
  .analytics-anchor,
  .buyer-question-list article,
  .faq-item {
    transition: none;
  }

  .watch-card:hover,
  .analytics-anchor:hover,
  .analytics-anchor:focus-visible,
  .buyer-question-list article:hover,
  .buyer-question-list article:focus-within {
    transform: none;
  }

  .watch-card-cta span {
    transition: none;
  }
}
