/* Stage 8 — latest community feed */
.community-feed__heading { align-items: center; }
.community-feed__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 8px; padding: 0 0 10px; border-bottom: 1px solid var(--fa-color-border); }
.community-feed__filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.community-feed__filters select { width: auto; min-width: 145px; min-height: 36px; padding: 7px 28px 7px 10px; border-color: transparent; background: var(--fa-color-surface); font-size: 12px; }
.community-feed__result-count { margin: 0; color: var(--fa-color-text-secondary); font-size: 12px; white-space: nowrap; }
.community-feed__results { position: relative; min-height: 110px; }
.community-feed__results.is-loading { opacity: .55; pointer-events: none; }
.community-feed__results.is-loading::after { content: ""; position: absolute; inset: 0; cursor: progress; }
.community-feed__item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: start; gap: 13px; padding: 15px 4px; border-bottom: 1px solid var(--fa-color-border); }
.community-feed__item--featured { background: linear-gradient(90deg, var(--fa-color-brand-soft), transparent 70%); }
.community-feed__avatar-link { display: block; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; }
.community-feed__avatar { display: block; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.community-feed__body { min-width: 0; }
.community-feed__topline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.community-feed__title { color: var(--fa-color-text); font-size: 14px; font-weight: 800; line-height: 1.35; text-decoration: none; }
.community-feed__title:hover { color: #8A6200; }
.community-feed__solved { display: inline-flex; padding: 2px 6px; border-radius: 4px; background: #E8F6EE; color: #17663D; font-size: 10px; font-weight: 800; }
.community-feed__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--fa-color-text-secondary); font-size: 11px; }
.community-feed__profession { display: inline-flex; padding: 3px 6px; border-radius: 4px; background: var(--fa-color-brand-soft); color: #674B00; font-size: 10px; font-weight: 700; text-decoration: none; }
.community-feed__activity { margin: 7px 0 2px; color: var(--fa-color-text-secondary); font-size: 11px; font-weight: 650; }
.community-feed__excerpt { display: -webkit-box; overflow: hidden; margin: 5px 0 0; color: var(--fa-color-text-secondary); font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.community-feed__stats { display: flex; align-items: center; gap: 12px; padding-top: 3px; color: var(--fa-color-text-secondary); font-size: 11px; white-space: nowrap; }
.community-feed__pagination { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; }
.community-feed__pagination > span { color: var(--fa-color-text-secondary); font-size: 12px; }
.community-feed__pagination .button { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.feed-empty { margin-top: 10px; text-align: center; }
.feed-empty h3 { margin-top: 0; }
@media (max-width: 700px) {
	.community-feed__toolbar { align-items: stretch; flex-direction: column; }
	.community-feed__filters { display: grid; grid-template-columns: 1fr 1fr; }
	.community-feed__filters select { min-width: 0; width: 100%; }
	.community-feed__result-count { align-self: flex-start; }
	.community-feed__item { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 13px 0; }
	.community-feed__avatar-link, .community-feed__avatar { width: 36px; height: 36px; }
	.community-feed__stats { grid-column: 2; padding-top: 0; }
}
@media (max-width: 400px) {
	.community-feed__filters { grid-template-columns: 1fr; }
	.community-feed__pagination { gap: 7px; }
}


/* Etapa 25 — accessible, data-backed topic filter tabs. */
.community-feed__filters { width: 100%; align-items: center; justify-content: space-between; }
.community-feed__tabs { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.community-feed__tab {
  appearance: none; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--fa-color-text-secondary, #626262);
  padding: 9px 14px; min-height: 38px; font: inherit; font-size: 13px;
  font-weight: 700; line-height: 1.2; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.community-feed__tab:hover { background: var(--fa-color-surface, #f6f5f2); color: var(--fa-color-text, #202020); }
.community-feed__tab.is-active,
.community-feed__tab[aria-selected="true"] { background: #f7e8b6; border-color: #e8cf7c; color: #4d3900; }
.community-feed__tab:focus-visible { outline: 2px solid #8a6200; outline-offset: 3px; }
.community-feed__sort[aria-hidden="true"] { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.community-feed__toolbar { align-items: center; }
@media (max-width: 700px) {
  .community-feed__filters { display: flex; flex-direction: column; align-items: stretch; }
  .community-feed__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .community-feed__tab { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { .community-feed__tab { transition: none; } }
