/* ME Standard public-release polish
   Presentation only. No market facts are generated in this stylesheet. */
:root {
  --pub-bg: #050d16;
  --pub-panel: #081725;
  --pub-panel-2: #0b1c2c;
  --pub-line: rgba(151, 195, 229, .18);
  --pub-line-strong: rgba(126, 190, 239, .38);
  --pub-text: #eef5fa;
  --pub-muted: #a5b8c7;
  --pub-muted-2: #8299ab;
  --pub-blue: #78c0f6;
  --pub-blue-soft: rgba(120, 192, 246, .08);
  --pub-gold: #c9a96d;
  --pub-green: #9bd7c5;
  --pub-red: #e1a5aa;
  --pub-shadow: 0 22px 70px rgba(0,0,0,.25);
}

html { color-scheme: dark; }
body.editorial-site.newsroom-site {
  background:
    radial-gradient(circle at 72% 4%, rgba(76,144,196,.08), transparent 26rem),
    var(--pub-bg);
  color: var(--pub-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.editorial-site.newsroom-site p { color: var(--pub-muted); }
body.editorial-site.newsroom-site a { text-underline-offset: .16em; }

/* Strong keyboard treatment: visible on every interactive control. */
body.editorial-site.newsroom-site :where(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline: 2px solid #b7dcf8;
  outline-offset: 3px;
  border-radius: 4px;
}
body.editorial-site.newsroom-site :where(button,.panel-action,.source-toggle) {
  min-height: 42px;
}
.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 9999;
  border-radius: 7px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Header / wire: less chrome, more publication. */
.site-header.editorial-header {
  background: rgba(4,12,21,.92);
  border-bottom-color: var(--pub-line);
  box-shadow: 0 8px 30px rgba(0,0,0,.14);
}
.nav-wrap { min-height: 66px; }
.brand-mark {
  border-color: var(--pub-line-strong);
  background: linear-gradient(145deg,rgba(120,192,246,.13),rgba(120,192,246,.02));
}
.brand-copy strong { color: #f4f8fb; font-size: 13px; }
.brand-copy small { color: #8aa0b2; }
.nav { gap: 24px; color: #b8c8d4; }
.nav > a { padding: 22px 0 20px; border-bottom: 1px solid transparent; }
.nav > a:hover,.nav > a:focus-visible { border-bottom-color: rgba(120,192,246,.6); }
.desk-rail { background: rgba(5,15,25,.82); }
.desk-rail-inner { scrollbar-color: rgba(120,192,246,.28) transparent; }
.breaking-bar { background: #06131f; border-bottom-color: var(--pub-line); }
.breaking-inner { min-height: 38px; }
.breaking-inner > strong { color: #a9d8f8; }
.breaking-track a,.breaking-track > span { color: #b2c2cd; }
.breaking-track a:hover { color: #fff; }

/* Hero: sharper and less oversized. */
.newsroom-hero {
  padding: 48px 0 44px;
  background:
    radial-gradient(circle at 80% 20%,rgba(73,141,193,.09),transparent 30%),
    linear-gradient(180deg,#071522 0%,#050e18 100%);
}
.newsroom-hero-grid {
  grid-template-columns: minmax(0,1.55fr) minmax(280px,.45fr);
  gap: clamp(34px,5vw,68px);
  align-items: center;
}
.newsroom-hero h1 {
  max-width: 790px;
  font-size: clamp(42px,5.8vw,68px);
  line-height: 1.01;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.newsroom-hero .hero-lede {
  max-width: 720px;
  margin-top: 20px;
  color: #b8c8d4;
  font-size: clamp(15px,1.45vw,17px);
  line-height: 1.7;
}
.masthead-proof { margin-top: 24px; }
.masthead-proof span { color: #8ea4b4; }
.edition-card {
  position: relative;
  padding: 7px 18px 4px;
  border: 1px solid var(--pub-line);
  border-top-color: var(--pub-line-strong);
  border-radius: 12px;
  background: linear-gradient(160deg,rgba(13,31,48,.76),rgba(5,15,25,.8));
  box-shadow: var(--pub-shadow);
}
.edition-kicker {
  display: block;
  padding: 9px 0 7px;
  color: var(--pub-blue) !important;
  font-weight: 800;
}
.edition-card > div { min-height: 45px; }
.edition-card span { color: #849aab; }
.edition-card strong { color: #eef5fa; }

/* Editorial front page: lead dominates, rail remains scannable. */
.editorial-front {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(300px,.65fr);
  gap: 14px;
}
.front-lead,
.front-rail article {
  border: 1px solid var(--pub-line);
  background: rgba(7,22,35,.76);
}
.front-lead {
  min-height: 340px;
  padding: clamp(24px,3vw,36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.015), var(--pub-shadow);
}
.front-label-row { margin-bottom: auto; }
.front-label-row span:first-child {
  color: #d8b77a;
  font-weight: 800;
  letter-spacing: .14em;
}
.front-label-row span:last-child { color: #8aa4b6; }
.front-lead h2 {
  max-width: 880px;
  margin-top: 38px;
  color: #f4f8fb;
  font-size: clamp(31px,3.6vw,50px);
  line-height: 1.08;
  letter-spacing: -.037em;
  text-wrap: balance;
}
.front-lead > p {
  max-width: 820px;
  margin-top: 18px;
  color: #b6c7d3;
  font-size: 14px;
  line-height: 1.75;
}
.front-meta { margin-top: 22px; }
.front-meta span { color: #8ca1b1; }
.front-link {
  margin-top: 22px;
  color: #b9ddf7;
  font-weight: 750;
}
.front-link:hover { color: #fff; }
.front-rail { display: grid; gap: 10px; }
.front-rail article {
  min-height: 0;
  padding: 17px 18px;
  border-left: 2px solid rgba(120,192,246,.18);
}
.front-rail .front-priority { border-left-color: var(--pub-gold); }
.front-rail article > span { color: #91a9ba; }
.front-rail article > p { margin-top: 8px; color: #bac9d4; line-height: 1.55; }

/* Data confidence / provenance injected by public-quality.js */
.mes-quality-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
}
.mes-quality-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 7px;
  border: 1px solid var(--pub-line);
  border-radius: 4px;
  color: #9eb2c1;
  background: rgba(255,255,255,.015);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mes-quality-badge.primary { color: #a9d7ca; border-color: rgba(155,215,197,.26); }
.mes-quality-badge.current { color: #acd9f8; border-color: rgba(120,192,246,.32); }
.mes-quality-badge.older,.mes-quality-badge.archival { color: #c9b482; border-color: rgba(201,169,109,.28); }
.mes-quality-note { color: #8097a8; font-size: 10px; }

/* Section rhythm. */
.newsroom-section { padding: 58px 0; }
.section-muted { background: rgba(8,22,35,.62); }
.section-bar {
  min-height: 38px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--pub-line);
}
.section-bar > span:first-child {
  color: #c8d7e1;
  font-weight: 800;
  letter-spacing: .13em;
}
.feed-state { color: #849aaa; }

/* Latest wire becomes a real news list rather than a wall of identical cards. */
.newsroom-lead-grid {
  grid-template-columns: minmax(0,1.12fr) minmax(360px,.88fr);
  gap: 24px;
}
.lead-story {
  padding: clamp(24px,3vw,34px);
  border: 1px solid var(--pub-line-strong);
  background: linear-gradient(145deg,rgba(12,32,49,.86),rgba(5,17,28,.92));
}
.lead-story h2 { font-size: clamp(29px,3vw,43px); text-wrap: balance; }
.lead-story p { margin-top: 17px; color: #b6c6d1; }
.story-meta { margin-top: 22px; }
.wire-list { border-top-color: var(--pub-line-strong); }
.wire-item {
  padding: 17px 12px 17px 4px;
  border-bottom-color: var(--pub-line);
  transition: background-color .18s ease, border-color .18s ease;
}
.wire-item:hover { background: rgba(120,192,246,.025); }
.wire-item h3 { color: #dfeaf1; font-size: 17px; }
.wire-item p { color: #9fb2bf; }
.wire-meta { color: #849aaa; }
.wire-meta strong { color: #9dcff2; }
.wire-actions a,.wire-actions button { min-height: 36px; }
.wire-item[data-freshness="ARCHIVAL"] { opacity: .74; }
.wire-item[data-freshness="OLDER"] { opacity: .86; }
.wire-item[data-timestamp-status="UNDATED"] .wire-meta time::after { content: " · TIME UNVERIFIED"; color: #c5aa72; }

/* Market intelligence panels: cleaner border hierarchy. */
.market-console-section { background: #040c15; }
.market-tape-head { color: #8fa5b5; }
.market-tape,.session-strip { border-color: var(--pub-line); }
.tape-item,.session-cell { border-color: var(--pub-line); }
.tape-unavailable { background: rgba(255,255,255,.012); }
.tape-unavailable small { color: #8ca0ae; }
.intelligence-quad { gap: 12px; }
.intel-card,.cause-panel,.impact-panel,.desk-panel,.data-panel,.sunday-card,.trader-card {
  border-color: var(--pub-line);
  background-color: rgba(7,22,35,.76);
}
.intel-card:hover,.desk-panel:hover,.sunday-card:hover { border-color: rgba(126,190,239,.27); }
.intel-kicker,.trader-label { color: #9cd0f4; }
.cause-grid { gap: 14px; }
.cause-panel,.impact-panel { min-height: 350px; }
.cause-layer-head span { color: #9bc5df; }
.cause-source p,.cause-interpretation p { color: #c1d0d9; font-size: 11px; }

/* Sunday Prep reads as an editorial package, not a dashboard. */
.sunday-prep { background: linear-gradient(180deg,rgba(7,21,34,.72),rgba(5,15,25,.88)); }
.sunday-intro { margin-bottom: 28px; }
.sunday-intro h2 { max-width: 720px; font-size: clamp(34px,4vw,50px); }
.sunday-intro p { color: #aebfcb; }
.sunday-grid { gap: 12px; }
.sunday-card { padding: 21px; }
.sunday-card > span { color: #9cb5c6; }
.sunday-card-primary { border-top-color: rgba(201,169,109,.52); }
.sunday-integration-grid article { border-color: var(--pub-line); background: rgba(5,16,26,.72); }
.sunday-disclaimer { color: #8aa0b0 !important; }

/* Central bank desk and desk triad: denser but readable. */
.bank-grid { gap: 12px; }
.bank-card { border-color: var(--pub-line); background: rgba(6,20,32,.8); }
.bank-card p { color: #aebfca; }
.desk-triad { gap: 12px; }
.desk-panel { min-height: 340px; }
.desk-panel > p { color: #9fb2bf; }

/* Trust state: stale/undated items must not look like breaking news. */
body[data-mes-lead-freshness="OLDER"] #front-lead-label,
body[data-mes-lead-freshness="ARCHIVAL"] #front-lead-label,
body[data-mes-lead-freshness="UNDATED"] #front-lead-label {
  color: #c9b482;
}
body[data-mes-wire-health="degraded"] #source-state,
body[data-mes-wire-health="degraded"] #feed-status { color: #d4b77f; }

/* Scrollable operational regions are visibly keyboard-scrollable. */
:where(.breaking-track,.desk-rail-inner,.market-tape,.relationship-board,.habit-bar-inner)[tabindex="0"]:focus-visible {
  outline-offset: -2px !important;
  box-shadow: inset 0 0 0 2px rgba(183,220,248,.72);
}

/* Accessibility: never rely on tiny low-contrast utility text. */
.wire-meta,.wire-tags span,.calendar-row span,.data-row span,
.source-row > span:last-child,.session-cell span,.session-cell small,
.front-meta,.story-meta,.brief-source,.cause-layer-head small {
  font-size: max(9px,.58rem);
}
.empty-state { color: #879eae; }

@media (max-width: 1050px) {
  .newsroom-hero-grid { grid-template-columns: minmax(0,1.3fr) minmax(260px,.7fr); gap: 34px; }
  .editorial-front { grid-template-columns: minmax(0,1.35fr) minmax(290px,.65fr); }
  .nav { gap: 14px; }
}

@media (max-width: 900px) {
  .newsroom-hero-grid,.editorial-front,.newsroom-lead-grid { grid-template-columns: 1fr; }
  .edition-card { max-width: none; }
  .front-lead { min-height: 300px; }
  .front-rail { grid-template-columns: 1fr 1fr; }
  .front-rail article { min-height: 128px; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 28px),var(--shell)); }
  .newsroom-hero { padding: 36px 0 34px; }
  .newsroom-hero h1 { font-size: clamp(37px,11vw,52px); }
  .newsroom-hero .hero-lede { margin-top: 16px; font-size: 15px; }
  .editorial-front { margin-top: 22px; }
  .front-lead { min-height: 0; padding: 23px 20px; }
  .front-lead h2 { margin-top: 30px; font-size: clamp(28px,8vw,38px); }
  .front-rail { grid-template-columns: 1fr; }
  .front-rail article { min-height: 0; }
  .newsroom-section { padding: 46px 0; }
  .section-bar { margin-bottom: 17px; }
  .wire-item { padding-right: 4px; }
  .wire-item h3 { font-size: 16px; }
  .mes-quality-proof { gap: 5px; }
  .mes-quality-note { flex-basis: 100%; }
}

@media (max-width: 460px) {
  .brand-copy small { display: none; }
  .newsroom-hero h1 { font-size: 36px; }
  .masthead-proof { gap: 7px; }
  .masthead-proof span { font-size: 8px; }
  .edition-card { padding-inline: 14px; }
  .front-label-row { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --pub-line: rgba(205,225,239,.42);
    --pub-line-strong: rgba(205,225,239,.68);
    --pub-muted: #c8d4dc;
    --pub-muted-2: #b5c4cf;
  }
  .wire-item[data-freshness="ARCHIVAL"],.wire-item[data-freshness="OLDER"] { opacity: 1; }
}
