/* The source page supplies the surrounding layout. Only catalogue results use these rows. */
.subject-directory-browser .subject-grid,
.pdf-download-grid,
.example-section .ee-guide-grid,
.example-library {
  --catalog-thumb: clamp(74px, 10vw, 100px);
}

.subject-directory-browser .subject-card:not([hidden]),
.pdf-download-grid .pdf-set:not([hidden]),
.example-section .ee-guide-card:not([hidden]),
.example-library .example-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--catalog-thumb);
  align-content: start;
  align-items: start;
  gap: 9px 14px;
  min-width: 0;
  min-height: 0;
  padding: 18px 0 24px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
}

.subject-directory-browser .subject-card > *,
.pdf-download-grid .pdf-set > *,
.example-section .ee-guide-card > *,
.example-library .example-feature > *,
.subject-directory-browser .subject-card-copy > * {
  grid-column: 1 / -1;
  min-width: 0;
}

.subject-directory-browser .subject-card-copy { display: contents; }
.subject-directory-browser .subject-card .subject-group-label,
.pdf-download-grid .pdf-set > .eyebrow,
.example-section .ee-guide-card > span:not(.source-availability),
.example-library .example-feature > .paper-label {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.subject-directory-browser .subject-card-copy > h2,
.pdf-download-grid .pdf-set > h2,
.example-section .ee-guide-card > h3,
.example-library .example-feature > h2 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  min-height: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.22;
}

.subject-directory-browser .subject-card > figure,
.pdf-download-grid .pdf-set > .pdf-set-art,
.example-section .ee-guide-card > .guide-thumb,
.example-library .example-feature > .subject-plate {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  justify-self: end;
  width: var(--catalog-thumb);
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
}

.subject-directory-browser .subject-card > figure img,
.pdf-download-grid .pdf-set > .pdf-set-art img,
.example-section .ee-guide-card > .guide-thumb img,
.example-library .example-feature > .subject-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subject-directory-browser .subject-card-copy > p,
.pdf-download-grid .pdf-set > .curated-mark,
.pdf-download-grid .pdf-set > .curated-summary,
.example-section .ee-guide-card > p,
.example-library .example-feature > p,
.example-library .example-feature > strong {
  margin: 0;
}

.example-section .ee-guide-card:hover,
.example-library .example-feature:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--accent);
}
.pdf-download-grid .pdf-set-files { width: 100%; }
.subject-directory-browser .subject-past-papers { margin: 0; }
@media (max-width: 620px) {
  .subject-directory-browser .subject-grid,
  .pdf-download-grid,
  .example-section .ee-guide-grid { row-gap: 0; }
  .subject-directory-browser .subject-card-actions { margin-top: 4px; }
}
