/**
 * 0.2.61 — homepage-only restrained editorial surfaces.
 * The approved six discovery category cards intentionally have no rules here.
 * Keeps media dimensions, section order, routes, queries and keyboard focus.
 */
body.dn-dark-home .home-main {
  --don-home-hairline: rgba(177, 210, 168, .21);
  --don-home-muted-line: rgba(177, 210, 168, .14);
}

/* Quiet the two existing desktop navigation rows without deleting functions. */
body.dn-dark-home .site-header {
  background: #111a15;
  border-bottom-color: rgba(181, 212, 171, .17);
  box-shadow: none;
}
body.dn-dark-home .site-header__utility {
  background: #0e1711;
  border-color: rgba(177, 210, 168, .13);
}
body.dn-dark-home .site-header__masthead::before,
body.dn-dark-home .site-header__masthead::after { opacity: .16; }
body.dn-dark-home .site-header .site-nav-wrap {
  border-top-color: rgba(177, 210, 168, .12);
}
body.dn-dark-home .site-header .search-form {
  background: rgba(9, 20, 13, .34);
  border-color: rgba(177, 210, 168, .23);
  box-shadow: none;
}
body.dn-dark-home .site-header .search-submit {
  background: rgba(177, 210, 168, .045);
  border-left-color: rgba(177, 210, 168, .17);
}
body.dn-dark-home .site-header .header-account {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(177, 210, 168, .13);
}
body.dn-dark-home .site-header .header-register {
  border-color: rgba(184, 222, 171, .43);
  background: rgba(183, 219, 154, .045);
}
/* Latest-news ticker still runs and keeps its existing three links. */
body.dn-dark-home .latest-ticker {
  background: #111a15;
  border-top: 0;
  border-bottom-color: rgba(177, 210, 168, .14);
  box-shadow: none;
}
body.dn-dark-home .latest-ticker__item {
  border-left-color: rgba(177, 210, 168, .13);
}
body.dn-dark-home .latest-ticker__item[data-ticker-slot="0"] {
  border-left-color: transparent;
}
body.dn-dark-home .latest-ticker__item.is-active::before {
  background: rgba(177, 210, 168, .16);
}
body.dn-dark-home .latest-ticker__item.is-active::after {
  background: #a7c898;
}
body.dn-dark-home .latest-ticker__item:hover {
  background: rgba(177, 210, 168, .055);
}

/* The banner itself is the sole first-row visual on desktop and mobile. */
body.dn-dark-home .home-main .home-hero__lead--brand {
  box-shadow: none;
  border-color: rgba(177, 210, 168, .19);
}
body.dn-dark-home .home-main .home-hero__lead--brand::after {
  background: linear-gradient(90deg, rgba(5,12,7,.90) 0%, rgba(5,12,7,.60) 34%, rgba(5,12,7,.08) 78%),
              linear-gradient(0deg, rgba(5,12,7,.67) 0%, transparent 50%);
}
body.dn-dark-home .home-main .section-heading {
  border-bottom-color: var(--don-home-hairline);
  background: transparent;
  box-shadow: none;
}
body.dn-dark-home .home-main :is(.home-featured, .home-domestic, .home-wildlife, .home-science, .home-editor-picks, .home-species) > .section-heading::after {
  background: linear-gradient(90deg, #a9d08e, rgba(169,208,142,.14));
  height: 1px;
}
body.dn-dark-home .home-main .section-heading__link {
  color: #c3dfb1;
  text-underline-offset: 4px;
}

/* Editorial story cards: a single quiet edge, not glow+rim+big drop shadow. */
body.dn-dark-home .home-main :is(.home-featured__cards > .story-card, .home-science__grid > .story-card) {
  background: #18271c;
  border: 1px solid var(--don-home-muted-line);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease;
}
body.dn-dark-home .home-main :is(.home-featured__cards, .home-science__grid) .story-card__media::after {
  background: linear-gradient(180deg, rgba(6,20,12,0) 64%, rgba(6,20,12,.13) 100%);
  box-shadow: none;
}
body.dn-dark-home .home-main .home-featured__rail .story-card--compact {
  background: #18271c;
  border-color: var(--don-home-muted-line);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color .18s ease;
}
body.dn-dark-home .home-main :is(.home-domestic, .home-wildlife, .home-editor-picks) .home-editorial__lead > .story-card {
  box-shadow: none;
  border: 1px solid var(--don-home-muted-line);
  border-radius: 8px;
}
body.dn-dark-home .home-main :is(.home-domestic, .home-wildlife, .home-editor-picks) .home-editorial__lead > .story-card::after {
  background: linear-gradient(0deg, rgba(3,13,7,.88), rgba(6,22,11,.40) 40%, rgba(4,13,7,.02) 84%);
}
body.dn-dark-home .home-main :is(.home-domestic, .home-wildlife, .home-editor-picks) .home-editorial__rail .story-card--compact {
  border-bottom-color: var(--don-home-muted-line);
  background: transparent;
  box-shadow: none;
}
body.dn-dark-home .home-main :is(.home-domestic, .home-wildlife, .home-editor-picks) .home-editorial__rail .story-card__media::after {
  box-shadow: none;
}
body.dn-dark-home .home-main .home-timeline__track,
body.dn-dark-home .home-main .home-species__alphabet {
  background: #16251b;
  border-color: var(--don-home-muted-line);
  box-shadow: none;
}
body.dn-dark-home .home-main .home-species .species-card--mini .species-card__media {
  box-shadow: none;
}
body.dn-dark-home .home-main .home-community__grid {
  background: #18291e;
  border-color: var(--don-home-muted-line);
  box-shadow: none;
}
body.dn-dark-home .home-main .home-community__intro {
  background: #203727;
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) {
  body.dn-dark-home .home-main :is(.home-featured__cards > .story-card, .home-science__grid > .story-card):hover,
  body.dn-dark-home .home-main .home-featured__rail .story-card--compact:hover {
    border-color: rgba(177, 210, 168, .44);
    background-color: #1b2d20;
    box-shadow: none;
  }
}
body.dn-dark-home .home-main :is(.home-featured__cards > .story-card, .home-science__grid > .story-card):focus-within,
body.dn-dark-home .home-main .home-featured__rail .story-card--compact:focus-within {
  outline: 2px solid #d2f1b8;
  outline-offset: 2px;
  box-shadow: none;
}
@media (max-width:767px) {
  /* Preserve the approved mobile image crop and text legibility. */
  body.dn-dark-home .home-main .home-hero__lead--brand::after {
    background: linear-gradient(0deg, rgba(5,12,7,.98) 0%, rgba(5,12,7,.90) 18%, rgba(5,12,7,.47) 52%, rgba(5,12,7,.06) 96%),
                linear-gradient(90deg, rgba(5,12,7,.30), transparent 74%);
  }
}
@media (prefers-reduced-motion:reduce) {
  body.dn-dark-home .home-main :is(.home-featured__cards > .story-card, .home-science__grid > .story-card),
  body.dn-dark-home .home-main .home-featured__rail .story-card--compact { transition:none; }
}
