/* =============================================================
   apollo-mi.css — Market Intelligence page
   Editorial-tone layout: Georgia headers + system body.
   Navy-dominant (60–70%) + gold accent (10%). WCAG AA contrast.
   ============================================================= */

.mi-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  color: #15171c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mi-loading {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}

/* ── Section envelope ──────────────────────────────────────── */
.mi-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 26, 48, 0.04);
}
.mi-section-empty {
  text-align: center;
  color: #6b7280;
  padding: 2rem 1rem;
}
.mi-section-hero {
  background: #1a2744;
  border: 0;
  color: #e7eaf0;
}

/* CLS investigation 2026-05-01 — left intentionally blank.
   Two attempts to fix the 0.103 CLS attributed to .mi-scope-map-section
   (min-height on the section itself in f37edf6, and min-height on the
   .mi-section-empty placeholder in 811e52a) both measured 0.103 on
   prod after deploy — the layout shift appears to be from the page-
   level mi-loading → mi-page swap (page.js line 161-166), not from
   sibling section grow-shrink within mi-page. Proper fix needs a
   skeleton at the page level matching the eventual mi-page height,
   or measurement-driven debug from a slowed throttled trace. Defer
   to a focused follow-on. */
.mi-section-hero .mi-section-title { color: #ffffff; }
.mi-section-hero .mi-caption { color: #c0c5cc; }

/* Section header: title left, tools right */
.mi-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 1rem;
}
.mi-section-title {
  font-family: Georgia, "Iowan Old Style", "Palatino", serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: #0f1a30;
}
.mi-section-hero .mi-section-title { font-size: 1.45rem; }
.mi-section-tools {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem;
}
.mi-scope-year {
  color: #c9a84c;
  font-weight: 700;
  font-family: Georgia, serif;
  margin-left: 0.25rem;
}
.mi-scope-year-partial {
  color: #c0c5cc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.mi-partial-ytd {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #c0c5cc;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  padding-top: 0.6rem;
}
.mi-partial-label {
  color: #c9a84c;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}
.mi-sub-title {
  font-family: Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #36405b;
  margin: 1rem 0 0.5rem;
}
.mi-subsection { margin: 1rem 0; }

.mi-caption {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0.25rem 0 0.85rem;
  max-width: 780px;
}
/* Small text (<14px) needs ≥5.5:1 to clear the 4.5:1 bar after pa11y's
   integer rounding. #5b626d is 5.5:1 on #fff. */
.mi-caption-minor { font-size: 0.8rem; color: #5b626d; margin-top: 0.5rem; }
.mi-caption-inline { color: #5b626d; font-size: 0.85rem; }
/* Was #9ca3af — Tailwind gray-400 fails WCAG AA on white at <1rem (3.4:1).
   Bumped to gray-500 #6b7280 (~4.59:1, AA-pass for normal text). */
.mi-muted { color: #6b7280; }

/* ── Hero KPIs grid ─────────────────────────────────────────── */
.mi-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0.75rem 0 0.5rem;
}
.mi-kpi { text-align: left; }
.mi-kpi-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #c0c5cc;
  margin-bottom: 0.25rem;
}
.mi-kpi-value {
  font-family: Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.mi-kpi-sub {
  font-size: 0.78rem;
  color: #c0c5cc;
  margin-top: 0.15rem;
}

/* ── Chart container defaults ──────────────────────────────── */
.mi-chart-container {
  position: relative;
  width: 100%;
  min-height: 220px;
}

/* type-mix donut + table side-by-side. The narrow-viewport snap window
   below 1280 stacks them — see media block at the bottom of this file. */
.mi-typemix-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.2fr;
  gap: 16px;
  align-items: start;
}

/* ── Tables ────────────────────────────────────────────────── */
.mi-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}
.mi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.mi-table th {
  text-align: left;
  font-weight: 600;
  padding: 0.55rem 0.5rem;
  border-bottom: 2px solid #1a2744;
  color: #36405b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}
.mi-table td {
  padding: var(--mi-row-pad-y, 0.55rem) var(--mi-row-pad-x, 0.5rem);
  border-bottom: 1px solid #f0f2f5;
  color: #15171c;
  vertical-align: middle;
}
.mi-table th {
  padding-top: var(--mi-row-pad-y, 0.55rem);
  padding-bottom: var(--mi-row-pad-y, 0.55rem);
}
.mi-table tbody tr:hover { background: #fafbfc; }

/* ── Density toggle (spec §7.6, §12) ───────────────────────── */
/* `.mi-density-compact` lands on <body> via MIDensityToggle when the
 * user picks the compact preset. Tables (and any future row-density-
 * sensitive component) consume --mi-row-pad-* via var() so a one-line
 * override in this rule flips the entire MI page's row heights without
 * touching individual selectors. */
body.mi-density-compact {
  --mi-row-pad-y: 0.28rem;
  --mi-row-pad-x: 0.4rem;
}

.mi-density-toggle {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--o-border, #e2e8f0);
  border-radius: 6px;
  background: var(--o-surface, #fff);
  padding: 2px;
}
.mi-density-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 13px;
  line-height: 1;
  border-radius: 4px;
  cursor: pointer;
  color: var(--o-text-muted, #64748b);
  font-family: inherit;
}
.mi-density-btn:hover { color: var(--o-text, #0f172a); }
.mi-density-btn.is-active {
  background: var(--o-bg-soft, #f1f5f9);
  color: var(--o-navy, #0f172a);
  font-weight: 600;
}
.mi-density-btn:focus-visible {
  outline: 2px solid var(--o-focus, #2563eb);
  outline-offset: 2px;
}

/* ── Legend (band colour strip) ────────────────────────────── */
.mi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #4b5563;
}
.mi-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.mi-legend-swatch {
  width: 14px; height: 14px; border-radius: 2px; display: inline-block;
}

/* ── Notable cards ─────────────────────────────────────────── */
.mi-notable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.mi-notable-card {
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.15s;
  background: #ffffff;
}
.mi-notable-card:hover { border-color: #c9a84c; background: #fff9e6; }
.mi-notable-card:focus { outline: 2px solid #c9a84c; outline-offset: 2px; }
.mi-notable-card.active { border-color: #1a2744; background: #eef1f6; }
.mi-notable-title {
  font-family: Georgia, serif;
  font-weight: 700; font-size: 1.05rem; color: #1a2744;
  margin-bottom: 0.6rem;
}
.mi-notable-stat {
  display: flex; justify-content: space-between;
  padding: 0.22rem 0;
  font-size: 0.85rem;
}
.mi-notable-label { color: #6b7280; }
.mi-notable-value { font-weight: 600; color: #15171c; }

/* ── Accordion (macro stub) ────────────────────────────────── */
/* The toggle is a real <button> for a11y (axe-core nested-interactive fix).
   Reset native button chrome so it visually matches the surrounding header. */
.mi-accordion-toggle {
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}
.mi-accordion-toggle:focus-visible {
  outline: 2px solid #3e66a1;
  outline-offset: 2px;
}
.mi-accordion-chevron { font-size: 0.65rem; color: #6b7280; margin-right: 0.25rem; }
.mi-accordion-body { padding-top: 0.5rem; }

/* ── Banners / caveats ─────────────────────────────────────── */
.mi-caveats { margin-bottom: 1rem; }
.mi-banner {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.88rem; line-height: 1.45;
}
.mi-banner-info     { background: #eef3fb; border-left: 3px solid #3e66a1; color: #1c2f4f; }
.mi-banner-warn     { background: #fdf5e6; border-left: 3px solid #c9a84c; color: #5f471a; }
.mi-banner-critical { background: #fbebe8; border-left: 3px solid #c94c4c; color: #5b2626; }

/* T12: Severity glyphs — each kind picks a distinct shape so colour-blind
   readers see the difference without needing to read the bg colour. */
.mi-banner-icon {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  flex-shrink: 0;
  width: 1.4rem;
  text-align: center;
}
.mi-banner-icon-info     { color: #3e66a1; }
.mi-banner-icon-warn     { color: #a88935; }
.mi-banner-icon-critical { color: #c94c4c; }

/* Hidden but readable to screen readers — paired with the visible glyph
   so SR users hear "Warning: …" rather than just the gibberish glyph. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* T16: per-chart footnote-style banner (placed below a section caption,
   tighter padding than page-top caveats). */
.mi-section-footnote {
  margin-top: 0.6rem;
}
.mi-section-footnote .mi-banner {
  margin-bottom: 0;
  font-size: 0.82rem;
}

/* ── Stub / skeleton ───────────────────────────────────────── */
.mi-section-stub { opacity: 0.72; }
.mi-phase-tag {
  font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fef3d6; color: #5f471a;
  padding: 2px 8px; border-radius: 999px;
  font-weight: 600;
}
.mi-skeleton { padding-top: 0.5rem; }
.mi-skeleton-row {
  height: 28px;
  background: linear-gradient(90deg, #f0f2f5 0%, #e5e7eb 50%, #f0f2f5 100%);
  background-size: 200% 100%;
  animation: mi-shimmer 1.6s infinite;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}
@keyframes mi-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Methodology Badge ─────────────────────────────────────── */
.mi-methodology-badge { position: relative; display: inline-block; }
.mi-methodology-button {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  font-weight: 700; font-size: 0.72rem;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 3px;
}
.mi-methodology-button:hover   { border-color: #1a2744; color: #1a2744; }
.mi-methodology-button:focus   { outline: 2px solid #c9a84c; outline-offset: 2px; }
.mi-methodology-button.tier-high    { border-color: #2d8a4e; color: #2d8a4e; }
.mi-methodology-button.tier-medium  { border-color: #c9a84c; color: #a88935; }
.mi-methodology-button.tier-low     { border-color: #c9752c; color: #c9752c; }
.mi-methodology-button.tier-dark    { border-color: #4b3a4a; color: #4b3a4a; background: #f7f4f7; }
.tier-dot { font-size: 0.6rem; line-height: 0; }

.mi-methodology-popover {
  position: absolute;
  top: 28px; right: 0;
  z-index: 200;
  width: 380px;
  max-height: 70vh;
  overflow-y: auto;
  background: #ffffff;
  /* Explicit foreground so the popover renders correctly inside dark
     containers like .mi-section-hero (which sets color: #e7eaf0).
     Without this the <strong> source-list items inherit hero text and
     fail WCAG contrast against the white popover bg. */
  color: #15171c;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 1rem 1.1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(15, 26, 48, 0.16);
  font-size: 0.85rem;
}
.mi-methodology-header {
  font-family: Georgia, serif;
  font-weight: 700; font-size: 1rem;
  color: #0f1a30; margin-bottom: 0.6rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.45rem;
}
.mi-methodology-row {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 0.5rem; margin-bottom: 0.45rem;
  font-size: 0.84rem; line-height: 1.45;
}
.mi-methodology-label { color: #6b7280; font-weight: 500; }
.mi-methodology-value { color: #15171c; }
.mi-methodology-value.tier-high   { color: #2d8a4e; font-weight: 600; }
.mi-methodology-value.tier-medium { color: #a88935; font-weight: 600; }
.mi-methodology-value.tier-low    { color: #c9752c; font-weight: 600; }
.mi-methodology-value.tier-dark   { color: #4b3a4a; font-weight: 600; }
.mi-methodology-sources { grid-template-columns: 1fr; }
.mi-methodology-sources ul { margin: 0; padding-left: 1rem; list-style: disc; }
.mi-methodology-sources li { margin-bottom: 0.5rem; }
.mi-methodology-sub { font-size: 0.78rem; color: #6b7280; }
.mi-methodology-caveats {
  margin-top: 0.25rem; font-size: 0.78rem; color: #5f471a;
  background: #fef9e9; padding: 0.35rem 0.6rem; border-radius: 3px;
}
.mi-methodology-link {
  font-size: 0.78rem; word-break: break-all;
  color: #1a2744; text-decoration: underline;
}
.mi-methodology-close {
  position: absolute; top: 8px; right: 10px;
  background: transparent; border: 0;
  font-size: 1.4rem; color: #6b7280; cursor: pointer; line-height: 1;
}
.mi-methodology-close:hover { color: #1a2744; }

/* ── Toggle (real/nominal) ─────────────────────────────────── */
.mi-toggle {
  font-size: 0.82rem; color: #4b5563;
  display: inline-flex; align-items: center; gap: 0.35rem;
  cursor: pointer;
}

/* ── Scope map (T3) ────────────────────────────────────────── */
.mi-map-label {
  display: inline-flex; flex-direction: column; align-items: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: #0f1a30;
  text-align: center;
  line-height: 1.15;
  background: rgba(255,255,255,0.86);
  padding: 3px 6px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.mi-map-label-text { display: block; }
.mi-map-vol { font-weight: 400; color: #4b5563; font-size: 0.7rem; }
.mi-map-legend {
  background: rgba(255,255,255,0.92);
  padding: 6px 8px; border-radius: 4px;
  font-size: 0.72rem; color: #0f1a30;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  min-width: 110px;
}
.mi-map-legend-title {
  font-weight: 600; margin-bottom: 3px;
}
.mi-map-legend-bar {
  height: 8px; border-radius: 2px;
  background: linear-gradient(to right,
    rgb(16,185,129) 0%,
    rgb(132,204,22) 25%,
    rgb(250,204,21) 50%,
    rgb(249,115,22) 75%,
    rgb(239,68,68) 100%);
}
.mi-map-legend-scale {
  display: flex; justify-content: space-between;
  margin-top: 2px; color: #4b5563; font-size: 0.68rem;
}

/* ── Reset-to-country control (T4) ─────────────────────────── */
.mi-map-reset {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 0.75rem;
  font-family: inherit;
  color: #0f1a30;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  margin: 6px 0 0 6px;       /* sits below Leaflet's +/- buttons */
}
.mi-map-reset:hover  { background: #f6f7f9; border-color: #1a2744; }
.mi-map-reset:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 1px;
}

/* ── Footer ────────────────────────────────────────────────── */
.mi-footer {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #fafbfc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #36405b;
  font-size: 0.84rem;
  line-height: 1.5;
}
.mi-footer h4, .mi-footer h5 {
  font-family: Georgia, serif;
  margin: 0 0 0.4rem;
  color: #0f1a30;
  font-weight: 700;
}
.mi-footer h4 { font-size: 1rem; }
.mi-footer h5 { font-size: 0.88rem; margin-top: 0.75rem; }
.mi-footer-row { margin-bottom: 0.85rem; }
.mi-footer-muted { color: #6b7280; font-size: 0.8rem; }
.mi-footer-sources { margin: 0; padding-left: 1.1rem; }
.mi-footer-sources li { margin-bottom: 0.35rem; }
.mi-citation {
  font-family: Consolas, "SF Mono", Monaco, monospace;
  font-size: 0.8rem;
  background: #ffffff; border: 1px solid #e5e7eb;
  padding: 0.55rem 0.75rem; border-radius: 4px;
  white-space: pre-wrap; word-break: break-word;
  margin: 0.25rem 0 0.5rem;
}
.mi-btn {
  background: #1a2744; color: #ffffff; border: 0;
  padding: 0.45rem 0.9rem; border-radius: 4px;
  font-size: 0.83rem; font-weight: 500; cursor: pointer;
  margin-right: 0.5rem;
}
.mi-btn:hover  { background: #0f1a30; }
.mi-btn:focus  { outline: 2px solid #c9a84c; outline-offset: 2px; }
.mi-footer-tier {
  display: inline-block; margin-right: 0.75rem;
}

/* ── Glossary tooltip ──────────────────────────────────────── */
.mi-glossary-term {
  position: relative;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dotted #c9a84c;
  outline: none;
}
.mi-glossary-term:focus,
.mi-glossary-term:hover { color: #1a2744; }
.mi-glossary-term:focus-visible { outline: 2px solid #c9a84c; outline-offset: 2px; }
.mi-glossary-icon {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.55em;
  vertical-align: super;
  color: #c9a84c;
  font-weight: 700;
  line-height: 0;
}
.mi-glossary-popover {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  width: 320px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(15, 26, 48, 0.16);
  padding: 0.7rem 0.85rem;
  font-size: 0.8rem;
  color: #15171c;
  text-align: left;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  cursor: default;
}
/* benign: decorative-only — empty content, draws popover arrow tip via borders */
.mi-glossary-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #ffffff;
}
.mi-glossary-short {
  font-weight: 600;
  color: #0f1a30;
  margin-bottom: 0.4rem;
}
.mi-glossary-long {
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.mi-glossary-formula {
  background: #fafbfc;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  padding: 0.3rem 0.5rem;
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  color: #36405b;
  white-space: pre-wrap;
  margin: 0 0 0.4rem;
}
.mi-glossary-footer { font-size: 0.72rem; }
.mi-glossary-more {
  color: #c9a84c;
  text-decoration: none;
  font-weight: 500;
}
.mi-glossary-more:hover { text-decoration: underline; }

/* ── Macro context grid ────────────────────────────────────── */
.mi-macro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 0.75rem 0 1rem;
}
.mi-macro-chart {
  background: #fafbfc;
  border: 1px solid #f0f2f5;
  border-radius: 4px;
  padding: 0.75rem 0.9rem 0.5rem;
}
.mi-macro-chart .mi-sub-title { margin-top: 0; }

/* T11: empty-state shell when a forecast series is gated (currently
   nominal_gdp_growth_pct flat-line case). Reuses the muted-grey style
   from .antiparochi-empty / .mi-empty-state for visual parity. */
.mi-macro-chart-empty .mi-empty-state {
  background: #f6f7f9;
  border-left: 3px solid #94a3b8;
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.45;
  min-height: 140px;
  display: flex;
  align-items: center;
}
.mi-macro-ratings { margin-top: 1rem; }
.mi-rating-table-wrap { overflow-x: auto; max-width: 600px; }
.mi-rating-table th { font-size: 0.7rem; }
.mi-rating-table td { font-family: Consolas, "SF Mono", monospace; font-size: 0.83rem; }

/* ── Responsive — desktop-first, graceful narrow ───────────── */
@media (max-width: 1100px) {
  .mi-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .mi-notable-grid { grid-template-columns: 1fr; }
  .mi-macro-grid { grid-template-columns: 1fr; }
}

/* Snap-window fallback (1100-1279 px main): the user is mid-resize.
   Below 1100 the desktop-only notice in apollo-shell.css fires and
   covers the shell. Above 1280 baseline rules apply. This block keeps
   the layout from catastrophically clipping during the resize window.
   Tracked by ADR 0002 — narrow-viewport snap window. */
@media (min-width: 1100px) and (max-width: 1279px) {
  .mi-typemix-grid { grid-template-columns: 1fr; }
  .mi-section-tools { flex-shrink: 0; flex-wrap: wrap; }
  .mi-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .mi-macro-grid { grid-template-columns: 1fr; }
  .viz-stacked-bar text { font-size: 11px; }
}

/* ── Reduced-motion preferences (§0.5 + WCAG SC 2.3.3) ─────── */
@media (prefers-reduced-motion: reduce) {
  .mi-skeleton-row,
  .app-loading .spinner {
    animation-duration: 0s !important;
  }
  .mi-notable-card {
    transition: none !important;
  }
}
