/**
 * 0.2.62 — Ana sayfa / Bugün Öne Çıkanlar + Bilimsel Keşifler ONLY.
 * Keep section order, WordPress queries, media URLs, discovery cards and banner.
 * Replace nested rims/glow with a quiet surface, make real titles legible.
 */
body.dn-dark-home .home-main {
  --don-story-surface: var(--don-surface);
  --don-story-border: var(--don-line);
  --don-story-copy: var(--don-optical-muted);
}
/* The card's own edge is the only edge: no box-shadow rim + media rim. */
body.dn-dark-home .home-main :is(.home-featured__cards > .story-card, .home-science__grid > .story-card, .home-featured__rail > .story-card--compact) {
  min-width: 0;
  overflow: hidden;
  background: var(--don-story-surface);
  border: 1px solid var(--don-story-border);
  border-radius: 9px;
  box-shadow: none;
}
body.dn-dark-home .home-main :is(.home-featured, .home-science) .story-card__media {
  overflow: hidden;
  border-radius: 0;
  background: var(--don-surface-raised);
}
body.dn-dark-home .home-main :is(.home-featured, .home-science) .story-card__media::after {
  box-shadow: none;
  border-radius: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(4, 14, 9, .15) 100%);
}
body.dn-dark-home .home-main :is(.home-featured, .home-science) .story-card__media img {
  filter: saturate(.99) contrast(1.015);
}
body.dn-dark-home .home-main :is(.home-featured__cards, .home-science__grid) > .story-card .story-card__body {
  min-width: 0;
  padding: 12px 13px 14px;
}
body.dn-dark-home .home-main :is(.home-featured, .home-science) .story-card__title {
  margin-top: 5px;
  font-family: var(--wpia-serif);
  line-height: 1.21;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
}
body.dn-dark-home .home-main :is(.home-featured, .home-science) .story-card__title a {
  color: #f0f3eb;
}
body.dn-dark-home .home-main :is(.home-featured, .home-science) .story-card__excerpt {
  color: var(--don-story-copy);
  line-height: 1.43;
  overflow-wrap: break-word;
}
/* Featured: keep 3 stories + 2 compact support stories on desktop. */
body.dn-dark-home .home-main .home-featured__grid { gap: 13px; }
body.dn-dark-home .home-main .home-featured__cards { gap: 13px; }
body.dn-dark-home .home-main .home-featured__cards .story-card__title {
  font-size: clamp(1rem, 1.24vw, 1.22rem);
}
body.dn-dark-home .home-main .home-featured__cards .story-card__category {
  font-size: .64rem;
  letter-spacing: .105em;
}
body.dn-dark-home .home-main .home-featured__cards .story-card__excerpt {
  margin-top: 7px;
  font-size: .77rem;
}
body.dn-dark-home .home-main .home-featured__rail { gap: 9px; }
body.dn-dark-home .home-main .home-featured__rail > .story-card--compact {
  grid-template-columns: 40% minmax(0,1fr);
  height: 100%;
}
body.dn-dark-home .home-main .home-featured__rail .story-card__body {
  padding: 11px 12px;
}
body.dn-dark-home .home-main .home-featured__rail .story-card__title {
  margin: 0;
  font-size: clamp(.83rem, 1vw, .98rem);
  line-height: 1.23;
}
/* Scientific discoveries: photos remain uniform, text has readable editorial hierarchy. */
body.dn-dark-home .home-main .home-science__grid { gap: 12px; }
body.dn-dark-home .home-main .home-science__grid > .story-card .story-card__media {
  aspect-ratio: 16 / 10;
}
body.dn-dark-home .home-main .home-science__grid .story-card__title {
  margin: 0;
  font-size: clamp(.92rem, 1.05vw, 1.06rem);
  line-height: 1.23;
}
body.dn-dark-home .home-main .home-science__grid .story-card__excerpt {
  margin-top: 8px;
  font-size: .77rem;
}
@media (hover:hover) and (pointer:fine) {
  body.dn-dark-home .home-main :is(.home-featured__cards > .story-card, .home-science__grid > .story-card, .home-featured__rail > .story-card--compact):hover {
    background: #1b2b20;
    border-color: rgba(183, 209, 176, .28);
    box-shadow: none;
  }
}
body.dn-dark-home .home-main :is(.home-featured__cards > .story-card, .home-science__grid > .story-card, .home-featured__rail > .story-card--compact):focus-within {
  outline: 2px solid #d2f1b8;
  outline-offset: 2px;
  box-shadow: none;
}
/* At tablet widths four narrow Science columns compress Turkish headings. */
@media (min-width:768px) and (max-width:899px) {
  body.dn-dark-home .home-main .home-science__grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
/* If timeline is alongside science on desktop, 2 readable columns rather than 4 tiny cards. */
@media (min-width:900px) {
  body.dn-dark-home .home-main .home-duo--science-timeline:has(> .home-timeline) .home-science__grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width:767px) {
  body.dn-dark-home .home-main .home-featured__grid { gap: 10px; }
  body.dn-dark-home .home-main .home-featured__cards { gap: 0; }
  body.dn-dark-home .home-main .home-featured__cards > .story-card:first-child .story-card__body {
    padding: 13px 13px 15px;
  }
  body.dn-dark-home .home-main .home-featured__cards > .story-card:not(:first-child) {
    grid-template-columns: 94px minmax(0,1fr);
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid var(--don-story-border);
  }
  body.dn-dark-home .home-main .home-featured__cards > .story-card:not(:first-child) .story-card__body {
    padding: 3px 3px 3px 0;
  }
  body.dn-dark-home .home-main .home-featured__cards > .story-card:not(:first-child) .story-card__title {
    font-size: .93rem;
  }
  body.dn-dark-home .home-main .home-featured__rail > .story-card--compact {
    grid-template-columns: 96px minmax(0,1fr);
    min-height: 88px;
  }
  body.dn-dark-home .home-main .home-featured__rail .story-card__body {
    padding: 9px 10px;
  }
  body.dn-dark-home .home-main .home-science__grid { gap: 10px; }
  body.dn-dark-home .home-main .home-science__grid > .story-card .story-card__body {
    padding: 10px 10px 12px;
  }
  body.dn-dark-home .home-main .home-science__grid .story-card__title {
    font-size: .92rem;
    line-height: 1.26;
  }
  /* Preserve existing mobile decision: no tiny snippets below two-column titles. */
  body.dn-dark-home .home-main .home-science__grid .story-card__excerpt {
    display: none;
  }
}
@media (max-width:359px) {
  body.dn-dark-home .home-main .home-featured__cards > .story-card:not(:first-child) {
    grid-template-columns: 84px minmax(0,1fr);
  }
  body.dn-dark-home .home-main .home-featured__rail > .story-card--compact {
    grid-template-columns: 84px minmax(0,1fr);
  }
  body.dn-dark-home .home-main .home-science__grid .story-card__title {
    font-size: .88rem;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.dn-dark-home .home-main :is(.home-featured__cards > .story-card, .home-science__grid > .story-card, .home-featured__rail > .story-card--compact) {
    transition: none;
  }
}
