:root {
  --bg-0: #b4b7d1;
  --bg-1: #ffffff;
  --bg-2: #fdfdfd;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 1);
  --surface-soft: rgba(0, 0, 0, 0.04);
  --stroke: rgba(0, 0, 0, 0.1);
  --stroke-strong: rgba(204, 0, 0, 0.32);
  --text: #000000;
  --muted: #000000;
  --muted-2: #000000;
  --red-1: #000000;
  --red-2: #000000;
  --red-3: #000000;
  --green: #0b8043;
  --green-soft: rgba(11, 128, 67, 0.12);
  --danger-soft: rgba(204, 0, 0, 0.08);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #000000;
  font-family: Aptos, "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--bg-0);
}



a {
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.background-orb {
  display: none;
}


.top-header,
.app-shell {
  position: relative;
  z-index: 1;
}

.top-header {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 20px;
  margin-bottom: 22px;
}

.brand-lockup,
.header-stats,
.panel,
.filter-shell,
.topic-card,
.newsroom-card,
.detail-drawer,
.final-verdict {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border: 1px solid #000000;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-lockup {
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #000000;
}

.brand-lockup h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.brand-lockup h1 span {
  display: block;
  margin-top: 10px;
  color: #000000;
}

.subcopy {
  max-width: 58ch;
  margin: 18px 0 0;
  color: #000000;
  font-size: 0.98rem;
  line-height: 1.6;
}

.header-stats {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.stats-grid {
  display: grid;
  /* Modified to single column grid to perfectly fit the singular topic count card */
  grid-template-columns: 1fr;
  gap: 12px;
}

.stat-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border: 1px solid #000000;
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: #000000;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-footnote {
  color: #000000;
  line-height: 1.6;
  font-size: 0.92rem;
}

.loading-view,
.error-state,
.empty-state {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid #000000;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.18), transparent);
  animation: shimmer 1.2s infinite;
}

.skeleton-pill-row {
  height: 52px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.skeleton-card {
  height: 150px;
  border-radius: var(--radius-lg);
}

.filter-shell {
  position: sticky;
  top: 14px;
  padding: 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.filter-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid #000000;
  background: rgba(0, 0, 0, 0.04);
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.18);
  outline: none;
}

.filter-chip.active {
  background: #000000;
  border-color: rgba(255, 127, 127, 0.5);
  box-shadow: 0 18px 40px rgba(204, 0, 0, 0.22);
}

.chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
}

.panel {
  padding: 22px;
  border-radius: var(--radius-xl);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}

.section-kicker {
  margin: 0 0 10px;
  color: #000000;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  letter-spacing: -0.04em;
}

.section-meta {
  color: #000000;
  font-size: 0.92rem;
}

.page-copy {
  margin: 0 0 18px;
  color: #000000;
  line-height: 1.7;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.topic-card {
  position: relative;
  display: block;
  padding: 20px;
  border-radius: var(--radius-lg);
  text-align: left;
  text-decoration: none;
  color: #000000;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.topic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), transparent 35%, transparent 100%);
  opacity: 0.7;
  pointer-events: none;
}

.topic-card:hover,
.topic-card:focus-visible,
.topic-card.active {
  transform: translateY(-4px);
  border-color: var(--stroke-strong);
  box-shadow: 0 26px 54px rgba(64, 0, 0, 0.34);
  outline: none;
}

.topic-card.active {
  background: linear-gradient(180deg, rgba(255, 240, 240, 0.95), rgba(255, 255, 255, 0.9));
}

.topic-card h3 {
  margin: 0 0 18px;
  font-size: 1.16rem;
  line-height: 1.35;
}

.topic-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #000000;
  font-size: 0.92rem;
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.metric-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #000000;
  background: rgba(0, 0, 0, 0.04);
  color: #000000;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pill.covered {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(20, 184, 106, 0.26);
}

.status-pill.missed {
  color: #000000;
  background: var(--danger-soft);
  border-color: rgba(204, 0, 0, 0.24);
}

.topic-detail {
  margin-top: 18px;
  animation: rise-in 260ms ease;
}

.detail-topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.detail-summary {
  max-width: 70ch;
  color: #000000;
  line-height: 1.65;
}

.story-grid {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.newsroom-card {
  display: block;
  flex: 0 0 auto;
  min-width: 280px;
  max-width: 320px;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}

.newsroom-card:hover,
.newsroom-card:focus-visible,
.newsroom-card.active {
  transform: translateY(-2px);
  border-color: #000000;
  background: linear-gradient(180deg, rgba(255, 245, 245, 0.95), rgba(255, 255, 255, 0.95));
  outline: none;
}

.newsroom-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.newsroom-name {
  margin: 0;
  font-size: 1.08rem;
}

.newsroom-date {
  display: block;
  margin-top: 6px;
  color: #000000;
  font-size: 0.84rem;
}

.newsroom-title {
  margin: 0;
  color: #000000;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.detail-drawer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-xl);
  margin-bottom: 22px;
  animation: rise-in 260ms ease;
}

.drawer-section h4 {
  margin: 0 0 12px;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000000;
}

.drawer-summary {
  margin: 0;
  color: #000000;
  line-height: 1.75;
  text-align: justify;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #000000;
  text-decoration: none;
  color: white;
  font-weight: 700;
}

.ghost-link {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid #000000;
}

.fact-list {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.fact-item {
  padding: 14px 14px 14px 16px;
  border-left: 4px solid var(--red-2);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(0, 0, 0, 0.04);
  color: #000000;
  line-height: 1.55;
}

.fact-item.covered {
  border-left-color: var(--green);
  background: rgba(0, 0, 0, 0.04);
  color: #000000;
}

.drawer-footnote {
  margin-top: 18px;
  color: #000000;
  font-size: 0.88rem;
}

.final-verdict {
  padding: 22px;
  border-radius: var(--radius-xl);
  border-top: 2px solid rgba(204, 0, 0, 0.55);
}

.verdict-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.verdict-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
}

.verdict-grid {
  display: grid;
  gap: 14px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.verdict-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid #000000;
}

.verdict-number {
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #000000;
  font-size: 1rem;
  font-weight: 800;
  color: white;
}

.verdict-copy {
  margin: 0;
  color: #000000;
  line-height: 1.6;
}

.empty-state,
.error-state {
  color: #000000;
}

.empty-state strong,
.error-state strong {
  display: block;
  margin-bottom: 8px;
  color: #000000;
  font-size: 1.1rem;
}

.loading-view strong {
  display: block;
  margin-bottom: 16px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000000;
}

.utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #000000;
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
  text-decoration: none;
}

.page-link:hover,
.page-link:focus-visible {
  border-color: rgba(255, 127, 127, 0.32);
  outline: none;
}

.card-link {
  text-decoration: none;
}

.nested-panel {
  margin-top: 22px;
  background: rgba(0, 0, 0, 0.03);
}

.page-shell code {
  font-family: Consolas, "Courier New", monospace;
}

.muted {
  color: #000000;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MODIFICATION: Lowered this breakpoint from 980px to 768px so the header elements stay side-by-side longer on desktop screens. */
@media (max-width: 768px) {

  .top-header,
  .detail-drawer {
    grid-template-columns: 1fr;
  }

  .filter-shell {
    top: 10px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 20px, 1400px);
    padding-top: 16px;
  }

  .brand-lockup,
  .header-stats,
  .panel,
  .detail-drawer,
  .final-verdict {
    padding: 18px;
  }

  .stats-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .detail-topbar,
  .verdict-head {
    align-items: start;
    flex-direction: column;
  }

  .verdict-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

/* ===== GLOBAL OVERRIDE: FORCE BLACK TEXT AND STRIP ALL CARD GRADIENTS ===== */

.topic-card::before,
.newsroom-card::before,
.verdict-card::before {
  display: none !important;
  background: none !important;
}

.topic-card,
.newsroom-card,
.verdict-card,
.brand-lockup,
.header-stats,
.panel {
  background: #ffffff !important;
}

.topic-card:hover,
.topic-card:focus-visible,
.topic-card.active,
.newsroom-card:hover,
.newsroom-card:focus-visible,
.newsroom-card.active {
  background: #fdfdfd !important;
}

.brand-lockup h1 span,
.section-title,
.topic-card h3,
.newsroom-card h3,
.newsroom-name,
.newsroom-title,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div {
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  text-fill-color: unset !important;
}

.topic-card *,
.newsroom-card *,
.verdict-card *,
.panel *,
.brand-lockup * {
  color: #000000 !important;
}

/* Restore pill and item backgrounds that were stripped of their utility */
.metric-pill,
.status-pill,
.chip-count,
.page-link,
.action-link,
.fact-item {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #000000 !important;
}

.verdict-number {
  background: #000000 !important;
  color: #ffffff !important;
}


/* ===== RESTORE VERDICT CARD COLORS OVERRIDE ===== */
.verdict-card {
  background: linear-gradient(90deg, rgba(204, 0, 0, 0.12), rgba(0, 0, 0, 0.03)) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.verdict-number {
  background: linear-gradient(180deg, rgba(139, 0, 0, 0.95), rgba(204, 0, 0, 0.88)) !important;
  color: white !important;
}

.verdict-title {
  color: #1a1a1a !important;
}