/**
 * 0.2.71 — homepage mockup phase 3: Popüler Türler A–Z, Topluluk / Forumdan,
 * and the footer as seen ONLY on the homepage.
 * Never change approved hero/discovery, featured, editorial, media or Core.
 * All species items, active alphabet links and forum topics remain in the DOM.
 */
body.dn-dark-home .home-main {
  --don-p3-surface:var(--don-surface);
  --don-p3-raised:var(--don-surface-raised);
  --don-p3-line:var(--don-line-strong);
  --don-p3-accent:var(--don-accent);
}
/* A–Z: readable species tiles; no fake first species, no hidden items. */
body.dn-dark-home .home-main .home-species > .section-heading {
  margin-bottom:12px;
  padding-bottom:9px;
  border-bottom:1px solid var(--don-p3-line);
}
body.dn-dark-home .home-main .home-species > .section-heading h2 {
  font-size:clamp(1.28rem,1.68vw,1.8rem);
  line-height:1.14;
  letter-spacing:-.025em;
}
body.dn-dark-home .home-main .home-species__grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px 9px;
  min-width:0;
}
body.dn-dark-home .home-main .home-species .species-card--mini {
  display:block;
  min-width:0;
  padding:0;
  border:0;
  text-align:left;
  box-shadow:none;
}
body.dn-dark-home .home-main .home-species .species-card--mini .species-card__media {
  display:block;
  width:100%;
  aspect-ratio:5/4;
  margin:0;
  overflow:hidden;
  border:1px solid var(--don-p3-line);
  border-radius:8px;
  background:var(--don-p3-surface);
  box-shadow:none;
}
body.dn-dark-home .home-main .home-species .species-card--mini .species-card__media img {
  display:block;
  width:100%;height:100%;object-fit:cover;
  filter:saturate(.94);
}
body.dn-dark-home .home-main .home-species .species-card--mini .species-card__body {
  min-width:0;
  min-height:0;
  padding:6px 1px 0;
}
body.dn-dark-home .home-main .home-species .species-card--mini .species-card__name {
  font-size:clamp(.77rem,.9vw,.94rem);
  line-height:1.22;
  overflow-wrap:anywhere;
}
body.dn-dark-home .home-main .home-species .species-card--mini .species-card__name a {color:#eef3eb}
body.dn-dark-home .home-main .home-species .species-card--mini .species-card__scientific {
  display:block;
  margin:3px 0 0;
  font-size:.65rem;
  line-height:1.2;
  color:#b8cbb7;
}
body.dn-dark-home .home-main .home-species .species-card--mini .species-card__discovery-label {
  display:block;
  margin:3px 0 0;
  color:#b8cbb7;
  font-size:.65rem;
  line-height:1.2;
}
body.dn-dark-home .home-main .home-species .species-card--mini a:focus-visible {
  outline:2px solid #d2f1b8;
  outline-offset:2px;
}
body.dn-dark-home .home-main .home-species__alphabet-hint {
  display:none;
  margin:12px 0 5px;
  color:#c1d5bd;
  font-size:.7rem;
  line-height:1.35;
}
body.dn-dark-home .home-main .home-species__alphabet {
  display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));
  gap:4px;
  margin-top:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
body.dn-dark-home .home-main .home-species__alphabet a,
body.dn-dark-home .home-main .home-species__alphabet span {
  min-width:0;
  min-height:44px;
  padding:0;
  border:1px solid var(--don-p3-line);
  border-radius:6px;
  background:var(--don-surface);
  font:750 .79rem/1 var(--wpia-sans);
  text-decoration:none;
}
body.dn-dark-home .home-main .home-species__alphabet span {
  opacity:.47;
  background:var(--don-surface-deep);
}
body.dn-dark-home .home-main .home-species__alphabet a:hover,
body.dn-dark-home .home-main .home-species__alphabet a:focus-visible {
  background:#2e4a34;
  border-color:#c6e6ad;
  color:#f4f9f0;
  outline:2px solid #d2f1b8;
  outline-offset:1px;
}
/* Community: remove the old three-tall-panels feeling; preserve quote and actual forum data. */
body.dn-dark-home .home-main .home-community > .section-heading {
  margin-bottom:12px;
  padding-bottom:9px;
  border-bottom:1px solid var(--don-p3-line);
}
body.dn-dark-home .home-main .home-community__grid {
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:0;
  overflow:hidden;
  border:1px solid var(--don-p3-line);
  border-radius:10px;
  background:#15251b;
  box-shadow:none;
}
body.dn-dark-home .home-main .home-community__intro {
  min-width:0;
  padding:clamp(16px,1.8vw,26px);
  border-right:1px solid var(--don-p3-line);
  border-bottom:0;
  background:linear-gradient(130deg,#203629,#17271b 88%);
}
body.dn-dark-home .home-main .home-community__intro-icon {
  display:none;
}
body.dn-dark-home .home-main .home-community__intro h3 {
  margin:0;
  font-size:clamp(1.26rem,1.65vw,1.78rem);
  line-height:1.11;
  letter-spacing:-.02em;
}
body.dn-dark-home .home-main .home-community__intro p {
  max-width:48ch;
  margin:9px 0 0;
  font-size:clamp(.77rem,.92vw,.89rem);
  line-height:1.48;
  color:#c6d3c2;
}
body.dn-dark-home .home-main .home-community__intro .home-community__cta {
  min-height:44px;
  margin-top:14px;
  border-radius:6px;
  padding:9px 15px;
  box-shadow:none;
}
body.dn-dark-home .home-main .home-community__topics {
  display:grid;
  align-content:center;
  min-width:0;
  padding:8px 14px;
  background:#142219;
}
body.dn-dark-home .home-main .home-community__topics article {
  min-height:53px;
  padding:9px 0;
  gap:8px;
  border-bottom:1px solid var(--don-p3-line);
}
body.dn-dark-home .home-main .home-community__topics article:last-child {
  border-bottom:0;
}
body.dn-dark-home .home-main .home-community__topics h3 {
  font-size:clamp(.8rem,.88vw,.94rem);
  line-height:1.27;
}
body.dn-dark-home .home-main .home-community__topics article>div {
  font-size:.66rem;
  color:#b9ccb8;
}
body.dn-dark-home .home-main .home-community__topics .is-empty {
  min-height:77px;
}
body.dn-dark-home .home-main .home-community__quote {
  grid-column:1/-1;
  min-height:88px;
  padding:14px 20px;
  border-top:1px solid var(--don-p3-line);
  border-bottom:0;
  background:#19301f;
}
body.dn-dark-home .home-main .home-community__quote--media::after {
  background:linear-gradient(90deg,rgba(4,13,8,.90),rgba(4,13,8,.44));
}
body.dn-dark-home .home-main .home-community__quote blockquote {
  font-size:clamp(.94rem,1.25vw,1.15rem);
  line-height:1.17;
}
body.dn-dark-home .home-main .home-community__quote p {
  margin-top:4px;
  font-size:.59rem;
}
/* Homepage footer ONLY — never restyle a post, taxonomy, forum or media footer. */
body.dn-dark-home .site-footer {
  margin-top:0;
  padding-top:clamp(25px,3vw,40px);
  border-top:1px solid var(--don-p3-line);
  background:#0e1912;
  box-shadow:none;
}
body.dn-dark-home .site-footer__grid {
  gap:clamp(17px,2vw,28px);
}
body.dn-dark-home .site-footer__brand p,
body.dn-dark-home .site-footer__group-content p {
  color:#b9cdb8;
  line-height:1.48;
}
body.dn-dark-home .site-footer__group summary {
  color:#f1f5ee;
}
body.dn-dark-home .site-footer__group-content a {
  color:#dbead4;
}
/* Keep the light CTA legible; generic footer link color must not override it. */
body.dn-dark-home .site-footer__account-button,
body.dn-dark-home .site-footer__account-button:hover,
body.dn-dark-home .site-footer__account-button:focus-visible {
  color:#102016;
}
body.dn-dark-home .site-footer__bottom {
  border-top-color:var(--don-p3-line);
  color:#afc4ad;
}
@media(min-width:900px) and (max-width:1199px) {
  body.dn-dark-home .home-main .home-species__grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  body.dn-dark-home .home-main .home-species__alphabet {grid-template-columns:repeat(8,minmax(0,1fr))}
}
@media(max-width:899px) {
  body.dn-dark-home .home-main .home-species__grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
  body.dn-dark-home .home-main .home-species__alphabet {grid-template-columns:repeat(10,minmax(0,1fr))}
  body.dn-dark-home .home-main .home-community__grid {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media(max-width:767px) {
  /* One restrained row of images, all eight species remain reachable by swipe. */
  body.dn-dark-home .home-main .home-species__grid {
    display:flex;
    gap:9px;
    margin:0 calc(-1 * var(--wpia-gutter));
    padding:0 var(--wpia-gutter) 6px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    scrollbar-color:#6b8968 transparent;
  }
  body.dn-dark-home .home-main .home-species .species-card--mini {
    flex:0 0 clamp(112px,36vw,145px);
    scroll-snap-align:start;
  }
  body.dn-dark-home .home-main .home-species .species-card--mini .species-card__media {aspect-ratio:5/4}
  body.dn-dark-home .home-main .home-species__alphabet-hint {display:block}
  body.dn-dark-home .home-main .home-species__alphabet {
    display:flex;
    gap:5px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    scrollbar-color:#6b8968 transparent;
    padding:2px 2px 8px;
  }
  body.dn-dark-home .home-main .home-species__alphabet a,
  body.dn-dark-home .home-main .home-species__alphabet span {
    flex:0 0 44px;
    scroll-snap-align:start;
    min-height:44px;
    font-size:.82rem;
  }
  body.dn-dark-home .home-main .home-community__grid {grid-template-columns:minmax(0,1fr)}
  body.dn-dark-home .home-main .home-community__intro {
    padding:17px 16px;
    border-right:0;
    border-bottom:1px solid var(--don-p3-line);
  }
  body.dn-dark-home .home-main .home-community__intro h3 {font-size:1.45rem}
  body.dn-dark-home .home-main .home-community__topics {padding:3px 16px}
  body.dn-dark-home .home-main .home-community__topics article {min-height:50px}
  body.dn-dark-home .home-main .home-community__topics .is-empty {min-height:62px}
  body.dn-dark-home .home-main .home-community__quote {
    min-height:76px;
    padding:10px 16px;
  }
  body.dn-dark-home .site-footer {padding-top:24px}
  body.dn-dark-home .site-footer__grid {gap:0}
  body.dn-dark-home .site-footer__group summary {min-height:44px}
}
@media(max-width:359px) {
  body.dn-dark-home .home-main .home-species .species-card--mini {flex-basis:115px}
  body.dn-dark-home .home-main .home-species__alphabet-hint {font-size:.67rem}
}
@media(prefers-reduced-motion:reduce) {
  body.dn-dark-home .home-main .home-species__grid,
  body.dn-dark-home .home-main .home-species__alphabet {scroll-behavior:auto}
}
