/* ME Standard Design Final — newsroom presentation refinement
   Presentation only. No market facts, authority, scoring, ranking or execution semantics. */

:root {
  --mes-final-surface: rgba(7,18,29,.78);
  --mes-final-surface-strong: rgba(8,22,35,.92);
  --mes-final-line: rgba(154,194,219,.12);
  --mes-final-line-strong: rgba(143,205,244,.28);
  --mes-final-gold-line: rgba(194,163,107,.30);
  --mes-final-blue: #8fcdf4;
  --mes-final-gold: #c2a36b;
  --mes-final-copy: #b9c6ce;
  --mes-final-muted: #718695;
  --mes-final-shadow: 0 20px 55px rgba(0,0,0,.20);
}

/* Page atmosphere: editorial rather than dashboard-heavy. */
body.editorial-site.newsroom-site {
  position: relative;
  background:
    radial-gradient(circle at 77% 1%, rgba(87,154,198,.075), transparent 30rem),
    radial-gradient(circle at 18% 34%, rgba(194,163,107,.025), transparent 28rem),
    linear-gradient(180deg,#050d16 0%,#02070d 100%);
}
body.editorial-site.newsroom-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .17;
  background-image:
    linear-gradient(rgba(143,205,244,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,205,244,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom,rgba(0,0,0,.8),transparent 72%);
}

/* Header stack: quiet authority, improved scan path. */
.site-header.editorial-header {
  border-bottom-color: rgba(194,163,107,.20);
  box-shadow: 0 14px 38px rgba(0,0,0,.18);
}
.nav-wrap {
  position: relative;
}
.nav-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(143,205,244,.12),rgba(194,163,107,.22),transparent);
}
.brand {
  transition: opacity .18s ease, transform .18s ease;
}
.brand:hover {
  opacity: .96;
  transform: translateY(-1px);
}
.brand-mark {
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255,255,255,.025);
  pointer-events: none;
}
.nav > a,
.nav-social a,
.habit-bar a,
.habit-bar button {
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.habit-bar-inner {
  scrollbar-width: thin;
  scrollbar-color: rgba(143,205,244,.22) transparent;
}
.habit-bar a:hover,
.habit-bar button:hover {
  color: #d9e5ec;
}

/* Hero: stronger vertical hierarchy and subtle institutional depth. */
.newsroom-hero {
  overflow: hidden;
  isolation: isolate;
}
.newsroom-hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  top: -190px;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(143,205,244,.10);
  box-shadow:
    0 0 0 46px rgba(143,205,244,.018),
    0 0 0 96px rgba(194,163,107,.012);
}
.masthead-position {
  position: relative;
}
.masthead-position::before {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin-bottom: 18px;
  background: linear-gradient(90deg,var(--mes-final-gold),rgba(143,205,244,.35));
}
.newsroom-hero h1 {
  text-shadow: 0 12px 42px rgba(0,0,0,.22);
}
.hero-lede {
  text-wrap: pretty;
}
.masthead-proof {
  align-items: center;
}
.masthead-proof span {
  white-space: nowrap;
}

/* Newsroom status should read like instrumentation, not a generic card. */
.edition-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px) saturate(108%);
}
.edition-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg,var(--mes-final-gold),rgba(143,205,244,.55),transparent 88%);
}
.edition-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(180deg,rgba(255,255,255,.018),transparent);
}
.edition-card > div {
  position: relative;
  z-index: 1;
}
.edition-card > div strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.edition-card > div strong::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: rgba(143,205,244,.68);
  box-shadow: 0 0 9px rgba(143,205,244,.18);
}
#hero-risk::before {
  background: rgba(194,163,107,.76);
  box-shadow: 0 0 9px rgba(194,163,107,.18);
}

/* Front page: newspaper geometry with clearer interaction. */
.editorial-front {
  position: relative;
}
.editorial-front::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: min(160px,30%);
  height: 1px;
  background: linear-gradient(90deg,var(--mes-final-gold),transparent);
}
.front-lead,
.front-rail article {
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.front-lead:hover {
  background: rgba(8,21,33,.20);
}
.front-rail article:hover {
  background: rgba(143,205,244,.022);
  border-bottom-color: rgba(143,205,244,.18);
}
.front-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .18s ease, gap .18s ease, border-color .18s ease;
}
.front-link:hover,
.front-link:focus-visible {
  gap: 12px;
  color: #e4f3fc;
  border-bottom-color: rgba(143,205,244,.62);
}

/* Section grammar: create a consistent editorial cadence. */
.section-bar {
  position: relative;
}
.section-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg,var(--mes-final-gold),rgba(143,205,244,.34));
}
.section-bar > span:first-child {
  text-shadow: 0 0 22px rgba(194,163,107,.06);
}
.feed-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.feed-state::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(143,205,244,.52);
}

/* Operational cards: density without the boxed SaaS look. */
.trader-card,
.sunday-card,
.intel-card,
.bank-card,
.desk-panel,
.data-panel,
.cause-panel,
.impact-panel,
.personal-desk-panel {
  position: relative;
  overflow: hidden;
}
.trader-card::before,
.sunday-card::before,
.intel-card::before,
.bank-card::before,
.desk-panel::before,
.personal-desk-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,rgba(143,205,244,.20),transparent 62%);
  pointer-events: none;
}
.trader-card,
.sunday-card,
.intel-card,
.bank-card,
.desk-panel,
.personal-desk-panel {
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.trader-card:hover,
.sunday-card:hover,
.intel-card:hover,
.bank-card:hover,
.desk-panel:hover,
.personal-desk-panel:hover {
  transform: translateY(-1px);
  background-color: rgba(8,24,38,.86);
}
.trader-card-primary::before,
.sunday-card-primary::before,
.intel-card-wide::before {
  background: linear-gradient(90deg,rgba(194,163,107,.58),rgba(143,205,244,.22),transparent 70%);
}

/* Buttons should visibly communicate affordance without becoming loud. */
.panel-action,
.personal-desk-controls button,
.personal-desk-toolbar button,
.wire-actions button,
.wire-actions a {
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background-color .16s ease;
}
.panel-action:hover,
.personal-desk-controls button:hover,
.personal-desk-toolbar button:hover,
.wire-actions button:hover,
.wire-actions a:hover {
  transform: translateY(-1px);
  border-color: rgba(143,205,244,.42);
  color: #e8f4fb;
  background-color: rgba(143,205,244,.045);
}
.panel-action:active,
.personal-desk-controls button:active,
.personal-desk-toolbar button:active,
.wire-actions button:active,
.wire-actions a:active {
  transform: translateY(0);
}

/* Latest wire: materiality should be readable before opening an item. */
.wire-item {
  position: relative;
}
.wire-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  opacity: 0;
  background: var(--mes-final-blue);
  transition: opacity .18s ease;
}
.wire-item:hover::before,
.wire-item:focus-within::before {
  opacity: .45;
}
.wire-item h3 {
  text-wrap: balance;
}

/* Personal Market Desk: make the dense evidence terminal easier to parse. */
.personal-market-desk {
  position: relative;
}
.personal-market-desk::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,rgba(143,205,244,.018),transparent 24%);
}
.personal-desk-intro h2 {
  text-wrap: balance;
}
.personal-desk-panel header {
  position: relative;
}
.personal-desk-panel header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,rgba(194,163,107,.20),rgba(143,205,244,.08),transparent);
}
.personal-desk-market-rail {
  scrollbar-width: thin;
  scrollbar-color: rgba(143,205,244,.22) transparent;
}

/* Footer: a deliberate close to the publication. */
.footer.editorial-footer {
  position: relative;
}
.footer.editorial-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1120px,calc(100% - 40px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,transparent,rgba(194,163,107,.45),rgba(143,205,244,.16),transparent);
}

@media (max-width: 900px) {
  body.editorial-site.newsroom-site::before {
    background-size: 54px 54px;
    opacity: .12;
  }
  .newsroom-hero::before {
    width: 320px;
    height: 320px;
    right: -160px;
    top: -125px;
  }
  .masthead-position::before {
    width: 34px;
  }
  .masthead-proof {
    row-gap: 10px;
  }
  .edition-card {
    box-shadow: 0 16px 42px rgba(0,0,0,.16);
  }
}

@media (max-width: 620px) {
  .newsroom-hero {
    padding-top: 34px;
  }
  .newsroom-hero h1 {
    letter-spacing: -.035em;
  }
  .hero-lede {
    line-height: 1.62;
  }
  .masthead-proof span {
    white-space: normal;
  }
  .front-link:hover,
  .front-link:focus-visible {
    gap: 8px;
  }
  .trader-card:hover,
  .sunday-card:hover,
  .intel-card:hover,
  .bank-card:hover,
  .desk-panel:hover,
  .personal-desk-panel:hover,
  .panel-action:hover,
  .personal-desk-controls button:hover,
  .personal-desk-toolbar button:hover,
  .wire-actions button:hover,
  .wire-actions a:hover {
    transform: none;
  }
}
