/* documents-only.css — CSS for the Documents page only (scoped under .documents-section) */

/* Keep the documents grid two-up on wide screens (scoped) */
.documents-section .document-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Two-column layout on desktop */
@media (min-width: 1024px) {
  .documents-section .document-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card-style document items */
.documents-section .document-grid .document-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* Small colored accent in top-left (subtle visual cue) */
.documents-section .document-grid .document-item::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  width: 8px;
  height: 24px;
  background: linear-gradient(180deg,#0066cc,#004499);
  border-radius: 2px;
  opacity: 0.95;
}

/* Titles: left-aligned and prominent */
.documents-section .document-grid .document-item h4 {
  margin: 0;
  padding: 0;
  color: #0b4a8b;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.15;
}

/* Body copy: left aligned and comfortable line length */
.documents-section .document-grid .document-item p,
.documents-section .document-grid .document-item ol,
.documents-section .document-grid .document-item ul {
  margin: 0;
  padding: 0;
  color: #495057;
  line-height: 1.6;
}

/* Make store badges sit inline and aligned left */
.documents-section .store-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

/* Badge sizing */
.documents-section .store-badge img {
  height: 44px;
  width: auto;
  display: block;
}

/* Registration CTA: left-aligned under content */
.documents-section .registration-link {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

/* Make the primary-button slightly smaller inside cards for balance */
.documents-section .document-grid .primary-button {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border-radius: 6px;
}

/* Ensure content stacks neatly on small screens */
@media (max-width: 767px) {
  .documents-section .document-grid .document-item {
    padding: 1rem;
  }
  .documents-section .store-badge img {
    height: 44px;
  }
  .documents-section .document-grid .primary-button {
    width: 100%;
    text-align: center;
  }
}

/* Uniform section: indented lists and responsive right-side image (scoped) */
.documents-section .uniform-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.documents-section .uniform-text {
  flex: 1 1 auto;
  min-width: 0; /* allow text to shrink correctly */
}

/* List indentation for readable wrapping lines */
.documents-section .uniform-list {
  margin: 0 0 1rem 1.25rem;    /* space around the list block */
  padding-left: 1rem;         /* room for marker */
  list-style-position: outside;
}

.documents-section .uniform-list li {
  margin-bottom: 0.5rem;
}

/* Image container - small on mobile (under text) */
.documents-section .uniform-media {
  margin-top: 0.5rem;
  flex: 0 0 auto;
}

.documents-section .uniform-image {
  width: 140px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

/* Desktop: place image to the right and make it a bit larger */
@media (min-width: 1024px) {
  .documents-section .uniform-row {
    flex-direction: row;
    align-items: flex-start; /* change to center or end if you prefer different vertical alignment */
  }

  .documents-section .uniform-text {
    flex: 1 1 auto;
  }

  .documents-section .uniform-media {
    margin-top: 0;
    margin-left: 1.25rem;
    flex: 0 0 220px;       /* image column width on desktop */
    display: flex;
    align-items: flex-start; /* top align image with text */
    justify-content: center;
  }

  .documents-section .uniform-image {
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  /* Slightly increase list indent on wide screens for better readability */
  .documents-section .uniform-list {
    padding-left: 1.5rem;
    margin-left: 0.25rem;
  }
}
