/* ====================================================================
   CONSUMER HEALTH TREND — THEME OVERRIDES
   v1.0 · 2026-03
   ====================================================================
   Requires: brief-base.css loaded first.

   This file:
   1. Sets the amber publication accent
   2. Defines Trend-specific components:
      - Market thesis section
      - Category analysis cards
      - Channel comparison table
      - Momentum badges
   ==================================================================== */

/* ============================================================
   ACCENT — AMBER / GOLD
   ============================================================ */
:root {
  --pub-accent:           #f59e0b;
  --pub-accent-glow:      rgba(245, 158, 11, 0.18);
  --pub-accent-dim:       rgba(245, 158, 11, 0.08);
  --pub-accent-hero-grid: rgba(245, 158, 11, 0.04);
  --pub-accent-hero-glow: rgba(245, 158, 11, 0.06);
}

/* ============================================================
   MARKET THESIS SECTION
   ============================================================ */
.thesis-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  gap: 18px;
  margin-bottom: 32px;
}
.thesis-main,
.thesis-side {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  position: relative;
  overflow: hidden;
}
.thesis-main {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.10) 0%, rgba(245, 158, 11, 0.01) 40%, transparent 60%),
    var(--card);
}
.thesis-side {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.04), transparent 50%),
    var(--card);
}
.thesis-main::before,
.thesis-side::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.thesis-main::before { background: linear-gradient(90deg, var(--pub-accent), rgba(34, 211, 238, 0.5), transparent); }
.thesis-side::before { background: linear-gradient(90deg, var(--cyan), transparent); }

.thesis-kicker,
.thesis-side-kicker {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.thesis-kicker      { color: var(--pub-accent); }
.thesis-side-kicker { color: var(--cyan); }

/* Thesis headline — bold editorial standfirst, not a dominant H1 */
.thesis-headline {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-strong);
  max-width: 52ch;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  border-left: 2px solid var(--pub-accent);
  padding-left: 14px;
}
.thesis-summary {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted-light);
  max-width: 62ch;
  margin-bottom: 22px;
}

/* Proof chips (3-up stat bar) */
.thesis-proofbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.proof-chip {
  padding: 12px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.025);
}
.proof-num {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--pub-accent);
  line-height: 1;
  margin-bottom: 4px;
}
.proof-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  margin-bottom: 6px;
}
.proof-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* Signal pillars (3-col cards inside thesis-main) */
.thesis-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pillar-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}
.pillar-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pub-accent);
  margin-bottom: 7px;
}
.pillar-card h3 {
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 6px;
  line-height: 1.4;
}
.pillar-card p { font-size: 11.5px; color: var(--muted); line-height: 1.55; }

/* Thesis side */
.thesis-side-title {
  font-family: var(--ff-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 16px;
  line-height: 1.35;
}
.thesis-side-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.signal-line {
  padding: 10px 12px;
  border-radius: var(--radius);
  border-left: 2px solid var(--border-mid);
  background: rgba(255,255,255,0.02);
  font-size: 12px;
  line-height: 1.55;
}
.signal-line strong { display: block; color: var(--text-strong); margin-bottom: 3px; font-size: 12px; }
.signal-line span   { color: var(--muted); }
.signal-line.glp1   { border-color: var(--pub-accent); }
.signal-line.forms  { border-color: var(--teal); }
.signal-line.channel{ border-color: var(--cyan); }
.signal-line.watch  { border-color: var(--purple); }
.thesis-decision {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
}
.thesis-decision-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pub-accent);
  margin-bottom: 7px;
}
.thesis-decision p { font-size: 12px; color: var(--text); line-height: 1.6; }
.thesis-decision p strong { color: var(--text-strong); }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--cat-accent, var(--pub-accent));
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.cat-card:hover { box-shadow: var(--shadow); border-color: var(--border-mid); }
.cat-card.wide  { grid-column: span 2; }
.cat-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.cat-card-head h3 { font-family: var(--ff-serif); font-size: 18px; color: var(--text-strong); line-height: 1.3; }

/* Momentum badge */
.momentum-badge {
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
}
.momentum-badge.rising    { background: rgba(52,211,153,0.12); color: var(--success); border: 1px solid rgba(52,211,153,0.3); }
.momentum-badge.stable    { background: var(--warning-dim); color: var(--warning); border: 1px solid rgba(251,191,36,0.3); }
.momentum-badge.softening { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(251,113,133,0.3); }

/* 6-row dimension table inside each card */
.cat-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cat-table tr { border-bottom: 1px solid var(--border); }
.cat-table tr:last-child { border-bottom: none; }
.cat-table td { padding: 7px 0; vertical-align: top; color: var(--text); line-height: 1.55; }
.cat-table td:first-child {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  width: 140px;
  padding-right: 12px;
  padding-top: 9px;
}
.cat-table td strong { color: var(--text-strong); }

/* ============================================================
   CHANNEL COMPARISON TABLE
   ============================================================ */
.channel-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.channel-table { width: 100%; border-collapse: collapse; }
.channel-table thead tr { background: var(--surface); }
.channel-table th {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.channel-table th:nth-child(2) { color: var(--pub-accent); }
.channel-table th:nth-child(3) { color: var(--teal); }
.channel-table td {
  font-size: 12.5px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  line-height: 1.55;
}
.channel-table tbody tr:last-child td { border-bottom: none; }
.channel-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.channel-table td:first-child {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  width: 160px;
}
.channel-table td strong { color: var(--text-strong); }
.channel-commentary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
}
.channel-commentary p { font-size: 13.5px; color: var(--text); line-height: 1.75; margin-bottom: 12px; }
.channel-commentary p:last-child { margin-bottom: 0; }

/* ============================================================
   RESPONSIVE (Trend-specific overrides)
   ============================================================ */
@media (max-width: 900px) {
  .thesis-brief { grid-template-columns: 1fr; }
  .thesis-headline { max-width: none; font-size: 16px; }
  .thesis-pillars { grid-template-columns: 1fr; }
  .thesis-proofbar { grid-template-columns: 1fr 1fr; }
  .category-cards-grid { grid-template-columns: 1fr; }
  .cat-card.wide { grid-column: span 1; }
}
@media (max-width: 640px) {
  .thesis-proofbar { grid-template-columns: 1fr; }
}
