:root {
  --black: #070707;
  --ink: #191817;
  --paper: #efeee9;
  --paper-2: #dedbd2;
  --surface: rgba(250, 249, 244, 0.72);
  --surface-strong: rgba(250, 249, 244, 0.9);
  --line: #c7c3b8;
  --line-dark: #2b2a28;
  --gold: #9d7b2f;
  --gold-soft: #d7c47d;
  --red: #b91f16;
  --deep-red: #7d1612;
  --blue: #2d78b7;
  --green: #74a99b;
  --orange: #d97022;
  --risk: #cf3a26;
  --crisis: #851323;
  --muted: #74695d;
  --shadow-soft: 0 18px 45px rgba(32, 27, 22, 0.08);
  --shadow-subtle: 0 10px 26px rgba(32, 27, 22, 0.06);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, rgba(20, 20, 18, 0.022) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, rgba(20, 20, 18, 0.018) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #0b0b0a 0, #11100f 18.75rem, var(--paper) 18.75rem);
  background-size: auto, auto, auto;
  font-family: var(--serif);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
}

.topbar,
.brand,
.nav,
.main-grid,
.indicator-band,
.lower-grid,
.footer-grid,
.page {
  width: min(1860px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  background:
    radial-gradient(circle at 50% -8rem, rgba(236, 198, 111, 0.10), transparent 24rem),
    linear-gradient(180deg, #070707, #151210 76%, #090807);
  border-bottom: 1px solid rgba(234, 214, 160, 0.32);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.topbar {
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #f4f0e8;
  border-bottom: 1px solid rgba(234, 214, 160, 0.18);
  font-size: clamp(0.78rem, 0.95vw, 1.05rem);
}

.dateline,
.region-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  white-space: nowrap;
}

.region-nav {
  justify-content: center;
  font-size: clamp(0.96rem, 1.12vw, 1.22rem);
}

.region-nav [aria-disabled="true"] {
  color: rgba(244, 240, 232, 0.58);
  cursor: default;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.phase {
  justify-self: end;
  color: #f2d98f;
  border: 1px solid rgba(234, 214, 160, 0.58);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  letter-spacing: 0;
  font-family: var(--sans);
  background: rgba(255, 255, 255, 0.035);
}

.brand {
  height: 174px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(234, 214, 160, 0.38);
}

.brand img {
  width: min(1260px, 91vw);
  max-height: 148px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.38));
}

.brand-subtitle {
  color: #b6ada3;
  letter-spacing: 0.42rem;
  font-size: clamp(0.62rem, 0.82vw, 0.86rem);
  margin-top: -8px;
  text-align: center;
}

.nav {
  height: 50px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  color: #f6f1e8;
  border-bottom: 1px solid rgba(234, 214, 160, 0.18);
}

.nav a {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(234, 214, 160, 0.16);
  font-size: clamp(0.72rem, 0.82vw, 0.88rem);
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav a:last-child {
  border-right: 0;
}

.nav a.active {
  color: #f0d68b;
  border-bottom: 2px solid var(--gold-soft);
}

.nav a:hover {
  color: #f0d68b;
  background: rgba(234, 214, 160, 0.08);
}

.panel {
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.55);
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr minmax(470px, 1.55fr) 1.08fr;
  gap: 24px;
  padding: 22px 0 0;
}

.main-grid > aside,
.thermometer,
.map-panel {
  min-width: 0;
}

.section-title {
  margin: 0 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font: 700 0.78rem var(--sans);
  text-transform: uppercase;
  color: #5a4d3d;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 15px;
  padding: 12px;
  border: 1px solid rgba(216, 203, 182, 0.72);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.news-thumb {
  min-height: 82px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 42%),
    linear-gradient(145deg, rgba(0,0,0,0.34), rgba(0,0,0,0)),
    radial-gradient(circle at 28% 32%, rgba(241, 175, 45, 0.52), transparent 14%),
    linear-gradient(135deg, #85755f, #252525);
  border: 1px solid rgba(185, 171, 141, 0.72);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.news-thumb.institutional {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.11), transparent 45%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 8px, transparent 8px 22px),
    linear-gradient(135deg, #7d827c, #202024);
}

.news-thumb.economy {
  background:
    linear-gradient(145deg, rgba(0,0,0,0.22), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.18) 0 5px, transparent 5px 24px),
    linear-gradient(135deg, #384955, #c9c0ad);
}

.tag {
  color: var(--deep-red);
  font: 700 0.66rem var(--sans);
  text-transform: uppercase;
}

.tag.gold {
  color: #a36f00;
}

.tag.green {
  color: #2f765e;
}

.news-item h3,
.mini-card h3,
.editorial h3 {
  margin: 5px 0 6px;
  font-size: clamp(1rem, 1.15vw, 1.28rem);
  line-height: 1.12;
}

.news-item p,
.editorial p,
.mini-card p,
.method-copy p {
  margin: 0;
  line-height: 1.35;
}

.time {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
}

.link-row {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  font: 700 0.76rem var(--sans);
  text-transform: uppercase;
  color: #665948;
}

.thermometer {
  text-align: center;
  padding: 18px 28px 16px;
  border: 1px solid rgba(216, 203, 182, 0.88);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0.26)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(0.88rem, 1.05vw, 1.18rem);
}

.status-title {
  margin: 8px 0 6px;
  font-size: clamp(1.65rem, 2.35vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #251d17;
  text-shadow: 0 1px 0 rgba(255,255,255,0.88), 0 10px 22px rgba(0,0,0,0.08);
}

.lead {
  max-width: 740px;
  margin: 0 auto 10px;
  font-size: clamp(0.94rem, 1vw, 1.08rem);
  line-height: 1.35;
}

.gauge-wrap {
  position: relative;
  width: min(700px, 100%);
  margin: 0 auto;
  aspect-ratio: 2 / 1.05;
}

.gauge {
  width: 100%;
  height: 100%;
}

.needle {
  position: absolute;
  left: 50%;
  bottom: 24%;
  width: 5px;
  height: 38%;
  background: #141414;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(26deg);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}

.score {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  font-size: clamp(2.2rem, 3.6vw, 3.85rem);
  line-height: 1;
  white-space: nowrap;
}

.score small {
  font-size: 0.42em;
}

.score-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: clamp(0.83rem, 1vw, 1rem);
  text-transform: uppercase;
}

.update-strip,
.legend {
  display: flex;
  justify-content: center;
  gap: 34px;
  align-items: center;
  border-top: 1px solid rgba(216, 203, 182, 0.82);
  margin-top: 10px;
  padding: 13px 0;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.legend {
  margin-top: 0;
  gap: 22px;
  flex-wrap: wrap;
  border-bottom: 0;
}

.legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
}

.map-panel {
  padding: 16px;
  border: 1px solid rgba(216, 203, 182, 0.88);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.world-map {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(45, 120, 183, 0.08), transparent 66%),
    linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
  border: 1px solid rgba(216, 203, 182, 0.64);
  border-radius: 3px;
  margin-bottom: 12px;
}

.world-map img {
  width: 94%;
  max-height: 330px;
  object-fit: contain;
  opacity: 0.78;
  filter: grayscale(1) contrast(1.12);
}

.map-signal {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--risk);
  box-shadow: 0 0 0 6px rgba(207, 58, 38, 0.18);
}

.map-signal::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: 0.45;
  animation: mapPulse 2.8s ease-out infinite;
}

.signal-brazil { left: 35%; top: 63%; color: #d6a10d; background: #d6a10d; }
.signal-north { left: 23%; top: 38%; color: #d6a10d; background: #d6a10d; }
.signal-europe { left: 51%; top: 35%; color: #d6a10d; background: #d6a10d; }
.signal-africa { left: 52%; top: 57%; color: #cf3a26; background: #cf3a26; }
.signal-asia { left: 68%; top: 45%; color: #cf3a26; background: #cf3a26; }
.signal-latam { left: 30%; top: 58%; color: #d97022; background: #d97022; }

@keyframes mapPulse {
  from { transform: scale(0.62); opacity: 0.55; }
  to { transform: scale(1.85); opacity: 0; }
}

.map-button,
.outline-button {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(142, 128, 104, 0.76);
  background: rgba(255, 252, 246, 0.54);
  font: 700 0.78rem var(--sans);
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.map-button:hover,
.outline-button:hover,
.primary-button:hover {
  background: #201b16;
  color: #fff7e8;
}

.indicator-band {
  margin-top: 18px;
  border: 1px solid rgba(216, 203, 182, 0.86);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.band-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 8px;
}

.indicators {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.metric {
  min-height: 174px;
  padding: 16px;
  border-left: 1px solid rgba(216, 203, 182, 0.75);
  display: grid;
  align-content: start;
  gap: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,255,255,0.16));
}

.metric:first-child {
  border-left: 0;
}

.metric-top {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
}

.icon {
  font: 700 1.7rem var(--sans);
  color: #203b5b;
}

.metric h3 {
  margin: 0;
  font: 700 0.6rem var(--sans);
  text-transform: uppercase;
  color: #5f5347;
}

.metric .value {
  font-size: 1.9rem;
}

.metric .state {
  color: #c87700;
  font: 700 0.78rem var(--sans);
  text-transform: uppercase;
}

.spark {
  width: 100%;
  height: 36px;
  min-height: 36px;
}

.trend {
  font-size: 0.9rem;
}

.lower-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
  padding-top: 22px;
}

.reading-scale {
  width: min(1860px, calc(100% - 40px));
  margin: 22px auto 0;
  padding: 20px;
  border: 1px solid rgba(216, 203, 182, 0.86);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.scale-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 14px;
}

.scale-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.55vw, 1.75rem);
  text-transform: uppercase;
}

.scale-head p {
  margin: 0;
  max-width: 780px;
  line-height: 1.35;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(216, 203, 182, 0.76);
  background: rgba(255, 252, 246, 0.5);
}

.scale-card {
  min-height: 188px;
  padding: 18px;
  border-left: 1px solid rgba(216, 203, 182, 0.72);
  display: grid;
  align-content: start;
  gap: 7px;
}

.scale-card:first-child {
  border-left: 0;
}

.scale-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--scale-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--scale-color) 18%, transparent);
}

.scale-card strong {
  font-size: 1.55rem;
  line-height: 1;
}

.scale-card h3 {
  margin: 0;
  font-size: 1.02rem;
  text-transform: uppercase;
}

.scale-card p {
  margin: 0;
  line-height: 1.3;
}

.scale-card.stable {
  --scale-color: #27975c;
}

.scale-card.attention {
  --scale-color: #d6a10d;
}

.scale-card.alert {
  --scale-color: #ee7a19;
}

.scale-card.danger {
  --scale-color: #d62219;
}

.scale-card.collapse {
  --scale-color: #111111;
}

.editorial {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 15px;
  padding: 20px;
  border: 1px solid rgba(216, 203, 182, 0.86);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.dropcap {
  font-size: 4.2rem;
  line-height: 0.8;
}

.footer-grid {
  grid-template-columns: repeat(5, 1fr);
  padding: 22px 0 26px;
  border-top: 0;
}

.institutional-close {
  width: min(1860px, calc(100% - 40px));
  margin: 0 auto 24px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(32, 27, 22, 0.28);
  text-align: center;
}

.institutional-close p {
  margin: 4px 0;
}

.institutional-close blockquote {
  max-width: 920px;
  margin: 16px auto 0;
  padding: 12px 20px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.02rem, 1.2vw, 1.22rem);
  font-style: italic;
}

.mini-card {
  border-left: 0;
  padding: 16px;
  background: rgba(255, 252, 246, 0.48);
  border: 1px solid rgba(216, 203, 182, 0.68);
}

.mini-card:first-child {
  border-left: 0;
  padding-left: 16px;
}

.share {
  display: flex;
  gap: 12px;
  margin: 8px 0;
}

.share a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(142, 128, 104, 0.72);
  border-radius: 50%;
  font-family: var(--sans);
  background: rgba(255, 252, 246, 0.6);
}

.page {
  padding: 38px 0 58px;
}

.page h1 {
  margin: 0 0 10px;
  font-size: clamp(1.72rem, 2.35vw, 3rem);
  text-transform: uppercase;
}

.page-lead {
  max-width: 900px;
  font-size: 1.12rem;
  line-height: 1.45;
}

.archive-page {
  position: relative;
}

.archive-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 13px);
  mix-blend-mode: multiply;
}

.data-grid,
.history-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.page .data-grid {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
}

.technical-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(216, 203, 182, 0.86);
  margin-top: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.technical-strip article {
  min-height: 116px;
  padding: 18px;
  border-left: 1px solid rgba(216, 203, 182, 0.72);
  display: grid;
  align-content: center;
  gap: 4px;
}

.technical-strip article:first-child {
  border-left: 0;
}

.strip-label {
  font: 700 0.78rem var(--sans);
  text-transform: uppercase;
  color: var(--muted);
}

.technical-strip strong {
  font-size: clamp(1.25rem, 1.75vw, 2rem);
  line-height: 0.95;
}

.technical-strip small {
  font-size: 0.86rem;
  text-transform: uppercase;
}

.engine-audit,
.live-flow {
  margin-top: 18px;
  border: 1px solid rgba(216, 203, 182, 0.86);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.18)),
    var(--surface);
  box-shadow: var(--shadow-subtle);
}

.engine-audit {
  display: grid;
  grid-template-columns: minmax(280px, 0.64fr) 1fr;
  gap: 18px;
  padding: 18px;
}

.engine-audit > div:first-child {
  display: grid;
  align-content: center;
  gap: 8px;
}

.engine-audit strong {
  font-size: clamp(1.2rem, 1.8vw, 2rem);
  line-height: 1;
}

.engine-audit p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.engine-grid article {
  min-height: 98px;
  padding: 13px;
  border: 1px solid rgba(216, 203, 182, 0.74);
  background: rgba(255, 252, 246, 0.5);
  display: grid;
  align-content: center;
  gap: 8px;
}

.engine-grid span,
.flow-chip span,
.flow-chip small {
  font: 700 0.62rem var(--sans);
  text-transform: uppercase;
  color: var(--muted);
}

.engine-grid strong {
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  line-height: 1.05;
}

.live-flow {
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7,7,7,0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.2)),
    #f5ecde;
  background-size: 34px 100%, auto, auto;
}

.flow-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.flow-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.2rem, 1.55vw, 1.8rem);
  text-transform: uppercase;
}

.flow-head p {
  margin: 0;
  font: 700 0.72rem var(--sans);
  text-transform: uppercase;
  color: var(--muted);
}

.flow-viewport {
  overflow: hidden;
  border-block: 1px solid rgba(57, 49, 43, 0.26);
  padding: 12px 0;
}

.flow-rail {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: flowDrift 32s linear infinite;
}

.flow-chip {
  width: 210px;
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(57, 49, 43, 0.22);
  background: rgba(255, 252, 246, 0.72);
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.flow-chip strong {
  font-size: 1.1rem;
  line-height: 1.05;
}

.pulse-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.pulse-row {
  display: grid;
  grid-template-columns: 0.9fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(216, 203, 182, 0.74);
  background: rgba(255, 252, 246, 0.52);
}

.pulse-row span,
.pulse-row strong {
  font: 700 0.72rem var(--sans);
  text-transform: uppercase;
}

.pulse-track {
  height: 6px;
  overflow: hidden;
  background: rgba(32, 27, 22, 0.12);
}

.pulse-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--risk));
  animation: pulseWidth 2.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes flowDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulseWidth {
  0%, 100% { opacity: 0.72; transform: scaleX(0.86); transform-origin: left; }
  50% { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

.data-card,
.history-card,
.method-card {
  border: 1px solid rgba(216, 203, 182, 0.84);
  padding: 20px;
  min-height: 180px;
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.page .data-card {
  min-height: 148px;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.archive-page .history-grid {
  grid-template-columns: repeat(7, minmax(210px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.archive-page .history-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  min-height: 560px;
  padding: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.24)),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 6px),
    #e8e6de;
}

.archive-page .history-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 5px solid rgba(32, 27, 22, 0.78);
  pointer-events: none;
}

.archive-portraits {
  display: grid;
  grid-template-columns: repeat(var(--portrait-count, 1), minmax(0, 1fr));
  gap: 8px;
  min-height: 230px;
}

.archive-portraits figure {
  margin: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid rgba(57, 49, 43, 0.26);
  background: #d2d0c8;
}

.archive-portraits img {
  width: 100%;
  height: 228px;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.82) contrast(1.08) sepia(0.12);
  display: block;
}

.archive-portraits figcaption {
  min-height: 34px;
  padding: 6px 7px;
  font: 700 0.62rem var(--sans);
  line-height: 1.15;
  text-transform: uppercase;
  background: rgba(246, 245, 239, 0.88);
}

.archive-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  border-top: 1px solid rgba(57, 49, 43, 0.28);
  padding-top: 12px;
}

.archive-period {
  font: 700 0.72rem var(--sans);
  letter-spacing: 0;
  color: var(--deep-red);
  text-transform: uppercase;
}

.archive-page .history-card h2 {
  margin: 0;
  font-size: clamp(1.02rem, 1.18vw, 1.42rem);
  line-height: 1.05;
}

.archive-page .history-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.36;
}

.archive-score {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  border-top: 1px solid rgba(57, 49, 43, 0.22);
  padding-top: 12px;
}

.archive-score span {
  font: 700 0.62rem var(--sans);
  text-transform: uppercase;
  color: var(--muted);
}

.archive-score strong {
  font-size: 2.2rem;
  line-height: 0.9;
}

.archive-score small {
  font-size: 0.34em;
}

.meta-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.meta-list div {
  min-width: 0;
}

.meta-list dt {
  font: 700 0.67rem var(--sans);
  text-transform: uppercase;
  color: var(--muted);
}

.meta-list dd {
  margin: 3px 0 0;
  font-size: 0.95rem;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 28px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 203, 182, 0.86);
}

.source-table {
  border: 1px solid rgba(216, 203, 182, 0.84);
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.source-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.95fr) 0.6fr 0.35fr minmax(220px, 1.45fr);
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-top: 1px solid rgba(216, 203, 182, 0.72);
  font-size: 0.94rem;
  line-height: 1.22;
}

.source-row:first-child {
  border-top: 0;
}

.source-head {
  background: #201b16;
  color: #fff7e8;
  font: 700 0.76rem var(--sans);
  text-transform: uppercase;
}

.source-row strong {
  color: var(--deep-red);
}

.region-list {
  display: grid;
  gap: 10px;
}

.region-card {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(216, 203, 182, 0.84);
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-subtle);
}

.region-card h3 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.region-card p {
  margin: 0;
  line-height: 1.3;
}

.region-score {
  min-height: 74px;
  display: grid;
  place-items: center;
  text-align: center;
  border-left: 4px solid var(--region-color);
  background: linear-gradient(90deg, color-mix(in srgb, var(--region-color) 16%, transparent), transparent);
}

.region-score strong {
  font-size: 2rem;
  line-height: 1;
}

.region-score span {
  font: 700 0.72rem var(--sans);
  text-transform: uppercase;
  color: var(--region-color);
}

.data-card h2,
.history-card h2,
.method-card h2 {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 1rem;
}

.page .data-card h2 {
  margin-bottom: 2px;
  font: 700 0.78rem var(--sans);
  color: var(--muted);
}

.big-number {
  font-size: 1.9rem;
  line-height: 1;
}

.page .data-card .big-number {
  font-size: clamp(1.35rem, 1.55vw, 1.7rem);
}

.page .data-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.28;
}

.bar {
  height: 7px;
  background: #ded3bf;
  margin-top: 16px;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--risk));
}

.form-box {
  max-width: 720px;
  border: 1px solid rgba(216, 203, 182, 0.84);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.signup-page {
  padding-top: 30px;
}

.signup-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 0.72fr);
  gap: 28px;
  align-items: stretch;
}

.signup-copy {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: clamp(28px, 4vw, 56px);
  color: #fff7e8;
  background:
    linear-gradient(135deg, rgba(7, 7, 7, 0.94), rgba(32, 27, 22, 0.88)),
    url("assets/masthead-clima-democratico.png") center / cover;
  border: 1px solid rgba(234, 214, 160, 0.38);
  box-shadow: 0 30px 70px rgba(32, 27, 22, 0.18);
  display: grid;
  align-content: end;
}

.signup-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.48)),
    linear-gradient(90deg, rgba(189, 140, 18, 0.22), transparent 45%);
  pointer-events: none;
}

.signup-copy > * {
  position: relative;
}

.signup-eyebrow {
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(234, 214, 160, 0.46);
  color: #f0d68b;
  background: rgba(255,255,255,0.06);
  font: 700 0.72rem var(--sans);
  text-transform: uppercase;
}

.signup-copy h1 {
  margin-bottom: 12px;
  color: #fffaf0;
  text-shadow: 0 18px 42px rgba(0,0,0,0.45);
}

.signup-copy .page-lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: rgba(255, 250, 240, 0.86);
  font-size: clamp(1.08rem, 1.32vw, 1.32rem);
}

.signup-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.signup-points article {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(234, 214, 160, 0.28);
  background: rgba(255,255,255,0.075);
  backdrop-filter: blur(8px);
}

.signup-points strong {
  display: block;
  margin-bottom: 8px;
  color: #f0d68b;
  font: 700 0.76rem var(--sans);
  text-transform: uppercase;
}

.signup-points span {
  color: rgba(255, 250, 240, 0.78);
  line-height: 1.35;
}

.signup-form {
  max-width: none;
  padding: clamp(24px, 3vw, 38px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,252,246,0.72)),
    var(--paper);
}

.form-head {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(216, 203, 182, 0.86);
}

.form-head span {
  display: block;
  color: var(--deep-red);
  font: 700 0.76rem var(--sans);
  text-transform: uppercase;
}

.form-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 16px;
  color: #55483a;
  font: 700 0.74rem var(--sans);
  text-transform: uppercase;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(156, 140, 113, 0.72);
  border-radius: 3px;
  background: rgba(255, 250, 241, 0.82);
  color: var(--ink);
  font: 1rem var(--serif);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(189, 140, 18, 0.25);
  border-color: var(--gold);
  background: #fffdf8;
}

button {
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--deep-red);
  border-radius: 3px;
  background: linear-gradient(180deg, #9f2019, #7d1612);
  color: #fff;
  width: 100%;
  min-height: 50px;
  padding: 14px 18px;
  font: 700 0.84rem var(--sans);
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(125, 22, 18, 0.18);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  body {
    background:
      repeating-linear-gradient(0deg, rgba(20, 20, 18, 0.022) 0 1px, transparent 1px 6px),
      linear-gradient(180deg, #0d0c0b 0, #11100f 22rem, var(--paper) 22rem);
    background-size: auto, auto;
  }

  .topbar {
    grid-template-columns: 1fr;
    height: auto;
    gap: 10px;
    padding: 12px 0;
  }

  .dateline,
  .phase {
    justify-self: center;
  }

  .main-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .thermometer {
    order: -1;
  }

  .indicators,
  .footer-grid,
  .scale-grid,
  .data-grid,
  .history-grid,
  .method-grid,
  .technical-strip,
  .split-panel,
  .signup-hero,
  .engine-audit,
  .pulse-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .signup-hero {
    grid-template-columns: 1fr;
  }

  .archive-page .history-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .engine-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signup-copy {
    min-height: 460px;
  }

  .source-row {
    grid-template-columns: 1fr 0.55fr 0.32fr;
  }

  .source-row span:last-child {
    grid-column: 1 / -1;
  }

  .scale-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .metric:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 740px) {
  .topbar,
  .brand,
  .nav,
  .main-grid,
  .indicator-band,
  .reading-scale,
  .lower-grid,
  .footer-grid,
  .institutional-close,
  .page {
    width: min(100% - 22px, 1860px);
  }

  .brand {
    height: 124px;
  }

  .brand img {
    width: min(96vw, 760px);
    max-height: 106px;
  }

  .brand-subtitle {
    letter-spacing: 0.12rem;
    margin-top: -3px;
    font-size: 0.58rem;
  }

  .nav {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .nav a {
    min-height: 46px;
  }

  .main-grid {
    gap: 16px;
  }

  .thermometer {
    padding: 14px 12px;
  }

  .status-title {
    font-size: clamp(1.85rem, 10vw, 2.85rem);
  }

  .lead {
    font-size: 1rem;
  }

  .news-item,
  .editorial,
  .metric-top {
    grid-template-columns: 1fr;
  }

  .news-thumb {
    min-height: 96px;
  }

  .update-strip {
    flex-direction: column;
    gap: 8px;
  }

  .indicators,
  .footer-grid,
  .scale-grid,
  .data-grid,
  .history-grid,
  .method-grid,
  .technical-strip,
  .split-panel,
  .engine-audit,
  .engine-grid,
  .pulse-board,
  .signup-hero,
  .signup-points,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .archive-page .history-grid {
    grid-template-columns: 1fr;
  }

  .page .data-grid {
    grid-template-columns: 1fr;
  }

  .archive-page .history-card {
    min-height: auto;
  }

  .flow-head,
  .pulse-row {
    grid-template-columns: 1fr;
  }

  .flow-head {
    display: grid;
    align-items: start;
  }

  .signup-page {
    padding-top: 18px;
  }

  .signup-copy {
    min-height: auto;
    padding: 24px;
  }

  .signup-copy .page-lead {
    font-size: 1rem;
  }

  .signup-points article {
    min-height: auto;
  }

  .metric,
  .mini-card,
  .scale-card {
    border-left: 0;
    border-top: 1px solid rgba(216, 203, 182, 0.72);
  }

  .scale-card:first-child {
    border-top: 0;
  }

  .world-map {
    min-height: 210px;
  }

  .technical-strip article {
    border-left: 0;
    border-top: 1px solid rgba(216, 203, 182, 0.72);
  }

  .technical-strip article:first-child {
    border-top: 0;
  }

  .source-row,
  .region-card,
  .meta-list {
    grid-template-columns: 1fr;
  }

  .source-row span:last-child {
    grid-column: auto;
  }
}
