/* v80.8.69 — Shared public story-card heading safety.
   Rating badges previously used position:absolute and could paint over long
   titles, status badges, edition markers and ranks. Reserve actual space. */
.genre-story-card .genre-story-body {
  display:grid;
  grid-template-columns:minmax(0, 1fr) max-content;
  column-gap:clamp(.8rem, 1.5vw, 1.4rem);
  align-content:start;
  min-width:0;
}
.genre-story-card .genre-story-body > .genre-story-title {
  grid-column:1;
  grid-row:1;
  min-width:0;
  align-self:start;
}
.genre-story-card .genre-story-title h2 {
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
}
/* Keep the ordinal and the beginning of a long title on the same line;
   status and edition markers may wrap separately below. */
.genre-story-card .genre-story-title > .rw868-rank + h2 {
  max-width:calc(100% - 5.15rem);
}
.genre-story-card .genre-story-body > .rw432-genre-rating {
  position:static;
  grid-column:2;
  grid-row:1;
  justify-self:end;
  align-self:start;
  z-index:auto;
  margin:0;
  max-width:205px;
  min-width:0;
  text-align:right;
}
.genre-story-card .genre-story-body > :not(.genre-story-title):not(.rw432-genre-rating) {
  grid-column:1 / -1;
  min-width:0;
}
/* In narrower viewports the full title gets the entire available width;
   rating follows the title/status before byline, never floating on top. */
@media (max-width:900px) {
  .genre-story-card .genre-story-body {
    grid-template-columns:minmax(0, 1fr);
  }
  .genre-story-card .genre-story-body > .rw432-genre-rating {
    grid-column:1;
    grid-row:2;
    justify-self:start;
    text-align:left;
    margin:.25rem 0 .1rem;
  }
}
