/* Scoped to the language homepage topics. Shared components retain their styles. */
.anlexu-home-discover,
.anlexu-home-discover * {
  box-sizing: border-box;
}

.anlexu-home-discover {
  display: grid;
  width: min(100% - 48px, 1180px);
  margin: 0 auto 48px;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-areas: "copy visual";
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  color: #111;
  background: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.anlexu-home-discover-support,
.anlexu-home-discover-knowledge {
  padding: 32px;
  border-radius: 28px;
  background: #f5f5f7;
}

.anlexu-home-discover-knowledge {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  grid-template-areas: "visual copy";
}

.anlexu-home-discover-copy {
  grid-area: copy;
  min-width: 0;
  text-align: center;
}

.anlexu-home-discover .anlexu-home-discover-eyebrow {
  margin: 0;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .08em;
}

.anlexu-home-discover h2 {
  max-width: 480px;
  margin: 14px auto 0;
  padding: 0;
  color: #111;
  font-size: clamp(30px, 3.3vw, 44px) !important;
  font-weight: 730;
  line-height: 1.09 !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
}

.anlexu-home-discover .anlexu-home-discover-description {
  max-width: 480px;
  margin: 20px auto 0;
  color: #66666d;
  font-size: 18px;
  line-height: 1.48;
  letter-spacing: normal;
  text-wrap: pretty;
}

.anlexu-home-discover .anlexu-home-word-group {
  white-space: nowrap;
}

/* German content must also reflow at enlarged text sizes without clipping.
   Normal card geometry and other language pages remain unchanged. */
html:is([lang="de"], [lang="en"], [lang="pt-BR"]) .anlexu-home-discover .anlexu-home-word-group {
  white-space: normal;
  overflow-wrap: anywhere;
}
html:is([lang="de"], [lang="en"], [lang="pt-BR"]) .anlexu-home-discover .anlexu-home-discover-action {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.anlexu-home-discover .anlexu-home-discover-action {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  margin-top: 26px;
  padding: 11px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid #006edb;
  border-radius: 999px;
  background: #006edb;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.anlexu-home-discover-action:focus-visible {
  outline: 3px solid #006edb;
  outline-offset: 4px;
}

.anlexu-home-discover .anlexu-home-discover-action:active {
  border-color: #005fbd;
  background: #005fbd;
  transition: none;
}

.anlexu-home-discover-visual {
  grid-area: visual;
  display: block;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
}

.anlexu-home-discover-visual-support {
  aspect-ratio: 4 / 3;
}

/* Smaller intact support motif only on the German homepage, not support cards. */
html:is([lang="de"], [lang="en"], [lang="pt-BR"]) .anlexu-home-discover-visual-support {
  width: 90%;
  max-width: 560px;
  justify-self: center;
}

.anlexu-home-discover-visual-knowledge {
  aspect-ratio: 1672 / 941;
}

.anlexu-home-discover-visual-photography {
  aspect-ratio: 1280 / 853;
}

.anlexu-home-discover-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* The new 16:9 technology motif fills only the German Knowledge image surface. */
html:is([lang="de"], [lang="en"], [lang="pt-BR"]) .anlexu-home-discover-visual-knowledge img {
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .anlexu-home-discover .anlexu-home-discover-action:hover {
    border-color: #005fbd;
    background: #005fbd;
  }
}

/* Desktop titles fit the existing text columns without forcing a single line.
   Mobile and tablet typography retain their own existing rules. */
@media (min-width: 1024px) {
  html:is([lang="de"], [lang="en"], [lang="pt-BR"]) .anlexu-home-discover :is(#home-support-title, #home-knowledge-title) {
    max-width: 100%;
    font-size: clamp(1.5rem, 2.15vw, 1.875rem) !important;
  }
  /* Fit the longer German Knowledge heading within its existing text column.
     No nowrap: enlarged type must retain natural, accessible reflow. */
  html:is([lang="de"], [lang="en"], [lang="pt-BR"]) .anlexu-home-discover #home-knowledge-title {
    font-size: clamp(1.375rem, 2.1vw, 1.625rem) !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .anlexu-home-discover {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }
  .anlexu-home-discover-support,
  .anlexu-home-discover-knowledge {
    padding: 24px;
  }
  .anlexu-home-discover .anlexu-home-discover-description {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .anlexu-home-discover {
    width: calc(100% - 32px);
    margin-bottom: 36px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "visual";
    gap: 26px;
  }
  .anlexu-home-discover-support,
  .anlexu-home-discover-knowledge {
    padding: 28px 16px 16px;
  }
  .anlexu-home-discover .anlexu-home-discover-eyebrow {
    font-size: 11px;
  }
  .anlexu-home-discover h2 {
    margin-top: 11px;
    font-size: clamp(26px, 7.2vw, 32px) !important;
    line-height: 1.1 !important;
  }
  .anlexu-home-discover .anlexu-home-discover-description {
    margin-top: 17px;
    font-size: 15.5px;
    line-height: 1.48;
  }
  .anlexu-home-discover .anlexu-home-discover-action {
    min-height: 44px;
    margin-top: 22px;
    padding: 10px 17px;
    font-size: 13px;
  }
  .anlexu-home-discover-visual {
    border-radius: 20px;
  }
}

/* Keep the long Support title on one line on common iPhones without locking wrapping.
   Rem bounds preserve natural wrapping when the user increases text size. */
@media (max-width: 600px) {
  .anlexu-home-discover-support #home-support-title {
    font-size: clamp(1.375rem, 6.6vw, 1.75rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anlexu-home-discover .anlexu-home-discover-action {
    transition: none;
  }
}

/* German homepage: identical image frames, intact Support image and an
   undistorted centre crop of the existing abstract Knowledge motif. */
html:is([lang="de"], [lang="en"], [lang="pt-BR"]) .anlexu-home-discover :is(.anlexu-home-discover-visual-support, .anlexu-home-discover-visual-knowledge) {
  width: 90%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  justify-self: center;
}
