body.elementrelation-home .er-hero.nx-cover {
  min-height: 0;
  padding-bottom: 0;
}

.elementrelation-home .nx-brand-name {
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.elementrelation-home .brand img,
.elementrelation-home .vf-home img {
  border-radius: 9px;
}

.elementrelation-home .er-hero .primary {
  min-inline-size: min(218px, 100%);
}

.elementrelation-home .er-hero .secondary {
  min-inline-size: min(125px, 100%);
}

.er-hero .nx-cover-capabilities a,
.er-hero .nx-cover-capabilities a > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.er-hero .nx-cover-capabilities a > span {
  gap: 7px;
}

.er-hero .nx-cover-capabilities a:is(:hover, :focus-visible) strong {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: .22em;
}

body.elementrelation-home main > .section.er-products {
  width: calc(100% - 64px);
  max-width: 1440px;
  padding-block-start: clamp(40px, 6vh, 68px);
  padding-inline: 0;
}

.er-product-grid,
.er-principles {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
}

.er-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.er-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 54px color-mix(in srgb, var(--brand) 9%, transparent);
  transition: border-color .18s, box-shadow .18s;
}

.er-product:is(:hover, :focus-within) {
  border-color: var(--brand);
  box-shadow: 0 22px 58px color-mix(in srgb, var(--brand) 16%, transparent);
}

.er-product-link {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.er-product-link:focus-visible {
  outline-offset: -5px;
}

.er-product-figure,
.er-about-art {
  width: 100%;
  overflow: hidden;
  background: var(--panel-soft);
}

.er-product-figure {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
}

.er-product-figure img,
.er-about-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.er-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(18px, 3vw, 32px);
}

.er-product-copy h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(21px, 2vw, 27px);
}

.er-product-copy h3 img {
  flex: none;
  border-radius: 9px;
}

.er-product-copy p,
.er-principles p,
.er-about p {
  color: var(--muted);
  margin: 10px 0 16px;
}

.er-product-copy .text-link {
  min-height: 44px;
  margin-top: auto;
}

.er-product-link:is(:hover, :focus-visible) .text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.er-principles article > .icon {
  width: 24px;
  height: 24px;
  color: var(--brand);
  margin-bottom: 18px;
}

.er-principles p {
  margin-bottom: 0;
}

.er-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.er-about h2 {
  text-wrap: balance;
}

.er-about p {
  margin-bottom: 0;
  text-wrap: pretty;
}

.er-about-art {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 20px;
}

body.elementrelation-home .er-about-art .er-about-dark,
:root[data-theme="dark"] .er-about-art .er-about-light {
  display: none;
}

:root[data-theme="dark"] .er-about-art .er-about-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .er-about-art .er-about-light {
    display: none;
  }

  :root:not([data-theme]) .er-about-art .er-about-dark {
    display: block;
  }
}

.elementrelation-home .vf-group h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  margin: 8px 0 18px;
  letter-spacing: 0;
}

.elementrelation-home #searchResults a > small {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  body.elementrelation-home main > .section.er-products {
    width: calc(100% - 32px);
  }

  .er-principles,
  .er-about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.elementrelation-home.nx-home .er-hero.nx-cover h1 > span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .elementrelation-home .vf-group h2 {
    margin: 4px 0 12px;
    font-size: 14px;
  }

  .er-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  body.elementrelation-home .nx-header.nx-shared-header .nx-brand-name {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  body.elementrelation-home .nx-header.nx-shared-header {
    padding-inline: 12px;
  }

  body.elementrelation-home .nx-header.nx-shared-header .nx-brand-name {
    font-size: 14px;
  }

  body.elementrelation-home .nx-header.nx-shared-header .brand {
    gap: 6px;
  }

  body.elementrelation-home .nx-header.nx-shared-header .tools {
    gap: 2px;
  }

  body.elementrelation-home .nx-header.nx-shared-header .brand img {
    width: 28px;
    height: 32px;
  }

  body.elementrelation-home .nx-header.nx-shared-header .top-install {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  body.elementrelation-home .nx-header.nx-shared-header .nx-brand-name {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) and (pointer: fine) {
    .er-product-figure img {
      transition: transform .2s ease;
    }

    .er-product-link:hover .er-product-figure img {
      transform: scale(1.025);
    }
  }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .er-principles article,
    .er-about-art {
      animation: er-enter linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

    @keyframes er-enter {
      from { opacity: .5; transform: translateY(12px); }
      to { opacity: 1; transform: none; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .er-product {
    transition: none;
  }
}
