/* =========================================================
   Insight article — CES Category Trends
   ========================================================= */
.insight-card-link { transition: transform .2s ease, border-color .2s ease; }
.insight-card-link:hover { transform: translateY(-3px); border-color: #9d9d96; }

.article-main { max-width: 1440px; margin: 0 auto; }
.insight-article { padding: 0 6vw 100px; }
.article-hero { min-height: 72vh; padding: 72px 0 80px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.article-back { width: fit-content; margin-bottom: 56px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.article-labels { justify-content: flex-start; margin-bottom: 24px; }
.article-kicker { margin: 0 0 16px; color: #2563eb; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.article-hero h1 { max-width: 1100px; margin: 0; font-size: clamp(58px, 8vw, 118px); line-height: .92; letter-spacing: -.06em; }
.article-lead { max-width: 760px; margin: 36px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.9; }

.article-section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.article-section-head { max-width: 850px; }
.article-section-head h2, .taxonomy-note h2, .next-update h2 { margin: 0; font-size: clamp(38px, 5vw, 72px); line-height: 1; letter-spacing: -.05em; }
.article-section-head > p:last-child { max-width: 720px; margin: 24px 0 0; color: var(--muted); line-height: 1.8; }

.heat-legend { display: flex; align-items: center; gap: 7px; margin: 42px 0 18px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.legend-swatch { display: inline-block; width: 28px; height: 14px; border: 1px solid rgba(17,17,17,.08); }
.legend-zero { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; }

.heatmap-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.category-heatmap { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.category-heatmap th, .category-heatmap td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.category-heatmap thead th {
  position: static;
  background: #111;
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.category-heatmap thead th:first-child, .category-heatmap tbody th { text-align: left; }
.category-heatmap tbody th { width: 48%; background: #fff; font-weight: 650; }
.category-heatmap tbody tr:last-child th, .category-heatmap tbody tr:last-child td { border-bottom: 0; }

.category-heatmap thead {
  display: table-header-group;
}

.category-heatmap tbody {
  display: table-row-group;
}

.category-heatmap tr {
  display: table-row;
}

.category-heatmap th,
.category-heatmap td {
  box-sizing: border-box;
}

.category-heatmap tbody tr:first-child th,
.category-heatmap tbody tr:first-child td {
  border-top: 0;
}

.heat-cell { min-width: 82px; font-variant-numeric: tabular-nums; font-weight: 800; }

/* Blue -> near-white -> red. Zero is separate gray because it can mean taxonomy absence. */
.heat-zero { background: #ececea; color: #777770; }
.heat-blue-3 { background: #2563eb; color: #fff; }
.heat-blue-2 { background: #93c5fd; color: #0b2554; }
.heat-neutral { background: #f8fafc; color: #111; }
.heat-red-1 { background: #fdba74; color: #5b2200; }
.heat-red-2 { background: #f97316; color: #fff; }
.heat-red-3 { background: #b91c1c; color: #fff; }

.trend-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 108px; padding: 7px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .05em; white-space: nowrap; }
.trend-up { background: #dcfce7; color: #166534; }
.trend-down { background: #fee2e2; color: #991b1b; }
.trend-stable { background: #e5e7eb; color: #374151; }
.trend-recovery { background: #dbeafe; color: #1d4ed8; }
.trend-peaked { background: #ffedd5; color: #9a3412; }
.trend-new { background: #ede9fe; color: #6d28d9; }
.method-note { max-width: 920px; margin: 22px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }

.finding-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 52px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.finding { min-height: 330px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.finding-no { color: #2563eb; font-size: 11px; font-weight: 800; }
.finding h3 { margin: 70px 0 18px; font-size: clamp(25px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
.finding p { margin: 0; color: var(--muted); line-height: 1.8; }

.taxonomy-note { margin: 96px 0 0; padding: 48px; background: #111; color: #fff; }
.taxonomy-note .eyebrow { color: #9ca3af; }
.taxonomy-note h2 { max-width: 900px; }
.taxonomy-note > p:last-child { max-width: 800px; margin: 28px 0 0; color: #c7c7c2; line-height: 1.9; }

.next-update { margin-top: 28px; padding: 48px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: end; border: 1px solid var(--line); background: #fff; }
.next-update p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.9; }

@media (max-width: 760px) {
  .insight-article { padding: 0 20px 72px; }
  .article-hero { min-height: auto; padding: 56px 0 64px; }
  .article-back { margin-bottom: 40px; }
  .article-section { padding: 70px 0; }
  .heat-legend { flex-wrap: wrap; }
  .category-heatmap th, .category-heatmap td { padding: 13px 12px; }
  .category-heatmap tbody th { width: 42%; }
  .finding-grid { grid-template-columns: 1fr; }
  .finding { min-height: 280px; }
  .finding h3 { margin-top: 48px; }
  .taxonomy-note, .next-update { padding: 30px 24px; }
  .next-update { grid-template-columns: 1fr; gap: 28px; }
}
