:root {
  --hv-navy: #031b45;
  --hv-blue: #074b9d;
  --hv-ink: #061833;
  --hv-muted: #63718a;
  --hv-line: #d8e2ef;
  --hv-soft: #f2f6fb;
  --hv-yellow: #f8b918;
}

.hv-system-page {
  color: var(--hv-ink);
  background: #fff;
}

.hv-system-page .container,
.hv-voltage-path .container {
  width: min(100% - 48px, 1320px);
  max-width: 1320px;
  margin-inline: auto;
}

.hv-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(0, 19, 51, .97) 0%, rgba(0, 27, 69, .91) 42%, rgba(0, 31, 74, .38) 69%, rgba(0, 20, 50, .08) 100%),
    var(--hv-hero-image);
  background-position: center;
  background-size: cover;
  border-bottom: 5px solid var(--hv-yellow);
}

.hv-hero-inner {
  display: flex;
  min-height: 520px;
  align-items: center;
}

.hv-hero-copy {
  width: min(720px, 62%);
  /* The shared inner-HERO system owns the top inset on .hv-hero-inner. */
  padding: 0 0 56px;
  color: #fff;
}

.hv-eyebrow {
  margin: 0 0 16px;
  color: var(--hv-yellow);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hv-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 5vw, 4.65rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.hv-hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hv-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.hv-tag-row span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-size: .85rem;
  font-weight: 800;
}

.hv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hv-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--hv-ink);
  background: var(--hv-yellow);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  font-weight: 900;
}

.hv-button:hover {
  color: var(--hv-ink);
  background: #ffd052;
  transform: translateY(-1px);
}

.hv-button.is-secondary {
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
  background: rgba(3, 27, 69, .45);
  box-shadow: none;
}

.hv-metrics {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(3, 27, 69, .08);
}

.hv-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hv-metric {
  padding: 24px 28px;
  border-right: 1px solid var(--hv-line);
}

.hv-metric:last-child {
  border-right: 0;
}

.hv-metric strong {
  display: block;
  color: var(--hv-navy);
  font-size: 1.28rem;
}

.hv-metric span {
  display: block;
  margin-top: 5px;
  color: var(--hv-muted);
  font-size: .9rem;
}

.hv-section {
  padding: 82px 0;
}

.hv-section.is-soft {
  background: var(--hv-soft);
}

.hv-section-head {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(340px, .56fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 34px;
}

.hv-section-head h2 {
  margin: 0;
  color: var(--hv-navy);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
}

.hv-section-head > p:last-child {
  margin: 0;
  color: var(--hv-muted);
  line-height: 1.75;
}

.hv-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hv-config-card,
.hv-brand-card,
.hv-component-card,
.hv-proof-card,
.hv-band-card {
  overflow: hidden;
  border: 1px solid var(--hv-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(3, 27, 69, .07);
}

.hv-config-card {
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(0, 1fr);
  min-height: 300px;
}

.hv-config-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.hv-config-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.hv-card-kicker {
  color: #b67b00;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.hv-config-card h3,
.hv-brand-card h3,
.hv-component-card h3,
.hv-band-card h3 {
  margin: 10px 0 0;
  color: var(--hv-navy);
  font-size: 1.35rem;
  line-height: 1.25;
}

.hv-config-card p,
.hv-brand-card p,
.hv-component-card p,
.hv-proof-card p,
.hv-band-card p {
  margin: 12px 0 0;
  color: var(--hv-muted);
  line-height: 1.68;
}

.hv-config-card ul,
.hv-component-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.hv-config-card li,
.hv-component-card li {
  position: relative;
  padding-left: 16px;
  color: #33445e;
  font-size: .9rem;
}

.hv-config-card li::before,
.hv-component-card li::before {
  position: absolute;
  top: .55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hv-yellow);
  content: "";
}

.hv-band-grid,
.hv-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hv-band-card,
.hv-brand-card {
  padding: 26px;
}

.hv-band-card strong {
  display: block;
  color: var(--hv-blue);
  font-size: 1.8rem;
}

.hv-brand-grid {
  margin-top: 20px;
}

.hv-brand-card {
  border-top: 4px solid var(--hv-yellow);
}

.hv-component-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hv-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hv-benefit-card {
  min-height: 270px;
  border: 1px solid var(--hv-line);
  border-top: 4px solid var(--hv-yellow);
  border-radius: 12px;
  padding: 28px 26px;
  background: linear-gradient(180deg, #fff, #f7f9fc);
  box-shadow: 0 16px 38px rgba(0, 24, 63, .07);
}

.hv-benefit-index {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--hv-navy);
  font-size: .84rem;
  font-weight: 900;
}

.hv-benefit-card h3 {
  margin: 22px 0 0;
  color: var(--hv-navy);
  font-size: 1.3rem;
  line-height: 1.25;
}

.hv-benefit-card p {
  margin: 13px 0 0;
  color: var(--hv-muted);
  line-height: 1.7;
}

.hv-choice-boundary {
  display: grid;
  grid-template-columns: minmax(190px, .3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  border-left: 5px solid var(--hv-yellow);
  border-radius: 10px;
  padding: 24px 28px;
  color: #fff;
  background: var(--hv-navy);
}

.hv-choice-boundary strong {
  font-size: 1.1rem;
  line-height: 1.3;
}

.hv-choice-boundary p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.7;
}

.hv-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hv-component-card,
.hv-proof-card {
  padding: 26px;
}

.hv-component-index {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--hv-navy);
  background: #fff0bf;
  font-weight: 900;
}

.hv-proof-card strong {
  color: var(--hv-navy);
  font-size: 1.08rem;
}

.hv-cta {
  padding: 68px 0;
  background: linear-gradient(120deg, #001735, #074b9d);
}

.hv-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.hv-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.hv-cta p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .76);
  line-height: 1.7;
}

/* Product-center integration */
.hv-voltage-path {
  padding: 58px 0;
  background: #fff;
}

.hv-voltage-path-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 22px;
}

.hv-voltage-path-head h2 {
  margin: 0;
  color: var(--hv-navy);
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.hv-voltage-path-head p {
  max-width: 620px;
  margin: 0;
  color: var(--hv-muted);
  line-height: 1.65;
}

.hv-voltage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hv-voltage-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 185px;
  align-items: end;
  gap: 24px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--hv-line);
  border-radius: 12px;
  color: var(--hv-ink);
  background: var(--hv-soft);
}

.hv-voltage-card.is-high {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 24, 63, .98), rgba(3, 55, 119, .86)),
    url('/materials/high-voltage/mining-high-voltage-system-hero.webp') center / cover;
}

.hv-voltage-card h3 {
  margin: 0;
  color: inherit;
  font-size: 1.55rem;
}

.hv-voltage-card p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--hv-muted);
  line-height: 1.62;
}

.hv-voltage-card.is-high p {
  color: rgba(255, 255, 255, .78);
}

.hv-voltage-card strong {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--hv-navy);
  background: var(--hv-yellow);
  font-size: 1.2rem;
}

.system-tier-grid-main.has-high-voltage {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hv-category-card {
  display: grid;
  overflow: visible;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  background: var(--white) !important;
  box-shadow: 0 18px 42px rgba(4, 28, 64, .07);
}

.hv-category-card .category-card-media {
  display: block;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--panel-strong);
  touch-action: pan-y;
}

.hv-category-card .category-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius) var(--radius) 0 0;
  object-fit: cover;
  object-position: 63% center;
  pointer-events: none;
}

.hv-category-card .category-card-body {
  display: grid;
  min-height: 250px;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
}

.hv-category-card .hv-card-kicker {
  display: none;
}

.hv-category-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.2;
}

.hv-category-card p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.58;
}

.hv-category-card .category-card-range {
  display: block;
  color: var(--brand-blue);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.5;
}

.hv-category-card .category-card-cta {
  justify-self: start;
  min-height: 44px;
  padding: 11px 16px;
  font-size: .92rem;
}

/* Solution-page entry */
.hv-scenario-entry {
  padding: 46px 0;
  background: #edf3fa;
}

.hv-scenario-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 30px 34px;
  border-left: 5px solid var(--hv-yellow);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(120deg, #001b44, #064d9f);
  box-shadow: 0 16px 36px rgba(3, 27, 69, .14);
}

.hv-scenario-entry-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.hv-scenario-entry-card p {
  max-width: 820px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .75);
  line-height: 1.62;
}

@media (max-width: 1050px) {
  .hv-config-card {
    grid-template-columns: 1fr;
  }

  .system-tier-grid-main.has-high-voltage,
  .hv-component-grid,
  .hv-proof-grid,
  .hv-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .hv-system-page .container,
  .hv-voltage-path .container {
    width: min(100% - 28px, 1320px);
  }

  .hv-hero,
  .hv-hero-inner {
    min-height: 0;
  }

  .hv-hero {
    background-image:
      linear-gradient(180deg, rgba(0, 19, 51, .94) 0%, rgba(0, 27, 69, .88) 62%, rgba(0, 20, 50, .72) 100%),
      var(--hv-hero-image);
    background-position: 63% center;
  }

  .hv-hero-copy {
    width: 100%;
    padding: 0 0 48px;
  }

  .hv-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.3rem);
  }

  .hv-metric-grid,
  .hv-band-grid,
  .hv-brand-grid,
  .hv-component-grid,
  .hv-proof-grid,
  .hv-benefit-grid,
  .hv-voltage-grid,
  .system-tier-grid-main.has-high-voltage {
    grid-template-columns: 1fr;
  }

  .hv-benefit-card {
    min-height: 0;
    padding: 24px 22px;
  }

  .hv-choice-boundary {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px;
  }

  .hv-metric {
    border-right: 0;
    border-bottom: 1px solid var(--hv-line);
  }

  .hv-metric:last-child {
    border-bottom: 0;
  }

  .hv-section {
    padding: 58px 0;
  }

  .hv-section-head,
  .hv-voltage-path-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hv-config-grid,
  .hv-config-card {
    grid-template-columns: 1fr;
  }

  .hv-config-card img {
    min-height: 220px;
    max-height: 250px;
  }

  .hv-voltage-card {
    min-height: 170px;
    padding: 24px;
  }

  .hv-cta-inner,
  .hv-scenario-entry-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .hv-cta-inner .hv-button,
  .hv-scenario-entry-card .hv-button {
    width: 100%;
  }
}
