/* ============================================================================
   ARCHIVE — стрічка публікацій (archive-publication.php).
   Панель фільтрів, список записів. Підключається лише на архіві публікацій.
   Бейджі й картки — спільні, вони живуть у components.css.
   ========================================================================== */

.feed-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 0 10px;
  margin-bottom: 12px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}
.feed-bar .chips { flex: 1 1 auto; }

/* Чипи - посилання (.chip з components.css), фільтр працює на сервері */
.feed-bar .chip { font-size: 13px; }
.feed-bar .chip__n { font-size: 11.5px; font-weight: 600; opacity: .75; }
.feed-bar .chip__dot { width: 8px; height: 8px; border-radius: 50%; }
.feed-bar .chip.is-on .chip__dot { background: #fff !important; }

.feed-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed-tools label { font-size: 12.5px; font-weight: 600; color: var(--c-muted); }
.feed-tools input[type="search"],
.feed-tools select {
  padding: 7px 11px;
  border: 1px solid var(--c-line-strong);
  border-radius: 8px;
  background: var(--c-surface);
  color: var(--c-ink);
  font: inherit;
  font-size: 13.5px;
}
.feed-tools input[type="search"] { min-width: 210px; }
.feed-tools input[type="search"]:focus,
.feed-tools select:focus { outline: none; border-color: var(--c-brand); }
.feed-apply {
  padding: 7px 14px;
  border: 1px solid var(--c-brand);
  border-radius: 8px;
  background: var(--c-brand);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.feed-apply:hover { filter: brightness(1.08); }
.feed-apply:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }

.feed-count { margin: 0 0 8px; font-size: 13px; color: var(--c-muted); }
.feed-reset { margin-left: 6px; color: var(--c-brand-text); }

.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--c-line);
}
.feed-item:hover { background: var(--c-surface-2); }
.feed-item .pub-badge { flex: none; min-width: 88px; justify-content: center; margin-top: 2px; }
.feed-item__body { min-width: 0; flex: 1 1 auto; display: block; }
.feed-item__title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--c-heading);
  text-decoration: none;
}
.feed-item__title:hover { color: var(--c-brand-text); text-decoration: underline; }
.feed-item__meta { display: block; margin-top: 4px; font-size: 12.5px; color: var(--c-muted); }

@media (max-width: 700px) {
  .feed-bar { position: static; }
  .feed-tools input[type="search"] { min-width: 0; flex: 1 1 140px; }
}
