/* EXKO — V17: unify accreditation order cards with document catalog cards.
   Scoped to the accreditation-documents section; no other page is changed. */
.section-listing-cards--hub-visual.exko-document-cards-v17 .section-listing-cards__card .card__inner {
  height: 100%;
}
.section-listing-cards--hub-visual.exko-document-cards-v17 .section-listing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
/* The first two orders used full-bleed landscape images. Place them in
   a light document-preview area like the other certificates and PDFs. */
.section-listing-cards--hub-visual.exko-document-cards-v17 .exko-document-image-v17 {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 16 / 8.7;
  padding: clamp(.6rem, 1.5vw, 1rem);
  overflow: hidden;
  background: var(--color-primary-soft, #edf4f6);
}
.section-listing-cards--hub-visual.exko-document-cards-v17 .exko-document-image-v17 img {
  display: block;
  width: auto;
  max-width: min(84%, 320px);
  height: 89%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 5px rgba(20, 40, 50, .11));
  transition: transform .2s ease;
}
@media (hover:hover) {
  .section-listing-cards--hub-visual.exko-document-cards-v17 .exko-document-image-v17:hover img {
    transform: scale(1.025);
  }
}
/* Inline PDF actions mirror those of the charter, INN, OGRN and SRO cards. */
.section-listing-cards--hub-visual.exko-document-cards-v17 .exko-document-actions-v17 {
  margin-top: auto;
  margin-bottom: var(--space-5, 1.25rem);
  padding-top: var(--space-3, .75rem);
}
.section-listing-cards--hub-visual.exko-document-cards-v17 .exko-document-actions-v17 .section-listing-card__link {
  display: inline;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
@media(max-width:767px) {
  .section-listing-cards--hub-visual.exko-document-cards-v17 .exko-document-actions-v17 {
    margin-bottom: var(--space-4, 1rem);
  }
}
