/* Count only cards active in the selected audience, after home.js sorts them. */
.odh-home .news-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 14px;
  align-items: stretch;
}
.odh-home .news-grid > .post-card { min-width: 0; }
.odh-home .news-grid > .post-card:nth-child(n+5 of :not([hidden])) { display: none; }
.odh-home .news-grid > .lead { grid-column: 1; grid-row: 1 / span 3; }
.odh-home .news-grid .lead .post-photo { height: 220px; }
.odh-home .news-grid .lead .body { padding: 22px; }
.odh-home .news-grid h3 {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.odh-home .news-grid .lead h3 { font-size: 24px; margin: 10px 0 0; }
.odh-home .news-grid .lead p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 12px;
}
.odh-home .news-grid .post-card:not(.lead) .body { padding: 18px 20px; }
.odh-home .news-grid .post-card:not(.lead) h3 { font-size: 17px; margin-top: 8px; }
.odh-home .news-grid .post-card footer { margin-top: 14px; }
@media (max-width: 600px) {
  .odh-home .news-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 10px; }
  .odh-home .news-grid > .lead { grid-column: auto; grid-row: auto; }
  .odh-home .news-grid .lead .post-photo { height: 205px; }
  .odh-home .news-grid .lead h3 { font-size: 22px; }
  .odh-home .news-grid .post-card:not(.lead) .body { padding: 16px 18px; }
}

/* Six stories on desktop (one lead + five rows), five stories on mobile. */
.odh-home .news-grid {
  grid-template-rows: repeat(5, auto);
  gap: 10px;
}
.odh-home .news-grid > .post-card:nth-child(n+5 of :not([hidden])) {
  display: flex;
}
.odh-home .news-grid > .post-card:nth-child(n+7 of :not([hidden])) {
  display: none;
}
.odh-home .news-grid > .lead {
  grid-row: 1 / span 5;
}
.odh-home .news-grid .post-card h3 {
  font-family: Inter, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}
.odh-home .news-grid .post-card:not(.lead) .body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding: 12px 16px;
}
.odh-home .news-grid .post-card:not(.lead) .body > small {
  grid-column: 1;
  font-size: 10px;
}
.odh-home .news-grid .post-card:not(.lead) h3 {
  grid-column: 1;
  font-size: 16px;
  line-height: 1.35;
  margin-top: 4px;
}
.odh-home .news-grid .post-card:not(.lead) footer {
  display: none;
}
.odh-home .news-grid .post-card:not(.lead) .post-link {
  transition: background .18s ease;
}
.odh-home .news-grid .post-card:not(.lead) .post-link:is(:hover, :focus-visible) {
  background: #f3f6f2;
}
/* Give the photograph the space left above the bottom-aligned caption. */
.odh-home .news-grid .lead .post-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.odh-home .news-grid .lead .post-photo {
  width: 100%;
  height: 340px;
  min-height: 340px;
  flex: 1 1 340px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.odh-home .news-grid .lead .body {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
  padding: 13px 18px 15px;
}
.odh-home .news-grid .lead .body > small {
  grid-column: 1;
}
.odh-home .news-grid .lead h3 {
  grid-column: 1;
  margin-top: 6px;
  font-size: 19px;
  line-height: 1.35;
}
.odh-home .news-grid .lead p {
  display: none;
}
.odh-home .news-grid .lead footer {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  margin: 0;
}
.odh-home .news-grid .post-card footer {
  justify-content: flex-end;
}
.odh-home .news-grid .post-card footer > span:empty {
  display: none;
}
/* The whole card remains one link; this is its visible action label. */
.odh-home .news-grid .post-card footer > span.odh-news-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--moss);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  transition: background .18s ease, box-shadow .18s ease;
}

.odh-home .news-grid .lead footer > span.odh-news-read {
  background: var(--sun);
  color: var(--ink);
}
.odh-home .news-grid .post-link:is(:hover, :focus-visible) footer > span.odh-news-read {
  box-shadow: 0 0 0 3px #29524420;
  background: var(--dark);
}
.odh-home .news-grid .lead .post-link:is(:hover, :focus-visible) footer > span.odh-news-read {
  background: #f6ca68;
  box-shadow: 0 0 0 3px #eab94f30;
}
@media (max-width: 600px) {
  .odh-home .news-grid {
    grid-template-rows: auto;
    gap: 8px;
  }
  .odh-home .news-grid > .lead {
    grid-row: auto;
  }
  .odh-home .news-grid > .post-card:nth-child(n+6 of :not([hidden])) {
    display: none;
  }
  .odh-home .news-grid .post-card:not(.lead) .body {
    padding: 12px 14px;
    column-gap: 10px;
  }
  .odh-home .news-grid .post-card:not(.lead) h3 {
    font-size: 15px;
  }
  .odh-home .news-grid .lead .post-link {
    display: flex;
    height: auto;
  }
  .odh-home .news-grid .lead .post-photo {
    min-height: 0;
    flex: none;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .odh-home .news-grid .lead .body {
    padding: 12px 14px 14px;
    column-gap: 12px;
  }
  .odh-home .news-grid .lead h3 {
    font-size: 17px;
  }
  .odh-home .news-grid .lead footer {
    grid-row: 1;
    align-self: center;
  }
  .odh-home .news-grid .lead .body > small {
    align-self: center;
  }
  .odh-home .news-grid .lead h3 {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .odh-home .news-grid .post-card footer > span.odh-news-read,
  .odh-home .news-grid .post-card:not(.lead) .post-link {
    transition: none;
  }
}
