/**
 * Discovery of Nature 0.3.43 — shared Dark Nature optical system.
 * Single owner for public border/surface/shadow/radius/accent tokens.
 * Presentation only: no width, height, grid, order, content, query or interaction logic changes.
 */
body.dn-header-refined {
  --don-line-soft: rgba(184, 218, 174, .06);
  --don-line: rgba(184, 218, 174, .12);
  --don-line-strong: rgba(184, 218, 174, .16);
  --don-line-focus: rgba(190, 236, 171, .38);
  --don-accent: #afe18f;
  --don-accent-hover: #beeaa1;
  --don-accent-ink: #102016;
  --don-surface-deep: #0c1711;
  --don-surface: #14251b;
  --don-surface-raised: #1b3023;
  --don-shadow-soft: 0 8px 24px rgba(0, 0, 0, .10);
  --don-shadow-elevated: 0 14px 34px rgba(0, 0, 0, .15);
  --don-radius-shell: 16px;
  --don-radius-card: 12px;
  --don-radius-control: 8px;
  --don-radius-pill: 999px;
  --don-control-min: 44px;
  --don-control-ease: 180ms ease;
  --don-focus-ring: #c8efb0;
  --don-optical-rule: var(--don-line);
  --don-optical-focus: var(--don-accent-hover);
  --don-optical-muted: #bcc8be;
}

/* All public Dark Nature skins share one quiet separator instead of each route
 * reintroducing a brighter green border. Route-specific layout remains untouched. */
body.dn-header-refined:is(
  .dn-dark-home,
  .dn-dark-article,
  .dn-dark-category,
  .dn-dark-documentary,
  .dn-dark-forum,
  .dn-dark-page,
  .dn-dark-remaining,
  .dn-dark-species,
  .dn-dark-wildlife
) {
  --dn-border: var(--don-line);
  --wpia-border: var(--don-line);
}

body.dn-header-refined .site-main .section-heading {
  border-bottom-color: var(--don-optical-rule);
}
body.dn-header-refined .site-main .section-heading h2 {
  text-shadow: 0 1px 12px rgba(0, 0, 0, .10);
}
body.dn-header-refined .site-main .section-heading__link {
  transition: color var(--don-control-ease), text-decoration-color var(--don-control-ease);
}
body.dn-header-refined .site-main .section-heading__link:hover {
  color: var(--don-optical-focus);
}
body.dn-header-refined .site-main .section-heading__link:focus-visible {
  outline: 2px solid var(--don-focus-ring);
  outline-offset: 4px;
}

/* Keep photography vivid, but prevent interface chrome and image contrast from
 * competing for attention at the same time. */
body.dn-header-refined .site-main .story-card__media img,
body.dn-header-refined .site-main .documentary-card__media img,
body.dn-header-refined .site-main .species-card__media img {
  filter: saturate(1.018) contrast(1.02);
}
body.dn-dark-home .home-main .home-hero__image img {
  filter: saturate(1.018) contrast(1.022);
}
body.dn-dark-home .home-main .home-hero__overlay h1 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .20);
}

@media (prefers-reduced-motion: reduce) {
  body.dn-header-refined .site-main .section-heading__link { transition: none; }
}
