@font-face {
  font-family: Switzer;
  src: url("assets/fonts/switzer-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Switzer;
  src: url("assets/fonts/switzer-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

[data-editorial-theme] {
  --space-4: 0.25rem;
  --space-8: 0.5rem;
  --space-12: 0.75rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-48: 3rem;
  --space-64: 4rem;
  --target-touch: 2.75rem;
  --font-editorial: Switzer, Manrope, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --border-hairline: 1px;
  --radius-pill: 999px;
}

[data-editorial-theme="home"] {
  --home-hero-ink: #FFFFFF;
  --home-hero-shadow: 0 2px 18px rgba(10, 25, 47, 0.28);
  --home-band-deep: #0B1F3A;
  --home-band-blue: #102A4C;
  --home-band-ink: #FFFFFF;
  --home-band-copy: #DCE8F5;
  --home-paper-ink: #0B1F3A;
  --home-paper-copy: #334155;
  --home-dusk-sky: #123160;
  --home-dusk-zenith: #10347F;
  --home-dusk-tower: #2853A6;
  --home-closing: #09172B;
  --home-closing-card: #0F2342;
  --home-closing-copy: #CBD5E1;
  --home-closing-line: rgba(255, 255, 255, 0.2);
  --home-base: #F8FAFC;
  --home-surface: #FFFFFF;
  --home-divider: #DCE4EE;
  --home-sky: linear-gradient(180deg, var(--home-base), #DFECFA);
  --home-navigation: var(--home-base);
  --home-page-dark: #091526;
  --home-ink: #0C1E35;
  --home-ink-inverse: #EDF7FF;
  --home-action-selected-bg: #1E4E8C;
  --home-focus-ring: var(--home-action-selected-bg);
  --home-chart-series-01: #9DE5F4;
  --home-explorer-economia: #C8DFED;
  --home-explorer-visitantes-e-origem: #8FC5DF;
  --home-explorer-hospedagem: #38789F;
  --home-explorer-trabalho: #163E72;
  --home-explorer-empresas-e-servicos: #103B4A;
  --home-explorer-cadastur: #081C37;
}

[data-editorial-theme="thematic"] {
  --theme-cream-100: #FDF7EE;
  --theme-cream-200: #F8EAD5;
  --theme-cream-300: #EFE0C6;
  --theme-cream-400: #E6D1AE;
  --theme-forest-900: #0F3D24;
  --theme-forest-700: #196938;
  --theme-forest-800: #355945;
  --theme-sage-500: #7EA68C;
  --theme-sage-300: #BDDAC6;
  --theme-bavarian-700: #295296;
  --theme-bavarian-500: #4A74B8;
  --theme-bavarian-300: #9CB8DA;
  --theme-gold-500: #DC9E2A;
  --theme-gold-700: #B57B14;
  --theme-coral-500: #D8483B;
  --theme-coral-700: #A93227;
  --theme-forest-muted: #527260;
  --theme-page: var(--theme-cream-200);
  --theme-panel: var(--theme-cream-100);
  --theme-surface-subtle: var(--theme-cream-300);
  --theme-overlay: rgb(15 61 36 / 45%);
  --theme-ink-primary: var(--theme-forest-900);
  --theme-ink-secondary: var(--theme-forest-800);
  --theme-ink-muted: var(--theme-forest-muted);
  --theme-ink-inverse: var(--theme-cream-100);
  --theme-ink-accent-gold: var(--theme-gold-700);
  --theme-ink-negative: var(--theme-coral-700);
  --theme-action-primary-bg: var(--theme-forest-900);
  --theme-action-primary-hover: var(--theme-forest-700);
  --theme-action-selected-bg: var(--theme-forest-900);
  --theme-action-unselected-bg: var(--theme-cream-100);
  --theme-action-unselected-hover: var(--theme-cream-300);
  --theme-action-unselected-border: rgb(15 61 36 / 22%);
  --theme-focus-ring: var(--theme-bavarian-700);
  --theme-chart-series-01: var(--theme-forest-900);
  --theme-chart-series-02: var(--theme-bavarian-700);
  --theme-chart-series-03: var(--theme-gold-500);
  --theme-chart-series-04: var(--theme-forest-700);
  --theme-chart-series-05: var(--theme-sage-500);
  --theme-chart-positive: var(--theme-forest-700);
  --theme-chart-negative: var(--theme-coral-500);
  --theme-chart-axis-label: var(--theme-forest-800);
  --theme-chart-gridline: rgb(15 61 36 / 10%);
  --theme-border-subtle: rgb(15 61 36 / 16%);
  --theme-border-strong: rgb(15 61 36 / 35%);
}

[data-editorial-theme] {
  --grid-columns: 4;
  --grid-edge: 1.25rem;
  --grid-gutter: var(--space-16);
}

@media (min-width: 768px) {
  [data-editorial-theme] {
    --grid-columns: 8;
    --grid-edge: clamp(2.25rem, calc(2.25rem + (100% - 900px) / 20), 4rem);
    --grid-gutter: 1.25rem;
  }
}

@media (min-width: 1440px) {
  [data-editorial-theme] {
    --grid-columns: 12;
    --grid-edge: var(--space-64);
    --grid-gutter: var(--space-24);
  }
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  width: 100%;
  padding-inline: var(--grid-edge);
}

.editorial-grid > * {
  grid-column: 1 / -1;
  min-inline-size: 0;
}

[data-editorial-theme="thematic"] {
  background: var(--theme-page);
  color: var(--theme-ink-primary);
  font-family: var(--font-editorial);
}

[data-editorial-theme="thematic"] .chapter-hero {
  min-height: 100svh;
}

[data-editorial-theme="thematic"] .chapter-section {
  --accent: var(--theme-chart-series-01);
  background: var(--theme-panel);
  color: var(--theme-ink-primary);
}

[data-editorial-theme="thematic"] .editorial-grid > header {
  display: block;
}

[data-editorial-theme="thematic"] .editorial-grid > header p {
  margin-block-start: var(--space-12);
}

[data-editorial-theme="thematic"] :is(.chapter-fact strong, .chapter-selection, .chapter-meta) {
  font-family: var(--font-mono);
  font-weight: 400;
}

[data-editorial-theme="thematic"] .chapter-fact strong {
  color: var(--theme-ink-accent-gold);
}

[data-editorial-theme="thematic"] .chapter-controls label {
  min-inline-size: 0;
  max-inline-size: 100%;
  font-weight: 500;
}

[data-editorial-theme="thematic"] .chapter-controls select {
  max-inline-size: 100%;
  min-block-size: var(--target-touch);
  padding-inline: var(--space-16);
  border: var(--border-hairline) solid var(--theme-ink-secondary);
  border-radius: var(--radius-pill);
  background: var(--theme-action-unselected-bg);
  color: var(--theme-ink-primary);
}

[data-editorial-theme="thematic"] .chapter-controls select:hover {
  background: var(--theme-action-unselected-hover);
}

[data-editorial-theme="thematic"] .chapter :focus-visible {
  outline-color: var(--theme-focus-ring);
}

@media (min-width: 768px) {
  [data-editorial-theme="thematic"] .editorial-grid > header {
    grid-column: 1 / span 6;
  }
}

@media (min-width: 1440px) {
  [data-editorial-theme="thematic"] .editorial-grid > header {
    grid-column: 1 / span 8;
  }
}

.scenic-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 44svh;
  pointer-events: none;
}

.scenic-stage > .scenic-plane {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--scenic-focus, center);
}

[data-editorial-theme="thematic"] .chapter-nav {
  background: var(--theme-page);
  color: var(--theme-ink-primary);
}

[data-editorial-theme="thematic"] .scenic-chapters {
  padding: 0;
  background: var(--theme-page);
}

.scenic-act {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  grid-template-rows: auto;
  column-gap: var(--grid-gutter);
  width: 100%;
  background: var(--theme-page);
}

.scenic-act .scenic-stage {
  grid-column: 1 / -1;
  background: var(--theme-cream-400);
  --scenic-focus: 28% center;
}

.scenic-act .scenic-panel {
  grid-column: 1 / -1;
  display: block;
  min-inline-size: 0;
  width: 100%;
  align-self: center;
  padding: var(--space-32) var(--grid-edge);
  background: var(--theme-panel);
  color: var(--theme-ink-primary);
}

.scenic-panel .chapter-fact {
  margin-block: var(--space-24);
}

.scenic-panel header {
  margin-block-end: var(--space-24);
}

.scenic-panel .chapter-graph h3 {
  display: none;
}

.scenic-panel :is(.chapter-button, .chapter-action) {
  background: var(--theme-action-primary-bg);
  color: var(--theme-ink-inverse);
}

@media (min-width: 768px) {
  .scenic-act {
    min-height: 100svh;
    padding: var(--space-48) var(--grid-edge);
  }

  .scenic-act .scenic-stage {
    position: absolute;
    inset: 0 0 auto;
    grid-column: auto;
    height: 100svh;
    --scenic-focus: 35% center;
  }

  .scenic-act .scenic-panel {
    position: relative;
    grid-column: 6 / -1;
    padding: var(--space-32);
  }

  .scenic-act-data .scenic-panel {
    grid-column-start: 4;
  }

  .scenic-act .chapter-masthead h1 {
    font-size: clamp(2.5rem, 5vw, 6rem);
  }
}

@media (min-width: 1440px) {
  .scenic-act .scenic-panel {
    grid-column-start: 8;
  }

  .scenic-act-data .scenic-panel {
    grid-column-start: 6;
  }
}

[data-editorial-theme="home"] #inicio .hero-stage {
  background: var(--home-sky);
}

[data-editorial-theme="home"] .hero-stage .scenic-stage {
  height: 100%;
}

[data-editorial-theme="home"] .hero#inicio .hero-title {
  inset: 14% 0 auto;
  width: min(50%, calc(100% - 2 * var(--grid-edge)));
  margin-inline: auto;
  text-align: center;
  color: var(--home-hero-ink);
  text-shadow: var(--home-hero-shadow);
}

[data-editorial-theme="home"] #inicio .hero-title img {
  filter: brightness(0) invert(1);
}

[data-editorial-theme="home"] #inicio .hero-title h1 {
  filter: drop-shadow(var(--home-hero-shadow));
}

[data-editorial-theme="home"] #observatorio.story {
  background: var(--home-base);
}

body.editorial[data-editorial-theme="home"] {
  background: var(--home-base);
  color: var(--home-ink);
  --editorial-rule: var(--home-divider);
}

[data-editorial-theme="home"] :is(.story, .analysis[data-environment="0"]) :is(h2, h3) {
  color: var(--home-paper-ink);
}

[data-editorial-theme="home"] :is(.story, .analysis[data-environment="0"]) :is(.eyebrow, p, .preview-caption, .preview-context, .view-metadata) {
  color: var(--home-paper-copy);
}

[data-editorial-theme="home"] :is(.studies, footer) {
  background: var(--home-closing);
  color: var(--home-closing-copy);
  --editorial-rule: var(--home-closing-line);
}

[data-editorial-theme="home"] :is(.studies, footer) :is(h2, h3, .footer-top > p) {
  color: var(--home-band-ink);
}

[data-editorial-theme="home"] .studies .publication {
  background-color: var(--home-closing-card);
  color: var(--home-band-ink);
}

[data-editorial-theme="home"] .studies :is(.section-heading p, .pub-type, .publication p, .publication-tools label, .publication-tools button) {
  color: var(--home-closing-copy);
}

[data-editorial-theme="home"] .studies .publication .text-link {
  color: var(--home-band-ink);
}

[data-editorial-theme="home"] .publication-tools input {
  background: var(--home-closing-card);
  color: var(--home-band-ink);
  border-color: var(--home-closing-line);
}

[data-editorial-theme="home"] .publication-tools input::placeholder {
  color: var(--home-closing-copy);
  opacity: 1;
}

[data-editorial-theme="home"] .publication-tools button {
  border-color: var(--home-closing-line);
}

[data-editorial-theme="home"] .publication-tools button[aria-pressed="true"] {
  color: var(--home-band-ink);
  border-color: var(--home-closing-line);
  box-shadow: inset 0 -1px var(--home-closing-copy);
}

[data-editorial-theme="home"] .analysis[data-environment="0"] {
  background: var(--home-base);
  color: var(--home-ink);
}

[data-editorial-theme="home"] .analysis[data-environment="0"]::before {
  background: none;
}

[data-editorial-theme="home"] .analysis[data-environment="0"] .themes [aria-selected="true"] {
  color: var(--home-action-selected-bg);
}

[data-editorial-theme="home"] #observatorio .blumi-cascade {
  --bca-fade: var(--home-base);
}

[data-editorial-theme="home"] :focus-visible {
  outline: 2px solid var(--home-focus-ring);
  outline-offset: 3px;
}

.hero-flow [data-editorial-theme="home"] > header::before {
  background: var(--home-navigation);
}

[data-editorial-theme="home"] > header {
  color: var(--navink, var(--home-ink));
}

.over-home-hero [data-editorial-theme="home"] > header {
  color: var(--home-hero-ink);
  text-shadow: var(--home-hero-shadow);
}

.over-home-hero [data-editorial-theme="home"] > header::before {
  background: linear-gradient(rgba(10, 25, 47, 0.28), transparent);
  backdrop-filter: none;
  opacity: 1;
}

.over-home-hero [data-editorial-theme="home"] .indicator-links {
  text-shadow: none;
}

@media (max-width: 650px) {
  .over-home-hero [data-editorial-theme="home"] #nav.open {
    background: var(--home-page-dark);
    color: var(--home-hero-ink);
  }
}

[data-editorial-theme="home"] .night-chapter {
  --home-dusk-crest: 60%;
  background: var(--home-dusk-sky) linear-gradient(
    to bottom in oklab,
    var(--home-band-blue),
    var(--home-dusk-zenith) 28%,
    var(--home-dusk-tower) var(--home-dusk-crest),
    var(--home-closing) 100%
  );
  color: var(--home-band-copy);
}

[data-editorial-theme="home"] .night-chapter::before {
  content: none;
}

@media (max-width: 650px) {
  [data-editorial-theme="home"] .night-chapter {
    --home-dusk-crest: 66%;
  }
}

[data-editorial-theme="home"] .night-chapter::after {
  height: clamp(3rem, 9vw, 8rem);
  background: linear-gradient(transparent, var(--home-closing));
}

[data-editorial-theme="home"] :is(.human, .evidence, .team, .dusk) {
  color: var(--home-band-copy);
  --editorial-rule: rgb(220 232 245 / 36%);
}

[data-editorial-theme="home"] .human {
  background: var(--home-band-deep);
}

[data-editorial-theme="home"] .evidence {
  background: linear-gradient(var(--home-band-deep), var(--home-band-blue));
}

[data-editorial-theme="home"] .night-chapter :is(.team, .dusk) {
  background: transparent;
}

[data-editorial-theme="home"] :is(.human, .evidence, .team, .dusk) :is(h2, h3, h2 em, .fact strong, .source-origin strong) {
  background: none;
  color: var(--home-band-ink);
  -webkit-text-fill-color: currentColor;
}

[data-editorial-theme="home"] :is(.human, .evidence, .team, .dusk) :is(p, small, .fact > span, .people article > span, .eyebrow, .lede, .text-link, .source-reason, .source-answer, .source-origin p) {
  color: var(--home-band-copy);
}

[data-editorial-theme="home"] :is(.source-tabs button, .source-question-controls button, .source-question-controls button[aria-pressed="true"]) {
  color: var(--home-band-copy);
}

[data-editorial-theme="home"] .source-question-controls button[aria-pressed="true"] {
  background: var(--home-band-blue);
  border-color: var(--home-band-copy);
  box-shadow: none;
}

.over-home-band [data-editorial-theme="home"] > header::before {
  background: linear-gradient(var(--home-band-deep), rgba(11, 31, 58, 0.88));
  opacity: 1;
}

[data-editorial-theme="home"] :is(.human, .evidence, .night-chapter, .studies, footer) :focus-visible {
  outline-color: var(--home-band-copy);
}

[data-editorial-theme="home"] .human-stage {
  position: relative;
  display: grid;
  align-items: center;
  height: auto;
  min-height: 100svh;
  padding: clamp(3rem, 8vw, 8rem) var(--pad);
}

[data-editorial-theme="home"] .human {
  height: auto;
}

[data-editorial-theme="home"] .human-copy {
  width: auto;
  height: auto;
  max-width: 42rem;
  padding: 0;
  grid-template-columns: minmax(0, 1fr);
}

[data-editorial-theme="home"] .human-stage .human-copy > :is(.eyebrow, h2, .fact) {
  grid-column: 1;
}

[data-editorial-theme="home"] .evidence-content {
  align-items: center;
}

[data-editorial-theme="home"] .evidence-intro {
  grid-column: 1 / 7;
}

[data-editorial-theme="home"] .evidence-intro .lede {
  margin-top: 1.5rem;
}

[data-editorial-theme="home"] .evidence-picture {
  position: static;
  grid-column: 7 / -1;
  height: auto;
  mask-image: none;
  opacity: 1;
  z-index: auto;
}

[data-editorial-theme="home"] .evidence-picture > img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
  z-index: auto;
  opacity: .85;
}

[data-editorial-theme="home"] .dusk > img {
  mask-image: linear-gradient(transparent, #000 220px);
}

@media (max-width: 767px) {
  [data-editorial-theme="home"] .evidence-content {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-editorial-theme="home"] .human-stage {
    min-height: 0;
  }

  [data-editorial-theme="home"] .evidence-intro,
  [data-editorial-theme="home"] .evidence-picture {
    grid-column: 1;
  }
}

.home-photographic > [data-plane="cielo"] {
  inset: -8px 0;
  height: calc(100% + 16px);
}

.home-photographic > :not([data-plane="cielo"]) {
  inset: auto 0 min(0px, calc(78svh - 45.5vw));
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: fill;
  margin-inline: auto;
  opacity: clamp(0, calc(1 - var(--depart, 0) * 1.2), 1);
}

.hero.is-opening .home-photographic > :not([data-plane="cielo"]) {
  opacity: 0;
}

.hero.is-opening:not(.is-loading-scene) .home-photographic > :not([data-plane="cielo"]) {
  animation: blumi-vila 1.18s cubic-bezier(.18, .75, .25, 1) both;
}

[data-parallax] > .scenic-plane {
  transform: translate3d(0, var(--scene-y, 0px), 0);
}

.scenic-act [data-parallax] > .scenic-plane {
  inset: -2.5rem 0;
  height: calc(100% + 5rem);
}

[data-editorial-theme="thematic"] .chapter-rail {
  position: sticky;
  top: var(--chapter-nav-height, 3.5rem);
  z-index: 12;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
  padding-inline: var(--grid-edge);
  background: var(--theme-panel);
  border-bottom: 1px solid var(--theme-border-subtle);
}

.chapter-rail a {
  display: flex;
  align-items: center;
  min-block-size: var(--target-touch);
  padding-inline: var(--space-8);
  border-bottom: 2px solid transparent;
  font: 400 clamp(.75rem, 2.9vw, .875rem)/1.2 var(--font-mono);
  text-decoration: none;
}

.chapter-rail a[aria-current="location"] {
  border-color: var(--theme-ink-primary);
}

html:has(.chapter-rail) {
  scroll-padding-block-start: calc(var(--chapter-nav-height, 3.5rem) + var(--chapter-rail-height, 2.75rem));
}

@media (min-width: 1100px) {
  [data-editorial-theme="thematic"] .chapter-rail {
    top: calc(var(--chapter-nav-height, 3.5rem) + var(--space-24));
    width: 190px;
    height: 0;
    margin-inline: auto var(--grid-edge);
    padding: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    border: 0;
  }

  .chapter-rail a {
    flex-shrink: 0;
    padding-inline: var(--space-16);
    background: var(--theme-panel);
  }

  [data-editorial-theme="thematic"] .scenic-act {
    padding-top: 10rem;
  }
}

@media (max-width: 767px) {
  [data-editorial-theme="thematic"] .scenic-act.chapter-hero {
    min-height: 0;
  }

  .scenic-act .scenic-panel {
    padding-bottom: var(--space-48);
  }

  [data-editorial-theme="home"] .hero-stage .scenic-stage {
    height: 100%;
  }

  [data-editorial-theme="home"] .hero#inicio .hero-title {
    inset: 40% 0 auto;
    width: calc(100% - 2 * var(--grid-edge));
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-parallax] > .scenic-plane {
    transform: none;
  }
}
