/* TradeAlphaAI Newsroom — institutional intelligence layer.
   Phase 76 visual harmonization: the newsroom inherits the platform design
   system (landing.css) instead of carrying its own navy terminal identity.
   The surrounding .section-panel supplies the premium surface (radius,
   gold-tinted gradient, soft shadow, white-alpha border); this sheet only
   layers the intelligence identity inside it.

   Color discipline:
     green  — positive / live / confirmed states ONLY
     gold   — premium / promotional / edition emphasis ONLY
     blue   — intelligence / data emphasis ONLY
   Scoped under .newsroom / .nr-* so it cannot leak into existing layout.
   RTL-aware. */

:root {
  --nr-line: rgba(255, 255, 255, 0.08);
  --nr-line-strong: rgba(255, 255, 255, 0.14);
  --nr-soft: rgba(255, 255, 255, 0.028);
  --nr-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  --nr-text: #f4f7f1;
  --nr-text-soft: #cad3c7;
  --nr-muted: #8d978f;
  --nr-quiet: #5d675f;
  --nr-accent: #3fa7ff;
  --nr-accent-soft: rgba(63, 167, 255, 0.07);
  --nr-risk-on: #2fbf71;
  --nr-risk-off: #ff6d6d;
  --nr-gold: #d8b15a;
  --nr-gold-bright: #f2d27b;
  --nr-gold-soft: rgba(216, 177, 90, 0.08);
  --nr-urgent: #ff6d6d;
  /* Back-compat aliases (older selectors and inline tooling) */
  --nr-neutral: #d8b15a;
  --nr-panel: rgba(255, 255, 255, 0.028);
  --nr-bg: transparent;
}

/* ── Container: inherit the platform panel, add rhythm only ─────────────── */

.newsroom {
  position: relative;
  z-index: 1;
  padding: 4px 2px 6px;
  color: var(--nr-text);
  font-feature-settings: "tnum" 1;
}

/* ── Behavioral intelligence (Phase 82) ─────────────────────────────────
   Verified-state personality only. Selectors change editorial gravity,
   spacing and emphasis; they never add motion, urgency copy or new content. */

.newsroom[data-pacing="open"] .newsroom-flow { gap: 0.98rem; }
.newsroom[data-pacing="open"] .nr-desk-band { padding-top: 0.78rem; }
.newsroom[data-pacing="compressed"] .newsroom-flow { gap: 0.62rem; }
.newsroom[data-pacing="compressed"] .nr-desk-band { padding-top: 0.52rem; }
.newsroom[data-pacing="compressed"] .nr-desk-grid { gap: 0.5rem; }
.newsroom[data-pacing="compressed"] .nr-module { padding-block: 0.68rem 0.72rem; }

.newsroom[data-intensity="quiet"] .nr-lead {
  border-color: rgba(216, 177, 90, 0.11);
  border-inline-start-color: rgba(216, 177, 90, 0.58);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012));
}
.newsroom[data-intensity="quiet"] .nr-lead-headline { font-weight: 650; }
.newsroom[data-intensity="elevated"] .nr-lead {
  border-color: rgba(255, 109, 109, 0.2);
  border-inline-start-color: rgba(255, 109, 109, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 109, 109, 0.045), rgba(255, 255, 255, 0.014)),
    linear-gradient(135deg, rgba(216, 177, 90, 0.045), transparent 58%);
}
.newsroom[data-intensity="elevated"] .nr-lead-headline { font-size: 1.08rem; font-weight: 750; }

.newsroom[data-behavior="calm-monitoring"] .nr-desk-band[data-band="continuity"] {
  border-top-color: rgba(216, 177, 90, 0.12);
}
.newsroom[data-behavior="calm-monitoring"] .nr-desk-band[data-band="continuity"] .nr-band-head h3 {
  color: var(--nr-muted);
}
.newsroom[data-behavior="elevated-volatility"] .nr-desk-band[data-band="secondary"] {
  opacity: 0.82;
}
.newsroom[data-behavior="elevated-volatility"] .nr-module[data-desk="risk"],
.newsroom[data-behavior="elevated-volatility"] .nr-module[data-desk="alerts"] {
  border-color: rgba(255, 109, 109, 0.24);
}
.newsroom[data-behavior="major-catalyst"] .nr-module[data-desk="catalysts"],
.newsroom[data-catalyst-focus="imminent"] .nr-watch {
  border-color: rgba(216, 177, 90, 0.24);
}
.newsroom[data-behavior="major-catalyst"] .nr-catalyst-window,
.newsroom[data-catalyst-focus="imminent"] .nr-watch-meta strong {
  color: var(--nr-gold-bright);
  font-weight: 750;
}
.newsroom[data-divergence-focus="elevated"] .nr-watch-coherence {
  color: var(--nr-gold-bright);
  font-weight: 700;
}
.newsroom[data-divergence-focus="elevated"] .nr-module[data-desk="crossasset"] {
  border-color: rgba(216, 177, 90, 0.26);
}
.newsroom[data-behavior="speculative-momentum"] .nr-module[data-desk="positioning"],
.newsroom[data-behavior="speculative-momentum"] .nr-module[data-desk="rotation"] {
  border-color: rgba(216, 177, 90, 0.22);
}
.newsroom[data-behavior="defensive-rotation"] .nr-module[data-desk="risk"],
.newsroom[data-behavior="defensive-rotation"] .nr-module[data-desk="rotation"] {
  border-color: rgba(141, 151, 143, 0.22);
  background: linear-gradient(180deg, rgba(141, 151, 143, 0.04), rgba(255, 255, 255, 0.012));
}

/* Session personality stays secondary to verified market behavior. */
.newsroom[data-session="asia"] { --nr-session-line: rgba(63, 167, 255, 0.09); }
.newsroom[data-session="europe"],
.newsroom[data-session="us-premarket"] { --nr-session-line: rgba(216, 177, 90, 0.13); }
.newsroom[data-session="us-cash"] { --nr-session-line: rgba(47, 191, 113, 0.13); }
.newsroom[data-session="after-hours"] { --nr-session-line: rgba(141, 151, 143, 0.1); }
.newsroom[data-session="weekend"] { --nr-session-line: rgba(216, 177, 90, 0.08); }
.newsroom .nr-hero-ribbon { border-color: var(--nr-session-line, var(--nr-line)); }

/* ── Motion discipline (Phase 77) ─────────────────────────────────────────
   Institutional motion: opacity/transform only (compositor-friendly), short
   ease-out curves, one quiet entrance, no loops except a slow breathing dot.
   Everything collapses under prefers-reduced-motion. */

@keyframes nr-rise {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nr-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes nr-quote-settle {
  from { background-color: rgba(255, 255, 255, 0.07); }
  to { background-color: rgba(255, 255, 255, 0.028); }
}

@media (prefers-reduced-motion: no-preference) {
  .nr-hero-ribbon { animation: nr-rise 0.42s ease-out both; }
  .nr-asset-strip { animation: nr-rise 0.42s 0.05s ease-out both; }
  .newsroom-banner { animation: nr-rise 0.42s 0.1s ease-out both; }
  .newsroom-pulse-strip { animation: nr-rise 0.42s 0.14s ease-out both; }
  .newsroom-flow .nr-module { animation: nr-rise 0.46s ease-out both; }
  .newsroom-flow .nr-module:nth-child(1) { animation-delay: 0.16s; }
  .newsroom-flow .nr-module:nth-child(2) { animation-delay: 0.2s; }
  .newsroom-flow .nr-module:nth-child(3) { animation-delay: 0.24s; }
  .newsroom-flow .nr-module:nth-child(n+4) { animation-delay: 0.28s; }

  .newsroom-session .nr-dot { animation: nr-breathe 3.4s ease-in-out infinite; }

  /* Live quote settle: triggered by the refresh engine only when a sourced
     value actually changed — one quiet highlight that decays, no flashing. */
  .nr-asset.nr-settle { animation: nr-quote-settle 0.9s ease-out; }

  .nr-live-asof { transition: opacity 0.35s ease; }
  .nr-live-asof.nr-fading { opacity: 0.25; }
}

.newsroom-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  border-bottom: 1px solid var(--nr-line);
  padding-bottom: 0.9rem;
  margin-bottom: 1.15rem;
}

.newsroom-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 0;
  color: var(--nr-text);
}

html[lang="ar"] .newsroom-title { letter-spacing: 0; }

.newsroom-session {
  font-size: 0.78rem;
  color: var(--nr-muted);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.newsroom-session .nr-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--nr-accent);
  display: inline-block;
}

.newsroom-session[data-session="us-cash"] .nr-dot { background: var(--nr-risk-on); }
.newsroom-session[data-session="weekend"] .nr-dot,
.newsroom-session[data-session="after-hours"] .nr-dot { background: var(--nr-quiet); }

/* Edition is a premium label — gold, matching site eyebrows */
.nr-edition { color: var(--nr-gold-bright); }

/* ── Hero intelligence ribbon ─────────────────────────────────────────── */

.nr-hero-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding: 0.52rem 0.78rem;
  margin-bottom: 0.72rem;
  border: 1px solid var(--nr-line);
  border-radius: 14px;
  background: var(--nr-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.nr-hero-item { display: inline-flex; align-items: baseline; gap: 0.45rem; color: var(--nr-text-soft); }

/* Scanning path: the top story is the entry point of the eye flow */
.nr-hero-item:first-child { color: var(--nr-text); font-weight: 600; }

.nr-hero-key {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nr-muted);
  white-space: nowrap;
}

html[lang="ar"] .nr-hero-key { letter-spacing: 0; }

/* ── Live asset intelligence matrix ───────────────────────────────────── */
/* Soft card cells instead of a hard segmented grid — luxury terminal, not
   developer panel. */

.nr-asset-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 0.72rem;
}

.nr-asset {
  background: var(--nr-soft);
  border: 1px solid var(--nr-line);
  border-radius: 9px;
  padding: 0.5rem 0.58rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.12rem 0.35rem;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.22s ease, transform 0.22s ease, background-color 0.9s ease;
}

.nr-asset:hover { border-color: var(--nr-line-strong); transform: translateY(-1px); }

.nr-asset-sym {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--nr-muted);
}

.nr-asset-chg {
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--nr-text);
}

.nr-asset[data-dir="up"] .nr-asset-chg { color: var(--nr-risk-on); }
.nr-asset[data-dir="down"] .nr-asset-chg { color: var(--nr-risk-off); }

.nr-asset-ctx {
  grid-column: 1 / -1;
  font-size: 0.64rem;
  color: var(--nr-muted);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Regime banner ────────────────────────────────────────────────────── */

.newsroom-banner {
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0 0 0.58rem;
  padding: 0.52rem 0.75rem;
  border-inline-start: 2px solid var(--nr-accent);
  background: var(--nr-accent-soft);
  border-radius: 8px;
  color: var(--nr-text-soft);
}

.newsroom-banner[data-tone="alert"] {
  border-inline-start-color: var(--nr-urgent);
  background: rgba(255, 109, 109, 0.07);
}

.newsroom-banner[data-tone="quiet"] {
  border-inline-start-color: var(--nr-quiet);
  background: var(--nr-soft);
}

/* ── Desk lead — dominant story (Phase 78 continuity layer) ───────────── */
/* The one block the eye should land on: stronger surface, gold editorial
   tick, larger headline — everything else reads as supporting context. */

.nr-lead {
  position: relative;
  margin: 0 0 0.72rem;
  padding: 0.82rem 1rem 0.86rem;
  border: 1px solid rgba(216, 177, 90, 0.16);
  border-inline-start: 3px solid var(--nr-gold);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    linear-gradient(135deg, var(--nr-gold-soft), transparent 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nr-lead-kicker {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nr-gold-bright);
  margin-bottom: 0.4rem;
}

html[lang="ar"] .nr-lead-kicker { letter-spacing: 0; font-size: 0.7rem; }

.nr-lead-headline {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--nr-text);
  letter-spacing: -0.01em;
}

html[dir="rtl"] .nr-lead-headline { line-height: 1.7; letter-spacing: 0; }

.nr-lead-lines {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0.52rem 0 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  display: grid;
  gap: 0.3rem;
}

.nr-lead-lines li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--nr-text-soft);
}

html[dir="rtl"] .nr-lead-lines li { line-height: 1.7; }

.nr-lead-key {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nr-muted);
  min-width: 7.5rem;
}

html[lang="ar"] .nr-lead-key { letter-spacing: 0; font-size: 0.7rem; min-width: 6.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .nr-lead { animation: nr-rise 0.42s 0.12s ease-out both; }
}

/* ── Session atmosphere — calm ambient accent per market session ──────── */

.newsroom[data-session="us-cash"] .newsroom-head { border-bottom-color: rgba(47, 191, 113, 0.16); }
.newsroom[data-session="weekend"] .newsroom-head,
.newsroom[data-session="after-hours"] .newsroom-head { border-bottom-color: rgba(255, 255, 255, 0.06); }
.newsroom[data-session="us-premarket"] .newsroom-head,
.newsroom[data-session="europe"] .newsroom-head { border-bottom-color: rgba(216, 177, 90, 0.14); }

/* ── Pulse strip ──────────────────────────────────────────────────────── */

.newsroom-pulse-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 0.85rem;
}

.nr-chip {
  font-size: 0.69rem;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.58rem;
  border: 1px solid var(--nr-line);
  border-radius: 999px;
  color: var(--nr-muted);
  background: var(--nr-soft);
  white-space: nowrap;
  transition: border-color 0.22s ease, color 0.22s ease;
}

.nr-chip:hover { border-color: var(--nr-line-strong); color: var(--nr-text-soft); }

.nr-chip strong { color: var(--nr-text); font-weight: 600; }
.nr-chip[data-state="risk_on"] strong, .nr-chip[data-state="confirming"] strong, .nr-chip[data-state="relaxing"] strong { color: var(--nr-risk-on); }
.nr-chip[data-state="risk_off"] strong, .nr-chip[data-state="deteriorating"] strong, .nr-chip[data-state="stressed"] strong, .nr-chip[data-state="building"] strong { color: var(--nr-risk-off); }
.nr-chip[data-state="elevated"] strong, .nr-chip[data-state="narrow-megacap"] strong, .nr-chip[data-state="firming"] strong { color: var(--nr-gold-bright); }

/* ── Institutional desk composition (Phase 81) ────────────────────────── */

.newsroom-flow {
  display: grid;
  gap: 0.82rem;
}

.nr-desk-band {
  min-width: 0;
  padding-top: 0.68rem;
  border-top: 1px solid var(--nr-line);
}

.nr-desk-band[data-band="priority"] {
  padding-top: 0;
  border-top: 0;
}

.nr-band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin: 0 0 0.48rem;
}

.nr-band-head h3 {
  margin: 0;
  color: var(--nr-text-soft);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nr-band-head span {
  color: var(--nr-quiet);
  font-size: 0.66rem;
  line-height: 1.4;
  text-align: end;
}

.nr-desk-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 0.62rem;
}

.nr-module {
  background: var(--nr-card);
  border: 1px solid var(--nr-line);
  grid-column: span 4;
  align-self: start;
  border-radius: 11px;
  padding: 0.76rem 0.88rem 0.82rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.nr-module:hover {
  border-color: rgba(216, 177, 90, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.nr-desk-band[data-band="priority"] .nr-module[data-density="expanded"],
.nr-module[data-priority="critical"] { grid-column: span 6; }
.nr-desk-band[data-band="continuity"] .nr-module { grid-column: span 6; }

.nr-module[data-priority="critical"] {
  border-color: rgba(255, 109, 109, 0.2);
  background: linear-gradient(180deg, rgba(255, 109, 109, 0.055), rgba(255, 255, 255, 0.015));
}

.nr-module[data-priority="high"] {
  border-color: rgba(216, 177, 90, 0.14);
}

.nr-module[data-state="monitoring"] {
  padding-block: 0.6rem;
  border-color: rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.012);
  box-shadow: none;
}

.nr-module[data-state="monitoring"]:hover {
  border-color: rgba(255, 255, 255, 0.09);
}

.nr-module h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--nr-muted);
  margin: 0 0 0.45rem;
}

/* Desk identity markers — instant scanning of what kind of desk speaks.
   Quiet 5px ticks: red = risk surface, gold = judgment, blue = data flow. */
.nr-module h3::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: var(--nr-quiet);
  flex-shrink: 0;
}
.nr-module[data-desk="alerts"] h3::before,
.nr-module[data-desk="risk"] h3::before { background: rgba(255, 109, 109, 0.7); }
.nr-module[data-desk="conviction"] h3::before,
.nr-module[data-desk="scenarios"] h3::before,
.nr-module[data-desk="macro"] h3::before { background: rgba(216, 177, 90, 0.75); }
.nr-module[data-desk="wire"] h3::before,
.nr-module[data-desk="movers"] h3::before,
.nr-module[data-desk="crossasset"] h3::before,
.nr-module[data-desk="catalysts"] h3::before { background: rgba(63, 167, 255, 0.7); }
.nr-module[data-desk="positioning"] h3::before { background: rgba(216, 177, 90, 0.75); }
.nr-module[data-desk="memory"] h3::before,
.nr-module[data-desk="timeline"] h3::before,
.nr-module[data-desk="rotation"] h3::before { background: rgba(141, 151, 143, 0.7); }

html[lang="ar"] .nr-module h3 { letter-spacing: 0; }

.nr-module ul { list-style: none; margin: 0; padding: 0; }
.nr-module li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.32rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  line-height: 1.5;
}
.nr-module li:last-child { border-bottom: none; }

.nr-wire-headline { color: var(--nr-text-soft); }
.nr-meta { color: var(--nr-muted); font-size: 0.72rem; white-space: nowrap; }

.nr-badge {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.14rem 0.45rem;
  border-radius: 5px;
  text-transform: uppercase;
}
.nr-badge[data-urgency="high"] { background: rgba(255, 109, 109, 0.14); color: var(--nr-urgent); }
.nr-badge[data-urgency="medium"] { background: var(--nr-gold-soft); color: var(--nr-gold-bright); }
.nr-badge[data-urgency="low"] { background: rgba(93, 103, 95, 0.18); color: var(--nr-muted); }

.nr-empty {
  display: block !important;
  color: var(--nr-quiet);
  font-size: 0.75rem !important;
  line-height: 1.45 !important;
  padding: 0.08rem 0 0.05rem !important;
  border: 0 !important;
}

.nr-empty::before {
  content: "MONITORING";
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(141, 151, 143, 0.72);
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.11em;
}

html[dir="rtl"] .nr-empty::before {
  content: "قيد الرصد";
  letter-spacing: 0;
  font-size: 0.64rem;
}

.newsroom-foot {
  margin-top: 0.8rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--nr-line);
  font-size: 0.7rem;
  color: var(--nr-quiet);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

/* ── Cognition layer (Phase 74) ───────────────────────────────────────── */

.nr-phase {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-inline-start: 0.35rem;
  padding: 0.08rem 0.32rem;
  border-radius: 5px;
  vertical-align: 0.08em;
  text-transform: uppercase;
}
.nr-phase[data-phase="emerging"] { background: rgba(63, 167, 255, 0.14); color: var(--nr-accent); }
.nr-phase[data-phase="strengthening"] { background: var(--nr-gold-soft); color: var(--nr-gold-bright); }
.nr-phase[data-phase="established"],
.nr-phase[data-phase="extended"] { background: rgba(93, 103, 95, 0.2); color: var(--nr-muted); }

.nr-module[data-desk="alerts"] li[data-severity="high"] .nr-wire-headline { color: var(--nr-urgent); }
.nr-module[data-desk="alerts"] li[data-severity="elevated"] .nr-wire-headline { color: var(--nr-gold-bright); }

.nr-module[data-desk="timeline"] li { font-variant-numeric: tabular-nums; }

/* Phase 83: lifecycle emphasis remains editorial, not alert-like. */
.nr-module[data-desk="memory"] [data-memory-state="dominant"],
.nr-module[data-desk="memory"] [data-memory-state="crowded"],
.nr-module[data-desk="memory"] [data-memory-state="unresolved"] {
  border-inline-start-color: color-mix(in srgb, var(--nr-gold) 58%, transparent);
}

.nr-module[data-desk="memory"] [data-memory-state="weakening"],
.nr-module[data-desk="memory"] [data-memory-state="fading"],
.nr-module[data-desk="memory"] [data-memory-state="invalidated"] {
  opacity: .74;
}

.nr-module[data-desk="memory"] .nr-badge {
  letter-spacing: .06em;
}

/* Phase 84: verified structural strain tightens hierarchy without urgency theater. */
.newsroom[data-tension-level="elevated"] .newsroom-flow,
.newsroom[data-tension-level="acute"] .newsroom-flow {
  gap: clamp(.72rem, 1vw, .95rem);
}

.newsroom[data-tension-level="elevated"] .nr-lead,
.newsroom[data-tension-level="acute"] .nr-lead {
  border-inline-start-color: color-mix(in srgb, var(--nr-gold) 70%, var(--nr-border));
}

.newsroom[data-tension-level="elevated"] .nr-module[data-desk="risk"],
.newsroom[data-tension-level="elevated"] .nr-module[data-desk="crossasset"],
.newsroom[data-tension-level="acute"] .nr-module[data-desk="risk"],
.newsroom[data-tension-level="acute"] .nr-module[data-desk="crossasset"] {
  border-color: color-mix(in srgb, var(--nr-gold) 34%, var(--nr-border));
}

.newsroom[data-tension-level="elevated"] .nr-desk-band[data-band="secondary"],
.newsroom[data-tension-level="acute"] .nr-desk-band[data-band="secondary"] {
  opacity: .9;
}
.nr-module[data-desk="memory"] li .nr-wire-headline { color: var(--nr-text-soft); font-size: 0.83rem; }

.nr-continuity { color: var(--nr-muted); }

/* Live refresh indicator (Phase 75-RT) — populated only by verified quotes */
.nr-live-asof { color: var(--nr-accent); margin-inline-start: 0.5rem; }
.nr-live-asof:empty { display: none; }
.nr-live-asof[data-live-status="partial"] { color: var(--nr-gold-bright); }

html[dir="rtl"] .nr-phase { letter-spacing: 0; }

/* ── Macro cognition layer (Phase 75) ─────────────────────────────────── */

.nr-desk-focus {
  margin-inline-start: 0.7rem;
  padding-inline-start: 0.7rem;
  border-inline-start: 1px solid var(--nr-line);
  color: var(--nr-muted);
  font-size: 0.74rem;
}
.nr-desk-focus[data-focus="contradictions"],
.nr-desk-focus[data-focus="risk"],
.nr-desk-focus[data-focus="pressure"] { color: var(--nr-gold-bright); }

.nr-contra {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  background: var(--nr-gold-soft);
  color: var(--nr-gold-bright);
  font-variant-numeric: tabular-nums;
}
.nr-contra[data-escalated="true"] { background: rgba(255, 109, 109, 0.14); color: var(--nr-urgent); }

.nr-module[data-desk="conviction"] li,
.nr-module[data-desk="scenarios"] li { align-items: flex-start; }
.nr-module[data-desk="scenarios"] .nr-wire-headline { font-size: 0.83rem; line-height: 1.55; }

/* ── RTL refinements — native Arabic rhythm, not mirrored English ─────── */

html[dir="rtl"] .newsroom { font-feature-settings: normal; }
html[dir="rtl"] .nr-chip { letter-spacing: 0; padding-inline: 0.75rem; }
html[dir="rtl"] .nr-meta { white-space: normal; }

html[dir="rtl"] .nr-asset-sym { letter-spacing: 0; }
html[dir="rtl"] .nr-hero-ribbon { font-size: 0.82rem; line-height: 1.65; }
html[dir="rtl"] .newsroom-banner { line-height: 1.7; font-size: 1.02rem; }
html[dir="rtl"] .newsroom-title { font-size: 1.05rem; }
html[dir="rtl"] .nr-chip { font-size: 0.78rem; }
html[dir="rtl"] .nr-module li { line-height: 1.65; }
html[dir="rtl"] .nr-module h3 { font-size: 0.78rem; }
html[dir="rtl"] .nr-asset-ctx { line-height: 1.5; }
html[dir="rtl"] .nr-wire-headline { line-height: 1.65; }

/* ── Intelligence-to-action product layer (Phase 80) ──────────────────── */

.nr-watch {
  margin: 0 0 0.62rem;
  padding: 0.72rem 0.86rem;
  border: 1px solid var(--nr-line);
  border-inline-start: 3px solid var(--nr-gold-bright);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(193, 157, 84, 0.08), rgba(16, 22, 25, 0.55));
}
.nr-watch-head,
.nr-watch-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.2rem;
}
.nr-watch-title {
  color: var(--nr-text);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nr-watch-coherence {
  color: var(--nr-muted);
  font-size: 0.7rem;
}
.nr-watch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.55rem 0;
  padding: 0;
  list-style: none;
}
.nr-watch-list li {
  color: var(--nr-text-soft);
  font-size: 0.74rem;
  line-height: 1.5;
  padding-inline-start: 0.75rem;
  border-inline-start: 1px solid var(--nr-line);
}
.nr-watch-meta {
  justify-content: flex-start;
  color: var(--nr-muted);
  font-size: 0.7rem;
}
.nr-watch-meta span {
  display: inline-flex;
  gap: 0.4rem;
}
.nr-watch-meta strong { color: var(--nr-gold-bright); font-weight: 650; }
html[dir="rtl"] .nr-watch-title { letter-spacing: 0; }
html[dir="rtl"] .nr-watch-list li { line-height: 1.7; }
html[dir="rtl"] .nr-band-head h3 { letter-spacing: 0; font-size: 0.75rem; }
html[dir="rtl"] .nr-band-head span { line-height: 1.65; }
html[dir="rtl"] .nr-asset-ctx { font-size: 0.68rem; }
html[dir="rtl"] .newsroom[data-intensity="elevated"] .nr-lead-headline { font-size: 1.1rem; }

/* ── Responsive rhythm ────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .nr-asset-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nr-module,
  .nr-desk-band[data-band="priority"] .nr-module[data-density="expanded"],
  .nr-module[data-priority="critical"],
  .nr-desk-band[data-band="continuity"] .nr-module { grid-column: span 6; }
}

@media (max-width: 640px) {
  .newsroom { padding: 2px 0 4px; }
  .newsroom-head { padding-bottom: 0.75rem; margin-bottom: 1rem; }
  .newsroom-flow { gap: 0.72rem; }
  .nr-desk-grid { gap: 0.55rem; }
  .nr-module,
  .nr-desk-band[data-band="priority"] .nr-module[data-density="expanded"],
  .nr-module[data-priority="critical"],
  .nr-desk-band[data-band="continuity"] .nr-module { grid-column: 1 / -1; }
  .nr-module { padding: 0.78rem 0.88rem 0.84rem; }
  .nr-module li { font-size: 0.86rem; padding: 0.46rem 0; }
  .nr-asset-strip { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .nr-asset { padding: 0.55rem 0.65rem; }
  .nr-hero-ribbon { flex-direction: column; gap: 0.45rem; padding: 0.7rem 0.85rem; }

  /* Pulse strip becomes a thumb-friendly horizontal lane instead of a tall
     wrapped block — density preserved, vertical rhythm restored. */
  .newsroom-pulse-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.45rem;
    padding-bottom: 0.35rem;
    margin-inline: -2px;
    padding-inline: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black 92%, transparent);
  }
  .newsroom-pulse-strip::-webkit-scrollbar { display: none; }
  html[dir="rtl"] .newsroom-pulse-strip { mask-image: linear-gradient(to left, black 92%, transparent); }

  .nr-chip { font-size: 0.76rem; padding: 0.34rem 0.7rem; flex-shrink: 0; }
  .newsroom-foot { flex-direction: column; gap: 0.4rem; }

  .nr-lead { padding: 0.85rem 0.95rem 0.9rem; }
  .nr-lead-headline { font-size: 1.02rem; }
  .nr-lead-lines li { flex-direction: column; gap: 0.12rem; }
  .nr-lead-key { min-width: 0; }
  .nr-watch-head,
  .nr-watch-meta { align-items: flex-start; flex-direction: column; }
  .nr-watch-list { grid-template-columns: 1fr; }
  .nr-band-head { align-items: flex-start; flex-direction: column; gap: 0.15rem; }
  .nr-band-head span { text-align: start; }
}

/* ── Surface compression (Phase 85) ───────────────────────────────────── */
/* Quiet desks collapse into one compact strip per band; a single shared
   calm note replaces repeated empty-state boxes. Active desks keep full
   cards and re-expand automatically — the surface breathes with the
   market instead of displaying its machinery. */

.nr-quiet-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  margin-top: 0.55rem;
  padding: 0.42rem 0.7rem;
  border: 1px dashed rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.014);
}

.nr-quiet-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nr-quiet);
}

html[lang="ar"] .nr-quiet-label { letter-spacing: 0; font-size: 0.68rem; }

.nr-quiet-desk {
  font-size: 0.7rem;
  color: var(--nr-muted);
  white-space: nowrap;
}

.nr-quiet-desk:not(:last-child)::after {
  content: "·";
  margin-inline-start: 0.55rem;
  color: var(--nr-quiet);
}

.nr-calm-note {
  margin: 0.8rem 0 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--nr-quiet);
}

html[dir="rtl"] .nr-calm-note { line-height: 1.75; font-size: 0.76rem; }

/* A fully quiet band keeps its identity but loses its vertical weight. */
.nr-desk-band[data-compressed="true"] { padding-bottom: 0.2rem; }
.nr-desk-band[data-compressed="true"] .nr-band-head { margin-bottom: 0.2rem; }
.nr-desk-band[data-compressed="true"] .nr-band-head span { display: none; }

@media (max-width: 640px) {
  .nr-quiet-strip { padding: 0.4rem 0.6rem; }
  .nr-quiet-desk { white-space: normal; }
}
