/* Unified, community-wide themes. Loaded only on community pages. */
body.community-theme-warm {
  --bg:#f4eadb; --surface:#fff8ee; --surface-hover:#efe0ca; --border:#dcc7aa;
  --text:#493a2b; --muted:#806c58; --accent:#b8753b; --accent-hover:#965c2d;
  color:var(--text); background:var(--bg);
}
body.community-theme-dark {
  --bg:#111318; --surface:#1b1e25; --surface-hover:#252a33; --border:#343b47;
  --text:#eef1f6; --muted:#a5afbd; --accent:#8b9cff; --accent-hover:#7185f4;
  color:var(--text); background:var(--bg);
}
body.community-theme-gruvbox {
  --bg:#282828; --surface:#3c3836; --surface-hover:#504945; --border:#665c54;
  --text:#ebdbb2; --muted:#bdae93; --accent:#fe8019; --accent-hover:#d65d0e;
  color:var(--text); background:var(--bg);
}
body.community-theme-astro {
  --bg:#090d22; --surface:#151b3b; --surface-hover:#202951; --border:#303b70;
  --text:#edf0ff; --muted:#aab3d7; --accent:#a78bfa; --accent-hover:#8b5cf6;
  color:var(--text); background:var(--bg);
}
body.community-theme-warm,
body.community-theme-dark,
body.community-theme-gruvbox,
body.community-theme-astro { transition:background-color .2s ease,color .2s ease; }
body.community-theme-warm > header,
body.community-theme-dark > header,
body.community-theme-gruvbox > header,
body.community-theme-astro > header {
  color:var(--text); background:var(--surface); border-bottom-color:var(--surface-hover);
}
body.community-theme-warm > header a,
body.community-theme-dark > header a,
body.community-theme-gruvbox > header a,
body.community-theme-astro > header a,
body.community-theme-warm > footer a,
body.community-theme-dark > footer a,
body.community-theme-gruvbox > footer a,
body.community-theme-astro > footer a { color:var(--text); }
body.community-theme-warm > header #logo,
body.community-theme-dark > header #logo,
body.community-theme-gruvbox > header #logo,
body.community-theme-astro > header #logo { color:var(--accent); }
body.community-theme-warm > footer,
body.community-theme-dark > footer,
body.community-theme-gruvbox > footer,
body.community-theme-astro > footer { color:var(--muted); background:var(--surface); border-top:1px solid var(--border); }
body.community-theme-warm main,
body.community-theme-dark main,
body.community-theme-gruvbox main,
body.community-theme-astro main { color:var(--text); }
body.community-theme-warm main a,
body.community-theme-dark main a,
body.community-theme-gruvbox main a,
body.community-theme-astro main a { color:var(--accent); }
body.community-theme-warm main .post-card,
body.community-theme-dark main .post-card,
body.community-theme-gruvbox main .post-card,
body.community-theme-astro main .post-card,
body.community-theme-warm main .card,
body.community-theme-dark main .card,
body.community-theme-gruvbox main .card,
body.community-theme-astro main .card,
body.community-theme-warm main .community-appearance-entry,
body.community-theme-dark main .community-appearance-entry,
body.community-theme-gruvbox main .community-appearance-entry,
body.community-theme-astro main .community-appearance-entry {
  color:var(--text); background:var(--surface); border-color:var(--border);
}
body.community-theme-warm main input,
body.community-theme-warm main textarea,
body.community-theme-warm main select,
body.community-theme-dark main input,
body.community-theme-dark main textarea,
body.community-theme-dark main select,
body.community-theme-gruvbox main input,
body.community-theme-gruvbox main textarea,
body.community-theme-gruvbox main select,
body.community-theme-astro main input,
body.community-theme-astro main textarea,
body.community-theme-astro main select {
  color:var(--text); background:var(--surface); border-color:var(--border);
}
body.community-theme-warm main button,
body.community-theme-dark main button,
body.community-theme-gruvbox main button,
body.community-theme-astro main button {
  color:#fff; background:var(--accent);
}
body.community-theme-warm main .profile-section-tabs,
body.community-theme-dark main .profile-section-tabs,
body.community-theme-gruvbox main .profile-section-tabs,
body.community-theme-astro main .profile-section-tabs { border-color:var(--border); }
body.community-theme-warm main .profile-section-tabs a,
body.community-theme-dark main .profile-section-tabs a,
body.community-theme-gruvbox main .profile-section-tabs a,
body.community-theme-astro main .profile-section-tabs a { color:var(--muted); }
body.community-theme-warm main .profile-section-tabs a.is-active,
body.community-theme-dark main .profile-section-tabs a.is-active,
body.community-theme-gruvbox main .profile-section-tabs a.is-active,
body.community-theme-astro main .profile-section-tabs a.is-active { color:var(--accent); border-bottom-color:var(--accent); }
body.community-theme-astro main .community-title {
  background:radial-gradient(ellipse at 18% 20%,rgba(167,139,250,.34),transparent 42%),
             radial-gradient(ellipse at 82% 78%,rgba(56,189,248,.2),transparent 40%),
             linear-gradient(120deg,#111936,#211744);
  border:1px solid #394477; border-radius:18px; padding:24px;
  box-shadow:inset 0 0 34px rgba(139,92,246,.12);
}
body.community-theme-gruvbox main .community-title { color:#fabd2f; }
body.community-theme-warm main .community-title { color:#8c552f; }
body.community-theme-dark main .community-title { color:#c7d2fe; }
