/* Shared normal discovery card: Home Explore, archive and Story continuation.
 * Keep the archive's 1rem internal rhythm and bounded editorial text rail.
 * Rows grow from content; neither descriptions nor CTAs reserve empty height. */
.wiscohana-discovery-item { position:relative; display:block; min-width:0; margin:0; padding:0; }
.wiscohana-discovery-card { position:relative; display:block; min-width:0; color:var(--wiscohana-color-ink); background:transparent; border:0; border-radius:0; box-shadow:none; }
.wiscohana-discovery-card__media { display:block; aspect-ratio:3/2; overflow:hidden; }
.wiscohana-discovery-card__image { display:block; width:100%; height:100%; object-fit:cover; }
.wiscohana-discovery-card__media[data-fit="contain"] img { object-fit:contain; }
.wiscohana-discovery-card__body { display:flex; flex-direction:column; align-items:flex-start; gap:1rem; width:min(100%,calc(52ch + 3rem)); margin-inline:auto; padding:1.5rem 1.5rem 2rem; font:1.0625rem/1.7 var(--wiscohana-font-editorial); overflow-wrap:anywhere; }
.wiscohana-discovery-card .wiscohana-discovery-card__title { margin:0; padding:0; font:500 clamp(1.625rem,2.2vw,2rem)/1.2 var(--wiscohana-font-editorial); letter-spacing:-.025em; }
.wiscohana-discovery-card__title a { color:inherit; text-decoration:none; }
/* The title also activates the photograph. Premise selection and the explicit
 * Read Story link remain above the stretched area. */
.wiscohana-discovery-card__title a::after { content:""; position:absolute; inset:0; z-index:1; }
.wiscohana-discovery-card .wiscohana-discovery-card__excerpt { position:relative; z-index:2; margin:0; padding:0; font:1.0625rem/1.7 var(--wiscohana-font-editorial); }
.wiscohana-discovery-card__cue { position:relative; z-index:2; margin:0; }
.wiscohana-discovery-card__title a:hover { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.15em; }
.wiscohana-discovery-card:focus-within { outline:2px solid var(--wiscohana-color-ink); outline-offset:-4px; }
@media(min-width:48rem) {
 /* One moderate desktop rail for the complete title/premise/CTA group. */
 .wiscohana-discovery-card__body { width:min(100%,calc(40ch + 3rem)); }
 .wiscohana-discovery-item:not(:last-child)::after { content:""; position:absolute; inset:0 0 0 auto; border-right:1px solid var(--wiscohana-color-rule); pointer-events:none; }
 .wiscohana-archive__grid > .wiscohana-discovery-item:nth-child(3n)::after { content:none; }
}
@media(min-width:48rem) and (max-width:63.999rem) {
 .wiscohana-archive__grid > .wiscohana-discovery-item:nth-child(3n):not(:last-child)::after { content:""; }
 .wiscohana-archive__grid > .wiscohana-discovery-item:nth-child(2n)::after { content:none; }
}
@media(max-width:47.999rem) {
 .wiscohana-discovery-card .wiscohana-discovery-card__title { font-size:1.5rem; }
}

/* End the shared discovery group where it meets another light section.
 * Photographic row transitions already separate cards; only a following
 * text-only card needs an additional rule in the stacked layout. */
:is(.wiscohana-home-explore__grid, .wiscohana-archive__grid, .wiscohana-related-stories > ol) { border-bottom:1px solid var(--wiscohana-color-rule); }
@media(max-width:47.999rem) {
 .wiscohana-discovery-item + .wiscohana-discovery-item:has(.wiscohana-discovery-card--text) { border-top:1px solid var(--wiscohana-color-rule); }
}
