/* The Market River (NEV-3302), in the /analysis hero since NEV-3340. Scoped to .mr; the stage is the dark river from the approved mockup
   (docs/mockups/market-river-2026-11.html), the same in light and dark themes. */
.mr { --mr-stage: #140f1f; --mr-glow: #2a1840; --mr-on: #f3eef8; --mr-on-muted: #b3a7c4; --mr-em: #ff7ac6;
  --mr-mp: #7aa7ff; --mr-node: #efe7f7; --mr-accent: #d14f9c; padding: 40px 0; }
.mr-inner { position: relative; }
.mr-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; border: 1px solid rgba(127, 110, 150, .35); border-radius: 999px;
  padding: 3px; margin: 0 0 14px; }
.mr-seg[hidden] { display: none; }
.mr-seg button { border: 0; background: none; color: inherit; font: inherit; font-size: 14px; padding: 6px 14px;
  border-radius: 999px; cursor: pointer; }
.mr-seg button[aria-pressed="true"] { background: var(--mr-accent); color: #fff; }
.mr-seg button:focus-visible { outline: 2px solid var(--mr-accent); outline-offset: 2px; }
.mr-stage { position: relative; background: radial-gradient(ellipse at 50% 25%, var(--mr-glow) 0%, var(--mr-stage) 70%);
  border-radius: 18px; overflow: hidden; color: var(--mr-on); }
.mr-head { padding: 22px 24px 4px; }
.mr-head h2 { font-size: 26px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.02em; color: var(--mr-on); }
.mr-head p { color: var(--mr-on-muted); margin: 0; }
.mr-canvas svg { display: block; width: 100%; height: auto; }
.mr-rib { cursor: pointer; }
.mr-node { fill: var(--mr-node); opacity: .85; }
.mr-node-t { fill: var(--mr-node); }
.mr-item { fill: #fff; }
.mr-muted { fill: var(--mr-on-muted); }
.mr-dot { fill: #fff; opacity: .7; }
.mr-cap { padding: 4px 24px 20px; min-height: 46px; margin: 0; color: var(--mr-on); }

/* With scripts off: the lists are the section. */
.mr-list { padding: 0 24px 20px; }
.mr-list ol { margin: 0 0 12px; padding-left: 22px; }
.mr-list li { margin: 4px 0; }
.mr-list li span { color: var(--mr-on-muted); }
.mr-band { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 14px 0 6px; }
.mr-band--em { color: var(--mr-em); }
.mr-band--mp { color: var(--mr-mp); }
/* With scripts on: the drawing is the section; the shown tab's list stays for screen readers. */
.mr-js .mr-list { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mr-list[hidden] { display: none; }

.mr-how { margin: 14px 0 0; }
.mr-how summary { cursor: pointer; font-weight: 600; }
.mr-how ol { margin: 8px 0 0; padding-left: 22px; }
.mr-how li { margin: 4px 0; }
.mr-source { font-size: 13px; opacity: .75; margin: 10px 0 0; }

@media (max-width: 680px) {
  .mr { padding: 28px 0; }
  /* Four tabs: two rows of two on a phone. */
  .mr-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 16px; }
  .mr-seg button { font-size: 13px; padding: 10px 8px; white-space: nowrap; border-radius: 12px; }
  .mr-head { padding: 18px 16px 4px; }
  .mr-head h2 { font-size: 21px; }
  .mr-cap { padding: 4px 16px 16px; }
  .mr-list { padding: 0 16px 16px; }
}

/* In the /analysis hero (NEV-3340, D-914-am3): the hero's copy on the left, the River on the right; stacked on a phone.
   Applies only when the River draws (`with-river` is set by analysis_landing.html only then). */
.reports-hero-inner.with-river { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.6fr); gap: 32px;
  align-items: start; text-align: left; }
.reports-hero-inner.with-river .reports-sources { justify-content: flex-start; }
.mr-hero-line { margin: 18px 0 0; color: #f3eef8; opacity: .9; }
.mr-hero-line b { color: #fff; }
/* On the dark hero, the River's own notes under the card read in the hero's light ink. */
.mr--hero .mr-how, .mr--hero .mr-how summary, .mr--hero .mr-source { color: #f3eef8; }
.mr--hero .mr-source { opacity: .7; }
.mr--hero { padding: 0; }
.mr--hero .mr-inner { min-width: 0; }
/* The hero keeps one height as the River cycles: room for the longest heading and caption of any tab. */
/* Floors in lines, so they grow with the reader's text size. */
.mr--hero .mr-head h2 { min-height: 2lh; }
.mr--hero .mr-head p { min-height: 2lh; }
.mr--hero .mr-cap { min-height: calc(2lh + 24px); }
@media (max-width: 680px) {
  .mr--hero .mr-head p { min-height: 3lh; }
  .mr--hero .mr-cap { min-height: calc(4lh + 20px); }
}
.mr-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.mr-bar .mr-seg { margin: 0; }
.mr--hero .mr-seg { color: #f3eef8; border-color: rgba(243, 238, 248, .35); }
.mr--hero .mr-stage { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
@media (max-width: 900px) {
  .reports-hero-inner.with-river { grid-template-columns: 1fr; }
}
.mr-register { font-size: 13px; margin: 10px 0 0; }
.mr--hero .mr-register { color: #f3eef8; opacity: .85; }
@media print {
  /* The print sheet drops the hero's dark ground, so the River's light ink goes back to the page's. */
  .mr-hero-line, .mr-hero-line b, .mr--hero .mr-how, .mr--hero .mr-how summary, .mr--hero .mr-source,
  .mr--hero .mr-register, .mr--hero .mr-seg { color: inherit; opacity: 1; }
}
