/* Research report and news article. External stylesheet only: no inline styles. */

.research-masthead {
  margin-bottom: 1.5rem;
}

.research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--novamx-text-muted);
  font-size: 0.95rem;
}

.research-meta dt {
  font-weight: 700;
}

.research-meta div {
  display: flex;
  gap: 0.35rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 0.5rem;
}

.stat-card {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--novamx-line, #d5deea);
  border-radius: 12px;
  background: var(--novamx-surface, #fff);
}

.stat-card strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stat-card span {
  display: block;
  margin-top: 0.35rem;
}

.research-prose h2 {
  margin-top: 2.25rem;
}

.research-prose h3 {
  margin-top: 1.5rem;
}

.research-toc {
  padding: 1rem 1.15rem;
  border: 1px solid var(--novamx-line, #d5deea);
  border-radius: 12px;
  background: var(--novamx-surface, #fff);
}

.research-toc ol {
  margin: 0.4rem 0 0;
  padding-left: 1.25rem;
}

.research-toc a {
  text-decoration-thickness: 1px;
}

.research-disclosure,
.research-note {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--novamx-line, #d5deea);
  background: var(--novamx-surface, #fff);
}

.research-figure {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1rem 0.85rem;
  border: 1px solid var(--novamx-line, #d5deea);
  border-radius: 12px;
  background: var(--novamx-surface, #fff);
}

.research-figure figcaption {
  font-weight: 700;
  margin-top: 0.75rem;
}

.research-chart {
  width: 100%;
  height: auto;
  display: block;
}

.research-chart text {
  fill: var(--novamx-text, #0a1a2f);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 13px;
}

.bar-track { fill: #e6edf5; }
.bar-miss { fill: #b91c1c; }
.bar-red-deep { fill: #7f1d1d; }
.bar-red-soft { fill: #fb7185; }
.bar-none { fill: #fb923c; }
.bar-orange { fill: #ea580c; }
.bar-warn { fill: #f59e0b; }
.bar-bad { fill: #dc2626; }
.bar-quar { fill: #a3e635; }
.bar-lime { fill: #4d7c0f; }
.bar-reject { fill: #16a34a; }
.bar-ok { fill: #15803d; }
.bar-green-soft { fill: #86efac; }
.bar-green-deep { fill: #14532d; }
.bar-neutral { fill: #78716c; }
.heat-0 { fill: #7f1d1d; }
.heat-1 { fill: #991b1b; }
.heat-2 { fill: #b91c1c; }
.heat-3 { fill: #dc2626; }
.heat-4 { fill: #e11d48; }
.heat-5 { fill: #ea580c; }
.heat-6 { fill: #f97316; }
.heat-7 { fill: #fb923c; }
.heat-8 { fill: #f59e0b; }
.heat-9 { fill: #d97706; }
.heat-10 { fill: #ca8a04; }
.heat-11 { fill: #a16207; }

.swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.4rem;
  border-radius: 2px;
  vertical-align: -0.1rem;
}

.swatch.bar-miss { background: #b91c1c; }
.swatch.bar-none { background: #fb923c; }
.swatch.bar-quar { background: #a3e635; }
.swatch.bar-reject { background: #16a34a; }
.swatch.bar-neutral { background: #78716c; }
.swatch.bar-warn { background: #f59e0b; }
.swatch.bar-ok { background: #15803d; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.research-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
}

.research-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.research-table th,
.research-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--novamx-line, #d5deea);
  vertical-align: top;
}

.research-table th {
  font-weight: 700;
}

.research-table td.num,
.research-table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.research-table caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 0.55rem;
  color: var(--novamx-text-muted);
}

:root[data-theme="dark"] .bar-track,
body[data-theme="dark"] .bar-track {
  fill: #1a2c42;
}

:root[data-theme="dark"] .bar-miss,
:root[data-theme="dark"] .swatch.bar-miss,
body[data-theme="dark"] .bar-miss,
body[data-theme="dark"] .swatch.bar-miss {
  fill: #fecaca;
  background: #fecaca;
}

:root[data-theme="dark"] .bar-red-deep,
:root[data-theme="dark"] .swatch.bar-red-deep,
body[data-theme="dark"] .bar-red-deep,
body[data-theme="dark"] .swatch.bar-red-deep {
  fill: #fda4af;
  background: #fda4af;
}

:root[data-theme="dark"] .bar-red-soft,
:root[data-theme="dark"] .swatch.bar-red-soft,
body[data-theme="dark"] .bar-red-soft,
body[data-theme="dark"] .swatch.bar-red-soft {
  fill: #fb7185;
  background: #fb7185;
}

:root[data-theme="dark"] .bar-none,
:root[data-theme="dark"] .swatch.bar-none,
body[data-theme="dark"] .bar-none,
body[data-theme="dark"] .swatch.bar-none {
  fill: #fdba74;
  background: #fdba74;
}

:root[data-theme="dark"] .bar-orange,
:root[data-theme="dark"] .swatch.bar-orange,
body[data-theme="dark"] .bar-orange,
body[data-theme="dark"] .swatch.bar-orange {
  fill: #f97316;
  background: #f97316;
}

:root[data-theme="dark"] .bar-warn,
:root[data-theme="dark"] .swatch.bar-warn,
body[data-theme="dark"] .bar-warn,
body[data-theme="dark"] .swatch.bar-warn {
  fill: #fbbf24;
  background: #fbbf24;
}

:root[data-theme="dark"] .bar-bad,
:root[data-theme="dark"] .swatch.bar-bad,
body[data-theme="dark"] .bar-bad,
body[data-theme="dark"] .swatch.bar-bad {
  fill: #f87171;
  background: #f87171;
}

:root[data-theme="dark"] .bar-quar,
:root[data-theme="dark"] .swatch.bar-quar,
body[data-theme="dark"] .bar-quar,
body[data-theme="dark"] .swatch.bar-quar {
  fill: #ecfccb;
  background: #ecfccb;
}

:root[data-theme="dark"] .bar-lime,
:root[data-theme="dark"] .swatch.bar-lime,
body[data-theme="dark"] .bar-lime,
body[data-theme="dark"] .swatch.bar-lime {
  fill: #84cc16;
  background: #84cc16;
}

:root[data-theme="dark"] .bar-reject,
:root[data-theme="dark"] .swatch.bar-reject,
body[data-theme="dark"] .bar-reject,
body[data-theme="dark"] .swatch.bar-reject {
  fill: #4ade80;
  background: #4ade80;
}

:root[data-theme="dark"] .bar-ok,
:root[data-theme="dark"] .swatch.bar-ok,
body[data-theme="dark"] .bar-ok,
body[data-theme="dark"] .swatch.bar-ok {
  fill: #22c55e;
  background: #22c55e;
}

:root[data-theme="dark"] .bar-green-soft,
:root[data-theme="dark"] .swatch.bar-green-soft,
body[data-theme="dark"] .bar-green-soft,
body[data-theme="dark"] .swatch.bar-green-soft {
  fill: #bbf7d0;
  background: #bbf7d0;
}

:root[data-theme="dark"] .bar-green-deep,
:root[data-theme="dark"] .swatch.bar-green-deep,
body[data-theme="dark"] .bar-green-deep,
body[data-theme="dark"] .swatch.bar-green-deep {
  fill: #86efac;
  background: #86efac;
}

:root[data-theme="dark"] .bar-neutral,
:root[data-theme="dark"] .swatch.bar-neutral,
body[data-theme="dark"] .bar-neutral,
body[data-theme="dark"] .swatch.bar-neutral {
  fill: #d6d3d1;
  background: #d6d3d1;
}

:root[data-theme="dark"] .heat-0,
:root[data-theme="dark"] .swatch.heat-0,
body[data-theme="dark"] .heat-0,
body[data-theme="dark"] .swatch.heat-0 {
  fill: #fecaca;
  background: #fecaca;
}

:root[data-theme="dark"] .heat-1,
:root[data-theme="dark"] .swatch.heat-1,
body[data-theme="dark"] .heat-1,
body[data-theme="dark"] .swatch.heat-1 {
  fill: #fca5a5;
  background: #fca5a5;
}

:root[data-theme="dark"] .heat-2,
:root[data-theme="dark"] .swatch.heat-2,
body[data-theme="dark"] .heat-2,
body[data-theme="dark"] .swatch.heat-2 {
  fill: #f87171;
  background: #f87171;
}

:root[data-theme="dark"] .heat-3,
:root[data-theme="dark"] .swatch.heat-3,
body[data-theme="dark"] .heat-3,
body[data-theme="dark"] .swatch.heat-3 {
  fill: #ef4444;
  background: #ef4444;
}

:root[data-theme="dark"] .heat-4,
:root[data-theme="dark"] .swatch.heat-4,
body[data-theme="dark"] .heat-4,
body[data-theme="dark"] .swatch.heat-4 {
  fill: #fb7185;
  background: #fb7185;
}

:root[data-theme="dark"] .heat-5,
:root[data-theme="dark"] .swatch.heat-5,
body[data-theme="dark"] .heat-5,
body[data-theme="dark"] .swatch.heat-5 {
  fill: #fb923c;
  background: #fb923c;
}

:root[data-theme="dark"] .heat-6,
:root[data-theme="dark"] .swatch.heat-6,
body[data-theme="dark"] .heat-6,
body[data-theme="dark"] .swatch.heat-6 {
  fill: #fdba74;
  background: #fdba74;
}

:root[data-theme="dark"] .heat-7,
:root[data-theme="dark"] .swatch.heat-7,
body[data-theme="dark"] .heat-7,
body[data-theme="dark"] .swatch.heat-7 {
  fill: #fed7aa;
  background: #fed7aa;
}

:root[data-theme="dark"] .heat-8,
:root[data-theme="dark"] .swatch.heat-8,
body[data-theme="dark"] .heat-8,
body[data-theme="dark"] .swatch.heat-8 {
  fill: #fcd34d;
  background: #fcd34d;
}

:root[data-theme="dark"] .heat-9,
:root[data-theme="dark"] .swatch.heat-9,
body[data-theme="dark"] .heat-9,
body[data-theme="dark"] .swatch.heat-9 {
  fill: #fbbf24;
  background: #fbbf24;
}

:root[data-theme="dark"] .heat-10,
:root[data-theme="dark"] .swatch.heat-10,
body[data-theme="dark"] .heat-10,
body[data-theme="dark"] .swatch.heat-10 {
  fill: #f59e0b;
  background: #f59e0b;
}

:root[data-theme="dark"] .heat-11,
:root[data-theme="dark"] .swatch.heat-11,
body[data-theme="dark"] .heat-11,
body[data-theme="dark"] .swatch.heat-11 {
  fill: #d97706;
  background: #d97706;
}

@media (prefers-color-scheme: dark) {
body.theme-auto:not([data-theme="light"]) .bar-track,
body:not([data-theme]):not(.theme-auto) .bar-track {
  fill: #1a2c42;
}

body.theme-auto:not([data-theme="light"]) .bar-miss,
body.theme-auto:not([data-theme="light"]) .swatch.bar-miss,
body:not([data-theme]):not(.theme-auto) .bar-miss,
body:not([data-theme]):not(.theme-auto) .swatch.bar-miss {
  fill: #fecaca;
  background: #fecaca;
}

body.theme-auto:not([data-theme="light"]) .bar-red-deep,
body.theme-auto:not([data-theme="light"]) .swatch.bar-red-deep,
body:not([data-theme]):not(.theme-auto) .bar-red-deep,
body:not([data-theme]):not(.theme-auto) .swatch.bar-red-deep {
  fill: #fda4af;
  background: #fda4af;
}

body.theme-auto:not([data-theme="light"]) .bar-red-soft,
body.theme-auto:not([data-theme="light"]) .swatch.bar-red-soft,
body:not([data-theme]):not(.theme-auto) .bar-red-soft,
body:not([data-theme]):not(.theme-auto) .swatch.bar-red-soft {
  fill: #fb7185;
  background: #fb7185;
}

body.theme-auto:not([data-theme="light"]) .bar-none,
body.theme-auto:not([data-theme="light"]) .swatch.bar-none,
body:not([data-theme]):not(.theme-auto) .bar-none,
body:not([data-theme]):not(.theme-auto) .swatch.bar-none {
  fill: #fdba74;
  background: #fdba74;
}

body.theme-auto:not([data-theme="light"]) .bar-orange,
body.theme-auto:not([data-theme="light"]) .swatch.bar-orange,
body:not([data-theme]):not(.theme-auto) .bar-orange,
body:not([data-theme]):not(.theme-auto) .swatch.bar-orange {
  fill: #f97316;
  background: #f97316;
}

body.theme-auto:not([data-theme="light"]) .bar-warn,
body.theme-auto:not([data-theme="light"]) .swatch.bar-warn,
body:not([data-theme]):not(.theme-auto) .bar-warn,
body:not([data-theme]):not(.theme-auto) .swatch.bar-warn {
  fill: #fbbf24;
  background: #fbbf24;
}

body.theme-auto:not([data-theme="light"]) .bar-bad,
body.theme-auto:not([data-theme="light"]) .swatch.bar-bad,
body:not([data-theme]):not(.theme-auto) .bar-bad,
body:not([data-theme]):not(.theme-auto) .swatch.bar-bad {
  fill: #f87171;
  background: #f87171;
}

body.theme-auto:not([data-theme="light"]) .bar-quar,
body.theme-auto:not([data-theme="light"]) .swatch.bar-quar,
body:not([data-theme]):not(.theme-auto) .bar-quar,
body:not([data-theme]):not(.theme-auto) .swatch.bar-quar {
  fill: #ecfccb;
  background: #ecfccb;
}

body.theme-auto:not([data-theme="light"]) .bar-lime,
body.theme-auto:not([data-theme="light"]) .swatch.bar-lime,
body:not([data-theme]):not(.theme-auto) .bar-lime,
body:not([data-theme]):not(.theme-auto) .swatch.bar-lime {
  fill: #84cc16;
  background: #84cc16;
}

body.theme-auto:not([data-theme="light"]) .bar-reject,
body.theme-auto:not([data-theme="light"]) .swatch.bar-reject,
body:not([data-theme]):not(.theme-auto) .bar-reject,
body:not([data-theme]):not(.theme-auto) .swatch.bar-reject {
  fill: #4ade80;
  background: #4ade80;
}

body.theme-auto:not([data-theme="light"]) .bar-ok,
body.theme-auto:not([data-theme="light"]) .swatch.bar-ok,
body:not([data-theme]):not(.theme-auto) .bar-ok,
body:not([data-theme]):not(.theme-auto) .swatch.bar-ok {
  fill: #22c55e;
  background: #22c55e;
}

body.theme-auto:not([data-theme="light"]) .bar-green-soft,
body.theme-auto:not([data-theme="light"]) .swatch.bar-green-soft,
body:not([data-theme]):not(.theme-auto) .bar-green-soft,
body:not([data-theme]):not(.theme-auto) .swatch.bar-green-soft {
  fill: #bbf7d0;
  background: #bbf7d0;
}

body.theme-auto:not([data-theme="light"]) .bar-green-deep,
body.theme-auto:not([data-theme="light"]) .swatch.bar-green-deep,
body:not([data-theme]):not(.theme-auto) .bar-green-deep,
body:not([data-theme]):not(.theme-auto) .swatch.bar-green-deep {
  fill: #86efac;
  background: #86efac;
}

body.theme-auto:not([data-theme="light"]) .bar-neutral,
body.theme-auto:not([data-theme="light"]) .swatch.bar-neutral,
body:not([data-theme]):not(.theme-auto) .bar-neutral,
body:not([data-theme]):not(.theme-auto) .swatch.bar-neutral {
  fill: #d6d3d1;
  background: #d6d3d1;
}

body.theme-auto:not([data-theme="light"]) .heat-0,
body.theme-auto:not([data-theme="light"]) .swatch.heat-0,
body:not([data-theme]):not(.theme-auto) .heat-0,
body:not([data-theme]):not(.theme-auto) .swatch.heat-0 {
  fill: #fecaca;
  background: #fecaca;
}

body.theme-auto:not([data-theme="light"]) .heat-1,
body.theme-auto:not([data-theme="light"]) .swatch.heat-1,
body:not([data-theme]):not(.theme-auto) .heat-1,
body:not([data-theme]):not(.theme-auto) .swatch.heat-1 {
  fill: #fca5a5;
  background: #fca5a5;
}

body.theme-auto:not([data-theme="light"]) .heat-2,
body.theme-auto:not([data-theme="light"]) .swatch.heat-2,
body:not([data-theme]):not(.theme-auto) .heat-2,
body:not([data-theme]):not(.theme-auto) .swatch.heat-2 {
  fill: #f87171;
  background: #f87171;
}

body.theme-auto:not([data-theme="light"]) .heat-3,
body.theme-auto:not([data-theme="light"]) .swatch.heat-3,
body:not([data-theme]):not(.theme-auto) .heat-3,
body:not([data-theme]):not(.theme-auto) .swatch.heat-3 {
  fill: #ef4444;
  background: #ef4444;
}

body.theme-auto:not([data-theme="light"]) .heat-4,
body.theme-auto:not([data-theme="light"]) .swatch.heat-4,
body:not([data-theme]):not(.theme-auto) .heat-4,
body:not([data-theme]):not(.theme-auto) .swatch.heat-4 {
  fill: #fb7185;
  background: #fb7185;
}

body.theme-auto:not([data-theme="light"]) .heat-5,
body.theme-auto:not([data-theme="light"]) .swatch.heat-5,
body:not([data-theme]):not(.theme-auto) .heat-5,
body:not([data-theme]):not(.theme-auto) .swatch.heat-5 {
  fill: #fb923c;
  background: #fb923c;
}

body.theme-auto:not([data-theme="light"]) .heat-6,
body.theme-auto:not([data-theme="light"]) .swatch.heat-6,
body:not([data-theme]):not(.theme-auto) .heat-6,
body:not([data-theme]):not(.theme-auto) .swatch.heat-6 {
  fill: #fdba74;
  background: #fdba74;
}

body.theme-auto:not([data-theme="light"]) .heat-7,
body.theme-auto:not([data-theme="light"]) .swatch.heat-7,
body:not([data-theme]):not(.theme-auto) .heat-7,
body:not([data-theme]):not(.theme-auto) .swatch.heat-7 {
  fill: #fed7aa;
  background: #fed7aa;
}

body.theme-auto:not([data-theme="light"]) .heat-8,
body.theme-auto:not([data-theme="light"]) .swatch.heat-8,
body:not([data-theme]):not(.theme-auto) .heat-8,
body:not([data-theme]):not(.theme-auto) .swatch.heat-8 {
  fill: #fcd34d;
  background: #fcd34d;
}

body.theme-auto:not([data-theme="light"]) .heat-9,
body.theme-auto:not([data-theme="light"]) .swatch.heat-9,
body:not([data-theme]):not(.theme-auto) .heat-9,
body:not([data-theme]):not(.theme-auto) .swatch.heat-9 {
  fill: #fbbf24;
  background: #fbbf24;
}

body.theme-auto:not([data-theme="light"]) .heat-10,
body.theme-auto:not([data-theme="light"]) .swatch.heat-10,
body:not([data-theme]):not(.theme-auto) .heat-10,
body:not([data-theme]):not(.theme-auto) .swatch.heat-10 {
  fill: #f59e0b;
  background: #f59e0b;
}

body.theme-auto:not([data-theme="light"]) .heat-11,
body.theme-auto:not([data-theme="light"]) .swatch.heat-11,
body:not([data-theme]):not(.theme-auto) .heat-11,
body:not([data-theme]):not(.theme-auto) .swatch.heat-11 {
  fill: #d97706;
  background: #d97706;
}
}

@media (max-width: 800px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.news-card {
  margin: 0 0 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--novamx-line, #d5deea);
  border-radius: 12px;
  background: var(--novamx-surface, #fff);
}

.news-card time {
  color: var(--novamx-text-muted);
  font-size: 0.95rem;
}

.news-card h3 {
  margin: 0.35rem 0 0.5rem;
}

.news-subscribe-form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
  margin: 0 0 1.25rem;
}

.news-subscribe-form label {
  font-weight: 600;
}

.news-subscribe-form input[type="email"] {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin-top: 0.35rem;
}

.news-subscribe-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.news-subscribe-consent label {
  font-weight: 400;
}

.news-card .actions,
.research-masthead .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

@media (max-width: 520px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .crawl-nav,
  #site-header,
  #site-footer,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #0a1a2f !important;
  }

  .research-figure,
  .stat-card,
  .research-disclosure,
  .research-note,
  .research-toc {
    break-inside: avoid;
  }

  a {
    color: #0a1a2f;
  }
}
