/* ============================================================
   WORTHY IDEAL — Dispatch-specific components: pillar filter
   row and the news card feed.
   ============================================================ */

/* ---------- Dispatch filter row ---------- */

.dispatch-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--page-border-strong);
  background: transparent;
  color: var(--page-text-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.filter-chip svg {
  width: 14px;
  height: 14px;
}

.filter-chip.active {
  background: var(--active-tab-bg);
  color: var(--active-tab-text);
  border-color: var(--active-tab-bg);
}

.filter-chip.inactive {
  opacity: 0.55;
}

.filter-chip:hover {
  opacity: 1;
  border-color: var(--page-text);
}

/* ---------- Dispatch news feed ---------- */

.dispatch-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-1);
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}

.news-card.lead {
  grid-column: 1 / -1;
  padding: 30px 32px;
}

.news-card.lead .news-headline {
  font-size: 27px;
  max-width: 46ch;
}

.news-card.lead .news-nugget {
  font-size: 16px;
  max-width: 62ch;
}

.news-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 3px 10px;
  margin-bottom: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card-tag svg {
  width: 12px;
  height: 12px;
}

.news-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--ink);
}

.news-nugget {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 10px;
}

.why-toggle {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0 0 4px;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.why-toggle::before {
  content: "\25B8\2002";
  display: inline-block;
  transition: transform 0.15s ease;
}

.why-toggle.expanded::before {
  transform: rotate(90deg);
}

.why-toggle:hover { color: var(--ink); }

.why-body {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.15s ease, margin 0.2s ease;
}

.why-body.expanded {
  max-height: 240px;
  opacity: 1;
}

.news-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.source-link {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-link:hover { color: var(--ink); }

.confidence-pill {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  white-space: nowrap;
}

.confidence-pill[data-confidence="Verified"] {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
