/* Keep the approved flat cover complete: no crop, repeated title or mockup effect. */
body[data-page="home"] .home-guide-grid {
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
}

body[data-page="home"] .home-guide-cover-link {
  width: min(100%, 340px);
  justify-self: center;
  aspect-ratio: 2 / 3;
  background: transparent;
}

body[data-page="home"] .home-guide-cover-link img {
  object-fit: contain;
}

body[data-page="home"] .home-guide-cover-link:hover img {
  transform: none;
}

body[data-page="home"] .home-guide-cover-link:focus-visible {
  outline: 2px solid #1d1d1f;
  outline-offset: 6px;
}

.guidebook-cover-art {
  width: min(100%, 360px);
  min-height: 0;
  justify-self: center;
  aspect-ratio: 2 / 3;
  background: transparent;
  box-shadow: none;
}

.guidebook-cover-art::after {
  content: none;
}

.guidebook-cover-art > img {
  object-fit: contain;
  object-position: center;
}

.guide-library-card-image--cover {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.guide-library-card-image--cover img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.guide-library-card-link:hover .guide-library-card-image--cover img {
  transform: none;
}

@media (max-width: 900px) {
  body[data-page="home"] .home-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-guide-cover-link,
  .guidebook-cover-art {
    width: min(100%, 280px);
  }
}
