:root {
  --obs-navy: #0b1727;
  --obs-navy-soft: #14253a;
  --obs-jade: #087b68;
  --obs-jade-bright: #10a98e;
  --obs-jade-pale: #eaf8f4;
  --obs-blue: #2f6fed;
  --obs-blue-pale: #edf4ff;
  --obs-amber: #d98b19;
  --obs-red: #c75454;
  --obs-ink: #101c2b;
  --obs-copy: #35445a;
  --obs-muted: #6f7d90;
  --obs-line: #dce3eb;
  --obs-line-strong: #cbd5e1;
  --obs-canvas: #f5f7fa;
  --obs-paper: #ffffff;
  --obs-shadow: 0 2px 5px rgba(15, 31, 51, 0.05), 0 16px 34px rgba(15, 31, 51, 0.05);
}

body:has(.global-header) {
  background: var(--obs-canvas);
  color: var(--obs-ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body:has(.global-header) .shell { background: var(--obs-canvas); }

/* Hero: a compact monitoring console, not a promotional landing page. */
body:has(.global-header) .observatory-hero {
  min-height: 500px;
  overflow: visible;
  border: 0;
  background: var(--obs-navy);
}

body:has(.global-header) .observatory-hero::before {
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
}

body:has(.global-header) .observatory-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--obs-jade-bright) 0 24%, #58c3b1 24% 38%, #2f6fed 38% 61%, #d9a441 61% 78%, #d8665f 78%);
}

body:has(.global-header) .observatory-hero__inner {
  width: min(100% - 64px, 1344px);
  min-height: 500px;
  grid-template-columns: minmax(0, 0.86fr) minmax(430px, 1.14fr);
  align-items: center;
  gap: 58px;
  padding: 48px 0 118px;
}

body:has(.global-header) .observatory-hero__copy {
  max-width: 640px;
  color: #fff;
}

body:has(.global-header) .observatory-hero__badge {
  margin: 0 0 22px;
  padding: 8px 12px 8px 29px;
  border: 1px solid rgba(110, 224, 202, 0.32);
  border-radius: 5px;
  background: rgba(10, 40, 54, 0.8);
  box-shadow: none;
  color: #bcefe5;
  font-size: 11px;
  font-weight: 800;
}

body:has(.global-header) .observatory-hero__badge::before {
  left: 11px;
  width: 8px;
  height: 8px;
  background: var(--obs-jade-bright);
  box-shadow: 0 0 0 4px rgba(16, 169, 142, 0.14);
}

body:has(.global-header) .observatory-hero h1 {
  color: #fff;
  font-family: Montserrat, Manrope, sans-serif;
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

body:has(.global-header) .observatory-hero__statement {
  max-width: 16ch;
  margin-top: 18px;
  color: #f2f6fa;
  font-size: clamp(25px, 2.35vw, 34px);
  font-weight: 650;
  line-height: 1.13;
}

body:has(.global-header) .observatory-hero__statement strong {
  display: inline;
  color: #70ddca;
}

body:has(.global-header) .observatory-hero__description {
  max-width: 58ch;
  margin-top: 16px;
  color: #b8c5d4;
  font-size: 15px;
  line-height: 1.65;
}

body:has(.global-header) .observatory-hero__actions { margin-top: 25px; }

body:has(.global-header) .observatory-hero__action {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-size: 13px;
}

body:has(.global-header) .observatory-hero__action:first-child {
  border-color: var(--obs-jade-bright);
  background: var(--obs-jade-bright);
  color: #071b1a;
}

body:has(.global-header) .observatory-hero__action:hover {
  border-color: #70ddca;
  transform: translateY(-1px);
}

body:has(.global-header) .observatory-hero__scene {
  top: 34px;
  right: max(32px, calc((100vw - 1344px) / 2));
  bottom: 94px;
  width: min(46vw, 650px);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #16283c;
  box-shadow: 0 24px 56px rgba(2, 11, 23, 0.34);
}

body:has(.global-header) .observatory-hero__main-image {
  border-radius: 9px;
  box-shadow: none;
  filter: saturate(0.88) contrast(1.03);
}

body:has(.global-header) .observatory-hero__inset {
  top: -17px;
  right: 18px;
  width: 25%;
  height: 34%;
  border: 4px solid var(--obs-paper);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(3, 13, 27, 0.3);
}

body:has(.global-header) .observatory-hero__ai-note {
  left: -38px;
  top: auto;
  bottom: 28px;
  width: 218px;
  min-height: 78px;
  padding: 15px 18px 15px 58px;
  border: 1px solid #d9e3ed;
  border-left: 4px solid var(--obs-jade-bright);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(3, 13, 27, 0.2);
}

body:has(.global-header) .observatory-hero__ai-note::before {
  left: 15px;
  top: 21px;
  width: 28px;
  height: 28px;
  background: var(--obs-jade);
  color: #fff;
}

body:has(.global-header) .observatory-hero__ai-note span { color: var(--obs-muted); font-size: 9px; }
body:has(.global-header) .observatory-hero__ai-note strong { color: var(--obs-ink); font-size: 15px; line-height: 1.2; }

body:has(.global-header) .observatory-hero__metrics {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 22px;
  left: 0;
  width: min(100% - 64px, 1344px);
  margin: auto;
  overflow: hidden;
  border: 1px solid var(--obs-line);
  border-top: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--obs-shadow);
}

body:has(.global-header) .observatory-hero__metric {
  min-height: 76px;
  padding: 14px 24px;
  border-right: 1px solid var(--obs-line);
  background: #fff;
}

body:has(.global-header) .observatory-hero__metric::before {
  content: none;
  display: none;
}

body:has(.global-header) .observatory-hero__metric:nth-child(2)::before { background: var(--obs-blue); box-shadow: 0 0 0 5px var(--obs-blue-pale); }
body:has(.global-header) .observatory-hero__metric:nth-child(3)::before { background: var(--obs-amber); box-shadow: 0 0 0 5px #fff6e7; }

body:has(.global-header) .observatory-hero__metric-value {
  color: var(--obs-ink);
  font-family: Montserrat, Manrope, sans-serif;
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body:has(.global-header) .observatory-hero__metric-label {
  color: var(--obs-muted);
  font-size: 10px;
  font-weight: 800;
}

body:has(.global-header) .observatory-hero__source {
  right: max(42px, calc((100vw - 1320px) / 2));
  bottom: 104px;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
}

/* Main dashboard frame. */
body:has(.global-header) #observatorio-feed {
  width: min(100% - 64px, 1344px);
  padding-bottom: 80px;
}

body:has(.global-header) .analytics {
  padding-top: 54px;
  scroll-margin-top: 92px;
}

body:has(.global-header) .analytics > .section-heading {
  align-items: center;
  gap: 30px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--obs-line-strong);
}

body:has(.global-header) .section-kicker {
  color: var(--obs-jade);
  font-size: 11px;
  font-weight: 800;
}

body:has(.global-header) .analytics > .section-heading h2 {
  max-width: none;
  color: var(--obs-ink);
  font-family: Montserrat, Manrope, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: 0;
}

body:has(.global-header) .section-summary {
  max-width: 68ch;
  margin-top: 9px;
  color: var(--obs-muted);
  font-size: 14px;
  line-height: 1.55;
}

body:has(.global-header) .snapshot-badge {
  min-width: 232px;
  padding: 12px 15px 12px 43px;
  border: 1px solid #b8e8dc;
  border-radius: 7px;
  background: var(--obs-jade-pale);
  box-shadow: none;
}

body:has(.global-header) .snapshot-badge::before {
  left: 15px;
  width: 12px;
  height: 12px;
  background: var(--obs-jade-bright);
  box-shadow: 0 0 0 6px rgba(16, 169, 142, 0.11);
}

body:has(.global-header) .snapshot-live { color: #086754; font-size: 12px; }
body:has(.global-header) .snapshot-cycle { color: #587069; font-size: 10px; }

/* Executive metrics become one consistent white console. */
body:has(.global-header) .situation-deck {
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  grid-template-areas: "lead kpi1 kpi2 kpi3 kpi4" "quality quality quality quality quality";
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--obs-line);
  border-radius: 9px;
  background: var(--obs-paper);
  box-shadow: var(--obs-shadow);
}

body:has(.global-header) .deck-lead,
body:has(.global-header) .deck-kpi {
  min-height: 168px;
  padding: 22px;
  border-right: 1px solid var(--obs-line);
  border-bottom: 0;
  background: #fff;
  color: var(--obs-ink);
}

body:has(.global-header) .deck-lead {
  border-top: 4px solid var(--obs-jade);
  background: linear-gradient(180deg, var(--obs-jade-pale), #fff 64%);
}

body:has(.global-header) .deck-kpi:nth-of-type(2) { border-top: 4px solid var(--obs-blue); }
body:has(.global-header) .deck-kpi:nth-of-type(3) { border-top: 4px solid var(--obs-amber); }
body:has(.global-header) .deck-kpi:nth-of-type(4) { border-top: 4px solid var(--obs-red); }
body:has(.global-header) .deck-kpi:nth-of-type(5) { border-top: 4px solid #655bd8; border-right: 0; }

body:has(.global-header) .deck-index,
body:has(.global-header) .deck-lead .deck-index {
  color: var(--obs-muted);
  font-size: 11px;
  font-weight: 800;
}

body:has(.global-header) .deck-lead-value {
  margin-top: 18px;
  color: var(--obs-ink);
  font-size: clamp(24px, 2.2vw, 34px);
}

body:has(.global-header) .deck-kpi-value {
  margin-top: 20px;
  color: var(--obs-ink);
  font-family: Montserrat, Manrope, sans-serif;
  font-size: clamp(24px, 2.1vw, 33px);
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}

body:has(.global-header) .deck-lead-detail,
body:has(.global-header) .deck-caption,
body:has(.global-header) .deck-lead .deck-caption {
  color: var(--obs-muted);
  font-size: 12px;
}

body:has(.global-header) .deck-share {
  height: 5px;
  margin-top: 16px;
  border-radius: 10px;
  background: #dbeae6;
}

body:has(.global-header) .deck-share span { background: var(--obs-jade-bright); }

body:has(.global-header) .quality-rail {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--obs-line);
  background: #f9fafc;
}

body:has(.global-header) .quality-rail > div {
  min-height: 75px;
  padding: 14px 18px;
  border-top: 0 !important;
  border-right: 1px solid var(--obs-line);
}

body:has(.global-header) .quality-rail > div:last-child { border-right: 0; }
body:has(.global-header) .quality-rail span { color: var(--obs-muted); font-size: 11px; }
body:has(.global-header) .quality-rail strong { color: var(--obs-ink); font-size: 21px; font-variant-numeric: tabular-nums; }

/* Tabs mimic a serious application navigation bar. */
body:has(.global-header) .analytics .stat-tabs {
  gap: 0;
  margin-top: 26px;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid var(--obs-line);
  border-radius: 9px 9px 0 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 31, 51, 0.035);
}

body:has(.global-header) .analytics .stat-tab {
  position: relative;
  flex: 1 1 0;
  min-height: 60px;
  padding: 0 15px;
  border: 0;
  border-right: 0;
  border-radius: 0;
  background: transparent;
  color: #58677b;
  font-size: 14px;
  font-weight: 750;
  transition: color 150ms ease, background-color 150ms ease;
}

body:has(.global-header) .analytics .stat-tab::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}

body:has(.global-header) .analytics .stat-tab svg {
  width: 18px;
  height: 18px;
  color: #7f8da0;
}

body:has(.global-header) .analytics .stat-tab:hover { background: #f7f9fc; color: var(--obs-ink); }

body:has(.global-header) .analytics .stat-tab[aria-selected="true"] {
  background: transparent;
  color: var(--obs-jade);
}

body:has(.global-header) .analytics .stat-tab[aria-selected="true"]::after { background: var(--obs-jade); }
body:has(.global-header) .analytics .stat-tab[aria-selected="true"] svg { color: var(--obs-jade); }

body:has(.global-header) .analytics .stat-panel {
  margin-top: 0;
  padding: 30px;
  border: 1px solid var(--obs-line);
  border-top: 0;
  border-radius: 0 0 9px 9px;
  background: #fff;
  box-shadow: var(--obs-shadow);
}

body:has(.global-header) .analysis-title {
  color: var(--obs-ink);
  font-family: Montserrat, Manrope, sans-serif;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
}

body:has(.global-header) .analysis-note,
body:has(.global-header) .method-note { color: var(--obs-muted); font-size: 11px; }

body:has(.global-header) .analytics .analysis-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--obs-line);
  border-radius: 8px;
  background: #fff;
}

body:has(.global-header) .analytics .analysis-grid > div { padding: 24px; }
body:has(.global-header) .analytics .analysis-grid > div + div { border-left: 1px solid var(--obs-line); }

body:has(.global-header) .bar-track,
body:has(.global-header) .weekly-track { background: #edf1f5; }

body:has(.global-header) .bar-list .bar-row:nth-child(4n + 1) { --bar-color: var(--obs-jade); }
body:has(.global-header) .bar-list .bar-row:nth-child(4n + 2) { --bar-color: var(--obs-blue); }
body:has(.global-header) .bar-list .bar-row:nth-child(4n + 3) { --bar-color: var(--obs-amber); }
body:has(.global-header) .bar-list .bar-row:nth-child(4n) { --bar-color: #655bd8; }
body:has(.global-header) .bar-fill { background: var(--bar-color, var(--obs-jade)); }

body:has(.global-header) .dashboard-findings {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #b9e8dc;
  border-radius: 8px;
  background: var(--obs-jade-pale);
  box-shadow: none;
  color: var(--obs-ink);
}

body:has(.global-header) .dashboard-findings__heading h3 { color: var(--obs-ink); font-size: 22px; }
body:has(.global-header) .dashboard-findings__heading p { color: #557169; }
body:has(.global-header) .dashboard-findings .signal { border: 1px solid #ccece5; border-top: 3px solid var(--obs-jade) !important; border-radius: 6px; background: #fff; color: var(--obs-copy); }
body:has(.global-header) .dashboard-findings .signal strong { color: var(--obs-ink); }
body:has(.global-header) .dashboard-findings .word-list span {
  padding: 7px 10px;
  border: 1px solid #bfe4dc;
  border-radius: 5px;
  background: #fff;
  color: var(--obs-copy);
  font-size: 12px;
  font-weight: 700;
}
body:has(.global-header) .dashboard-findings .word-list strong {
  color: var(--obs-jade);
  font-variant-numeric: tabular-nums;
}

body:has(.global-header) .forecast-grid {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #f0d9ad;
  border-radius: 8px;
  background: #fffaf0;
}

body:has(.global-header) .forecast-panel-primary { background: #fffaf0; }
body:has(.global-header) .forecast-index { color: var(--obs-amber); }

body:has(.global-header) .intelligence-block,
body:has(.global-header) .ranking-table,
body:has(.global-header) .matrix-wrap,
body:has(.global-header) .actor-profile-detail,
body:has(.global-header) .actor-directory {
  border-color: var(--obs-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body:has(.global-header) .actor-topic-filter,
body:has(.global-header) .heat-cell-button,
body:has(.global-header) .action-button {
  border-radius: 5px;
}

body:has(.global-header) .actor-topic-filter[aria-pressed="true"],
body:has(.global-header) .heat-cell-button[aria-pressed="true"] { background: var(--obs-jade); color: #fff; }

/* News search and list follow the same application language. */
body:has(.global-header) .toolbar {
  position: relative;
  scroll-margin-top: 92px;
  margin-top: 34px;
  padding: 16px;
  border: 1px solid var(--obs-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--obs-shadow);
}

body:has(.global-header) .toolbar::before {
  content: "Explorar noticias";
  grid-column: 1 / -1;
  color: var(--obs-ink);
  font-family: Montserrat, Manrope, sans-serif;
  font-size: 17px;
  font-weight: 750;
}

body:has(.global-header) .control {
  min-height: 46px;
  border: 1px solid var(--obs-line-strong);
  border-radius: 5px;
  background-color: #fbfcfd;
  color: var(--obs-ink);
  font-size: 13px;
}

body:has(.global-header) .control:focus {
  border-color: var(--obs-jade);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(8, 123, 104, 0.12);
}

body:has(.global-header) .result-line { padding: 15px 2px 11px; color: var(--obs-muted); font-size: 12px; }
body:has(.global-header) .clear-button { color: var(--obs-jade); font-weight: 750; }
body:has(.global-header) .feed { display: grid; gap: 10px; }

body:has(.global-header) .news-item,
body:has(.global-header) .news-item.has-image,
body:has(.global-header) .news-item:not(.has-image) {
  min-height: 154px;
  padding: 14px;
  border: 1px solid var(--obs-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(15, 31, 51, 0.025);
}

body:has(.global-header) .news-item:hover {
  border-color: #aebdca;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 31, 51, 0.08);
  transform: translateY(-1px);
}

body:has(.global-header) .news-index {
  color: #91a0b2;
  font-family: Montserrat, Manrope, sans-serif;
  font-size: 24px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

body:has(.global-header) .news-media { min-height: 124px; border-radius: 6px; }

body:has(.global-header) .news-title {
  color: var(--obs-ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 760;
  line-height: 1.28;
  letter-spacing: 0;
}

body:has(.global-header) .news-source,
body:has(.global-header) .news-category { border-radius: 4px; font-size: 10px; }
body:has(.global-header) .open-link { color: var(--obs-jade); font-weight: 800; }

@media (max-width: 1080px) {
  body:has(.global-header) .observatory-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr); gap: 34px; }
  body:has(.global-header) .situation-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "lead lead" "kpi1 kpi2" "kpi3 kpi4" "quality quality"; }
  body:has(.global-header) .deck-lead,
  body:has(.global-header) .deck-kpi { min-height: 146px; border-bottom: 1px solid var(--obs-line); }
  body:has(.global-header) .deck-kpi:nth-of-type(3),
  body:has(.global-header) .deck-kpi:nth-of-type(5) { border-right: 0; }
}

@media (max-width: 820px) {
  body:has(.global-header) .observatory-hero { display: flex; min-height: 0; flex-direction: column; padding-bottom: 0; }
  body:has(.global-header) .observatory-hero__inner { display: contents; }
  body:has(.global-header) .observatory-hero__copy { order: 1; max-width: none; padding: 38px 22px 28px; }
  body:has(.global-header) .observatory-hero__scene { position: relative; order: 2; inset: auto; width: calc(100% - 44px); height: 300px; margin: 0 22px; }
  body:has(.global-header) .observatory-hero__metrics { position: relative; order: 3; inset: auto; width: calc(100% - 44px); margin: 20px 22px 28px; }
  body:has(.global-header) .observatory-hero__source { right: 36px; bottom: 126px; }
  body:has(.global-header) #observatorio-feed { width: min(100% - 40px, 760px); }
  body:has(.global-header) .analytics .stat-tabs { overflow-x: auto; padding: 0 8px; }
  body:has(.global-header) .analytics .stat-tab { flex: 0 0 138px; }
  body:has(.global-header) .analytics .analysis-grid { grid-template-columns: 1fr; }
  body:has(.global-header) .analytics .analysis-grid > div + div { border-top: 1px solid var(--obs-line); border-left: 0; }
  body:has(.global-header) .quality-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:has(.global-header) .quality-rail > div { border-bottom: 1px solid var(--obs-line); }
  body:has(.global-header) .quality-rail > div:nth-child(2n) { border-right: 0; }
}

@media (max-width: 620px) {
  body:has(.global-header) .observatory-hero__copy { padding: 26px 16px 20px; }
  body:has(.global-header) .observatory-hero__badge { margin-bottom: 16px; }
  body:has(.global-header) .observatory-hero h1 { font-size: 34px; }
  body:has(.global-header) .observatory-hero__statement { margin-top: 14px; font-size: 22px; }
  body:has(.global-header) .observatory-hero__description { margin-top: 12px; font-size: 13px; line-height: 1.48; }
  body:has(.global-header) .observatory-hero__actions { margin-top: 18px; }
  body:has(.global-header) .observatory-hero__action { min-height: 40px; padding-inline: 13px; }
  body:has(.global-header) .observatory-hero__scene { width: calc(100% - 32px); height: 180px; margin-inline: 16px; }
  body:has(.global-header) .observatory-hero__inset { width: 32%; }
  body:has(.global-header) .observatory-hero__ai-note { left: 10px; bottom: 10px; width: 166px; min-height: 62px; padding: 10px 10px 10px 48px; }
  body:has(.global-header) .observatory-hero__ai-note::before { left: 11px; top: 17px; width: 24px; height: 24px; }
  body:has(.global-header) .observatory-hero__ai-note strong { font-size: 13px; }
  body:has(.global-header) .observatory-hero__metrics { width: calc(100% - 32px); grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 16px 22px; }
  body:has(.global-header) .observatory-hero__metric { min-height: 62px; padding: 9px 8px; border-right: 1px solid var(--obs-line); border-bottom: 0; }
  body:has(.global-header) .observatory-hero__metric:last-child { border-right: 0; }
  body:has(.global-header) .observatory-hero__metric::before { width: 6px; height: 6px; margin-right: 7px; box-shadow: 0 0 0 3px var(--obs-jade-pale); }
  body:has(.global-header) .observatory-hero__metric-value { font-size: 20px; }
  body:has(.global-header) .observatory-hero__metric-label { font-size: 7px; }
  body:has(.global-header) .observatory-hero__source { bottom: 101px; max-width: 33ch; font-size: 7px; }
  body:has(.global-header) #observatorio-feed { width: calc(100% - 28px); }
  body:has(.global-header) .analytics { padding-top: 38px; }
  body:has(.global-header) .analytics > .section-heading { align-items: flex-start; }
  body:has(.global-header) .analytics > .section-heading h2 { font-size: 29px; }
  body:has(.global-header) .snapshot-badge { width: 100%; min-width: 0; }
  body:has(.global-header) .situation-deck { grid-template-columns: 1fr; grid-template-areas: "lead" "kpi1" "kpi2" "kpi3" "kpi4" "quality"; }
  body:has(.global-header) .deck-lead,
  body:has(.global-header) .deck-kpi { min-height: 132px; border-right: 0; }
  body:has(.global-header) .quality-rail { grid-template-columns: 1fr; }
  body:has(.global-header) .quality-rail > div { min-height: 62px; border-right: 0; }
  body:has(.global-header) .analytics .stat-panel { padding: 18px 14px; }
  body:has(.global-header) .toolbar { grid-template-columns: 1fr; margin-top: 26px; padding: 14px; }
  body:has(.global-header) .news-item,
  body:has(.global-header) .news-item.has-image,
  body:has(.global-header) .news-item:not(.has-image) { gap: 12px; padding: 12px; }
  body:has(.global-header) .news-media { min-height: 190px; }
  body:has(.global-header) .news-title { font-size: 18px; }
}

/* Contrast repair for public-facing findings and coverage alerts. */
body:has(.global-header) .dashboard-findings .signal,
body:has(.global-header) .dashboard-findings .signal:not(:first-child),
body:has(.global-header) .dashboard-findings .signal:nth-child(even) {
  min-height: 170px;
  padding: 32px;
  border: 1px solid #b9d9d2;
  border-top: 3px solid var(--obs-jade) !important;
  border-radius: 6px;
  background: #fff;
  color: #35445a;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

body:has(.global-header) .dashboard-findings .signal strong,
body:has(.global-header) .dashboard-findings .signal:not(:first-child) strong,
body:has(.global-header) .dashboard-findings .signal:nth-child(even) strong {
  margin-bottom: 12px;
  color: #0f1f33;
  font-family: Montserrat, Manrope, sans-serif;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.12;
}

body:has(.global-header) .dashboard-findings .word-list::before {
  color: #086754;
  font-size: 12px;
  font-weight: 800;
}

body:has(.global-header) .forecast-panel-primary,
body:has(.global-header) .forecast-panel-primary .forecast-heading,
body:has(.global-header) .forecast-panel-primary .gap-row {
  color: #273548;
}

body:has(.global-header) .forecast-panel-primary .section-kicker { color: #086754; }
body:has(.global-header) .forecast-panel-primary .forecast-heading h3 { color: #0f1f33; font-size: 24px; }
body:has(.global-header) .forecast-panel-primary .forecast-heading p { color: #526174; font-size: 14px; line-height: 1.5; }
body:has(.global-header) .forecast-panel-primary .gap-row { min-height: 48px; font-size: 14px; }
body:has(.global-header) .forecast-panel-primary .gap-row span { color: #405168; font-size: 13px; }

@media (max-width: 620px) {
  body:has(.global-header) .dashboard-findings .signal,
  body:has(.global-header) .dashboard-findings .signal:not(:first-child),
  body:has(.global-header) .dashboard-findings .signal:nth-child(even) {
    min-height: 0;
    padding: 24px 20px;
  }
}

/* Data-room charts: visual hierarchy and encodings follow the data, not decoration. */
body:has(.global-header) .analytics .stat-panel {
  --chart-grid: #dfe7ec;
  --chart-track: #e9eef2;
  --chart-axis: #697789;
}

body:has(.global-header) .analytics .analysis-heading {
  align-items: start;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--obs-line);
}

body:has(.global-header) .analytics .analysis-heading::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--obs-jade-bright);
  box-shadow: 0 0 0 5px var(--obs-jade-pale);
  content: "";
}

body:has(.global-header) .analytics .analysis-heading .analysis-title { margin-right: auto; }
body:has(.global-header) .analytics .analysis-heading .analysis-note { max-width: 32ch; text-align: right; }

body:has(.global-header) .analytics .analysis-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr);
}

body:has(.global-header) .analytics .analysis-grid > div {
  min-height: 410px;
  padding: 26px 28px 30px;
}

body:has(.global-header) .bar-list { gap: 2px; }

body:has(.global-header) .bar-list .bar-row {
  grid-template-columns: 26px minmax(130px, .7fr) minmax(170px, 1.5fr) 62px;
  min-height: 35px;
  gap: 11px;
  padding: 3px 0;
  border-bottom: 1px solid #edf1f4;
}

body:has(.global-header) .bar-list .bar-row:last-child { border-bottom: 0; }

body:has(.global-header) .chart-rank {
  color: #7b8796;
  font-family: Montserrat, Manrope, sans-serif;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

body:has(.global-header) .bar-list .topic-label { min-width: 0; font-size: 13px; }
body:has(.global-header) .bar-list .topic-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

body:has(.global-header) .bar-track {
  position: relative;
  height: 12px;
  overflow: visible;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--chart-track) 0, var(--chart-track) calc(25% - 1px), #fff calc(25% - 1px), #fff 25%);
}

body:has(.global-header) .bar-fill {
  position: relative;
  min-width: 3px;
  border-radius: 2px;
  background: var(--bar-color, var(--obs-jade));
}

body:has(.global-header) .bar-fill::after {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--bar-color, var(--obs-jade));
  box-shadow: 0 0 0 1px var(--bar-color, var(--obs-jade));
  content: "";
  transform: translateY(-50%);
}

body:has(.global-header) .bar-row > strong,
body:has(.global-header) .topic-row > strong,
body:has(.global-header) .sentiment-row > strong {
  display: grid;
  color: var(--obs-ink);
  font-family: Montserrat, Manrope, sans-serif;
  font-size: 22px;
  line-height: 1;
  text-align: right;
}

body:has(.global-header) .bar-row > strong small,
body:has(.global-header) .topic-row > strong small,
body:has(.global-header) .sentiment-row > strong small {
  margin-top: 4px;
  color: var(--chart-axis);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

body:has(.global-header) .weekly-bars {
  display: block;
  height: 310px;
  min-height: 310px;
  border: 0;
}

body:has(.global-header) .weekly-chart {
  position: relative;
  height: 100%;
  padding: 10px 0 0;
}

body:has(.global-header) .weekly-plot {
  display: block;
  width: 100%;
  height: 248px;
  overflow: visible;
}

body:has(.global-header) .weekly-plot line {
  stroke: var(--chart-grid);
  stroke-width: .45;
  vector-effect: non-scaling-stroke;
}

body:has(.global-header) .weekly-area { fill: rgba(8, 123, 104, .1); stroke: none; }
body:has(.global-header) .weekly-line { fill: none; stroke: var(--obs-jade); stroke-width: 2.1; vector-effect: non-scaling-stroke; }
body:has(.global-header) .weekly-plot circle { fill: #fff; stroke: var(--obs-jade); stroke-width: 2.4; vector-effect: non-scaling-stroke; }

body:has(.global-header) .weekly-axis {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

body:has(.global-header) .weekly-axis .week-column {
  display: grid;
  gap: 3px;
  text-align: center;
}

body:has(.global-header) .weekly-axis .week-column strong { color: var(--obs-ink); font-size: 18px; }
body:has(.global-header) .weekly-axis .week-column > span { margin: 0; color: var(--chart-axis); font-size: 12px; }

body:has(.global-header) .intelligence-split { gap: 24px; }

body:has(.global-header) .agenda-row {
  grid-template-columns: minmax(150px, 1fr) 56px 88px;
  min-height: 60px;
  margin-bottom: 5px;
  padding: 8px 12px;
  border: 1px solid var(--obs-line);
  border-left: 5px solid var(--topic-color, var(--obs-jade));
  border-radius: 5px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--topic-color) 11%, #fff) 0 var(--agenda-share, 0%), #fff var(--agenda-share, 0%));
}

body:has(.global-header) .agenda-row > strong { color: var(--obs-ink); font-size: 24px; text-align: right; }

body:has(.global-header) .topic-summary {
  grid-template-columns: minmax(330px, .82fr) minmax(0, 1.55fr);
  gap: 34px;
}

body:has(.global-header) .topic-summary > div { min-width: 0; }

body:has(.global-header) .topic-list { border-top: 0; }

body:has(.global-header) .topic-row {
  grid-template-columns: minmax(138px, .9fr) minmax(90px, 1fr) 58px 70px;
  min-height: 52px;
  gap: 12px;
  border-bottom: 1px solid var(--obs-line);
}

body:has(.global-header) .topic-row-track {
  height: 9px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--chart-track);
}

body:has(.global-header) .topic-row-track i {
  display: block;
  width: var(--topic-share);
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: var(--topic-color);
}

body:has(.global-header) .topic-row > span:last-child { font-size: 12px; }

body:has(.global-header) .matrix-wrap {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--obs-line);
  border-radius: 6px;
  background: #fff;
}

body:has(.global-header) .topic-matrix { min-width: 980px; border-collapse: separate; border-spacing: 3px; padding: 5px; }
body:has(.global-header) .topic-matrix th,
body:has(.global-header) .topic-matrix td { height: 38px; padding: 3px; border: 0; }
body:has(.global-header) .topic-matrix th { min-width: 82px; background: #f4f7f9; font-size: 12px; line-height: 1.2; white-space: normal; }
body:has(.global-header) .topic-matrix th:first-child,
body:has(.global-header) .topic-matrix td:first-child { z-index: 2; min-width: 175px; padding-inline: 10px; background: #fff; font-weight: 750; }

body:has(.global-header) .heat-cell-button {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(8, 123, 104, .12);
  background: rgba(8, 123, 104, var(--heat-opacity));
  color: #123b35;
  font-family: Montserrat, Manrope, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

body:has(.global-header) .heat-cell-button:hover { border-color: var(--obs-jade); outline: 2px solid rgba(8, 123, 104, .16); }
body:has(.global-header) .matrix-detail { min-height: 48px; margin-top: 10px; padding: 11px 14px; border-left: 4px solid var(--obs-jade); background: var(--obs-jade-pale); }

body:has(.global-header) .province-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  background: transparent;
}

body:has(.global-header) .province-cell {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(15, 31, 51, .08);
  border-radius: 5px;
}

body:has(.global-header) .province-cell::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: currentColor;
  content: "";
  opacity: .35;
}

body:has(.global-header) .province-cell strong { max-width: 16ch; font-size: 13px; }
body:has(.global-header) .province-cell span b { font-size: 30px; }
body:has(.global-header) .province-cell.heat-level-0 { background: #f2f5f5; color: #51615e; }
body:has(.global-header) .province-cell.heat-level-1 { background: #dceee9; color: #174f47; }
body:has(.global-header) .province-cell.heat-level-2 { background: #9ecfc2; color: #103c35; }
body:has(.global-header) .province-cell.heat-level-3 { background: #e9bd69; color: #4a3310; }
body:has(.global-header) .province-cell.heat-level-4 { background: #a33d38; color: #fff; }

body:has(.global-header) .sentiment-bars { gap: 18px; padding: 16px 0; }
body:has(.global-header) .sentiment-row { grid-template-columns: 82px minmax(0, 1fr) 92px; min-height: 58px; gap: 14px; }
body:has(.global-header) .sentiment-row > span:first-child { color: var(--obs-ink); font-size: 14px; font-weight: 750; }
body:has(.global-header) .sentiment-track { height: 18px; overflow: hidden; border-radius: 3px; background: var(--chart-track); }
body:has(.global-header) .sentiment-fill { border-radius: 3px; }
body:has(.global-header) .sentiment-positivo .sentiment-fill { background: #16876f; }
body:has(.global-header) .sentiment-neutral .sentiment-fill { background: #60738a; }
body:has(.global-header) .sentiment-negativo .sentiment-fill { background: #bb4d57; }

body:has(.global-header) .ranking-table { overflow: hidden; border: 1px solid var(--obs-line); }
body:has(.global-header) .ranking-row { min-height: 58px; padding: 8px 16px; }
body:has(.global-header) .ranking-row:nth-child(even) { background: #f8fafb; }
body:has(.global-header) .ranking-row.is-head { min-height: 42px; background: #eef3f5; color: #465568; }
body:has(.global-header) .ranking-total { color: var(--obs-ink); font-size: 22px; }
body:has(.global-header) .ranking-share-track { height: 10px; border-radius: 2px; background: var(--chart-track); }
body:has(.global-header) .ranking-share-fill { border-radius: 2px; background: var(--obs-blue); }

body:has(.global-header) .actor-network-map { border-radius: 6px; background: #f8fafb; }
body:has(.global-header) .actor-relation { grid-template-columns: minmax(150px, .8fr) minmax(320px, 1.7fr) minmax(150px, .8fr); background: #fff; }
body:has(.global-header) .relation-actor { position: relative; background: #f4f7f7; }
body:has(.global-header) .relation-actor strong { font-size: 16px; }
body:has(.global-header) .relation-evidence { border-inline: 1px solid var(--obs-line); background: #fff; }
body:has(.global-header) .relation-evidence::before,
body:has(.global-header) .relation-evidence::after { height: 2px; background: var(--relation-color); }
body:has(.global-header) .relation-evidence::before { clip-path: polygon(0 0, calc(100% - 8px) 0, calc(100% - 8px) -4px, 100% 50%, calc(100% - 8px) calc(100% + 4px), calc(100% - 8px) 100%, 0 100%); }
body:has(.global-header) .relation-evidence::after { clip-path: polygon(100% 0, 8px 0, 8px -4px, 0 50%, 8px calc(100% + 4px), 8px 100%, 100% 100%); }
body:has(.global-header) .relation-count { font-size: 15px; }

body:has(.global-header) .timeline-list { grid-auto-columns: minmax(280px, 31%); padding-top: 62px; border-top: 0; }
body:has(.global-header) .timeline-list::before { top: 34px; height: 3px; background: #c2d6d1; }
body:has(.global-header) .timeline-row { min-height: 255px; padding: 0 24px 24px; border-left: 0; }
body:has(.global-header) .timeline-row::before { top: -36px; width: 16px; height: 16px; border-width: 4px; }
body:has(.global-header) .timeline-date { display: inline-block; margin-bottom: 13px; padding: 5px 8px; border-radius: 3px; background: #edf3f2; color: #354b47; }
body:has(.global-header) .timeline-title { font-size: 14px; line-height: 1.45; }

@media (max-width: 1000px) {
  body:has(.global-header) .analytics .analysis-grid,
  body:has(.global-header) .topic-summary { grid-template-columns: 1fr; }
  body:has(.global-header) .analytics .analysis-grid > div + div { border-top: 1px solid var(--obs-line); border-left: 0; }
  body:has(.global-header) .province-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body:has(.global-header) .analytics .analysis-heading { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 9px; }
  body:has(.global-header) .analytics .analysis-heading .analysis-note { grid-column: 2; max-width: none; text-align: left; }
  body:has(.global-header) .analytics .analysis-grid > div { min-height: 0; padding: 20px 14px 24px; }
  body:has(.global-header) .bar-list .bar-row { grid-template-columns: 22px minmax(105px, .9fr) minmax(65px, 1fr) 48px; gap: 7px; }
  body:has(.global-header) .bar-list .topic-label { font-size: 12px; }
  body:has(.global-header) .bar-row > strong,
  body:has(.global-header) .topic-row > strong,
  body:has(.global-header) .sentiment-row > strong { font-size: 18px; }
  body:has(.global-header) .weekly-bars { height: 260px; min-height: 260px; }
  body:has(.global-header) .weekly-plot { height: 202px; }
  body:has(.global-header) .weekly-axis .week-column strong { font-size: 15px; }
  body:has(.global-header) .topic-row { grid-template-columns: minmax(112px, 1fr) 52px 62px; gap: 8px; padding-block: 7px; }
  body:has(.global-header) .topic-row-track { grid-column: 1 / -1; grid-row: 2; }
  body:has(.global-header) .province-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:has(.global-header) .province-cell { min-height: 100px; padding: 12px; }
  body:has(.global-header) .sentiment-row { grid-template-columns: 68px minmax(0, 1fr) 74px; gap: 9px; }
  body:has(.global-header) .ranking-row { padding-inline: 11px; }
  body:has(.global-header) .actor-relation { grid-template-columns: 1fr; }
  body:has(.global-header) .relation-evidence { border-block: 1px solid var(--obs-line); border-inline: 0; }
  body:has(.global-header) .timeline-list { grid-auto-columns: minmax(260px, 84vw); }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.global-header) .news-item,
  body:has(.global-header) .control,
  body:has(.global-header) .stat-tab,
  body:has(.global-header) .observatory-hero__action { transition: none; }
}

/* Typography contract: readable at real size across every generated panel. */
body:has(.global-header) .section-kicker,
body:has(.global-header) .analysis-note,
body:has(.global-header) .method-note,
body:has(.global-header) .actor-explorer-kicker,
body:has(.global-header) .trend,
body:has(.global-header) .heat-legend span,
body:has(.global-header) .sentiment-bars span,
body:has(.global-header) .topic-list span,
body:has(.global-header) .intelligence-list span,
body:has(.global-header) .emerging-list span,
body:has(.global-header) .gap-list span,
body:has(.global-header) .actor-topic-filter,
body:has(.global-header) .actor-topic-filter span,
body:has(.global-header) .actor-network-map span,
body:has(.global-header) .actor-directory span,
body:has(.global-header) .actor-directory small,
body:has(.global-header) .actor-profile-detail span,
body:has(.global-header) .actor-profile-detail small,
body:has(.global-header) .case-list span,
body:has(.global-header) .timeline-list span,
body:has(.global-header) .ranking-table span,
body:has(.global-header) .topic-matrix th,
body:has(.global-header) .topic-matrix td,
body:has(.global-header) .matrix-detail,
body:has(.global-header) .matrix-detail strong {
  font-size: 12px;
  line-height: 1.4;
}

body:has(.global-header) .dashboard-findings .word-list::before,
body:has(.global-header) .dashboard-findings .word-list span,
body:has(.global-header) .dashboard-findings .word-list span strong {
  font-size: 12px;
}

body:has(.global-header) .control {
  font-size: 15px;
  line-height: 1.35;
}

body:has(.global-header) .analytics .stat-tab {
  font-size: 15px;
  line-height: 1.35;
}

body:has(.global-header) .news-source,
body:has(.global-header) .news-category,
body:has(.global-header) .news-category span,
body:has(.global-header) .news-intelligence,
body:has(.global-header) .news-intelligence span,
body:has(.global-header) .news-intelligence strong,
body:has(.global-header) .news-photo-source {
  font-size: 12px;
  line-height: 1.35;
}

body:has(.global-header) .news-summary {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.5;
}

body:has(.global-header) .news-date,
body:has(.global-header) .open-link,
body:has(.global-header) .result-line,
body:has(.global-header) .clear-button {
  font-size: 14px;
  line-height: 1.4;
}

body:has(.global-header) .news-title,
body:has(.global-header) .analysis-title,
body:has(.global-header) .analytics > .section-heading h2 {
  text-wrap: balance;
}

body:has(.global-header) .deck-kpi-value,
body:has(.global-header) .deck-lead-value,
body:has(.global-header) .quality-rail strong,
body:has(.global-header) .observatory-hero__metric-value,
body:has(.global-header) .news-index,
body:has(.global-header) .ranking-total {
  font-variant-numeric: tabular-nums;
}

body:has(.global-header) .observatory-hero__badge,
body:has(.global-header) .observatory-hero__ai-note span,
body:has(.global-header) .observatory-hero__metric-label,
body:has(.global-header) .observatory-hero__source {
  font-size: 12px;
  line-height: 1.35;
}

body:has(.global-header) .observatory-hero__description,
body:has(.global-header) .section-summary,
body:has(.global-header) .dashboard-findings__heading p,
body:has(.global-header) .dashboard-findings .signal {
  font-size: 16px;
  line-height: 1.55;
}

body:has(.global-header) .snapshot-badge .snapshot-live,
body:has(.global-header) .snapshot-badge .snapshot-cycle,
body:has(.global-header) .deck-index,
body:has(.global-header) .deck-lead .deck-index,
body:has(.global-header) .quality-rail span,
body:has(.global-header) .actor-related-button,
body:has(.global-header) .case-row strong,
body:has(.global-header) .timeline-date {
  font-size: 12px;
  line-height: 1.4;
}

body:has(.global-header) .week-column > span:last-child {
  font-size: 12px;
  line-height: 1.3;
}

body:has(.global-header) .snapshot-badge .snapshot-live {
  color: #086754 !important;
  font-size: 12px !important;
}

body:has(.global-header) .snapshot-badge .snapshot-cycle {
  color: #405c55 !important;
  font-size: 12px !important;
}

body:has(.global-header) .analysis-note,
body:has(.global-header) .method-note,
body:has(.global-header) .matrix-detail,
body:has(.global-header) .ranking-head span {
  color: #4b596b !important;
}

body:has(.global-header) .dashboard-findings .section-kicker {
  color: #086754 !important;
}

body:has(.global-header) .topic-label,
body:has(.global-header) .topic-label > span,
body:has(.global-header) .actor-topic-filter,
body:has(.global-header) .actor-topic-filter > span,
body:has(.global-header) .actor-topic-filter > b {
  color: #35445a !important;
}

body:has(.global-header) .topic-label .topic-icon,
body:has(.global-header) .actor-topic-filter .topic-icon {
  color: var(--topic-color, var(--obs-jade)) !important;
}

body:has(.global-header) .actor-topic-filter[aria-pressed="true"],
body:has(.global-header) .actor-topic-filter[aria-pressed="true"] > span,
body:has(.global-header) .actor-topic-filter[aria-pressed="true"] > b,
body:has(.global-header) .actor-topic-filter[aria-pressed="true"] .topic-icon {
  color: #fff !important;
}

body:has(.global-header) .dashboard-findings .word-list span strong,
body:has(.global-header) .relation-count {
  color: #086754 !important;
}

body:has(.global-header) .relation-actor > span,
body:has(.global-header) .actor-type,
body:has(.global-header) .topic-matrix th,
body:has(.global-header) .topic-matrix th * {
  color: #4b596b !important;
}

body:has(.global-header) .heat-cell-button:not([aria-pressed="true"]),
body:has(.global-header) .heat-cell-button:not([aria-pressed="true"]) * {
  color: #163f38 !important;
}

body:has(.global-header) .heat-cell-button[aria-pressed="true"],
body:has(.global-header) .heat-cell-button[aria-pressed="true"] * {
  color: #fff !important;
}

body:has(.global-header) .province-cell.heat-level-4 {
  background: #a33d38;
  color: #fff;
}

body:has(.global-header) .period-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #c9e2dc;
  border-radius: 8px;
  background: #f5fbf9;
}

body:has(.global-header) .period-toolbar__label,
body:has(.global-header) .period-toolbar__controls label {
  display: block;
  color: #086754;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body:has(.global-header) .period-toolbar__label + strong {
  display: block;
  margin-top: 3px;
  color: #102d3d;
  font-size: 20px;
  line-height: 1.2;
}

body:has(.global-header) .period-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

body:has(.global-header) .period-toolbar__controls label {
  color: #405c55;
  letter-spacing: 0;
  text-transform: none;
}

body:has(.global-header) .period-control {
  min-height: 40px;
  border: 1px solid #a9d3ca;
  border-radius: 5px;
  background: #fff;
  color: #102d3d;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
}

body:has(.global-header) .period-control:focus {
  outline: 3px solid rgba(8, 103, 84, .18);
  outline-offset: 2px;
  border-color: #086754;
}

body:has(.global-header) .period-date-label {
  margin-left: 4px;
}

@media (max-width: 700px) {
  body:has(.global-header) .period-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  body:has(.global-header) .period-toolbar__controls {
    flex-wrap: wrap;
  }

  body:has(.global-header) .period-control {
    flex: 1 1 150px;
  }
}

@media (max-width: 620px) {
  body:has(.global-header) .observatory-hero__metrics {
    align-items: stretch;
    grid-template-columns: 0.9fr 0.75fr 1.35fr;
  }

  body:has(.global-header) .observatory-hero__metric {
    min-height: 78px;
    align-content: center;
  }

  body:has(.global-header) .observatory-hero__metric-label {
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
  }

  body:has(.global-header) .observatory-hero__source {
    right: 24px;
    bottom: 124px;
    max-width: 25ch;
    padding: 4px 7px;
    border-radius: 4px;
    background: rgba(6, 21, 34, 0.82);
    font-size: 12px;
    line-height: 1.25;
  }
}

/* Filtros temporales dentro de Explorar noticias */
body:has(.global-header) .toolbar {
  grid-template-columns: minmax(260px, 1.7fr) minmax(170px, .72fr) minmax(150px, .62fr) minmax(180px, .78fr) minmax(165px, .7fr);
}

body:has(.global-header) .toolbar .explore-date:disabled {
  cursor: not-allowed;
  background: #eef3f2;
  color: #778784;
  opacity: .72;
}

@media (max-width: 1120px) {
  body:has(.global-header) .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.global-header) .toolbar #searchInput {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  body:has(.global-header) .toolbar,
  body:has(.global-header) .toolbar #searchInput {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}
#noticias {
  scroll-margin-top: 96px;
}

body:has(.global-header) .feed-actions {
  padding: 18px 22px 24px;
  border: 1px solid var(--obs-line);
  border-top: 0;
  background: #fff;
  text-align: center;
}

body:has(.global-header) .feed-actions[hidden] { display: none; }

body:has(.global-header) .load-more-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #087f6f;
  border-radius: 5px;
  background: #fff;
  color: #086754;
  font: 750 14px/1.35 Manrope, "Segoe UI", sans-serif;
  cursor: pointer;
}

body:has(.global-header) .load-more-button:hover,
body:has(.global-header) .load-more-button:focus-visible {
  background: #e9f5f1;
  outline: 3px solid rgba(8, 103, 84, .16);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  body:has(.global-header) .feed-actions { padding: 14px 16px 20px; }
  body:has(.global-header) .load-more-button { width: 100%; font-size: 15px; }
  body:has(.global-header) .feed { min-width: 0; }
  body:has(.global-header) .news-item,
  body:has(.global-header) .news-item.has-image,
  body:has(.global-header) .news-item:not(.has-image) {
    width: 100%;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    content-visibility: auto;
    contain-intrinsic-size: 360px;
  }
  body:has(.global-header) .news-index { grid-column: 1; }
  body:has(.global-header) .news-media { width: 100%; min-width: 0; grid-column: 2; }
  body:has(.global-header) .news-copy,
  body:has(.global-header) .news-meta,
  body:has(.global-header) .news-item.has-image .news-meta { min-width: 0; grid-column: 1 / -1; }
}
