/**
 * Dark Nature Edition / HOME ONLY — inherits validated 0.2.26 shell palette.
 * No layout or content model changes.
 */
body.dn-dark-home {
  --dn-ink: #f2f4ee;
  --dn-green: #afe18f;
  --dn-green-strong: #19301f;
  --dn-green-soft: #263a2a;
  --dn-paper: #14251b;
  --dn-surface: #0c1711;
  --dn-ink-soft: #bcc8be;
  --dn-border: rgba(184,218,174,.12);
  --dn-focus: #d2f1b8;
  /* Alias values must be overridden on the body as well as --dn-*:
     the :root --wpia-* aliases resolve before descendant overrides. */
  --wpia-ink: #f2f4ee;
  --wpia-forest: #afe18f;
  --wpia-forest-dark: #19301f;
  --wpia-paper: #14251b;
  --wpia-white: #0c1711;
  --wpia-muted: #bcc8be;
  --wpia-border: rgba(184,218,174,.12);
  background: #0c1711;
  color: #f2f4ee;
}

/* Existing header, menu, search and ticker: appearance only. */
body.dn-dark-home .site-header {
  background: #121e17;
  border-bottom-color: rgba(184,218,174,.12);
}
body.dn-dark-home .site-header__utility {
  background: #0c130f;
}
body.dn-dark-home .site-header__utility-link,
body.dn-dark-home .site-header__tagline {
  color: #c7d4c6;
}
body.dn-dark-home .site-header .site-wordmark {
  color: #f2f4ee;
}
body.dn-dark-home .site-header .primary-menu a,
body.dn-dark-home .site-header .header-account,
body.dn-dark-home .site-header .search-toggle,
body.dn-dark-home .site-header .nav-toggle {
  color: #f2f4ee;
}
body.dn-dark-home .site-header .primary-menu a:hover,
body.dn-dark-home .site-header .primary-menu a:focus-visible,
body.dn-dark-home .site-header .primary-menu .current-menu-item > a,
body.dn-dark-home .site-header .primary-menu .current_page_item > a {
  color: #afe18f;
  border-bottom-color: #afe18f;
}
body.dn-dark-home .site-header .header-account:hover,
body.dn-dark-home .site-header .header-account:focus-visible,
body.dn-dark-home .site-header .search-toggle:hover,
body.dn-dark-home .site-header .search-toggle:focus-visible,
body.dn-dark-home .site-header .nav-toggle:hover,
body.dn-dark-home .site-header .nav-toggle:focus-visible {
  background: #263a2a;
  color: #d2f1b8;
}
body.dn-dark-home .site-header .header-register {
  border-color: #afe18f;
  background: #afe18f;
  color: #102016;
}
body.dn-dark-home .site-header .header-register:hover,
body.dn-dark-home .site-header .header-register:focus-visible {
  border-color: #d2f1b8;
  background: #d2f1b8;
  color: #102016;
}
body.dn-dark-home .site-header .search-form {
  border-color: rgba(184,218,174,.16);
  background: #14251b;
}
body.dn-dark-home .site-header .search-field {
  color: #f2f4ee;
}
body.dn-dark-home .site-header .search-field::placeholder {
  color: #bcc8be;
}
body.dn-dark-home .site-header .search-submit {
  border-left-color: rgba(184,218,174,.16);
  background: #1e3023;
  color: #f2f4ee;
}
body.dn-dark-home .site-header .search-submit:hover,
body.dn-dark-home .site-header .search-submit:focus-visible {
  background: #294633;
  color: #d2f1b8;
}
body.dn-dark-home .latest-ticker {
  background: #0c130f;
  box-shadow: inset 0 -1px 0 rgba(184,218,174,.12);
}


/* Home pilot — same Dark Nature identity, with all existing HTML, photo sources,
 * editorial queries and responsive geometry retained. */
body.dn-dark-home .home-main {
  background: #0c1711;
  color: #f2f4ee;
}
body.dn-dark-home .home-main .section-heading {
  border-bottom-color: rgba(184,218,174,.16);
}
body.dn-dark-home .home-main .section-heading h2,
body.dn-dark-home .home-main .story-card__title,
body.dn-dark-home .home-main .species-card__name {
  color: #f2f4ee;
}
body.dn-dark-home .home-main .section-heading__link,
body.dn-dark-home .home-main .story-card__category,
body.dn-dark-home .home-main .eyebrow,
body.dn-dark-home .home-main .home-timeline__date {
  color: #afe18f;
}
body.dn-dark-home .home-main .story-card__excerpt,
body.dn-dark-home .home-main .species-card__scientific,
body.dn-dark-home .home-main .species-card__discovery-label {
  color: #bcc8be;
}
body.dn-dark-home .home-main .story-card__title a:hover,
body.dn-dark-home .home-main .story-card__title a:focus-visible,
body.dn-dark-home .home-main .species-card__name a:hover,
body.dn-dark-home .home-main .species-card__name a:focus-visible {
  color: #d2f1b8;
}
body.dn-dark-home .home-main .story-card__media,
body.dn-dark-home .home-main .species-card__media {
  border-radius: 7px;
}
body.dn-dark-home .home-main .wikipetsia-media-placeholder,
body.dn-dark-home .home-timeline__media--placeholder {
  background: linear-gradient(135deg, #283c2c, #17241b);
}
/* Existing story hero: photographic treatment only, never hero height/columns. */
body.dn-dark-home .home-hero__lead,
body.dn-dark-home .home-editorial__lead > .story-card {
  border-radius: 8px;
}
body.dn-dark-home .home-hero__lead::after {
  background: linear-gradient(to top, rgba(4, 10, 6, .92), rgba(4, 10, 6, .22) 58%, rgba(4, 10, 6, .05));
}
body.dn-dark-home .home-hero__overlay .eyebrow,
body.dn-dark-home .home-hero__overlay .home-hero__read {
  color: #d2f1b8;
}
body.dn-dark-home .home-hero__overlay h1,
body.dn-dark-home .home-hero__overlay h1 a {
  color: #fff;
}
body.dn-dark-home .home-hero__overlay p {
  color: #eff5eb;
}
body.dn-dark-home .home-editorial__lead > .story-card::after {
  background: linear-gradient(to top, rgba(4, 10, 6, .88), rgba(4, 10, 6, .14) 64%, transparent);
}
body.dn-dark-home .home-editorial__lead .story-card__category,
body.dn-dark-home .home-editorial__lead .story-card__title a {
  color: #f2f4ee;
}
/* Light rail cards are optically replaced, their native dimensions unchanged. */
body.dn-dark-home .home-hero__rail .story-card--compact,
body.dn-dark-home .home-featured__rail .story-card--compact {
  border-color: rgba(184,218,174,.12);
  background: #14251b;
  color: #f2f4ee;
}
body.dn-dark-home .home-featured__rail .story-card--compact:focus-within,
body.dn-dark-home .home-hero__rail .story-card--compact:focus-within {
  border-color: #afe18f;
}
/* Preserve the six discovery topics and mobile horizontal scrolling. */
body.dn-dark-home .home-topics {
  border-color: rgba(184,218,174,.16);
  background: #14251b;
}
body.dn-dark-home .home-topic {
  --topic-accent: #afe18f;
  --topic-tint: #223525;
  border-right-color: rgba(184,218,174,.12);
  border-bottom-color: rgba(184,218,174,.12);
  border-left-color: rgba(184,218,174,.12);
  background: linear-gradient(180deg, #223525, #14251b 76%);
  color: #f2f4ee;
}
body.dn-dark-home .home-topic--domestic { --topic-accent: #d8b99a; }
body.dn-dark-home .home-topic--wildlife { --topic-accent: #afe18f; }
body.dn-dark-home .home-topic--science { --topic-accent: #9bcac2; }
body.dn-dark-home .home-topic--history { --topic-accent: #c2c692; }
body.dn-dark-home .home-topic--extinct { --topic-accent: #d4b58a; }
body.dn-dark-home .home-topic--guides { --topic-accent: #abd6a7; }
body.dn-dark-home .home-topic__copy strong { color: #f2f4ee; }
body.dn-dark-home .home-topic__copy small { color: #bcc8be; }
body.dn-dark-home .home-topic[href]:hover,
body.dn-dark-home .home-topic[href]:focus-visible {
  background: #2b4430;
  color: #f2f4ee;
  outline-color: #afe18f;
}
body.dn-dark-home .home-topic[href]:focus-visible {
  outline: 3px solid #d2f1b8;
  outline-offset: -3px;
}
/* Previously approved species, A–Z and community components keep their grids. */
body.dn-dark-home .home-timeline__track,
body.dn-dark-home .home-timeline__item,
body.dn-dark-home .home-species__alphabet,
body.dn-dark-home .home-species__alphabet a,
body.dn-dark-home .home-species__alphabet span {
  border-color: rgba(184,218,174,.16);
}
body.dn-dark-home .home-species__alphabet a { color: #f2f4ee; }
body.dn-dark-home .home-species__alphabet a:hover,
body.dn-dark-home .home-species__alphabet a:focus-visible {
  background: #294633;
  color: #d2f1b8;
}
body.dn-dark-home .home-species__alphabet span {
  color: #bcc8be;
}
body.dn-dark-home .home-community__grid {
  border-color: rgba(184,218,174,.16);
  background: #14251b;
}
body.dn-dark-home .home-community__intro {
  border-color: rgba(184,218,174,.16);
  background: #1d2e22;
}
body.dn-dark-home .home-community__intro-icon { color: #afe18f; }
body.dn-dark-home .home-community__intro p,
body.dn-dark-home .home-community__topics article > div { color: #bcc8be; }
body.dn-dark-home .home-community__topics article { border-bottom-color: rgba(184,218,174,.16); }
body.dn-dark-home .home-community__cta {
  background: #afe18f;
  color: #102016;
}
body.dn-dark-home .home-community__cta:hover,
body.dn-dark-home .home-community__cta:focus-visible {
  background: #d2f1b8;
  color: #102016;
}
body.dn-dark-home .home-community__quote { background: #19301f; }
body.dn-dark-home .home-community__quote--media::after {
  background: linear-gradient(90deg, rgba(4, 13, 7, .82), rgba(4, 13, 7, .28));
}
body.dn-dark-home .home-community__quote p { color: #d2f1b8; }
/* Existing mobile card separators remain and merely change their tone. */
@media (max-width: 767px) {
  body.dn-dark-home .home-featured__cards > .story-card:not(:first-child),
  body.dn-dark-home .home-editorial__rail .story-card--compact {
    border-color: rgba(184,218,174,.12);
  }
  body.dn-dark-home .home-topic {
    border-color: rgba(184,218,174,.12);
    border-top-color: var(--topic-accent);
  }
}

/* Home footer follows exactly the accepted wildlife shell. */
body.dn-dark-home .site-footer {
  background: #0c130f;
  box-shadow: inset 0 1px 0 rgba(184,218,174,.12);
}
body.dn-dark-home .site-footer__account-button {
  border-color: #afe18f;
  background: #afe18f;
  color: #102016;
}
body.dn-dark-home .site-footer__account-button:hover,
body.dn-dark-home .site-footer__account-button:focus-visible {
  background: #d2f1b8;
  color: #102016;
}

