/**
 * News — plain-English market interpreter + editorial hero.
 */

.rail-module--intel .news-narrative-hero {
  position: relative;
  isolation: isolate;
  padding: 16px 16px 12px;
  min-height: min(420px, 54vh);
}

.news-narrative__ambience {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: 12px;
}

.news-narrative__sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 32%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(140, 165, 230, 0.05) 45%,
    rgba(212, 168, 90, 0.04) 55%,
    transparent 100%
  );
  animation: newsNarrativeSweep 13s ease-in-out infinite;
}

.news-narrative__bloom {
  position: absolute;
  inset: 6% 10% 45%;
  background: radial-gradient(ellipse 80% 50% at 50% 15%, rgba(100, 120, 200, 0.09) 0%, transparent 70%);
  animation: newsNarrativeBloom 7s ease-in-out infinite;
}

@keyframes newsNarrativeSweep {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.35;
  }
  50% {
    transform: translateX(340%);
    opacity: 0.8;
  }
}

@keyframes newsNarrativeBloom {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

/* Hero — dominant editorial block */
.news-narrative__hero {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  padding: 20px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(32, 36, 52, 0.9) 0%, rgba(10, 12, 18, 0.82) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 44px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.news-narrative__hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.news-narrative__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 44%);
  gap: clamp(14px, 2.5vw, 22px);
  align-items: center;
}

.news-narrative__hero-content {
  min-width: 0;
}

/* Live story intelligence panel */
.news-live-panel {
  margin: 14px 0 16px;
  padding: 14px 14px 12px;
  border-radius: 10px;
  border: 1px solid rgba(140, 165, 230, 0.14);
  background: linear-gradient(
    165deg,
    rgba(18, 24, 38, 0.72) 0%,
    rgba(8, 10, 16, 0.55) 100%
  );
}

.news-live-panel__lead {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.news-live-panel__lead-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 215, 240, 0.88);
}

.news-live-panel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 12px;
  font-size: 12px;
}

.news-live-panel__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 195, 220, 0.62);
}

.news-live-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 600;
  color: #d8e4f4;
}

.news-live-status-chip[data-status="strengthening"] {
  border-color: rgba(100, 200, 140, 0.28);
  color: #8fd4a8;
}

.news-live-status-chip[data-status="weakening"] {
  border-color: rgba(220, 150, 120, 0.28);
  color: #e8a88a;
}

.news-live-status-chip[data-status="stable"] {
  color: rgba(200, 215, 235, 0.82);
}

.news-live-status-chip__icon {
  font-size: 9px;
  line-height: 1;
}

.news-live-panel__updated {
  font-size: 12px;
  color: rgba(200, 210, 230, 0.62);
}

.news-live-panel__updated[data-quality="live"] {
  color: rgba(180, 210, 230, 0.78);
}

.news-live-panel__updated::before {
  content: "·";
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.18);
}

.news-live-panel__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-live-metric--strength .news-live-metric__value {
  margin-top: 6px;
}

.news-live-strength__track {
  margin-top: 6px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.news-live-strength__fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(100, 140, 200, 0.55), rgba(140, 180, 230, 0.85));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-live-panel__credibility {
  margin: 14px 0 0;
  padding-top: 0;
  border-top: none;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(170, 185, 210, 0.5);
}

.news-narrative__focus-row {
  margin: 10px 0 6px;
}

.news-narrative__section-label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 195, 220, 0.55);
}

.news-narrative__section-label--primary {
  margin-top: 10px;
}

.news-narrative__section-label--secondary {
  margin-top: 14px;
}

.news-narrative__what--supporting {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(200, 210, 228, 0.72);
  margin-bottom: 12px;
}

.news-live-metric__value {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 600;
  color: #eef3fb;
  font-variant-numeric: tabular-nums;
}

.news-live-metric__value[data-confidence="high"] {
  color: #8fd4a8;
}

.news-live-metric__value[data-confidence="medium"] {
  color: #d4c48a;
}

.news-live-metric__value[data-confidence="low"] {
  color: rgba(200, 210, 230, 0.65);
}

.news-live-panel__block {
  margin-top: 10px;
}

.news-live-changed,
.news-live-sectors,
.news-live-since {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(220, 228, 242, 0.88);
}

.news-live-panel__lead .news-live-changed {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(236, 242, 252, 0.95);
}

.news-live-panel__lead .news-live-changed li {
  position: relative;
  padding-left: 14px;
}

.news-live-panel__lead .news-live-changed li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(140, 165, 230, 0.75);
}

.news-live-changed li + li,
.news-live-since li + li {
  margin-top: 6px;
}

.news-live-since__muted {
  color: rgba(180, 195, 220, 0.55);
  font-size: 12px;
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}

.news-live-sectors {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-live-sector {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(220, 228, 242, 0.9);
}

.news-live-sector__dir {
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.85;
}

.news-live-sector--up .news-live-sector__dir {
  color: #8fd4a8;
}

.news-live-sector--down .news-live-sector__dir {
  color: #e8a88a;
}

.news-live-sector--flat .news-live-sector__dir {
  color: rgba(180, 195, 220, 0.55);
}

.news-story-node.is-primary-focus {
  width: 100%;
  max-width: 220px;
}

.news-story-node.is-primary-focus .news-story-node__title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.news-live-panel__sectors .news-narrative__block-label,
.news-live-panel__watching .news-narrative__block-label {
  font-size: 10px;
  margin-bottom: 6px;
}

.news-live-panel__watching {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.news-live-panel__since {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Globe visual — 3D digital Earth canvas */
.news-narrative__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(280px, 42vh);
  width: 100%;
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.news-globe-stage {
  position: relative;
  width: 100%;
  max-width: min(100%, 360px);
  min-height: min(280px, 42vh);
  aspect-ratio: 1;
  touch-action: pan-y;
  transform: translate(var(--globe-px, 0), var(--globe-py, 0));
  will-change: transform;
  pointer-events: auto;
  border-radius: 50%;
  background: radial-gradient(
    circle at 48% 42%,
    rgba(6, 22, 42, 0.45) 0%,
    rgba(2, 8, 18, 0.22) 52%,
    transparent 78%
  );
  box-shadow: none;
}

.news-globe-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  border-radius: 50%;
  filter: none;
}

.news-globe-hit {
  position: absolute;
  inset: 4%;
  z-index: 3;
  border-radius: 50%;
  cursor: grab;
  touch-action: pan-y;
  background: transparent;
}

.news-narrative__visual.is-interactive .news-globe-stage,
.news-narrative__visual.is-interactive .news-globe-hit {
  cursor: grab;
}

.news-narrative__visual.is-dragging .news-globe-stage,
.news-narrative__visual.is-dragging .news-globe-hit {
  cursor: grabbing;
}

.news-narrative__visual.is-updating {
  animation: newsVisualPulse 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes newsVisualPulse {
  0% {
    opacity: 0.55;
  }
  100% {
    opacity: 0.92;
  }
}

.news-globe-visual {
  display: none;
}

.news-globe-visual__atmos {
  animation: newsHaloBreath 7s ease-in-out infinite;
}

.news-globe-visual__halo {
  animation: newsHaloBreath 6s ease-in-out infinite;
}

.news-globe-visual__rim {
  opacity: 0.85;
}

.news-globe-visual__mesh polygon {
  vector-effect: non-scaling-stroke;
}

.news-globe-visual__land {
  stroke: rgba(100, 185, 255, 0.25);
  stroke-width: 0.75;
}

.news-globe-visual__network {
  pointer-events: none;
}

.news-globe-visual__data-node {
  filter: drop-shadow(0 0 4px rgba(140, 220, 255, 0.9));
  animation: newsDataNodePulse 3s ease-in-out infinite;
}

.news-globe-visual__data-node:nth-child(odd) {
  animation-delay: 0.6s;
}

@keyframes newsDataNodePulse {
  50% {
    opacity: 0.65;
  }
}

@keyframes newsHaloBreath {
  50% {
    stroke-opacity: 0.14;
  }
}

.news-globe-visual__shine {
  pointer-events: none;
}

.news-globe-visual__region-glow {
  fill: rgba(80, 160, 255, 0.12);
  stroke: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.news-globe-visual__region-glow--eu {
  fill: rgba(100, 180, 255, 0.14);
}

.news-globe-visual__region-glow--gulf {
  fill: rgba(90, 170, 255, 0.1);
  opacity: 0;
}

.news-narrative__visual[data-visual="inflation"] .news-globe-visual__region-glow--us,
.news-narrative__visual[data-visual="europe"] .news-globe-visual__region-glow--us,
.news-narrative__visual[data-visual="europe"] .news-globe-visual__region-glow--eu,
.news-narrative__visual[data-visual="ai"] .news-globe-visual__region-glow--us,
.news-narrative__visual[data-visual="energy"] .news-globe-visual__region-glow--gulf,
.news-narrative__visual[data-visual="energy"] .news-globe-visual__region-glow--us {
  opacity: 1;
  animation: newsRegionPulse 3.6s ease-in-out infinite;
}

.news-narrative__visual[data-visual="europe"] .news-globe-visual__region-glow--eu {
  animation-delay: 0.5s;
}

@keyframes newsRegionPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.95;
  }
}

.news-globe-visual__arc-flow {
  animation: newsArcMarch 2.8s linear infinite;
}

@keyframes newsArcMarch {
  to {
    stroke-dashoffset: -100;
  }
}

.news-globe-visual__pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: newsRingExpand 3.2s ease-out infinite;
}

.news-globe-visual__pulse--delay {
  animation-delay: 1.1s;
}

@keyframes newsRingExpand {
  0% {
    r: 10;
    opacity: 0.5;
  }
  100% {
    r: 28;
    opacity: 0;
  }
}

.news-globe-visual__node {
  fill: rgba(212, 168, 90, 0.85);
  filter: drop-shadow(0 0 6px rgba(212, 168, 90, 0.5));
}

.news-globe-visual__node--eu {
  fill: rgba(140, 165, 230, 0.9);
  filter: drop-shadow(0 0 6px rgba(140, 165, 230, 0.45));
}

.news-globe-visual__node--gulf {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.news-globe-visual__flow-set {
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-globe-visual__flow-set--us-eu,
.news-globe-visual__flow-set--inflation,
.news-globe-visual__flow-set--ai,
.news-globe-visual__flow-set--energy {
  pointer-events: none;
}

.news-narrative__visual[data-visual="inflation"] .news-globe-visual__flow-set--inflation,
.news-narrative__visual[data-visual="europe"] .news-globe-visual__flow-set--us-eu,
.news-narrative__visual[data-visual="ai"] .news-globe-visual__flow-set--ai,
.news-narrative__visual[data-visual="energy"] .news-globe-visual__flow-set--energy {
  opacity: 1;
}

.news-narrative__visual[data-visual="inflation"] .news-globe-visual__node--us,
.news-narrative__visual[data-visual="europe"] .news-globe-visual__node--us,
.news-narrative__visual[data-visual="europe"] .news-globe-visual__node--eu,
.news-narrative__visual[data-visual="ai"] .news-globe-visual__node--us,
.news-narrative__visual[data-visual="energy"] .news-globe-visual__node--gulf,
.news-narrative__visual[data-visual="energy"] .news-globe-visual__node--us {
  animation: newsNodeGlow 2.4s ease-in-out infinite;
}

.news-narrative__visual[data-visual="energy"] .news-globe-visual__node--gulf {
  opacity: 1;
}

.news-narrative__visual[data-visual="europe"] .news-globe-visual__node--eu {
  animation-delay: 0.4s;
}

@keyframes newsNodeGlow {
  50% {
    filter: drop-shadow(0 0 14px rgba(140, 220, 255, 1));
  }
}

.news-globe-visual__particle--dim {
  opacity: 0.75;
}

.news-narrative__kicker {
  margin: 0 0 10px;
  font-family: var(--dash-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212, 168, 90, 0.75);
}

.news-narrative__headline {
  margin: 0 0 12px;
  font-family: var(--dash-display, "Playfair Display", Georgia, serif);
  font-size: clamp(1.4rem, 3.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff;
}

.news-narrative__what {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36em;
}

.news-narrative__block {
  margin-bottom: 14px;
}

.news-narrative__block:last-child {
  margin-bottom: 0;
}

.news-narrative__block-label {
  margin: 0 0 6px;
  font-family: var(--dash-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 168, 90, 0.6);
}

.news-narrative__block-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34em;
}

.news-impact__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-impact__tag {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-watching__list {
  margin: 0;
  padding: 0 0 0 2px;
  list-style: none;
}

.news-watching__list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.news-watching__list li + li {
  margin-top: 6px;
}

.news-watching__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(212, 168, 90, 0.55);
}

/* Supporting stories — smaller orbit */
.news-narrative__supporting {
  position: relative;
  z-index: 1;
}

.news-narrative__timeline {
  position: relative;
}

.news-narrative-hero .news-timeline__track {
  position: relative;
  height: 2px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.news-timeline__flow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(140, 165, 230, 0.12) 35%,
    rgba(212, 168, 90, 0.16) 50%,
    rgba(140, 165, 230, 0.12) 65%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: newsTimelineFlow 12s linear infinite;
}

@keyframes newsTimelineFlow {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.news-narrative-hero .news-timeline__pulse {
  position: absolute;
  top: 50%;
  left: 6%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--rail-gold);
  box-shadow: 0 0 12px rgba(212, 168, 90, 0.5);
  transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.news-narrative-hero.has-focus .news-timeline__pulse,
.news-narrative-hero:has(.news-story-node.is-active) .news-timeline__pulse {
  animation: newsPulseGlow 2s ease-in-out infinite;
}

@keyframes newsPulseGlow {
  50% {
    box-shadow: 0 0 18px rgba(212, 168, 90, 0.7);
  }
}

.news-narrative-hero .news-timeline__nodes {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.news-story-node {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 8px 10px 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    background 0.45s ease,
    box-shadow 0.45s ease,
    opacity 0.45s ease,
    filter 0.45s ease;
}

.news-story-node__marker {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.45s ease, box-shadow 0.45s ease;
}

.news-story-node__title {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-story-node.is-primary {
  flex: 1.2;
}

.news-story-node.is-primary .news-story-node__title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.news-story-node.is-secondary {
  opacity: 0.5;
}

.news-story-node.is-secondary .news-story-node__title {
  font-size: 10px;
}

.news-story-node.is-active {
  z-index: 2;
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(212, 168, 90, 0.25);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.news-story-node.is-active .news-story-node__marker {
  background: var(--rail-gold);
  box-shadow: 0 0 8px rgba(212, 168, 90, 0.45);
}

.news-story-node.is-active .news-story-node__title {
  color: rgba(255, 255, 255, 0.92);
}

.news-narrative-hero.has-focus .news-story-node:not(.is-active) {
  opacity: 0.32;
}

.news-narrative-hero.has-focus .news-story-node.is-active {
  opacity: 1;
}

@media (max-width: 720px) {
  .news-narrative__hero-grid {
    grid-template-columns: 1fr;
  }

  .news-narrative__visual {
    min-height: 220px;
    margin-top: 4px;
  }

  .news-globe-stage {
    max-width: 280px;
    min-height: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .news-narrative-hero .news-timeline__nodes {
    flex-direction: column;
  }

  .news-story-node.is-primary,
  .news-story-node.is-secondary {
    flex: 1;
  }

  .news-narrative-hero .news-timeline__track {
    display: none;
  }

  .news-narrative__hero {
    padding: 16px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-narrative__sweep,
  .news-narrative__bloom,
  .news-timeline__flow,
  .news-narrative-hero .news-timeline__pulse,
  .news-globe-visual__halo,
  .news-globe-visual__arc-flow,
  .news-globe-visual__pulse,
  .news-globe-visual__node,
  .news-globe-visual__region-glow {
    animation: none !important;
  }

  .news-globe-visual__particle {
    display: none;
  }

  .news-globe-stage {
    transition: none;
  }

  .news-narrative__visual.is-updating {
    animation: none;
  }

  .news-narrative__hero,
  .news-story-node {
    transition: none;
  }
}
