/* ============================================================
   CHINA COMPASS — Components
   Particle.news-inspired image card grid with dark theme
   ============================================================ */

/* ---------- Card Module ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

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

.card:last-child {
  margin-bottom: 0;
}

.card-compact {
  padding: var(--space-4);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

/* ============================================================
   SIGNAL CARD — Particle.news Image Card Style
   ============================================================ */
.signal-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: default;
  transition: transform 200ms ease, box-shadow 200ms ease;
  border: 1px solid var(--border-light);
}

.signal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Severity accent — left border stripe */
.signal-card[data-severity="critical"] { --signal-accent: var(--severity-critical); border-left: 3px solid var(--severity-critical); }
.signal-card[data-severity="high"]     { --signal-accent: var(--severity-high); border-left: 3px solid var(--severity-high); }
.signal-card[data-severity="elevated"] { --signal-accent: var(--severity-elevated); border-left: 3px solid var(--severity-elevated); }
.signal-card[data-severity="moderate"] { --signal-accent: var(--severity-moderate); border-left: 3px solid var(--severity-moderate); }
.signal-card[data-severity="low"]      { --signal-accent: var(--severity-low); border-left: 3px solid var(--severity-low); }

/* Background image layer */
.signal-card__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.signal-card__credit {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.55);
  z-index: 1;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  max-width: 60%;
  text-align: right;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Dark gradient overlay — bottom-heavy for text readability */
.signal-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 26, 0.15) 0%,
    rgba(15, 15, 26, 0.5) 40%,
    rgba(15, 15, 26, 0.85) 70%,
    rgba(15, 15, 26, 0.95) 100%
  );
}

/* Fallback gradient when no image */
.signal-card--no-image .signal-card__overlay {
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-card) 100%
  );
}

.signal-card--no-image {
  background: var(--bg-card);
}

/* Content layer — sits on top of overlay */
.signal-card__content {
  position: relative;
  z-index: 2;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Top row: badges */
.signal-card__top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: auto;
}

/* Badges float at top of card */
.signal-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Meta line */
.signal-card__meta-line {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.signal-card__meta-line span {
  display: inline-flex;
  align-items: center;
}

.signal-card__meta-line .meta-divider {
  color: rgba(255,255,255,0.4);
}

/* Title */
.signal-card__title {
  font-family: var(--font-headline);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: #fff;
  margin: 0;
  /* Truncate to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Summary (truncated) */
.signal-card__summary {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  line-height: var(--leading-normal);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Full body — now inside expand-content wrapper, no display:none needed */
.signal-card__body {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-3);
}

.signal-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Implications */
.signal-card__implications {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: none;
}

.signal-card__implications dt {
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.signal-card__implications dd {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  margin: 0 0 var(--space-2);
}

/* ---------- Expandable content wrapper ---------- */
.signal-card__expand-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 300ms ease 100ms;
}

.signal-card__expand-content .signal-card__body {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3);
}

/* Expand hint arrow */
.signal-card__expand-hint {
  text-align: center;
  padding-top: var(--space-2);
  transition: transform 300ms ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-card__expand-icon {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  transition: transform 300ms ease, color 200ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.signal-card:hover .signal-card__expand-icon {
  color: rgba(255,255,255,0.7);
}

/* Cursor for expandable cards */
.signal-card[role="button"] {
  cursor: pointer;
}

/* ---------- Expanded state ---------- */
.signal-card--expanded {
  min-height: auto;
}

.signal-card--expanded .signal-card__expand-content {
  max-height: 3000px;
  opacity: 1;
  transition: max-height 600ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 300ms ease;
}

.signal-card--expanded .signal-card__summary {
  display: none;
}

.signal-card--expanded .signal-card__expand-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.signal-card--expanded .signal-card__title {
  -webkit-line-clamp: unset;
}

/* ---------- Why it matters callout ---------- */
.signal-card__why {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid var(--color-accent);
  background: rgba(255, 90, 95, 0.08);
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.signal-card__why strong {
  color: var(--color-accent);
  font-weight: 600;
  margin-right: 0.35em;
}

/* ---------- Dual-Perspective ---------- */
.signal-card__perspectives {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 640px) {
  .signal-card__perspectives {
    grid-template-columns: 1fr;
  }
}

.perspective {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
}

.perspective:hover {
  background: rgba(255,255,255,0.08);
}

.perspective--canada { border-top: 3px solid var(--perspective-canada); }
.perspective--china  { border-top: 3px solid var(--perspective-china); }

.perspective__header { margin-bottom: var(--space-2); }

.perspective__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.perspective--canada .perspective__label { color: var(--perspective-canada); }
.perspective--china .perspective__label  { color: var(--text-primary); }

.perspective__content {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  line-height: var(--leading-normal);
  margin: 0;
}

/* Source link */
.signal-card__source-link {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.signal-card__source-link a {
  font-size: var(--text-sm);
  color: var(--accent);
}

/* ---------- Implications ---------- */
.signal-card__implications {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.signal-card__implications dt {
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.signal-card__implications dd {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  margin: 0 0 var(--space-2);
}

/* ---------- Link mode (home page cards) ---------- */
.signal-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

.signal-card-link .signal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-color: var(--accent);
}

/* ============================================================
   HERO SIGNAL CARD — Full-width top story
   ============================================================ */
.signal-card--hero {
  min-height: 400px;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
}

.signal-card--hero .signal-card__title {
  font-size: var(--text-3xl);
  -webkit-line-clamp: 4;
}

.signal-card--hero .signal-card__summary {
  font-size: var(--text-base);
  -webkit-line-clamp: 3;
}

.signal-card--hero .signal-card__content {
  padding: var(--space-8);
}

.signal-card--hero .signal-card__overlay {
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 26, 0.1) 0%,
    rgba(15, 15, 26, 0.4) 30%,
    rgba(15, 15, 26, 0.8) 60%,
    rgba(15, 15, 26, 0.95) 100%
  );
}

/* ============================================================
   SIGNAL GRID — 3-column masonry
   ============================================================ */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 1024px) {
  .signal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .signal-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .signal-card {
    min-height: 220px;
    border-radius: var(--radius-md);
  }

  /* Ensure body text is readable on mobile */
  .signal-card__expand-content .signal-card__body {
    font-size: 1rem;
    line-height: 1.65;
  }

  .perspective__content {
    font-size: var(--text-sm);
    line-height: 1.6;
  }

  /* Signal card images fill width on mobile */
  .signal-card__image {
    background-position: center top;
  }

  .signal-card--hero {
    min-height: 300px;
  }

  .signal-card--hero .signal-card__title {
    font-size: var(--text-2xl);
  }

  .signal-card--hero .signal-card__content {
    padding: var(--space-5);
  }

  /* Smoother expand on mobile: lower max-height for faster perceived animation */
  .signal-card--expanded .signal-card__expand-content {
    max-height: 2000px;
    transition: max-height 500ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 250ms ease;
  }
}

/* ============================================================
   CATEGORY SIDEBAR — sticky left nav
   ============================================================ */
.category-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

@media (max-width: 1024px) {
  .category-sidebar {
    position: static !important;
    top: auto;
    max-width: 100%;
    width: 100%;
  }
  .category-sidebar + .cta-box {
    margin-top: var(--space-4);
  }
}

.category-sidebar__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-light);
}

.category-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-sidebar__list li {
  margin-bottom: 0;
}

.category-sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  border-top: none;
  border-bottom: none;
  border-right: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  min-height: 44px;
}

.category-sidebar__item:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border-left-color: var(--border-medium);
}

.category-sidebar__item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-light);
  font-weight: var(--weight-medium);
}

.category-sidebar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.category-sidebar__dot.diplomatic { background: var(--cat-diplomatic); }
.category-sidebar__dot.trade      { background: var(--cat-trade); }
.category-sidebar__dot.military   { background: var(--cat-military); }
.category-sidebar__dot.technology { background: var(--cat-technology); }
.category-sidebar__dot.political  { background: var(--cat-political); }
.category-sidebar__dot.economic   { background: var(--cat-economic); }
.category-sidebar__dot.social     { background: var(--cat-social); }
.category-sidebar__dot.legal      { background: var(--cat-legal); }

.category-sidebar__count {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Severity filter section in sidebar */
.category-sidebar__section {
  margin-top: var(--space-5);
}

/* ---------- Stat Card ---------- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.stat-card__value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--accent);
  line-height: 1;
}

.stat-card__detail {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

.stat-card__breakdown {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

.stat-card__import { color: var(--market-down); font-weight: var(--weight-semibold); }
.stat-card__export { color: var(--market-up); font-weight: var(--weight-semibold); }

/* ---------- Market Card ---------- */
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.market-card__name {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.market-card__value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.market-card__change {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-top: var(--space-1);
}

.market-card__change.up   { color: var(--market-up); }
.market-card__change.down { color: var(--market-down); }
.market-card__change.flat { color: var(--market-flat); }

.market-card__sparkline {
  margin-top: var(--space-3);
  height: 32px;
}

.market-card__sparkline svg {
  width: 100%;
  height: 100%;
}

/* ---------- Entity Card ---------- */
.entity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.entity-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.entity-card__name {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.entity-card__name-zh {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.entity-card__description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.entity-card__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.75em;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: 9999px;
  white-space: nowrap;
  line-height: 1.5;
}

.badge-severity {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.badge-severity.critical { background: var(--severity-critical); }
.badge-severity.high     { background: var(--severity-high); }
.badge-severity.elevated { background: var(--severity-elevated); color: #1A1A1A; text-shadow: none; }
.badge-severity.moderate { background: var(--severity-moderate); }
.badge-severity.low      { background: var(--severity-low); }

.badge-category {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}

.badge-category.diplomatic { color: var(--cat-diplomatic); border-color: rgba(96,165,250,0.4); background: rgba(96,165,250,0.15); }
.badge-category.trade      { color: var(--cat-trade);      border-color: rgba(251,191,36,0.4);  background: rgba(251,191,36,0.15); }
.badge-category.military   { color: var(--cat-military);   border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.15); }
.badge-category.technology { color: var(--cat-technology); border-color: rgba(96,165,250,0.4);  background: rgba(96,165,250,0.15); }
.badge-category.political  { color: var(--cat-political);  border-color: rgba(167,139,250,0.4); background: rgba(167,139,250,0.15); }
.badge-category.economic   { color: var(--cat-economic);   border-color: rgba(251,191,36,0.4);  background: rgba(251,191,36,0.15); }
.badge-category.social     { color: var(--cat-social);     border-color: rgba(52,211,153,0.4);  background: rgba(52,211,153,0.15); }
.badge-category.legal      { color: var(--cat-legal);      border-color: rgba(192,132,252,0.4); background: rgba(192,132,252,0.15); }

/* Market closed badge */
.badge-market-closed {
  background: rgba(255,71,87,0.15);
  color: var(--severity-critical);
  border: 1px solid rgba(255,71,87,0.3);
}

/* Timestamp badge */
.badge-timestamp {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

/* ---------- Tables ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table thead {
  border-bottom: 2px solid var(--border-medium);
}

.data-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-xs);
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.data-table tbody tr:hover {
  background: var(--bg-secondary);
}

.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .up   { color: var(--market-up); }
.data-table .down { color: var(--market-down); }

.data-table caption {
  text-align: left;
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-2) var(--space-4);
  caption-side: top;
}

/* ---------- Progress Bar ---------- */
.progress-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 9999px;
  transition: width var(--transition-normal);
}

.progress-bar__fill.critical { background: var(--severity-critical); }
.progress-bar__fill.high     { background: var(--severity-high); }
.progress-bar__fill.elevated { background: var(--severity-elevated); }
.progress-bar__fill.moderate { background: var(--severity-moderate); }
.progress-bar__fill.low      { background: var(--severity-low); }
.progress-bar__fill.accent   { background: var(--accent); }

/* ---------- Sidebar Module ---------- */
.sidebar-module {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.sidebar-module__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--accent);
}

.sidebar-module__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-module__list li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.sidebar-module__list li:last-child {
  border-bottom: none;
}

/* ---------- Quote Block ---------- */
.quote-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.quote-block__text {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-primary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-3);
}

.quote-block__attribution {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---------- Disruption Banner ---------- */
.disruption-banner {
  background: var(--disruption-bg);
  border: 1px solid var(--disruption-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.disruption-banner__icon { font-size: var(--text-xl); flex-shrink: 0; }
.disruption-banner__content { flex: 1; }
.disruption-banner__title { font-weight: var(--weight-semibold); color: var(--disruption-text); margin-bottom: var(--space-1); }
.disruption-banner__body { font-size: var(--text-sm); color: var(--disruption-text); opacity: 0.85; }

/* ---------- Callout Box ---------- */
.callout {
  background: var(--callout-bg);
  border: 1px solid var(--callout-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
}

.callout__title { font-weight: var(--weight-semibold); color: var(--accent-text); margin-bottom: var(--space-2); }
.callout__body { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }
.callout__body p:last-child { margin-bottom: 0; }

/* ---------- Pathway Cards ---------- */
.pathway-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  display: block;
  color: inherit;
}

.pathway-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.pathway-card__icon { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
.pathway-card__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--text-primary); margin-bottom: var(--space-2); }
.pathway-card__description { font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- Hero Strip ---------- */
.hero-strip {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-8) 0;
}

.hero-strip__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.hero-strip__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.filter-bar__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  margin-right: var(--space-2);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 44px;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- Section Header ---------- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border-light);
}

.section-header__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.section-header__link {
  font-size: var(--text-sm);
  color: var(--accent);
}

/* ---------- CTA Box ---------- */
.cta-box {
  background: var(--accent-light);
  border: 1px solid rgba(255,90,95,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
}

.cta-box__title { font-weight: var(--weight-semibold); color: var(--accent); margin-bottom: var(--space-2); }
.cta-box__body { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-4); }

.cta-box__button {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cta-box__button:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

/* CTA Form */
.cta-form {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

.cta-form__input {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  background: var(--bg-card);
  min-width: 0;
  flex: 1;
  max-width: 220px;
}

.cta-form__input::placeholder { color: var(--text-muted); }
.cta-form__input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

@media (max-width: 480px) {
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-form__input { max-width: none; }
}

/* ---------- Tension Index Display ---------- */
.tension-display { text-align: center; padding: var(--space-8) 0; }
.tension-display__score { font-size: 4rem; font-weight: var(--weight-bold); line-height: 1; }
.tension-display__label { font-size: var(--text-sm); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: var(--space-2); }
.tension-display__level { display: inline-block; padding: var(--space-1) var(--space-4); border-radius: 9999px; font-size: var(--text-sm); font-weight: var(--weight-medium); margin-top: var(--space-3); }

/* ---------- Glossary Term ---------- */
.glossary-term { border-bottom: 1px dotted var(--accent); cursor: help; position: relative; }
.glossary-term:hover::after {
  content: attr(data-zh);
  position: absolute; bottom: 100%; left: 0;
  background: var(--bg-card); border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm); padding: var(--space-1) var(--space-2);
  font-size: var(--text-sm); color: var(--text-secondary); white-space: nowrap;
  box-shadow: var(--shadow-md); z-index: 10;
}

/* ---------- TOC ---------- */
.toc { position: sticky; top: var(--space-8); }
.toc__title { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-3); }
.toc__list { list-style: none; padding: 0; margin: 0; }
.toc__list li { margin-bottom: 0; }
.toc__list a { display: block; padding: var(--space-2) var(--space-3); font-size: var(--text-sm); color: var(--text-muted); border-left: 2px solid transparent; transition: all var(--transition-fast); }
.toc__list a:hover, .toc__list a.active { color: var(--accent); border-left-color: var(--accent); background: var(--accent-light); text-decoration: none; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border-light); }
.timeline__item { padding-left: var(--space-8); padding-bottom: var(--space-5); position: relative; }
.timeline__item::before { content: ''; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-primary); }
.timeline__date { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--space-1); }
.timeline__content { font-size: var(--text-sm); color: var(--text-secondary); }

/* ---------- SVG Diagram ---------- */
.diagram-container { margin: var(--space-6) 0; text-align: center; }
.diagram-container svg { max-width: 100%; height: auto; }
.diagram-container svg text { fill: var(--text-primary); font-family: var(--font-sans); }
.diagram-container svg .diagram-bg { fill: var(--bg-secondary); }
.diagram-container svg .diagram-border { stroke: var(--border-medium); }
.diagram-container svg .diagram-accent { fill: var(--accent); }
.diagram-container svg .diagram-accent-stroke { stroke: var(--accent); }

/* ---------- Table Wrap ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-4);
  scrollbar-width: thin;
  position: relative;
}

/* S14: keep narrow containers (about page) from overflowing at tablet */
.container-narrow .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.container-narrow .data-table {
  max-width: 100%;
}
@media (max-width: 768px) {
  .container-narrow .table-wrap {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Scroll hint shadow on mobile */
@media (max-width: 768px) {
  .table-wrap {
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    scroll-snap-type: x proximity;
  }

  .table-wrap .data-table,
  .table-wrap .comparison-table,
  .table-wrap .institution-table {
    min-width: 500px;
  }

  .table-wrap .data-table td,
  .table-wrap .data-table th {
    padding: var(--space-2) var(--space-3);
  }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-4); }
.breadcrumb__list { display: flex; align-items: center; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.breadcrumb__item::before { content: '/'; margin-right: var(--space-2); color: var(--border-medium); }
.breadcrumb__item:first-child::before { display: none; }

/* ---------- Filter Group ---------- */
.filter-group { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.filter-group__label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-muted); }
.filter-pills { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.filter-count { font-size: var(--text-xs); color: var(--text-muted); margin-left: var(--space-2); }

@media (max-width: 640px) {
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-2);
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex-shrink: 0;
  }
}

/* ---------- Definition List ---------- */
.definition-list dt { font-weight: var(--weight-semibold); color: var(--text-primary); margin-top: var(--space-5); margin-bottom: var(--space-2); }
.definition-list dt:first-child { margin-top: 0; }
.definition-list dd { color: var(--text-secondary); line-height: var(--leading-normal); margin: 0 0 var(--space-4); padding-left: 0; }

/* ---------- Diagram Figure ---------- */
.diagram { margin: var(--space-6) 0; text-align: center; }
.diagram svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.diagram svg text { fill: var(--text-primary); font-family: var(--font-sans); }
.diagram svg .diagram-bg { fill: var(--bg-secondary); }
.diagram svg .diagram-border { stroke: var(--border-medium); }
.diagram svg .diagram-accent { fill: var(--accent); }
.diagram svg .diagram-accent-stroke { stroke: var(--accent); }
.diagram__caption { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-3); }

/* ---------- Key Fact Strip ---------- */
.key-fact-strip {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}

.key-fact {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.key-fact__value {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--accent);
}

.key-fact__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Disruption text (used in tables) ---------- */
.disruption-text {
  color: var(--disruption-text) !important;
  font-weight: var(--weight-medium);
}

/* ---------- Card body/title (generic) ---------- */
.card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.card__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================================
   Section Hero Photo (S1) — full-width photo header w/ overlay
   ============================================================ */
.section-hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 280px;
  max-height: 420px;
  overflow: hidden;
  background: var(--bg-secondary);
  margin-bottom: var(--space-4);
}

.section-hero-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-hero-photo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.section-hero-photo__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 var(--space-5);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--space-6);
  color: #fff;
}

.section-hero-photo__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: var(--weight-bold);
  color: #fff;
  margin: 0 0 var(--space-2);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  line-height: 1.15;
}

.section-hero-photo__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 42rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .section-hero-photo {
    aspect-ratio: 5 / 2;
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  .section-hero-photo__inner {
    padding-bottom: var(--space-4);
  }
}

@media (max-width: 640px) {
  .section-hero-photo {
    aspect-ratio: 2 / 1;
    min-height: 180px;
    max-height: 260px;
  }
}

/* ============================================================
   Photo Strip (S1) — horizontal scrolling gallery
   ============================================================ */
.photo-strip {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-3) 0 var(--space-4);
  scrollbar-width: thin;
}

.photo-strip::-webkit-scrollbar {
  height: 6px;
}

.photo-strip::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 999px;
}

.photo-strip__item {
  flex: 0 0 auto;
  width: min(82vw, 320px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.photo-strip__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: block;
}

.photo-strip__caption {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
  line-height: 1.4;
}

/* ============================================================
   Accordion (S2) — pure CSS via <details>/<summary>
   ============================================================ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.accordion__item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.accordion__item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--accent, #FF5A5F);
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  min-height: 44px;
  font-weight: var(--weight-semibold, 600);
  font-size: var(--text-base, 1rem);
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__summary::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-right: 4px;
}

.accordion__item[open] > .accordion__summary::after {
  transform: rotate(-135deg);
}

.accordion__summary:hover {
  color: var(--accent, #FF5A5F);
}

.accordion__summary__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.accordion__summary__sub {
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--weight-regular, 400);
  color: var(--text-muted);
}

.accordion__body {
  padding: 0 var(--space-4) var(--space-4);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-normal, 1.6);
  animation: accordionFadeIn 0.25s ease;
}

.accordion__body > *:first-child {
  margin-top: 0;
}

.accordion__body ul,
.accordion__body ol {
  padding-left: 1.25rem;
}

@keyframes accordionFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Nested accordion: tighter look */
.accordion .accordion {
  margin: var(--space-3) 0 0;
}

.accordion .accordion__item {
  background: var(--bg-secondary);
  box-shadow: none;
}

.accordion .accordion__summary {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm, 0.9375rem);
}

.accordion .accordion__body {
  padding: 0 var(--space-4) var(--space-3);
  font-size: var(--text-sm);
}

/* ============================================================
   FYP Archive (S2)
   ============================================================ */
.fyp-archive {
  margin: var(--space-5) 0;
}

.fyp-archive__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.fyp-archive__eyebrow {
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent, #FF5A5F);
}

.fyp-domain-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  background: rgba(255, 90, 95, 0.1);
  color: var(--accent, #FF5A5F);
  margin-right: var(--space-2);
}

.fyp-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.fyp-comparison__col {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.fyp-comparison__col h4 {
  margin-top: 0;
  color: var(--accent, #FF5A5F);
}

@media (max-width: 600px) {
  .fyp-comparison {
    grid-template-columns: 1fr;
  }
  .accordion__summary {
    padding: var(--space-3);
    font-size: var(--text-base);
  }
  .accordion__body {
    padding: 0 var(--space-3) var(--space-3);
  }
}

/* ============================================================
   Section Background Photo Strip (S4) — subdued header w/ title
   ============================================================ */
.section-bg-photo {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius-lg, 14px);
  margin: 0 0 var(--space-4);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}
.section-bg-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section-bg-photo__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.68) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.25) 100%
  );
}
.section-bg-photo__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--space-5);
  color: #fff;
}
.section-bg-photo__title {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: var(--weight-bold);
  margin: 0 0 4px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.section-bg-photo__subtitle {
  font-size: var(--text-sm, 0.9rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 40rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
@media (max-width: 600px) {
  .section-bg-photo { height: 120px; }
  .section-bg-photo__inner { padding: 0 var(--space-4); }
}

/* ============================================================
   Event Card (S4) — calendar events
   ============================================================ */
.event-card {
  display: flex;
  gap: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  margin-bottom: var(--space-3);
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent, #FF5A5F);
}
.event-card__date {
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 95, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  color: var(--accent, #FF5A5F);
}
.event-card__date-day {
  font-size: 1.75rem;
  font-weight: var(--weight-bold);
  line-height: 1;
}
.event-card__date-month {
  font-size: var(--text-xs, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--weight-semibold);
  margin-top: 4px;
}
.event-card__body {
  flex: 1 1 auto;
  min-width: 0;
}
.event-card__title {
  font-size: var(--text-base, 1rem);
  font-weight: var(--weight-semibold);
  margin: 0 0 4px;
  color: var(--text-primary);
}
.event-card__desc {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.event-card__meta {
  font-size: var(--text-xs, 0.75rem);
  color: var(--text-muted);
  margin-top: 4px;
}
@media (max-width: 480px) {
  .event-card { padding: var(--space-3); gap: var(--space-3); }
  .event-card__date { flex-basis: 60px; }
  .event-card__date-day { font-size: 1.35rem; }
}

/* ============================================================
   People Card (S4) — person avatar + role
   ============================================================ */
.people-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.people-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent, #FF5A5F);
}
.people-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  margin-bottom: var(--space-3);
  border: 2px solid var(--border-light);
}
.people-card__name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
}
.people-card__name-zh {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 2px 0 var(--space-2);
}
.people-card__role {
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, #FF5A5F);
  margin: 0 0 var(--space-2);
}
.people-card__activity {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* ============================================================
   Sanctions Grid (S4) — side-by-side sanction tables
   ============================================================ */
.sanctions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-3) 0;
}
.sanctions-grid__col {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.sanctions-grid__col h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--accent, #FF5A5F);
}
@media (max-width: 768px) {
  .sanctions-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Tension hero gradient (S4) — dynamic background by level
   ============================================================ */
.tension-hero[data-level="critical"] {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.14), rgba(255, 71, 87, 0.02));
}
.tension-hero[data-level="high"] {
  background: linear-gradient(135deg, rgba(255, 107, 61, 0.14), rgba(255, 107, 61, 0.02));
}
.tension-hero[data-level="elevated"] {
  background: linear-gradient(135deg, rgba(255, 169, 77, 0.16), rgba(255, 169, 77, 0.02));
}
.tension-hero[data-level="moderate"] {
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.14), rgba(74, 144, 217, 0.02));
}
.tension-hero[data-level="low"] {
  background: linear-gradient(135deg, rgba(32, 201, 151, 0.14), rgba(32, 201, 151, 0.02));
}
.tension-hero .tension-display__label {
  display: block;
  font-size: var(--text-xs, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.tension-hero .badge-severity {
  animation: tensionPulse 2.8s ease-in-out infinite;
}
@keyframes tensionPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 90, 95, 0); }
}

/* ============================================================
   Market signal "why it matters" callout inline tweak (S4)
   ============================================================ */
.signal-card__why {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 90, 95, 0.06);
  border-left: 3px solid var(--accent, #FF5A5F);
  border-radius: var(--radius-sm, 6px);
}
.signal-card__why strong {
  display: block;
  font-size: var(--text-xs, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, #FF5A5F);
  margin-bottom: 4px;
}
.signal-card__why p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Trend arrows for commodity/data tables (S4) */
.trend-up::before { content: "\25B2 "; color: var(--market-up, #20C997); font-size: 0.8em; }
.trend-down::before { content: "\25BC "; color: var(--market-down, #FF4757); font-size: 0.8em; }
.trend-flat::before { content: "\25AC "; color: var(--text-muted); font-size: 0.8em; }

/* =================================================================
   S5: Entities photos, About methodology, Social Pulse page
   ================================================================= */

/* ---------- Entity card photo ---------- */
.entity-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.entity-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-secondary);
}
.entity-card__body { padding: var(--space-4) var(--space-5) var(--space-5); flex: 1; display: flex; flex-direction: column; }
.entity-card__description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entity-card__activity {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.entity-card__activity::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.15);
}

/* ---------- Trending entities strip ---------- */
.entity-trending { margin: var(--space-6) 0 var(--space-4); }
.entity-trending__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.entity-trending__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.entity-trending__title::before { content: "\1F525"; margin-right: var(--space-2); }
.entity-trending__scroller {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.entity-trending__card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}
.entity-trending__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.entity-trending__card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.entity-trending__card-body { padding: var(--space-3) var(--space-4); }
.entity-trending__card-name { font-weight: var(--weight-semibold); font-size: var(--text-base); margin-bottom: var(--space-1); }
.entity-trending__card-meta { font-size: var(--text-xs); color: var(--text-muted); }

/* ---------- About: methodology cards ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}
.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.method-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.method-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.method-card__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }
.method-card__description { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }
.method-card__icon { font-size: 1.5em; margin-left: var(--space-2); }

/* ---------- Social Pulse page ---------- */
.social-feed {
  columns: 3;
  column-gap: var(--space-4);
  margin: var(--space-5) 0;
}
@media (max-width: 1024px) { .social-feed { columns: 2; } }
@media (max-width: 640px) { .social-feed { columns: 1; } }

.social-card {
  break-inside: avoid;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
  color: inherit;
}
.social-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.social-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.social-card__platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: #fff;
  flex-shrink: 0;
}
.social-card__platform--weibo { background: #E6162D; }
.social-card__platform--douyin { background: #000; }
.social-card__platform--xiaohongshu { background: #FF2442; }
.social-card__platform--x { background: #000; }
.social-card__platform--youtube { background: #FF0000; }
.social-card__platform--reddit { background: #FF4500; }
.social-card__author { flex: 1; min-width: 0; }
.social-card__author-name { font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--text-primary); }
.social-card__handle { font-size: var(--text-xs); color: var(--text-muted); }
.social-card__text {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  white-space: pre-wrap;
}
.social-card__image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  display: block;
}
.social-card__engagement {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-3);
}
.social-card__engagement span::before { margin-right: 4px; }
.social-card__engagement .likes::before { content: "\2665"; color: var(--accent); }
.social-card__engagement .shares::before { content: "\21BB"; }
.social-card__engagement .comments::before { content: "\1F4AC"; }
.social-card__time { margin-left: auto; }

.social-section { margin: var(--space-8) 0; }
.social-section__header { margin-bottom: var(--space-4); }
.social-section__title { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--text-primary); }
.social-section__subtitle { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-1); }

/* =================================================================
   Image-free replacements: initials + badge placeholders
   ================================================================= */

/* Entity card initials (replaces Unsplash photo) */
.entity-card__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FF5A5F 0%, #C73E43 100%);
}
.entity-card__initials span { line-height: 1; }
.entity-card__initials--people      { background: linear-gradient(135deg, #4A90D9 0%, #2B5F8F 100%); }
.entity-card__initials--org         { background: linear-gradient(135deg, #20C997 0%, #0F7B5C 100%); }
.entity-card__initials--commodity   { background: linear-gradient(135deg, #FFA94D 0%, #CC7A20 100%); }
.entity-card__initials--institution { background: linear-gradient(135deg, #A78BFA 0%, #6B4FB8 100%); }
.entity-card__initials--topic       { background: linear-gradient(135deg, #FF6B3D 0%, #C0461F 100%); }

/* Entity trending scroller uses the same initials at smaller size */
.entity-trending__card .entity-card__initials {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  flex: 0 0 64px;
}

/* People watchlist avatar: override the photo style with solid initials bg */
.people-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin: 0 auto var(--space-3);
  border: none;
  background: linear-gradient(135deg, #888 0%, #555 100%);
}
.people-card__avatar span { line-height: 1; }
.people-card__avatar--cn { background: linear-gradient(135deg, #DE2910 0%, #8B0000 100%); }
.people-card__avatar--ca { background: linear-gradient(135deg, #FF0000 0%, #A00000 100%); }
.people-card__avatar--us { background: linear-gradient(135deg, #3C3B6E 0%, #1A1943 100%); }

/* Social card author badge (replaces wrong stock avatars) */
.social-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: var(--space-3);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  flex: 0 0 40px;
}
.social-card__badge--weibo       { background: #E6162D; }
.social-card__badge--douyin      { background: #000; }
.social-card__badge--xiaohongshu { background: #FF2442; }
.social-card__badge--x           { background: #000; }
.social-card__badge--youtube     { background: #FF0000; }
.social-card__badge--reddit      { background: #FF4500; }

/* Gradient hero (replaces unreliable Unsplash hero photos) */
.section-hero-gradient {
  padding: var(--space-10) 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  text-align: center;
  margin-bottom: var(--space-6);
}
.section-hero-gradient--entities {
  background: linear-gradient(135deg, #FF5A5F 0%, #C73E43 50%, #7a1e22 100%);
}
.section-hero-gradient__inner { max-width: 900px; margin: 0 auto; padding: 0 var(--space-6); }
.section-hero-gradient__title { font-size: var(--text-3xl); font-weight: 700; margin: 0 0 var(--space-3); color: #fff; }
.section-hero-gradient__subtitle { font-size: var(--text-lg); margin: 0; opacity: 0.9; color: #fff; }

/* ===== Market Analysis Card (rich, business page) ===== */
.market-analysis-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.market-analysis-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.market-analysis-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.market-analysis-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.market-analysis-card__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}
.market-analysis-card__photo-badges {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-4);
  display: flex;
  gap: var(--space-2);
  z-index: 2;
}
.market-analysis-card__body {
  padding: var(--space-5) var(--space-6);
}
.market-analysis-card__meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  align-items: center;
}
.market-analysis-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0 0 var(--space-4);
}
.market-analysis-card__lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent);
  padding-left: var(--space-4);
  margin: var(--space-4) 0 var(--space-5);
  font-style: italic;
}
.market-analysis-card__content {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.market-analysis-card__content p {
  margin: 0 0 var(--space-3);
}
.market-analysis-card__why {
  background: rgba(255, 90, 95, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}
.market-analysis-card__why-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
  display: block;
}
.market-analysis-card__why p {
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.55;
  margin: 0;
}
.market-analysis-card__perspectives {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}
.market-analysis-card__perspectives details {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0;
}
.market-analysis-card__perspectives summary {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.market-analysis-card__perspectives summary::before {
  content: '▸';
  transition: transform 200ms;
  color: var(--accent);
}
.market-analysis-card__perspectives details[open] summary::before {
  transform: rotate(90deg);
}
.market-analysis-card__perspectives summary::-webkit-details-marker {
  display: none;
}
.market-analysis-card__perspectives details p {
  padding: 0 var(--space-4) var(--space-4);
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}
.market-analysis-card__footer {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-3);
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
}
.market-analysis-card__footer a {
  color: var(--accent);
  margin-left: auto;
  text-decoration: none;
}
.market-analysis-card__footer a:hover {
  text-decoration: underline;
}
.business-section-header {
  border-bottom: 2px solid var(--accent);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-5);
}
@media (max-width: 768px) {
  .market-analysis-card__body { padding: var(--space-4); }
  .market-analysis-card__title { font-size: var(--text-xl); }
  .market-analysis-card__lede { font-size: var(--text-base); padding-left: var(--space-3); }
  .market-analysis-card__perspectives { grid-template-columns: 1fr; }
  .market-analysis-card__photo { aspect-ratio: 3 / 2; }
}

/* Curated portraits + entity photos (Sprint V3) */
.people-card__portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-3);
  border: 2px solid var(--border-light);
  display: block;
}
.entity-card__photo-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
.entity-trending__card .entity-card__photo-img {
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
  flex-shrink: 0;
}

/* ---------- Photo credit caption ---------- */
.photo-credit {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  opacity: 0.75;
  padding: var(--space-1) var(--space-3);
  text-align: right;
  font-style: italic;
}
.photo-credit a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-medium);
}
.photo-credit a:hover { color: var(--accent); }

.section-hero-photo .photo-credit {
  position: absolute;
  bottom: 6px;
  right: 8px;
  z-index: 3;
  font-size: 9px;
  line-height: 1.2;
  color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.25);
  border-radius: 3px;
  padding: 1px 5px;
  opacity: 0.7;
  font-style: normal;
  letter-spacing: 0;
  transition: opacity 200ms ease;
}
.section-hero-photo:hover .photo-credit {
  opacity: 1;
}
.section-hero-photo .photo-credit a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.section-hero-photo .photo-credit a:hover {
  color: rgba(255,255,255,1);
  text-decoration: underline;
}

figure.section-hero-photo--inline figcaption .photo-credit,
figure figcaption .photo-credit {
  position: static;
  background: transparent;
  color: var(--text-muted);
}

.credits-list { list-style: none; padding-left: 0; }
.credits-list li { padding: var(--space-1) 0; border-bottom: 1px solid var(--border-light); }

/* ============================================================
   PREDICTION CARD — Polymarket crowd wisdom (P2)
   ============================================================ */
.prediction-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}

.prediction-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 280px;
}
.prediction-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.prediction-card--low { border-left-color: #FF4757; }
.prediction-card--mid { border-left-color: #FFA94D; }
.prediction-card--high { border-left-color: #20C997; }

.prediction-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prediction-card__platform {
  font-weight: var(--weight-bold);
  color: #00d4aa;
  letter-spacing: 0.1em;
}

.prediction-card__end {
  font-variant-numeric: tabular-nums;
}

.prediction-card__question {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prediction-card__bar {
  width: 100%;
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 5px;
  overflow: hidden;
  margin-top: var(--space-2);
}

.prediction-card__fill {
  height: 100%;
  background: linear-gradient(90deg, #FF4757 0%, #FFA94D 50%, #20C997 100%);
  transition: width 600ms ease;
}

.prediction-card__gauge {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.prediction-card__pct {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.prediction-card__pct-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prediction-card__meta {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  align-items: center;
  flex-wrap: wrap;
}

.prediction-card__volume {
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-medium);
}

.prediction-card__tag {
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 9999px;
}

.prediction-card__link {
  font-size: var(--text-sm);
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-light);
}
.prediction-card__link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .prediction-feed {
    grid-template-columns: 1fr;
  }
  .prediction-card {
    min-height: auto;
    padding: var(--space-4);
  }
  .prediction-card__pct {
    font-size: var(--text-2xl);
  }
}
