.document {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.document .card-links {
  margin-bottom: 0;
}
.document .card-link {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.document .card-link:hover {
  text-decoration: none;
}
.document .card-link:not(.stretched-link),
.document .download-link {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.document .card-body {
  --bs-card-spacer-y: 1rem;
  --bs-card-spacer-x: 1rem;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .document .card-body {
    flex: 1 1 0%;
  }
}
@media (min-width: 992px) {
  .document .card-body {
    --bs-card-spacer-y: 2rem;
    --bs-card-spacer-x: 2rem;
    gap: 1rem;
  }
}
.document .file-link .icon {
  color: var(--bs-body-color);
}
@media (min-width: 992px) {
  .document .file-link .icon {
    width: 1.5rem;
    height: auto;
  }
}
.document .card-img {
  flex: 0 1 36.5%;
  max-width: 14.875rem;
}
@media (max-width: 767.98px) {
  .document .card-img {
    flex: 1 1 100%;
    order: 2;
    width: auto;
    max-width: none;
    padding: 0 var(--bs-card-spacer-x) var(--bs-card-spacer-y) var(--bs-card-spacer-x);
  }
  .document .card-img img {
    max-width: 35%;
    transform: none;
  }
}
@media (max-width: 767.98px) {
  .document.card-horizontal {
    flex-direction: column;
  }
}
@media (min-width: 1200px) {
  .no-sidebars .document {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .no-sidebars .document .card-img {
    flex: 1 1 36.5%;
  }
  .no-sidebars .document .document:only-child {
    grid-column: span 2;
  }
}

.documents {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.documents .document {
  margin-top: 0;
  margin-bottom: 0;
}
@media (min-width: 1200px) {
  .no-sidebars .documents {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .no-sidebars .documents .card-img {
    flex: 1 1 36.5%;
  }
  .no-sidebars .documents .document:only-child {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {
  .sidebar .document {
    flex-direction: column;
  }
}
@media (min-width: 992px) {
  .sidebar .document .card-link {
    font-size: 1rem;
  }
}
.sidebar .document .card-body {
  --bs-card-spacer-y: 1rem;
  --bs-card-spacer-x: 1rem;
  gap: 0.5rem;
}
@media (min-width: 992px) {
  .sidebar .document .card-body {
    flex: 1 1 100%;
  }
}
@media (min-width: 992px) {
  .sidebar .document .card-img {
    flex: 0 0 auto;
    order: 2;
    max-width: none;
    padding: 0 var(--bs-card-spacer-x) var(--bs-card-spacer-y) var(--bs-card-spacer-x);
  }
  .sidebar .document .card-img img {
    width: auto;
    height: auto;
    max-width: 35%;
    transform: none;
  }
}

.details.details-style--chevron .document {
  --bs-card-border-width: 0;
}
.details.details-style--chevron .document .card-body {
  --bs-card-spacer-y: 0;
  --bs-card-spacer-x: 0;
}

.details .document .card-img {
  z-index: unset;
}

.container-size-sm .documents {
  grid-template-columns: 1fr;
}