/* ===================================================================
   MEDIATEA — Mega-Cluster Detail View Showcase (v2 — REVAMP)
   
   Inspired by Go Club's bold saturated backgrounds + floating cards,
   Apple News' dark editorial drama, and The Atlantic's warmth.
   =================================================================== */

/* ─── Design System Imports ─── */
@import url('../../tokens.css');
@import url('../../components/_component-base.css');
@import url('../../components/card-standard/card-standard.css');

/* ─── Page Layout ─── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: #1A1A1E;
  min-height: 100vh;
  padding: 40px 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Showcase Header ─── */

.showcase-header {
  max-width: 520px;
  margin: 0 auto 40px;
  text-align: center;
}

.showcase-title {
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 700;
  color: #E8E8E8;
  margin-bottom: 8px;
}

.showcase-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  color: #8A8A8A;
  line-height: 1.6;
}

.showcase-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #666;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════════
   DETAIL VIEW CANVAS
   
   Bold saturated background (like Go Club) with floating white
   content cards. The narrative color IS the page background.
   ═══════════════════════════════════════════════════════════════════ */

.detail-canvas {
  max-width: 420px;
  margin: 0 auto 32px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* The saturated narrative color as the FULL page background */
.detail-canvas.canvas--iran {
  background: linear-gradient(170deg, #8B2F2B 0%, #B8453F 40%, #C4584F 70%, #D47A6A 100%);
}

.detail-canvas.canvas--artemis {
  background: linear-gradient(170deg, #1B3F66 0%, #2D5F99 40%, #4078B5 70%, #5A96D0 100%);
}

/* ─── Color Palette ─── */

:root {
  /* Iran — warm red */
  --narrative-iran: #C0554F;
  --narrative-iran-deep: #8B2F2B;
  --narrative-iran-light: #D47A6A;
  --narrative-iran-glow: rgba(192, 85, 79, 0.25);
  --narrative-iran-muted: rgba(192, 85, 79, 0.10);

  /* Artemis — cosmic blue */
  --narrative-artemis: #4A7EC0;
  --narrative-artemis-deep: #1B3F66;
  --narrative-artemis-light: #5A96D0;
  --narrative-artemis-glow: rgba(74, 126, 192, 0.25);
  --narrative-artemis-muted: rgba(74, 126, 192, 0.10);
}

/* ═══════════════════════════════════════════════════════════════════
   NAV BAR — transparent, floating over the gradient
   ═══════════════════════════════════════════════════════════════════ */

.detail-nav {
  display: flex;
  align-items: center;
  padding: 16px var(--feed-padding);
  position: relative;
  z-index: 10;
}

.detail-nav-back {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  transition: all var(--duration-snappy) var(--ease-snappy);
}

.detail-nav-back:hover {
  background: rgba(255, 255, 255, 0.20);
}

.detail-nav-back-chevron {
  font-size: 18px;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   IDENTITY HERO — lives directly on the saturated bg
   
   Big bold title + stats on the saturated gradient. No card box.
   Like Go Club's greeting area — text floating on bold color.
   ═══════════════════════════════════════════════════════════════════ */

.identity-hero {
  padding: 8px var(--feed-padding) 28px;
  position: relative;
}

/* ─── Title ─── */

.identity-title {
  font-family: var(--font-headline);
  font-size: 34px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* ─── Big Stats Row (Go Club inspired — large numbers) ─── */

.identity-stats-big {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
}

.identity-stat-block {
  flex: 1;
  text-align: center;
  position: relative;
}

.identity-stat-block:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.identity-stat-number {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.identity-stat-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Status Pill ─── */

.identity-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.identity-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6BC68F;
  box-shadow: 0 0 8px rgba(107, 198, 143, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.identity-status-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.90);
}

.identity-status-date {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.50);
}

/* ═══════════════════════════════════════════════════════════════════
   SUMMARY CARD — floating white card (Go Club pattern)
   
   Sits on the bold bg like Go Club's data cards. Contains the
   LLM summary, topic pills, and lean distribution.
   ═══════════════════════════════════════════════════════════════════ */

.summary-card {
  margin: 0 var(--feed-padding) var(--space-md);
  background: #FFFFFF;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-snappy) var(--ease-snappy);
  border-left: 4px solid transparent;
}

/* Accent strip when viewing a lean perspective */
.summary-card.perspective--left {
  border-left-color: #4A7EC0;
}

.summary-card.perspective--right {
  border-left-color: #C0554F;
}

/* ─── Perspective Toggle Header ─── */

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

.summary-section-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  padding-top: 4px;
  transition: color var(--duration-snappy) var(--ease-snappy);
}

.summary-card.perspective--left .summary-section-label {
  color: #4A7EC0;
}

.summary-card.perspective--right .summary-section-label {
  color: #C0554F;
}

.perspective-toggle {
  display: flex;
  gap: 2px;
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
  padding: 2px;
  flex-shrink: 0;
}

.perspective-toggle-btn {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--duration-snappy) var(--ease-snappy);
}

.perspective-toggle-btn.is-active {
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.perspective-toggle-btn[data-perspective="left"].is-active {
  color: #4A7EC0;
}

.perspective-toggle-btn[data-perspective="right"].is-active {
  color: #C0554F;
}

/* ─── Perspective Content Panels ─── */

.perspective-panel {
  display: none;
  animation: perspectiveFadeIn var(--duration-snappy) var(--ease-snappy);
}

.perspective-panel.is-active {
  display: block;
}

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

/* ─── Article Link Rows (Left/Right perspectives) ─── */

.perspective-articles {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.perspective-articles-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.perspective-article-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-primary);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all var(--duration-snappy) var(--ease-snappy);
  max-width: 100%;
}

.perspective-article-pill:hover {
  background: var(--bg-primary-deep);
  border-color: rgba(0, 0, 0, 0.10);
}

.perspective-article-favicon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: contain;
  background: #FFFFFF;
}

.perspective-article-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ─── Summary Text ─── */

.summary-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ─── AI Disclosure Footer ─── */

.ai-disclosure {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-top: 0px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.ai-disclosure-icon {
  font-size: 10px;
  opacity: 0.7;
}

.ai-disclosure-link {
  display: inline-block;
  margin-top: 2px;
  color: var(--text-tertiary);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.15);
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color var(--duration-snappy) var(--ease-snappy);
}

.ai-disclosure-link:hover {
  color: var(--text-secondary);
}

/* Dark variant for timeline cards on saturated bg */
.ai-disclosure--dark {
  color: rgba(255, 255, 255, 0.40);
}

.ai-disclosure--dark .ai-disclosure-link {
  color: rgba(255, 255, 255, 0.50);
  text-decoration-color: rgba(255, 255, 255, 0.20);
}

.ai-disclosure--dark .ai-disclosure-link:hover {
  color: rgba(255, 255, 255, 0.70);
}

/* Compact variant inside timeline cards */
.timeline-node-card .ai-disclosure {
  margin-top: 4px;
  margin-bottom: 0;
}

/* ─── Topic Pills ─── */

.summary-topics {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.summary-topic-pill {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.canvas--iran .summary-topic-pill {
  background: rgba(192, 85, 79, 0.08);
  color: var(--narrative-iran);
}

.canvas--artemis .summary-topic-pill {
  background: rgba(74, 126, 192, 0.08);
  color: var(--narrative-artemis);
}

/* ─── Political Lean Distribution ─── */

.summary-lean {
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.summary-lean-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.summary-lean-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 8px;
}

.summary-lean-segment {
  border-radius: 4px;
}

.summary-lean-segment--left {
  background: linear-gradient(90deg, #4A7EC0, #6A9ED4);
}

.summary-lean-segment--center {
  background: linear-gradient(90deg, #B0B8B2, #C8CFC9);
}

.summary-lean-segment--right {
  background: linear-gradient(90deg, #D47A6A, #C0554F);
}

.summary-lean-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
}

.summary-lean-labels span {
  color: var(--text-tertiary);
}

.summary-lean-labels .lean-left {
  color: #4A7EC0;
}

.summary-lean-labels .lean-right {
  color: #C0554F;
}

/* ═══════════════════════════════════════════════════════════════════
   COVERAGE PULSE — simple inline bar chart
   
   Non-segmented frequency bars inside the summary card.
   Shows coverage intensity over time. No legend, no toggle.
   ═══════════════════════════════════════════════════════════════════ */

.coverage-pulse {
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.coverage-pulse-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.coverage-pulse-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  margin-bottom: 6px;
}

.coverage-pulse-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  transition: opacity var(--duration-snappy) var(--ease-snappy);
  min-width: 0;
}

.coverage-pulse-bar:hover {
  opacity: 0.75;
}

/* Narrative-colored bars */
.canvas--iran .coverage-pulse-bar {
  background: var(--narrative-iran);
}

.canvas--artemis .coverage-pulse-bar {
  background: var(--narrative-artemis);
}

/* Peak bar gets a subtle gradient */
.coverage-pulse-bar--peak {
  position: relative;
}

.canvas--iran .coverage-pulse-bar--peak {
  background: linear-gradient(to top, var(--narrative-iran), #D47A6A);
}

.canvas--artemis .coverage-pulse-bar--peak {
  background: linear-gradient(to top, var(--narrative-artemis), #6A9ED4);
}

.coverage-pulse-dates {
  display: flex;
  justify-content: space-between;
}

.coverage-pulse-date {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.coverage-pulse-date--peak {
  font-weight: 800;
  color: var(--text-primary);
}


/* ═══════════════════════════════════════════════════════════════════
   TIMELINE SECTION — transparent container
   
   No white wrapper. Cards float directly on the saturated 
   narrative background, same as the summary card. 
   ═══════════════════════════════════════════════════════════════════ */

.timeline-panel {
  padding: 0 var(--feed-padding) var(--space-xl);
  position: relative;
}

/* ─── Dashed center spine ─── 
   Thin dashed line connecting the header card to the timeline cards.
   Runs behind all elements, centered horizontally. */
.timeline-panel::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.35) 0px,
    rgba(255, 255, 255, 0.35) 5px,
    transparent 5px,
    transparent 10px
  );
  z-index: 0;
}

/* All timeline-panel children sit above the spine */
.timeline-panel > * {
  position: relative;
  z-index: 1;
}

.timeline-panel-header {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Hide old icon element */
.timeline-panel-icon {
  display: none;
}

.timeline-panel-title {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.timeline-panel-count {
  display: none;
}

.timeline-panel-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.70);
  margin-top: 8px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════
   NARRATIVE TIMELINE — Date Badge Connectors
   
   No spine, no dots. Cards stack with colored date tabs extending
   from the left edge — like physical file folder tabs. The
   chronology is implied by stacking order + prominent date tabs.
   ═══════════════════════════════════════════════════════════════════ */

.timeline {
  position: relative;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── Terminal Markers ─── */

.timeline-terminal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}

/* Remove decorative lines */
.timeline-terminal::before,
.timeline-terminal::after {
  display: none;
}

/* Hide the old dot element */
.timeline-terminal-dot {
  display: none;
}

.timeline-terminal-text {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  white-space: nowrap;
  padding: 5px 14px;
  border-radius: 100px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ─── Timeline Node (Sub-Cluster) ─── */

.timeline-node {
  position: relative;
  padding: 0;
  margin-bottom: 0;
}

/* Hide old dot element */
.timeline-node-dot {
  display: none;
}

/* Node card */
.timeline-node-card {
  border-radius: var(--radius-lg);
  padding: 0;
  cursor: pointer;
  transition: all var(--duration-snappy) var(--ease-snappy);
  position: relative;
  overflow: hidden;
}

/* Clean card — no accent border. The date tab carries the narrative color. */
.timeline-node-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.timeline-node-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.timeline-node-card:active {
  transform: scale(0.985);
}

/* ─── Date Pill Badge ─── 
   Floating pill inside the hero image's top-left corner.
   For cards without hero images, sits at the top of the card
   with a slight margin. */

.node-date-tab {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.canvas--iran .node-date-tab {
  background: rgba(192, 85, 79, 0.85);
}

.canvas--artemis .node-date-tab {
  background: rgba(74, 126, 192, 0.85);
}

/* Cards without hero images — pill needs relative positioning
   since there's no hero image to anchor against */
.timeline-node-card:not(:has(.node-hero-image)) .node-date-tab {
  position: relative;
  top: auto;
  left: auto;
  margin: 12px 14px 0;
}

/* ─── Node: Hero Thumbnail ─── */

.node-hero-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
}

.node-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-smooth) var(--ease-smooth);
}

.timeline-node-card:hover .node-hero-image img {
  transform: scale(1.03);
}

.node-hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
  pointer-events: none;
}

/* ─── Node: Cluster Context Zone ─── */

.node-context {
  padding: 12px 14px 8px;
}

.node-context-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.node-context-date {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.canvas--iran .node-context-date {
  color: var(--narrative-iran);
}

.canvas--artemis .node-context-date {
  color: var(--narrative-artemis);
}

.node-context-stats {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-tertiary);
  margin-left: auto;
}

.node-context-title {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.node-context-summary {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all var(--duration-smooth) var(--ease-smooth);
}

.node-context-summary.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

/* Show more inside node */
.node-show-more {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: opacity var(--duration-snappy) var(--ease-snappy);
}

.canvas--iran .node-show-more {
  color: var(--narrative-iran);
}

.canvas--artemis .node-show-more {
  color: var(--narrative-artemis);
}

.node-show-more:hover {
  opacity: 0.7;
}

.node-show-more .toggle-arrow {
  font-size: 9px;
  transition: transform var(--duration-snappy) var(--ease-snappy);
}

.node-show-more.expanded .toggle-arrow {
  transform: rotate(180deg);
}

/* ─── Node: Article Zone Divider ─── */

.node-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 0 14px;
}

/* ─── Node: Featured Article Row ─── */

.node-article-row {
  padding: 8px 14px 10px;
  transition: background var(--duration-snappy) var(--ease-snappy);
}

.node-article-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.node-article-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.node-article-pub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.node-article-chevron {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: -2px;
}

.node-article-time {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--text-tertiary);
  margin-left: auto;
}

.node-article-headline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Node: Cluster Footer (compact variant) ─── */

.node-cluster-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  font-family: var(--font-body);
  font-size: 11px;
}

.node-cluster-footer-left {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-tertiary);
}

.node-cluster-footer-cta {
  font-weight: 600;
}

.canvas--iran .node-cluster-footer-cta {
  color: var(--narrative-iran);
}

.canvas--artemis .node-cluster-footer-cta {
  color: var(--narrative-artemis);
}

.node-cluster-footer-chevron {
  font-weight: 600;
}

.canvas--iran .node-cluster-footer-chevron {
  color: var(--narrative-iran);
}

.canvas--artemis .node-cluster-footer-chevron {
  color: var(--narrative-artemis);
}

/* ─── "Show More" Toggle ─── */

.timeline-show-more {
  position: relative;
  padding: 0;
  margin-bottom: 0;
}

.timeline-show-more-dot {
  display: none;
}

.timeline-show-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--duration-snappy) var(--ease-snappy);
}

.timeline-show-more-btn {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.80);
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.timeline-show-more-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.40);
}

.timeline-show-more-chevron {
  font-size: 12px;
  transition: transform var(--duration-snappy) var(--ease-snappy);
}

/* ─── Collapsible Container ─── */

.timeline-collapsed {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-smooth);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-collapsed.is-expanded {
  overflow: visible;
}

/* Staggered entrance for expanded nodes */
.timeline-collapsed.is-expanded .timeline-node {
  animation: node-fade-in 300ms var(--ease-smooth) both;
}

.timeline-collapsed.is-expanded .timeline-node:nth-child(1) { animation-delay: 50ms; }
.timeline-collapsed.is-expanded .timeline-node:nth-child(2) { animation-delay: 100ms; }
.timeline-collapsed.is-expanded .timeline-node:nth-child(3) { animation-delay: 150ms; }
.timeline-collapsed.is-expanded .timeline-node:nth-child(4) { animation-delay: 200ms; }
.timeline-collapsed.is-expanded .timeline-node:nth-child(5) { animation-delay: 250ms; }

@keyframes node-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* "N earlier stories" hint */
.timeline-fade-hint {
  padding: 4px 0;
  text-align: center;
}

/* Remove old spine dot */
.timeline-fade-hint::before {
  display: none;
}

.timeline-fade-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 0.04em;
}

/* ─── Bottom padding for canvas ─── */
.detail-canvas-bottom {
  height: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   SHOWCASE CHROME (labels, annotations, dividers)
   ═══════════════════════════════════════════════════════════════════ */

.variant-label {
  max-width: 420px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}

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

.variant-dot--iran { background: var(--narrative-iran); }
.variant-dot--artemis { background: var(--narrative-artemis); }

.variant-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #C8C8C8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.variant-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: #777;
  margin-left: auto;
}

.annotation {
  max-width: 420px;
  margin: 24px auto 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.annotation-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.annotation-title--iran { color: var(--narrative-iran); }
.annotation-title--artemis { color: var(--narrative-artemis); }
.annotation-title--generic { color: var(--accent-primary); }

.annotation-text {
  font-family: var(--font-body);
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

.showcase-divider {
  max-width: 420px;
  margin: 16px auto 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ─── Responsive ─── */

@media (max-width: 500px) {
  body { padding: 20px 12px; }
  .detail-canvas { border-radius: 18px; }
  .showcase-title { font-size: 22px; }
  .identity-title { font-size: 28px; }
}
