/* Home-specific layout and community links. */
body[data-page="home"] .scripts-pagination[hidden] { display: none; }
body[data-page="home"] .scripts-pagination { justify-content: flex-end; }
body[data-page="home"] .home-secondary { margin-top: 24px; grid-template-columns: minmax(0, 1fr); }
body[data-page="home"] .topbar { flex-wrap: wrap; }
.home-community { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 14px; margin-left: auto; font-size: .8rem; }
.home-community > span { color: var(--muted); }
.home-community a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(255,255,255,.03); text-decoration: none; }
.home-community a:hover { border-color: var(--accent); color: var(--accent); }
.home-community a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.home-community a span { color: var(--accent); }
.home-news-trending { border-top: 1px solid var(--line); padding: 20px 22px; }
.home-news-trending h2 { margin: 0 0 14px; font-size: 1.15rem; }
.home-news-trending .trending-list { padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
@media (max-width: 700px) { .home-community { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; gap: 8px; } .home-community > span { flex-basis: 100%; } }
body[data-page="home"] .home-news-toggle {
  padding: 18px 22px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
}
body[data-page="home"] .home-news-toggle::marker { color: var(--accent); }
body[data-page="home"] .home-news-toggle:hover { color: var(--text); }
body[data-page="home"] .home-news-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -5px;
  border-radius: 20px;
}
body[data-page="home"] .home-news-panel[open] .home-news-toggle { border-bottom: 1px solid var(--line); }
