/* Only cards whose cover helper emitted the text marker are changed. */
.post-list-thumb:has(.iro-text-cover) {
  --iro-text-title: #505050;
  --iro-text-muted: #666;
  --iro-text-badge: rgb(80 80 80 / 6%);
  --iro-text-rule: rgb(125 125 125 / 22%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "date meta" "title title" "excerpt excerpt";
  align-items: start;
  gap: 18px 12px;
  box-sizing: border-box;
  height: auto;
  block-size: auto;
  min-height: 0;
  padding: 24px;
}
body.dark .post-list-thumb:has(.iro-text-cover) {
  --iro-text-title: var(--dark-text-primary, #ccc);
  --iro-text-muted: #b3b3b3;
  --iro-text-badge: rgb(255 255 255 / 5%);
  --iro-text-rule: rgb(180 180 180 / 22%);
}
.post-list-thumb:has(.iro-text-cover) > .post-thumb {
  display: none;
}
/* The parent uses both physical and logical properties at its breakpoints. */
.post-list-thumb:has(.iro-text-cover) > :is(.post-date, .post-meta, .post-title, .post-excerpt) {
  position: static;
  inset: auto;
  inset-block: auto;
  inset-inline: auto;
  width: auto;
  inline-size: auto;
  height: auto;
  block-size: auto;
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
  max-inline-size: 100%;
  max-height: none;
  max-block-size: none;
  margin: 0;
  overflow-wrap: anywhere;
}
.post-list-thumb:has(.iro-text-cover) > .post-date {
  grid-area: date;
  justify-self: start;
  white-space: normal;
}
.post-list-thumb:has(.iro-text-cover) > .post-meta {
  grid-area: meta;
  justify-self: end;
  flex-flow: row wrap;
  white-space: normal;
  gap: 5px 12px;
}
/* Do not resurrect metadata hidden by the theme's display-elements option. */
.post-list-thumb:has(.iro-text-cover) > .post-meta:not(:has(> *)) {
  display: none;
}
.post-list-thumb:has(.iro-text-cover) > :is(.post-date, .post-meta) {
  color: var(--iro-text-muted) !important;
  background-color: var(--iro-text-badge) !important;
  border-color: var(--iro-text-rule) !important;
}
.post-list-thumb:has(.iro-text-cover) .post-meta :is(a, i),
.post-list-thumb:has(.iro-text-cover) .post-date > i {
  color: inherit !important;
  white-space: normal;
}
.post-list-thumb:has(.iro-text-cover) > .post-title {
  grid-area: title;
  justify-self: start;
  box-sizing: border-box;
}
.post-list-thumb:has(.iro-text-cover) .post-title h3 {
  color: var(--iro-text-title);
  line-height: 1.7;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.post-list-thumb:has(.iro-text-cover) .post-title h3:hover,
.post-list-thumb:has(.iro-text-cover) .post-meta a:hover {
  color: var(--article-theme-highlight, var(--theme-skin-matching, #777)) !important;
}
.post-list-thumb:has(.iro-text-cover) > .post-excerpt {
  grid-area: excerpt;
  display: block;
  box-sizing: border-box;
  padding: 0 2px;
  overflow: visible;
  line-height: 1.9;
  letter-spacing: normal;
  color: var(--iro-text-muted) !important;
}
.post-list-thumb:has(.iro-text-cover) .post-excerpt p {
  display: block;
  position: static;
  height: auto;
  block-size: auto;
  max-height: none;
  max-block-size: none;
  -webkit-line-clamp: unset;
  overflow: visible;
  overflow-wrap: anywhere;
}
.post-list-thumb:has(.iro-text-cover) .ai-excerpt-tip {
  float: none;
  margin: 0 0 5px;
}
/* The ticket keeps a perforated division between title and summary. */
@media (min-width: 861px) {
  body.iro-cards-ticket .post-list-thumb:has(.iro-text-cover) {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-areas: "date excerpt" "title excerpt" "meta excerpt";
    gap: 16px 28px;
  }
  body.iro-cards-ticket .post-list-thumb:has(.iro-text-cover) > .post-meta {
    justify-self: start;
  }
  body.iro-cards-ticket .post-list-thumb:has(.iro-text-cover) > .post-excerpt {
    align-self: stretch;
    border-inline-start: 1px dashed var(--iro-text-rule);
    padding-inline-start: 28px;
  }
}
@media (max-width: 860px) {
  .post-list-thumb:has(.iro-text-cover) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "date" "meta" "title" "excerpt";
    gap: 14px;
    padding: 20px 18px;
  }
  .post-list-thumb:has(.iro-text-cover) > .post-meta {
    justify-self: start;
  }
  .post-list-thumb:has(.iro-text-cover) > .post-title {
    padding: 9px 12px;
  }
}
