/* Keep entries without thumbnails out of the fixed thumbnail column. */
body[data-design] .copy-card > summary:not(:has(> .card-thumb)) {
  grid-template-columns: auto minmax(0, 1fr) !important;
  padding-right: 36px !important;
}
body[data-design] .copy-card > summary:not(:has(> .card-thumb)) > .sumtext {
  grid-column: 2;
  min-width: 0;
}
/* The summary already draws its disclosure arrow with ::after. */
body[data-design] .copy-card > summary > em {
  display: none !important;
}
@media (max-width: 520px) {
  body[data-design] .copy-card > summary:not(:has(> .card-thumb)) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body[data-design] .copy-card > summary:not(:has(> .card-thumb)) > .sumtext {
    grid-column: 1;
  }
}

/* Retain the Light theme's white labels on expanded dark headers. */
body.design-folio .copy-card[open] > summary .cid,
body.design-folio .copy-card[open] > summary .photo-count {
  color: #fff !important;
}
body.design-folio .copy-card[open] > summary::after {
  border-color: #fff;
}
