/* The logo's identity: navy #14151d, white and the blue wave #6595e9. */
:root {
  color-scheme: light;
  --navy: #14151d;
  --navy-2: #1d1f2b;
  --wave: #6595e9;
  --page: #ffffff;
  --band-alt: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #14151d;
  --text-2: #4a5265;
  --muted: #737b8f;
  --grid: #e4e8f0;
  --axis: #c3cad7;
  --border: rgba(20, 21, 29, 0.1);
  --brand: #2f6bd8;
  --observed: #2f6bd8;
  --forecast: #eb6834;
  --band: rgba(235, 104, 52, 0.2);
  --good: #0ca30c;
  --good-text: #006300;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --seq-0: #eef2f8;
  --seq-1: #cde2fb;
  --seq-2: #86b6ef;
  --seq-3: #3987e5;
  --seq-4: #1c5cab;
  --seq-5: #0d366b;
  --focus: #2f6bd8;
  --seq-ink-0: #14151d;
  --seq-ink-1: #14151d;
  --seq-ink-2: #14151d;
  --seq-ink-3: #ffffff;
  --seq-ink-4: #ffffff;
  --seq-ink-5: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 21, 29, 0.04), 0 8px 24px -12px rgba(20, 21, 29, 0.12);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --map-water: #cfe0f7;
  --map-land: #eceef3;
  --map-basin: #ffffff;
  --map-river: #3d78de;
  font-family: var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0e0f15;
    --band-alt: #13141c;
    --surface: #191b25;
    --surface-2: #232633;
    --text: #eef0f6;
    --text-2: #b4bbcb;
    --muted: #8189a0;
    --grid: #262a37;
    --axis: #383d4e;
    --border: rgba(255, 255, 255, 0.09);
    --brand: #8fb2f0;
    --observed: #6595e9;
    --forecast: #e0632f;
    --band: rgba(224, 99, 47, 0.28);
    --good-text: #3cc93c;
    --seq-0: #232633;
    --seq-1: #184f95;
    --seq-2: #256abf;
    --seq-3: #3987e5;
    --seq-4: #86b6ef;
    --seq-5: #cde2fb;
    --focus: #8fb2f0;
    --seq-ink-0: #eef0f6;
    --seq-ink-1: #ffffff;
    --seq-ink-2: #ffffff;
    --seq-ink-3: #ffffff;
    --seq-ink-4: #14151d;
    --seq-ink-5: #14151d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --map-water: #12233f;
    --map-land: #14151d;
    --map-basin: #20232f;
    --map-river: #6595e9;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0e0f15;
  --band-alt: #13141c;
  --surface: #191b25;
  --surface-2: #232633;
  --text: #eef0f6;
  --text-2: #b4bbcb;
  --muted: #8189a0;
  --grid: #262a37;
  --axis: #383d4e;
  --border: rgba(255, 255, 255, 0.09);
  --brand: #8fb2f0;
  --observed: #6595e9;
  --forecast: #e0632f;
  --band: rgba(224, 99, 47, 0.28);
  --good-text: #3cc93c;
  --seq-0: #232633;
  --seq-1: #184f95;
  --seq-2: #256abf;
  --seq-3: #3987e5;
  --seq-4: #86b6ef;
  --seq-5: #cde2fb;
  --focus: #8fb2f0;
  --seq-ink-0: #eef0f6;
  --seq-ink-1: #ffffff;
  --seq-ink-2: #ffffff;
  --seq-ink-3: #ffffff;
  --seq-ink-4: #14151d;
  --seq-ink-5: #14151d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --map-water: #12233f;
  --map-land: #14151d;
  --map-basin: #20232f;
  --map-river: #6595e9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

code,
.mono {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* language: the other language's block stays off the page */
:root[lang="en"] [data-lang="pt"],
:root:not([lang="en"]) [data-lang="en"] {
  display: none !important;
}

/* with no location chosen, only the top shows */
body:not([data-place]) .needs-place {
  display: none !important;
}

/* ---- navigation ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.nav-brand img {
  display: block;
  height: 36px;
  width: auto;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.place-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.place-chip svg {
  color: var(--brand);
}
.place-chip:hover {
  border-color: var(--brand);
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
}
.icon-btn:hover {
  background: var(--surface-2);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.ghost {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text-2);
}
.ghost:hover {
  background: var(--surface-2);
}
a.ghost {
  text-decoration: none;
  white-space: nowrap;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seg {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.seg button[aria-checked="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(20, 21, 29, 0.12);
}
.seg button[data-set-lang] {
  padding: 4px 10px;
  letter-spacing: 0.04em;
}

/* ---- topo ---------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 56px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(101, 149, 233, 0.22), transparent);
  z-index: -1;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo {
  width: 250px;
  height: auto;
  margin-bottom: 4px;
}
.hero h1 {
  font-weight: 300;
  font-size: clamp(32px, 5.4vw, 56px);
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 18ch;
}
.hero-text {
  max-width: 66ch;
  color: #c4cad8;
  font-size: 17px;
}
.hero-text p {
  margin: 0 0 12px;
}
.hero-note {
  margin: 28px 0 0;
  font-size: 13px;
  color: #9aa2b5;
  max-width: 70ch;
}
.hero-note strong {
  color: #e7eaf2;
}
.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
}
.wave-fill {
  fill: var(--page);
}
.wave-line {
  fill: none;
  stroke: var(--wave);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

/* location picker */
.picker {
  margin-top: 28px;
  width: 100%;
  max-width: 560px;
}
.picker-label {
  margin: 0 0 10px;
  font-weight: 500;
  color: #fff;
}
.picker-list {
  display: grid;
  gap: 10px;
}
.place-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.place-card:hover {
  border-color: var(--wave);
  background: rgba(101, 149, 233, 0.12);
}
.place-card[aria-pressed="true"] {
  border-color: var(--wave);
  background: rgba(101, 149, 233, 0.16);
}
.place-pin {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(101, 149, 233, 0.18);
  color: var(--wave);
}
.place-card strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
}
.place-card small {
  color: #a9b0c2;
  font-size: 13px;
}
.place-go {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--wave);
  white-space: nowrap;
}
.picker-more {
  margin: 12px 0 0;
  font-size: 13px;
  color: #9aa2b5;
}
.picker-more a {
  color: var(--wave);
  margin-left: 4px;
}

/* ---- sections ------------------------------------------------------------- */
.band {
  padding: 96px 0;
  background: var(--page);
}
.band.alt {
  background: var(--band-alt);
}
.band.dark {
  background: var(--navy);
  color: #fff;
}
.band h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  margin: 10px 0 16px;
  max-width: 24ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--wave);
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}
.band.dark .eyebrow {
  color: var(--wave);
}
.lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 68ch;
  margin: 0 0 28px;
}
.band.dark .lead {
  color: #c4cad8;
}
.sub {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 14px;
  max-width: 80ch;
}
.block-title {
  margin: 40px 0 6px;
  font-size: 19px;
  font-weight: 500;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(12, 163, 12, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(12, 163, 12, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(12, 163, 12, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* how it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px 32px;
}
.steps li {
  position: relative;
}
.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--display);
  font-weight: 500;
  margin-bottom: 14px;
}
:root[data-theme="dark"] .step-n {
  background: var(--wave);
  color: var(--navy);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .step-n {
    background: var(--wave);
    color: var(--navy);
  }
}
.steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500;
}
.steps p {
  margin: 0;
  color: var(--text-2);
}

/* indicators: large numbers separated by a hairline, no box */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  margin: 8px 0 28px;
}
.kpi {
  border-left: 2px solid var(--grid);
  padding: 2px 0 2px 16px;
}
.kpi .label {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}
.kpi .value {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 2px 0;
  line-height: 1.25;
}
.kpi .note {
  color: var(--muted);
  font-size: 12.5px;
}

/* charts */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 20px 14px;
}
.chart {
  position: relative;
  width: 100%;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart-small {
  margin-top: 4px;
}
.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.chart-title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}
.chart-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-2);
}
.jump-btn {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12.5px;
  color: var(--text-2);
}
.jump-btn:hover,
.jump-btn[aria-pressed="true"] {
  border-color: var(--critical);
  color: var(--text);
}
.chart-nav {
  margin-top: 6px;
  touch-action: none;
  user-select: none;
}
.chart-nav svg {
  display: block;
  width: 100%;
  height: auto;
}
.nav-window {
  fill: color-mix(in srgb, var(--wave) 16%, transparent);
  stroke: var(--wave);
  stroke-width: 1.5;
  cursor: grab;
}
.nav-window:active {
  cursor: grabbing;
}
.nav-handle {
  fill: var(--surface);
  stroke: var(--wave);
  stroke-width: 1.5;
  cursor: ew-resize;
}
.nav-shade {
  fill: var(--page);
  opacity: 0.6;
  pointer-events: none;
}
.chart-hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.axis text,
.tick-label {
  fill: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.gridline {
  stroke: var(--grid);
  stroke-width: 1;
}
.baseline {
  stroke: var(--axis);
  stroke-width: 1;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--text-2);
  margin: 10px 0;
}
.legend .key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.swatch-line {
  width: 18px;
  height: 0;
  border-top: 2px solid currentColor;
}
.swatch-dash {
  width: 18px;
  height: 0;
  border-top: 2px dashed currentColor;
}
.swatch-band {
  width: 18px;
  height: 10px;
  background: var(--band);
  border-radius: 2px;
}
.swatch-flood {
  width: 18px;
  height: 10px;
  background: color-mix(in srgb, var(--critical) 18%, transparent);
  border-radius: 2px;
}
.swatch-threshold {
  width: 18px;
  height: 0;
  border-top: 2px dotted var(--critical);
}
.dot-key {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* early warning: today's situation */
.now {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin: 0 0 32px;
}
.now-status {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.now-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 22px;
  color: #fff;
}
.now-icon.ok {
  background: var(--good);
}
.now-icon.alert {
  background: var(--serious);
}
.now-status h3 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 500;
}
.now-status p {
  margin: 0;
  color: var(--text-2);
}
.meter {
  margin-top: 18px;
}
.meter-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: visible;
}
.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
}
.meter-fill.alert {
  background: var(--serious);
}
.meter-mark {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 22px;
  background: var(--critical);
}
.meter-mark.soft {
  background: var(--muted);
}
.now-icon.warn {
  background: var(--warning);
  color: var(--navy);
}
.facts-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.facts.compact {
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 14px 20px;
}
.facts.compact dd {
  font-size: 19px;
}
#stage-now + .chart-card {
  margin-bottom: 40px;
}
.meter-labels {
  position: relative;
  height: 18px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.meter-labels span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.meter-labels span.rec {
  transform: translateX(calc(-100% + 1px));
}
@media (max-width: 560px) {
  .meter-labels span.rec {
    display: none;
  }
}
.meter-labels span:first-child {
  transform: none;
}
.facts {
  display: grid;
  gap: 18px;
  margin: 0;
}
.facts div {
  border-left: 2px solid var(--grid);
  padding-left: 16px;
}
.facts dt {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}
.facts dd small {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
}

/* blocos recolhidos */
.band.folds {
  padding: 56px 0;
}
.folds .fold + .fold {
  border-top: 0;
}
.fold {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fold-tech {
  margin-top: 32px;
}
.fold > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  padding: 22px 0;
}
.fold > summary::-webkit-details-marker {
  display: none;
}
.fold > summary::after {
  content: "";
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236595e9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.2s;
}
.fold[open] > summary::after {
  transform: rotate(180deg);
}
.fold-title {
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.fold-tech .fold-title {
  font-size: 18px;
}
.fold-sub {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 2px;
}
.fold-body {
  padding: 4px 0 32px;
}
.sub-section {
  margin-top: 40px;
}
.sub-section h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
}
.sub-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* cofres */
.flow {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  counter-reset: flow;
}
.flow li {
  position: relative;
  counter-increment: flow;
  padding: 16px 28px 0 0;
  border-top: 2px solid rgba(101, 149, 233, 0.35);
  color: #a9b0c2;
  font-size: 14px;
}
.flow li::before {
  content: counter(flow);
  position: absolute;
  top: -15px;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wave);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
}
.flow li strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
}
.vault-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 0 0 32px;
}
.vault-stats > div {
  border-left: 2px solid var(--wave);
  padding-left: 16px;
}
.vault-stats .value {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.vault-stats .label {
  color: #a9b0c2;
  font-size: 13px;
}
.vault-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.vault {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6);
}
.vault-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vault-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}
.vault-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
}
.vault-tag.live {
  background: color-mix(in srgb, var(--good) 16%, transparent);
  color: var(--good-text);
}
.vault .kpis {
  margin: 20px 0;
}
.dark-note {
  margin: 20px 0 0;
  font-size: 13px;
  color: #9aa2b5;
}
.band.dark .verify {
  color: var(--text);
}

/* tabelas */
.table-details {
  margin: 4px 0 8px;
}
.table-details summary {
  cursor: pointer;
  color: var(--text-2);
  font-size: 13.5px;
  padding: 6px 0;
}
.readings-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}
.readings-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}
.select select {
  font: inherit;
  margin-left: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.table-wrap {
  overflow-x: auto;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-top: 12px;
}
.table-wrap[hidden] {
  display: none;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
table.data th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  text-align: left;
  font-weight: 600;
  padding: 8px 12px;
  color: var(--text-2);
}
table.data td {
  padding: 7px 12px;
  border-top: 1px solid var(--grid);
  white-space: nowrap;
}
table.data td.num,
table.data th.num {
  text-align: right;
}
table.data tr.active td {
  background: var(--surface-2);
}

.tooltip {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 21, 29, 0.18);
  padding: 8px 10px;
  font-size: 12.5px;
  max-width: 280px;
}
.tooltip .t-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.tooltip .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-variant-numeric: tabular-nums;
}
.tooltip .row span:first-child {
  color: var(--text-2);
}

/* timeline */
.timeline {
  overflow-x: auto;
  padding: 8px 0 4px;
}
.tl-grid {
  display: grid;
  gap: 2px;
  min-width: 720px;
  font-size: 12px;
}
.tl-label {
  color: var(--text-2);
  padding-right: 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.tl-cell {
  display: grid;
  place-items: center;
  height: 26px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.tl-cell.empty {
  background: transparent;
}
.tl-day {
  height: auto;
  background: transparent;
  color: var(--muted);
  font-weight: 400;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 2px 0;
}
.tl-cell.selected,
.tl-day.selected {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}
.st-good {
  background: var(--good);
}
.st-warning {
  background: var(--warning);
  color: #14151d;
}
.st-critical {
  background: var(--critical);
}
.st-forecast {
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 400;
}

/* day */
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
  margin-top: 8px;
}
.panel {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface);
}
.panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
dl.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 13.5px;
}
dl.kv dt {
  color: var(--text-2);
}
dl.kv dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dot {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12.5px;
  border: 1px solid var(--border);
}
.chip.alert {
  border-color: var(--critical);
}
.chip.ok {
  border-color: var(--good);
}
.events {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 13.5px;
}
.events li {
  margin: 4px 0;
}
.fc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.fc-table th,
.fc-table td {
  text-align: right;
  padding: 4px 6px;
  border-bottom: 1px solid var(--grid);
}
.fc-table th:first-child,
.fc-table td:first-child {
  text-align: left;
}
.good-text {
  color: var(--good-text);
}
.crit-text {
  color: var(--critical);
}

/* verification */
.verify {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--observed);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface);
  font-size: 13.5px;
}
.verify.ok {
  border-left-color: var(--good);
}
.verify.fail {
  border-left-color: var(--critical);
}
.verify h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.verify ol {
  margin: 6px 0;
  padding-left: 20px;
}
.verify li {
  margin: 3px 0;
}
.hash {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
  color: var(--text-2);
}
.verdict {
  font-weight: 600;
  margin-top: 6px;
}
.tamper {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

/* qualidade */
.heatmap-wrap {
  overflow-x: auto;
  padding-top: 8px;
}
.hm-grid {
  display: grid;
  gap: 2px;
  min-width: 720px;
  font-size: 12px;
}
.hm-cell {
  height: 20px;
  border-radius: 3px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.hm-cell.degraded {
  box-shadow: inset 0 0 0 2px var(--critical);
}
.ramp {
  display: inline-flex;
  gap: 2px;
}
.ramp span {
  width: 18px;
  height: 10px;
  border-radius: 2px;
}
.sev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.sev .dot {
  color: #14151d;
}
.empty-note {
  padding: 14px 16px;
  color: var(--text-2);
  font-size: 13.5px;
}
.method {
  padding-left: 20px;
  color: var(--text-2);
  max-width: 85ch;
}
.method li {
  margin: 6px 0;
}
.method strong {
  color: var(--text);
}

/* guia */
.guide-big {
  max-width: 72ch;
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--text-2);
}
.guide-item {
  border-top: 1px solid var(--border);
  max-width: 85ch;
}
.guide-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}
.guide-item > p,
.guide-item ul,
.guide-item div > p {
  color: var(--text-2);
}
.guide-item ul {
  padding-left: 20px;
}
.guide-item li {
  margin: 4px 0;
}
.guide-legend strong {
  color: var(--text);
}
.guide-legend {
  display: grid;
  gap: 6px;
  color: var(--text-2);
}
.guide-legend > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.guide-legend .key {
  flex: none;
  width: 22px;
  display: inline-flex;
  justify-content: center;
  align-self: center;
}
.glossary {
  margin: 0 0 12px;
}
.glossary dt {
  font-weight: 600;
  margin-top: 10px;
}
.glossary dd {
  margin: 2px 0 0;
  color: var(--text-2);
}

/* footer */
.foot {
  background: var(--navy);
  color: #a9b0c2;
  font-size: 13.5px;
  padding: 56px 0 32px;
}
.foot a {
  color: #dfe4ee;
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-brand img {
  display: block;
  height: 48px;
  width: auto;
  margin: -8px 0 4px -10px;
}
.foot-brand p {
  margin: 4px 0;
}
.foot-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.foot-cols div {
  display: grid;
  gap: 6px;
  align-content: start;
}
.foot-cols h4 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.foot-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #7f879a;
}

@media (forced-colors: active) {
  .tl-cell,
  .hm-cell,
  .dot {
    border: 1px solid CanvasText;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .now {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }
  .band {
    padding: 64px 0;
  }
  .hero {
    padding: 36px 0 96px;
  }
  .hero-logo {
    width: 190px;
  }
  .hero-text {
    font-size: 15.5px;
  }
  .nav-inner {
    gap: 10px;
  }
  .nav-brand img {
    height: 30px;
  }
  .place-chip {
    padding: 5px 10px 5px 8px;
  }
  .kpis,
  .vault-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }
  .kpi .value {
    font-size: 22px;
  }
  .vault-stats .value {
    font-size: 26px;
  }
  .chart-card,
  .vault {
    padding: 16px 14px 12px;
  }
  .flow li {
    padding-bottom: 28px;
  }
  .place-go {
    display: none;
  }
}

/* ---- basin map ---- */
.basin {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin: 8px 0 48px;
}
.basin-map-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.basin-toolbar {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.basin-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.map-credit {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.map-label {
  fill: var(--map-river);
  font-style: italic;
  font-weight: 500;
  paint-order: stroke;
  stroke: var(--map-basin);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.map-city {
  fill: var(--text);
  font-weight: 600;
  paint-order: stroke;
  stroke: var(--map-basin);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.mk-g {
  cursor: pointer;
  outline: none;
}
.mk-g:focus-visible circle:first-child,
.mk-g:focus-visible path:first-child {
  stroke: var(--focus);
}
.basin-side h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
}
.basin-side > p {
  margin: 0 0 18px;
  color: var(--text-2);
}
.basin-legend {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
}
.basin-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mk {
  flex: none;
}
.basin-detail {
  border-left: 2px solid var(--brand);
  padding-left: 16px;
}
.basin-detail h4 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
}
.basin-detail p {
  margin: 0 0 6px;
}
.detail-kind {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-value {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 2px;
}
@media (max-width: 900px) {
  .basin {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

/* ---- copy in Bitcoin ---- */
.btc-stamp {
  margin-top: 40px;
  border-left: 2px solid var(--brand);
  padding-left: 16px;
  max-width: 78ch;
}
.btc-stamp h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500;
}
.btc-stamp p {
  margin: 0 0 6px;
  color: var(--text-2);
}
