/* Grombi / AEHEA editorial card alignment V1.0. Scoped to editorial cards. */
/* Reviews and guides: pair rows even when either column has longer copy. */
@media (min-width: 800px) {
  .ge-section .ge-shelves {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    grid-auto-flow: row dense;
    align-items: stretch;
  }
  .ge-section .ge-shelves > section,
  .ge-section .ge-shelves > section > .ge-grid { display: contents; }
  .ge-section .ge-shelves > section > .ge-section-head { grid-row: 1; min-width: 0; }
  .ge-section .ge-shelves > section:first-child > .ge-section-head,
  .ge-section .ge-shelves > section:first-child > .ge-grid > * { grid-column: 1; }
  .ge-section .ge-shelves > section:nth-child(2) > .ge-section-head,
  .ge-section .ge-shelves > section:nth-child(2) > .ge-grid > * { grid-column: 2; }
  .ge-section .ge-shelves > section > .ge-grid > * { grid-row: auto; }
}
@media (max-width: 799.98px) {
  .ge-section .ge-shelves { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ge-section .ge-shelves > section { min-width: 0; }
}
/* Equal-height peers in existing regular grids; retain the original column
   counts, breakpoints, image ratios and feature spans. */
:is(.ge-archive-grid,.ge-grid,.hw-home-grid,.hw-archive-grid,.gear-home-grid,.gear-archive-grid,.ed-grid,.gn-grid,.gh-story-grid,.gm-dispatch-grid,.aehea-home-news-grid,.aehea-news-grid) {
  align-items: stretch;
}
:is(.ge-archive-grid,.ge-grid,.hw-home-grid,.hw-archive-grid,.gear-home-grid,.gear-archive-grid,.ed-grid,.gn-grid,.gh-story-grid,.gm-dispatch-grid,.aehea-home-news-grid,.aehea-news-grid) > :is(.ge-card,.hw-card,.gear-card,.ed-card,.gn-card,.gm-story,.aehea-home-news-card,.aehea-news-card) {
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  height: auto;
}
.ge-section .ge-shelves .ge-card,
.ge-archive-grid > .ge-card,
.ed-grid > .ed-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-self: stretch;
  height: auto;
}
.ge-section .ge-shelves .ge-card > .ge-more,
.ge-archive-grid > .ge-card > .ge-more,
.ed-grid > .ed-card > .ed-read { margin-top: auto; }
/* Keep the natural media geometry; prevent flex from squeezing thumbnails. */
:is(.ge-card,.ed-card) > :is(a, picture, img):first-child { flex-shrink: 0; }
/* Text may wrap naturally, including long game names and hardware models. */
:is(.ge-card,.hw-card,.gear-card,.ed-card,.gn-card,.gm-story,.gh-report,.aehea-home-news-card,.aehea-news-card) :is(h2,h3,p) { min-width: 0; overflow-wrap: anywhere; }
/* Copy wrappers already in regular grids can fill their available height. */
:is(.gn-grid > .gn-card,.gh-story-grid > .gm-story,.gm-dispatch-grid > .gm-story) > :is(.gn-copy,.gm-story-copy) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
:is(.gn-grid > .gn-card,.gh-story-grid > .gm-story,.gm-dispatch-grid > .gm-story) > :is(.gn-copy,.gm-story-copy) > :is(.gn-read,.gm-story-read) { margin-top: auto; }
