/* styles/news.css — NEWS page · doctrine §2.1 quota-fit density */

/* EN-language badge — appears on a headline only when ZH user is shown an
 * EN-fallback item (server's getNewsZh returned < 12 → topped up with EN).
 * Doctrine §3 colors only (gold + dn/up); 9.5px sits at the caption floor
 * but small badge size + low opacity makes it ignorable while present. */
.news-lang-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 106, 0.42);
  border-radius: 2px;
  opacity: 0.72;
  vertical-align: 1px;
  white-space: nowrap;
}

/* ── Hero featured story ────────────────────────────────────── */
.news-hero { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.news-hero__top { display: flex; align-items: center; gap: 10px; }
.news-hero__flag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em;
  background: var(--dn); color: #fff; padding: 3px 8px; border-radius: 2px;
  text-transform: uppercase; font-weight: 600;
  animation: news-pulse 1.8s ease-in-out infinite;
}
@keyframes news-pulse { 0%,100%{opacity:1} 50%{opacity:.55} }
.news-hero__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; }
.news-hero__time { font-size: 11px; color: var(--txt-3); margin-left: auto; }
.news-hero__head {
  font-family: var(--font-serif-display); font-weight: 500;
  font-size: 26px; line-height: 1.16; color: var(--txt-1);
  letter-spacing: -.01em; margin: 0; text-wrap: pretty;
}
.news-hero__dek {
  font-size: 12.5px; line-height: 1.5; color: var(--txt-2);
  margin: 0; text-wrap: pretty; max-width: 82ch;
  flex-shrink: 0; min-height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-hero__impact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding-top: 8px; border-top: 1px dashed rgba(255,255,255,.08);
  margin-top: auto;
}
.news-hero__impact-lbl {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em;
  color: var(--txt-3); text-transform: uppercase; margin-right: 4px;
}
.news-hero__chip {
  display: inline-flex; gap: 6px; align-items: baseline;
  padding: 3px 9px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06); border-radius: 2px;
}
.news-hero__chip-lbl { font-family: var(--font-mono); font-size: 9.5px; color: var(--txt-3); letter-spacing: .08em; }
.news-hero__chip .mono { font-size: 11.5px; font-weight: 600; }
.news-hero__src {
  font-family: var(--font-mono); font-size: 9.5px; color: var(--txt-3);
  letter-spacing: .12em; text-transform: uppercase;
}

/* ── Wire tape — 8 rows, no scroll ───────────────────────────── */
.wire { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.3; }
.wire__row {
  display: grid; grid-template-columns: 36px 38px 50px 1fr;
  gap: 7px; padding: 4px 12px; align-items: baseline;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.wire__row:hover { background: rgba(201,168,106,.04); }
.wire__t { color: var(--txt-3); }
.wire__src {
  font-size: 8.5px; letter-spacing: .08em; color: var(--txt-2);
  padding: 1px 4px; background: rgba(255,255,255,.04); border-radius: 1px;
  text-align: center; font-weight: 600;
}
.wire__src--bbg  { color: #ff8800; background: rgba(255,136,0,.08); }
.wire__src--rtrs { color: #ff6633; background: rgba(255,102,51,.08); }
.wire__src--wsj  { color: #c9a86a; background: rgba(201,168,106,.08); }
.wire__src--dj   { color: #88c0d0; background: rgba(136,192,208,.08); }
.wire__cat { font-size: 8.5px; letter-spacing: .1em; color: var(--gold); }
.wire__body { color: var(--txt-1); font-family: var(--font-sans); font-size: 11.5px; line-height: 1.32; }
.wire__row--urg .wire__body { color: var(--dn); font-weight: 600; }
.wire__row--urg { background: rgba(214,72,72,.05); }
.wire__row--hdr .wire__body { color: var(--gold); font-weight: 500; }

/* ── Desk feeds — 4 rows ─────────────────────────────────────── */
.desk-feed { }
.desk-feed__row {
  padding: 5px 14px; border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex; flex-direction: column; gap: 2px;
}
.desk-feed__row:last-child { border-bottom: none; }
.desk-feed__row:hover { background: rgba(255,255,255,.02); }
.desk-feed__meta { display: flex; gap: 8px; align-items: center; }
.desk-feed__t { font-family: var(--font-mono); font-size: 9.5px; color: var(--txt-3); }
.desk-feed__tag {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em;
  padding: 1px 5px; background: rgba(201,168,106,.1); color: var(--gold);
  border-radius: 1px; font-weight: 600;
}
.desk-feed__head { font-size: 11.5px; line-height: 1.32; color: var(--txt-1); text-wrap: pretty; }
.desk-feed__src { display: none; } /* source already in panel sub */

/* ── Economic calendar — 6 rows ──────────────────────────────── */
.econ-tbl { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 10.5px; }
.econ-tbl thead th {
  text-align: left; padding: 5px 10px;
  font-size: 9px; letter-spacing: .14em; color: var(--txt-3);
  text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.2);
}
.econ-tbl tbody td { padding: 4px 10px; border-bottom: 1px solid rgba(255,255,255,.03); color: var(--txt-1); }
.econ-tbl tbody tr:hover { background: rgba(201,168,106,.04); }
.econ-tbl__today { background: rgba(201,168,106,.06); }
.econ-tbl__today td { color: var(--gold); }
.econ-tbl__dow { font-size: 9.5px; color: var(--txt-3); letter-spacing: .08em; }
.econ-tbl__d { font-weight: 600; color: var(--txt-1); }
.econ-tbl__ev { font-family: var(--font-sans); font-size: 11.5px; }
.cc-pill {
  display: inline-block; padding: 1px 5px; font-size: 8.5px; font-weight: 600;
  letter-spacing: .06em; border-radius: 1px;
  background: rgba(255,255,255,.06); color: var(--txt-2);
}
.cc-us { background: rgba(45,108,196,.18); color: #6ba3e8; }
.cc-eu { background: rgba(232,184,72,.16); color: #e8b848; }
.cc-au { background: rgba(72,168,108,.16); color: #6ad48a; }
.imp { font-size: 8.5px; letter-spacing: .05em; color: var(--gold); }
.imp-1 { color: var(--txt-3); }
.imp-2 { color: var(--gold); }
.imp-3 { color: var(--dn); }

/* ── Earnings calendar — 5 rows ──────────────────────────────── */
.earn-tbl { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 10.5px; }
.earn-tbl thead th {
  text-align: left; padding: 5px 10px;
  font-size: 9px; letter-spacing: .14em; color: var(--txt-3);
  text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.2);
}
.earn-tbl tbody td { padding: 4px 10px; border-bottom: 1px solid rgba(255,255,255,.03); color: var(--txt-1); }
.earn-tbl tbody tr:hover { background: rgba(201,168,106,.04); }
.earn-tbl__tk { font-weight: 600; color: var(--gold); letter-spacing: .04em; }

/* ── Analyst revisions — 5 rows ──────────────────────────────── */
.revs { display: flex; flex-direction: column; }
.revs__row {
  display: grid; grid-template-columns: 1fr auto auto;
  column-gap: 8px; align-items: center;
  padding: 5px 12px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.revs__row:last-child { border-bottom: none; }
.revs__row:hover { background: rgba(255,255,255,.02); }
.revs__l { display: flex; gap: 6px; align-items: baseline; }
.revs__tk { font-family: var(--font-mono); font-weight: 600; color: var(--txt-1); font-size: 11.5px; }
.revs__firm { font-family: var(--font-mono); font-size: 9.5px; color: var(--txt-3); }
.revs__action {
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .08em;
  padding: 1px 5px; border-radius: 1px; font-weight: 600;
}
.revs__action--ow,
.revs__action--buy { background: rgba(72,168,108,.16); color: var(--up); }
.revs__action--sell { background: rgba(214,72,72,.16); color: var(--dn); }
.revs__action--neut { background: rgba(255,255,255,.06); color: var(--txt-2); }
.revs__r { font-size: 10.5px; display: flex; gap: 5px; align-items: baseline; }
.revs__dlt { font-size: 9.5px; }
.revs__t { font-size: 9px; color: var(--txt-3); font-family: var(--font-mono); }

/* ── Social pulse — 5 rows compact ───────────────────────────── */
.social { display: grid; grid-template-columns: 1fr; gap: 2px; }
.social__row {
  display: grid;
  grid-template-columns: 42px 38px 1fr 26px 42px;
  gap: 8px; align-items: center;
  padding: 3px 2px;
  font-family: var(--font-mono);
}
.social__sym { font-weight: 600; color: var(--txt-1); font-size: 11px; letter-spacing: .04em; }
.social__m { font-size: 9.5px; color: var(--txt-3); }
.social__bar { display: flex; align-items: center; height: 4px; }
.social__bar-bg { flex: 1; height: 4px; background: rgba(255,255,255,.04); border-radius: 1px; overflow: hidden; }
.social__bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-hi) 100%); }
.social__sent { font-size: 10px; text-align: right; }
.social__chg { font-size: 9.5px; text-align: right; }

/* ── Source mix — 4 col strip ────────────────────────────────── */
.src-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 5px; border-top: 1px dashed rgba(255,255,255,.08); }
.src-strip__item { display: flex; flex-direction: column; gap: 2px; }
.src-strip__lbl { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; color: var(--txt-3); text-transform: uppercase; }
.src-strip__val { font-size: 11.5px; color: var(--txt-1); }
.src-strip__val .dim { font-size: 9.5px; }
.src-strip__bar { height: 3px; background: rgba(255,255,255,.04); border-radius: 1px; overflow: hidden; }
.src-strip__bar > div { height: 100%; background: var(--gold); }
.dim { color: var(--txt-3); }

/* ── Rating Radar — 2-column compact (11 sectors fit Row 4) ─── */
.radar {
  font-family: var(--font-mono); font-size: 10.5px;
  column-count: 2;
  column-gap: 20px;
  padding: 4px 14px 6px;
}
.radar__hd {
  display: grid;
  grid-template-columns: 88px 1fr 30px 40px;
  gap: 7px; padding: 3px 0 4px;
  font-size: 8.5px; letter-spacing: 0.18em;
  border-bottom: 1px solid rgba(201,165,92,0.10);
  text-transform: uppercase;
  column-span: all;
  break-after: avoid;
  margin-bottom: 3px;
}
.radar__hd span:nth-child(2) { text-align: left; }
.radar__row {
  display: grid;
  grid-template-columns: 88px 1fr 30px 40px;
  gap: 7px; align-items: center;
  padding: 2px 0;
  border-bottom: 1px dashed rgba(201,165,92,0.06);
  font-size: 10.5px;
  break-inside: avoid;
}
.radar__row:hover { background: rgba(201,165,92,0.04); }
.radar__sec { color: var(--txt-1); letter-spacing: 0.02em; font-size: 10.5px; font-family: var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radar__bars {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  height: 8px;
  position: relative;
}
.radar__axis { background: rgba(255,255,255,0.10); height: 8px; }
.radar__track {
  position: relative;
  height: 100%;
  display: flex; align-items: center;
}
.radar__track--dn { justify-content: flex-end; }
.radar__track--up { justify-content: flex-start; }
.radar__bar { height: 5px; border-radius: 1px; }
.radar__bar--dn { background: linear-gradient(270deg, rgba(248,113,113,0.85), rgba(248,113,113,0.32)); margin-right: 4px; order: 2; }
.radar__bar--up { background: linear-gradient(90deg, rgba(52,211,153,0.32), rgba(52,211,153,0.85)); margin-left: 4px; }
.radar__track--dn .radar__bar { order: 2; }
.radar__track--dn .radar__v { order: 1; }
.radar__v { font-size: 9px; min-width: 16px; text-align: center; }
.radar__net { text-align: right; font-weight: 600; font-size: 10.5px; }
.radar__conv {
  display: inline-block; text-align: center;
  font-size: 7.5px; letter-spacing: 0.16em; font-weight: 600;
  padding: 1px 4px; border-radius: 2px;
}
.radar__conv--high { color: var(--gold-bright); background: rgba(201,165,92,0.14); border: 1px solid rgba(201,165,92,0.36); }
.radar__conv--med  { color: var(--gold);        background: rgba(201,165,92,0.06); border: 1px solid rgba(201,165,92,0.20); }
.radar__conv--low  { color: var(--txt-3);       background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); }

/* GMG_STANDARDS §5 mobile typography floor */
@media (max-width: 899px) {
  .desk-feed__t, .radar__sec, .radar__v, .radar__net,
  .wire__t, .econ-tbl__dow, .news-hero__chip-lbl,
  .revs__firm, .econ-tbl thead th, .earn__chip,
  table th, .dim, .news-hero__chip
  { font-size: 11px !important; line-height: 1.25 !important; }
  .desk-feed__hl, .wire__hl, .radar__sym,
  .news-hero__h, .news-hero__bullet, .econ-tbl__ev,
  .earn__nm, .revs__action, .revs__target
  { font-size: 13px !important; line-height: 1.3 !important; }
}
@media (max-width: 899px) {
  .social__sent, .social__chg, .revs__dlt, .radar__conv,
  .news .mute, .news .up, .news .dn, .news .gold { font-size: 11px !important; line-height: 1.25 !important; }
}
