/* Hyundai Electric product page */
:root {
  --he-page: #ffffff;
  --he-panel: #f1f5f8;
  --he-ink: #142640;
  --he-muted: #495d74;
  --he-line: #d4dfe8;
  --he-blue: #065899;
  --he-hover: #004476;
  --he-on-blue: #ffffff;
  --he-hero: #d3eaf2;
  --he-hero-deep: #b4d8e7;
  --he-hero-ink: #112b44;
  --he-hero-muted: #34536b;
  --he-art: #e8f0f5;
  --he-night: #12283f;
  --he-on-night: #f6fbff;
  --he-night-muted: #c9d9e7;
  --he-night-line: #52718a;
  --he-night-accent: #9edbff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --he-page: #111b28;
    --he-panel: #172536;
    --he-ink: #edf5fb;
    --he-muted: #b8c9da;
    --he-line: #3c5267;
    --he-blue: #a6dcff;
    --he-hover: #d3edff;
    --he-on-blue: #11263b;
    --he-art: #dce8ef;
  }
}

:root[data-theme="dark"] {
  --he-page: #111b28;
  --he-panel: #172536;
  --he-ink: #edf5fb;
  --he-muted: #b8c9da;
  --he-line: #3c5267;
  --he-blue: #a6dcff;
  --he-hover: #d3edff;
  --he-on-blue: #11263b;
  --he-art: #dce8ef;
}

html:has(body.in-he) { overflow-x: clip; }

.in-he {
  background: var(--he-page);
  color: var(--he-ink);
  --link: var(--he-blue);
  --focus-ring: 0 0 0 2px var(--he-page), 0 0 0 4px var(--he-blue);
}

.in-he :is(a, button, summary):focus-visible { outline: none; box-shadow: var(--focus-ring); }
.in-he-sprite { position: absolute; }
.in-he-wrap {
  width: min(100%, calc(1280px + var(--space-12)));
  margin-inline: auto;
  padding-inline: calc(var(--space-12) / 2);
}

.in-he-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  background: var(--he-page);
  border-block-end: 1px solid var(--he-line);
}

.in-he-header-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  min-height: var(--header-height);
}

.in-he-logo { justify-self: start; min-width: 0; max-width: 100%; padding: var(--space-2); margin-inline-start: calc(-1 * var(--space-2)); background: var(--white); }
.in-he-logo img { display: block; width: clamp(132px, 15vw, 180px); max-width: 100%; height: auto; }
.in-he-nav .in-nav { display: flex; gap: var(--space-1); }
.in-he-nav .in-nav a { color: var(--he-muted); padding-inline: var(--space-2); border-radius: var(--space-1); transition: none; }
.in-he-nav .in-nav a:is(:hover, [aria-current]) { color: var(--he-blue); }
.in-he-nav .in-nav a[aria-current]::after { background: var(--he-blue); }
.in-he-header-actions, .in-he-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.in-he-header-actions { justify-content: end; }

.in-he-theme {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--he-line);
  border-radius: var(--space-1);
  background: transparent;
  color: var(--he-ink);
  cursor: pointer;
}

html:not(.js) .in-he-theme { display: none; }
.in-he-theme:hover { background: var(--he-panel); }

.in-he-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--space-1);
  background: var(--he-blue);
  color: var(--he-on-blue);
  font-weight: 750;
  font-size: .9375rem;
  line-height: 1.55;
  text-decoration: none;
}

.in-he-button:hover { background: var(--he-hover); }
.in-he-button-small { min-height: 42px; font-size: .875rem; }
.in-he-button .in-icon { width: 18px; height: 18px; }
.in-he-button-outline { background: transparent; border-color: var(--he-blue); color: var(--he-blue); }
.in-he-button-outline:hover { background: var(--he-panel); }
.in-he-link { color: var(--he-blue); font-weight: 750; text-underline-offset: .3em; }
.in-he-link:hover { text-decoration-thickness: 2px; }

.in-he .in-he-hero {
  overflow: hidden;
  padding: 0;
  background: linear-gradient(115deg, var(--he-hero-deep), var(--he-hero));
  color: var(--he-hero-ink);
  --he-blue: #065899;
  --he-hover: #004476;
  --he-on-blue: #ffffff;
  --focus-ring: 0 0 0 2px var(--he-hero), 0 0 0 4px var(--he-blue);
}

.in-he-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  min-height: clamp(390px, 39vw, 570px);
}

.in-he-hero-copy { container-type: inline-size; align-self: center; padding-block: var(--space-12); padding-inline-end: var(--space-6); }
.in-he-kicker { display: flex; align-items: center; gap: var(--space-2); color: var(--he-blue); font-size: .9375rem; font-weight: 750; }
.in-he-kicker::before { content: ""; width: var(--space-4); height: 2px; background: currentColor; }
.in-he-hero h1 {
  margin-block-start: var(--space-3);
  font-size: min(3.5rem, 8.5cqi);
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}
.in-he-hero-lead { max-width: 34em; margin-block: var(--space-4) var(--space-6); color: var(--he-hero-muted); font-size: 1.0625rem; line-height: 1.9; }
.in-he-hero .in-he-button-outline:hover { background: var(--he-hero); }

.in-he-hero-art { position: relative; min-width: 0; margin: 0; }
.in-he-hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 95% 64%;
  mask-image: linear-gradient(90deg, transparent, var(--black) 13%, var(--black) 79%, transparent);
}

.in-he-brand { padding-block: clamp(var(--space-12), 7vw, var(--space-28)); }
.in-he-brand-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .83fr); align-items: end; gap: clamp(var(--space-6), 5vw, var(--space-20)); }
.in-he-brand h2, .in-he-section h2 { font-size: clamp(1.65rem, 3.05vw, 2.65rem); font-weight: 850; line-height: 1.3; }
.in-he-brand h2 { font-size: clamp(1.85rem, 4vw, 3.5rem); text-wrap: balance; }
.in-he-section-head p, .in-he-documents-layout > div > p, .in-he-contact-layout > div > p { margin-block-start: var(--space-3); color: var(--he-muted); line-height: 1.9; }
.in-he-brand p { max-width: 43em; color: var(--he-muted); line-height: 1.9; }

.in-he-brand-media {
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  margin-block-start: clamp(var(--space-6), 4vw, var(--space-12));
  border-block: 1px solid var(--he-line);
  background: var(--he-art);
}

.in-he-brand-media img {
  display: block;
  width: min(100%, 1120px);
  height: auto;
  aspect-ratio: 2.25;
  object-fit: cover;
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry 0% cover 55%) {
    .in-he-brand-media img {
      animation: in-he-lineup-enter linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }

    @keyframes in-he-lineup-enter {
      from { transform: translateY(24px) scale(.94); }
      to { transform: none; }
    }
  }
}

.in-he-section { padding-block: clamp(var(--space-12), 6vw, var(--space-28)); }
.in-he-section.section-alt { background: var(--he-panel); }
.in-he-section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3) var(--space-8); margin-block-end: var(--space-8); }
.in-he-section-head p { max-width: 47em; }

/* Product overview */
.in-he-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.in-he-category {
  min-width: 0;
  scroll-margin-block-start: var(--space-4);
}

.in-he-category-link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 1px solid var(--he-line);
  border-radius: var(--space-4);
  overflow: hidden;
  background: var(--he-page);
  color: var(--he-ink);
  text-decoration: none;
}

.in-he-category-link:is(:hover, :focus-visible), .in-he-category:target .in-he-category-link {
  border-color: var(--he-blue);
}

.in-he-category-media {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--he-art);
}

.in-he-category-media::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(var(--he-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--he-line) 1px, transparent 1px);
  background-size: var(--space-6) var(--space-6);
  opacity: .7;
  mask-image: radial-gradient(ellipse at center, transparent 29%, black 92%);
}

.in-he-category-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  clip-path: inset(1px);
}

.in-he-category-media .in-icon {
  position: relative;
  width: clamp(44px, 23%, 76px);
  height: auto;
  aspect-ratio: 1;
  color: var(--he-hero-ink);
  stroke-width: 1.15;
}

.in-he-category-copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--space-2);
  padding: var(--space-4);
}

.in-he-category-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-2);
}

.in-he-category-name h3 {
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 850;
  line-height: 1.5;
}

.in-he-category-name bdi, .in-he-detail-code {
  color: var(--he-blue);
  font-weight: 800;
  font-size: .875rem;
  letter-spacing: .06em;
}

.in-he-category-copy p {
  margin: 0;
  color: var(--he-muted);
  font-size: .9375rem;
  line-height: 1.65;
}

.in-he-category-copy .in-he-category-fact {
  margin-block-end: var(--space-2);
  color: var(--he-ink);
  font-size: .875rem;
  font-weight: 700;
}

.in-he-category-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-block-start: auto;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--space-2);
  background: var(--he-panel);
  color: var(--he-blue);
  font-size: .875rem;
  font-weight: 750;
}

.in-he-category-link:is(:hover, :focus-visible) .in-he-category-cta {
  background: var(--he-blue);
  color: var(--he-on-blue);
}

@media (prefers-reduced-motion: no-preference) {
  .in-he-category-link { transition: border-color .2s ease; }
  .in-he-category-link img { transition: transform .3s ease; }
  .in-he-category-link:is(:hover, :focus-visible) img { transform: scale(1.06); }
  .in-he-category-cta { transition: color .2s ease, background-color .2s ease; }
}

/* Individual product groups */
.in-he .in-he-detail-hero {
  padding-block: clamp(var(--space-6), 3vw, var(--space-8)) clamp(var(--space-8), 5vw, var(--space-12));
  background: var(--he-page);
}

.in-he-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin: 0 0 var(--space-8);
  padding: 0;
  list-style: none;
  color: var(--he-muted);
  font-size: .8125rem;
}

.in-he-breadcrumb li + li::before {
  display: inline-block;
  content: "/";
  width: auto;
  height: auto;
  margin-inline-end: var(--space-2);
  background: none;
  color: var(--he-muted);
  transform: none;
  vertical-align: middle;
}

.in-he-breadcrumb a { color: var(--he-muted); text-decoration: none; }
.in-he-breadcrumb a:hover { color: var(--he-blue); text-decoration: underline; text-underline-offset: .25em; }

.in-he-detail-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.in-he-detail-copy { align-self: center; padding: 0; }

.in-he-detail-code {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.in-he-detail-copy h1 {
  margin-block: var(--space-2) var(--space-4);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.in-he-detail-copy p {
  max-width: 34em;
  margin-block-end: var(--space-6);
  color: var(--he-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.in-he-detail-copy .in-he-button-outline {
  border-color: transparent;
  background: transparent;
  padding-inline: var(--space-3);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}

.in-he-detail-copy .in-he-button-outline:hover { background: transparent; color: var(--he-hover); }

.in-he-detail-media {
  aspect-ratio: 4 / 3;
  min-height: 280px;
  background: #f4f7f8;
  color: var(--he-hero-ink);
}

.in-he-detail-media::before { content: none; }

.in-he-detail-media img {
  inset: 7%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.in-he-detail-media .in-icon {
  width: min(26%, 112px);
  color: var(--he-hero-ink);
  stroke-width: 1.05;
}

.in-he .in-he-detail-specifications {
  background: var(--he-page);
  padding-block: clamp(var(--space-8), 4vw, var(--space-12));
  border-block-start: 1px solid var(--he-line);
}

.in-he-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: start;
  gap: var(--space-6) var(--space-8);
}

.in-he-detail-panel {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.in-he-detail-panel:not(.in-he-detail-support) > p {
  max-width: 40em;
  margin-block-end: var(--space-6);
}

.in-he-detail-panel h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 850;
  line-height: 1.35;
}

.in-he-detail-panel p { margin-block: var(--space-2) 0; color: var(--he-muted); font-size: .9375rem; line-height: 1.8; }

.in-he-detail-support {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-6);
  border: 1px solid var(--he-night-line);
  border-radius: var(--space-4);
  background: var(--he-night);
  color: var(--he-on-night);
  position: sticky;
  inset-block-start: calc(var(--header-height) + var(--space-4));
  --focus-ring: 0 0 0 2px var(--he-night), 0 0 0 4px var(--he-night-accent);
}

.in-he-detail-support h2 { color: var(--he-on-night); font-size: 1.35rem; }
.in-he-detail-support p { max-width: none; color: var(--he-night-muted); }
.in-he-detail-support .in-he-button { margin: var(--space-2) 0 0; background: var(--he-blue); border-color: transparent; color: var(--he-on-blue); }
.in-he-detail-support .in-he-button:hover { background: var(--he-hover); }
.in-he-detail-support .in-he-link { display: inline-flex; width: auto; margin: 0; color: var(--he-night-accent); }
.in-he-detail-back { grid-column: 1 / -1; justify-self: start; }

.in-he-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.in-he-specs > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--he-line);
  border-radius: var(--space-4);
  background: var(--he-panel);
}

.in-he-specs dt { color: var(--he-muted); font-size: .8125rem; font-weight: 650; line-height: 1.6; overflow-wrap: break-word; }
.in-he-specs dd { margin: 0; color: var(--he-ink); font-size: 1rem; font-weight: 750; line-height: 1.7; overflow-wrap: break-word; }

@media (prefers-reduced-motion: no-preference) {
  .in-he-detail-hero .in-he-button,
  .in-he-detail-support .in-he-button { transition: background-color .15s ease, color .15s ease, transform .15s ease; }
  .in-he-detail-hero .in-he-button:active,
  .in-he-detail-support .in-he-button:active { transform: scale(.98); }
}

.in-he-documents {
  background: var(--he-night);
  color: var(--he-on-night);
  --focus-ring: 0 0 0 2px var(--he-night), 0 0 0 4px var(--he-night-accent);
}

.in-he-documents-layout, .in-he-faq, .in-he-contact-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(var(--space-6), 5.2vw, var(--space-20)); }
.in-he-documents-layout > div > p { color: var(--he-night-muted); }
.in-he-document-list { display: grid; margin: 0; padding: 0; list-style: none; border-block-end: 1px solid var(--he-night-line); }
.in-he-document-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-2); border-block-start: 1px solid var(--he-night-line); color: var(--he-on-night); text-decoration: none; }
.in-he-document-list a:is(:hover, :focus-visible) { position: relative; color: var(--he-night-accent); }
.in-he-document-list .in-icon { color: var(--he-night-accent); }
.in-he-document-list :is(strong, small) { display: block; }
.in-he-document-list small { color: var(--he-night-muted); font-size: .875rem; line-height: 1.65; }

.in-he-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-block: 1px solid var(--he-line); list-style: none; }
.in-he-benefits li { padding: var(--space-6); }
.in-he-benefits li + li { border-inline-start: 1px solid var(--he-line); }
.in-he-benefits .in-icon { width: 32px; height: 32px; color: var(--he-blue); stroke-width: 1.5; }
.in-he-benefits h3 { margin-block: var(--space-2) var(--space-1); font-size: 1.25rem; font-weight: 800; }
.in-he-benefits p { color: var(--he-muted); line-height: 1.9; }

.in-he-faq { grid-template-columns: .7fr 1.3fr; }
.in-he-faq details { border-block-end: 1px solid var(--he-line); }
.in-he-faq details:first-child { border-block-start: 1px solid var(--he-line); }
.in-he-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; font-weight: 750; line-height: 1.75; list-style: none; cursor: pointer; }
.in-he-faq summary::-webkit-details-marker { display: none; }
.in-he-faq summary .in-icon { color: var(--he-blue); }
.in-he-faq details[open] .in-icon { rotate: 45deg; }
.in-he-faq details p { padding-block-end: var(--space-4); color: var(--he-muted); }

.in-he-contact .in-he-actions { margin-block-start: var(--space-6); }
.in-he-address { border-inline-start: 1px solid var(--he-line); padding-inline-start: var(--space-6); font-style: normal; color: var(--he-muted); }
.in-he-address p + p { margin-block-start: var(--space-1); }
.in-he-address .in-he-link { display: inline-block; margin-block-start: var(--space-2); }

.in-he .in-footer { --focus-ring: 0 0 0 2px var(--surface-inverse), 0 0 0 4px var(--orange); }
.in-he .in-footer :is(a, button):focus-visible { outline: none; box-shadow: var(--focus-ring); }
.in-he .in-footer-grid > div,
.in-he .in-footer .in-logo { min-width: 0; }
.in-he .in-footer .in-logo-svg { width: 180px; height: 36px; max-width: 100%; }

@media (max-width: 1023px) {
  .in-he-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .in-he-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .in-he-detail-layout { grid-template-columns: 1fr; }
  .in-he-detail-support { position: static; }
}

@media (max-width: 767px) {
  .in-he-wrap { width: 100%; padding-inline: calc(var(--space-8) / 2); }
  .in-he-header-layout { grid-template-columns: 1fr auto; gap: 0 var(--space-1); padding-block-start: var(--space-2); }
  .in-he-nav { grid-row: 2; grid-column: 1 / -1; }
  .in-he-nav { min-width: 0; }
  .in-he-nav .in-nav { flex-wrap: wrap; justify-content: space-between; gap: 0; }
  .in-he-nav .in-nav a { padding-inline: var(--space-1); font-size: .8125rem; }
  .in-he .section, .in-he-category { scroll-margin-block-start: var(--space-4); }
  .in-he-detail-intro { grid-template-columns: 1fr; }
  .in-he-detail-media { order: -1; aspect-ratio: 4 / 3; min-height: 220px; }
  .in-he-hero-copy { padding-block: var(--space-8); }
  .in-he-brand-layout { grid-template-columns: 1fr; gap: var(--space-3); }
  .in-he-benefits li { padding: var(--space-4); }
}

@media (max-width: 599px) {
  .in-he-hero-layout, .in-he-benefits, .in-he-documents-layout, .in-he-faq, .in-he-contact-layout { grid-template-columns: 1fr; }
  .in-he-brand-media img { aspect-ratio: 1.75; }
  .in-he-hero-layout { min-height: 0; }
  .in-he-hero-copy { padding: var(--space-6) 0 var(--space-4); }
  .in-he-hero h1 { font-size: min(2.75rem, 8.5cqi); }
  .in-he-hero-lead { margin-block: var(--space-3) var(--space-4); font-size: 1rem; }
  .in-he-hero-art { margin-inline: calc(-1 * var(--space-4)); aspect-ratio: 1.88; }
  .in-he-hero-art img { mask-image: none; object-position: center 66%; }
  .in-he-category-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .in-he-category-link { grid-template: auto / minmax(0, 1fr) minmax(100px, 35%); }
  .in-he-category-media { grid-column: 2; grid-row: 1; aspect-ratio: auto; }
  .in-he-category-copy { grid-column: 1; grid-row: 1; gap: var(--space-1); }
  .in-he-category-copy .in-he-category-fact { margin-block-end: var(--space-1); }
  .in-he-category-media img { object-fit: contain; }
  .in-he-detail-media { grid-column: 1; grid-row: auto; aspect-ratio: 4 / 3; order: -1; }
  .in-he-specs { grid-template-columns: 1fr; }
  .in-he-benefits li { padding-inline: 0; }
  .in-he-benefits li + li { border-inline-start: 0; border-block-start: 1px solid var(--he-line); }
  .in-he-address { padding: var(--space-4) 0 0; border-inline-start: 0; border-block-start: 1px solid var(--he-line); }
}
