/* Shared enhancement. Existing full/service references remain the source of content. */
[data-tldmir-logo-cloud] {
  scroll-margin-top: 6rem;
}

[data-tldmir-logo-cloud].is-enhanced > section {
  padding-block: 3.5rem;
}

.tldmir-logo-cloud__row {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.tldmir-logo-cloud__heading {
  margin: 0;
}

.tldmir-logo-cloud__stage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  min-width: 0;
}

.tldmir-logo-cloud__slot {
  position: relative;
  min-width: 0;
  height: 6rem;
}

.tldmir-logo-cloud__slot > picture {
  display: flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}

.tldmir-logo-cloud__slot img {
  width: 100%;
  max-width: 9rem;
  height: auto;
  max-height: 5.65rem;
  object-fit: contain;
  border-radius: 0.375rem;
  filter: grayscale(1);
  opacity: 0.9;
  transition: filter 240ms ease, opacity 240ms ease;
}

.tldmir-logo-cloud__stage:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.tldmir-logo-cloud__tools {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
}

.tldmir-logo-cloud__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.tldmir-logo-cloud__button:hover {
  color: #fff;
  background-color: rgb(255 255 255 / 0.05);
}

.tldmir-logo-cloud__button:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 3px;
}

.tldmir-logo-cloud__button svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.tldmir-logo-cloud__all {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  opacity: 1;
}

.tldmir-logo-cloud__all[hidden] {
  display: none;
}

.tldmir-logo-cloud__stage[hidden],
.tldmir-logo-cloud__tools[hidden],
.tldmir-logo-cloud__sr-only[hidden] {
  display: none;
}

.tldmir-logo-cloud__all > picture {
  display: contents;
}

.tldmir-logo-cloud__all img {
  width: 100%;
  max-width: 110px;
  height: auto;
  aspect-ratio: 300 / 188;
}

.tldmir-logo-cloud__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.tldmir-logo-cloud__footer > div {
  margin: 0;
}

.tldmir-logo-cloud__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1024px) {
  .tldmir-logo-cloud__row {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 3rem;
  }

  .tldmir-logo-cloud__heading {
    text-align: left;
    padding-right: 2rem;
    border-right: 1px solid rgb(255 255 255 / 0.12);
  }

  .tldmir-logo-cloud__heading p {
    max-width: 13rem;
  }

  .tldmir-logo-cloud__tools {
    justify-content: flex-end;
    margin-top: 0.5rem;
  }

  .tldmir-logo-cloud__footer {
    justify-content: space-between;
  }
}

@media (max-width: 639px) {
  [data-tldmir-logo-cloud].is-enhanced > section {
    padding-block: 2.5rem;
  }

  .tldmir-logo-cloud__stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .tldmir-logo-cloud__slot {
    height: 4rem;
  }

  .tldmir-logo-cloud__slot img {
    max-height: 4rem;
  }

  .tldmir-logo-cloud__footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tldmir-logo-cloud__stage {
    display: none;
  }

  .tldmir-logo-cloud__slot img,
  .tldmir-logo-cloud__button {
    transition: none;
  }
}

/* Keep the shared component and its static fallback independent of global scroll reveals. */
[data-tldmir-logo-cloud] .fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}
