/* ── Feed list page ─────────────────────────────────────────────────────── */

/* widen the public wrap for the two-column layout */
.ng-pub-wrap { max-width: 1100px; }

/* two-column grid: articles | sidebar */
.feed-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .feed-layout { grid-template-columns: 1fr; }
  .feed-sidebar { order: -1; }
}

/* ── Feed items ─────────────────────────────────────────────────────────── */

.feed-item { margin-bottom: 0.6rem; }

.feed-rank {
  display: inline-block;
  width: 28px;
  text-align: right;
  color: #828282;
  font-size: 0.88rem;
  vertical-align: top;
  padding-top: 2px;
  flex-shrink: 0;
}

.feed-body { flex: 1; }

.feed-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  line-height: 1.3;
}
.feed-title:hover { color: var(--ng-red); }

.feed-cat {
  display: inline-block;
  font-size: 0.72rem;
  color: #828282;
  margin-left: 5px;
  vertical-align: middle;
}

.feed-meta {
  font-size: 0.75rem;
  color: #828282;
  margin-top: 1px;
}

.feed-spacer {
  height: 6px;
  border-bottom: 1px solid #e5e5cb;
  margin-bottom: 6px;
}

.feed-pager { font-size: 0.85rem; padding-left: 36px; margin-top: 0.75rem; }
.feed-pager a { color: var(--ng-red); text-decoration: none; }
.feed-pager a:hover { text-decoration: underline; }

.feed-filter-label {
  font-size: 0.82rem;
  color: #828282;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e5cb;
}
.feed-filter-label a { color: var(--ng-red); text-decoration: none; }

/* ── Pill nav (category / subcategory / year / month) ───────────────────── */

.pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e5e5cb;
  font-size: 0.78rem;
  align-items: center;
}
.pill-nav .nav-label {
  color: #828282;
  font-size: 0.72rem;
  margin-right: 0.2rem;
}
.pill-nav a {
  color: #555;
  text-decoration: none;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  border: 1px solid #ccc;
  background: #fff;
  white-space: nowrap;
}
.pill-nav a:hover { border-color: var(--ng-red); color: var(--ng-red); }
.pill-nav a.active { background: var(--ng-red); color: #fff; border-color: var(--ng-red); }

/* ── Search bar ─────────────────────────────────────────────────────────── */

.search-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.search-bar input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.4rem 0.7rem;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}
.search-bar input:focus { border-color: var(--ng-red); }
.search-bar button {
  background: var(--ng-red);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.search-bar button:hover { background: var(--ng-red-dk); }

.search-notice {
  font-size: 0.8rem;
  color: #828282;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e5e5cb;
}
.search-notice a { color: var(--ng-red); text-decoration: none; }

/* ── Sidebar ────────────────────────────────────────────────────────────── */

.feed-sidebar {
  position: sticky;
  top: 1rem;
}

.sidebar-section {
  border: 1px solid #e5e5cb;
  border-radius: 3px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: #fff;
}

.sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #828282;
  margin-bottom: 0.5rem;
}

.sidebar-search {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
  font-family: inherit;
  margin-bottom: 0.5rem;
  outline: none;
  box-sizing: border-box;
}
.sidebar-search:focus { border-color: var(--ng-red); }

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f0f0e8;
  font-size: 0.82rem;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a {
  color: #333;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.sidebar-list a:hover { color: var(--ng-red); }

.sidebar-count {
  font-size: 0.72rem;
  color: #828282;
  margin-left: 0.4rem;
  flex-shrink: 0;
}
