:root {
  --navy-1000: #041a2d;
  --navy-950: #05233d;
  --navy-900: #06345c;
  --navy-850: #073f6d;
  --blue-800: #07568f;
  --blue-700: #0870ad;
  --blue-600: #078bc7;
  --cyan-500: #08a7d1;
  --cyan-300: #70d7ec;
  --cyan-100: #dff6fb;
  --blue-75: #edf6fb;
  --blue-50: #f5f9fc;
  --ink: #102b43;
  --text: #3d5a70;
  --muted: #72899b;
  --line: #d9e6ee;
  --line-strong: #c4d8e5;
  --surface: #ffffff;
  --surface-soft: #f8fbfd;
  --success: #0c8b65;
  --warm: #d79b27;
  --shadow-sm: 0 8px 26px rgba(9, 55, 91, .08);
  --shadow-md: 0 16px 46px rgba(7, 48, 80, .11);
  --shadow-lg: 0 30px 80px rgba(4, 38, 65, .15);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --content: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--blue-50);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy-900);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus { top: 16px; }

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: var(--navy-900);
  box-shadow: 0 8px 30px rgba(3, 31, 52, .18);
}
.topbar {
  position: relative;
  background: var(--navy-900);
}
.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255,255,255,.14);
}
.topbar-inner {
  width: min(var(--content), calc(100% - 48px));
  min-height: 108px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 410px; max-width: 48vw; height: auto; }
.utility-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.utility-nav a {
  position: relative;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease;
}
.utility-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--cyan-300);
  transition: right .18s ease;
}
.utility-nav a:hover { color: #fff; }
.utility-nav a:hover::after { right: 0; }

.aviation-strip { display: flex; align-items: center; gap: 7px; }
.aviation-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: var(--navy-850);
}
.aviation-badge img { width: 19px; height: 19px; filter: brightness(0) invert(1); opacity: .9; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  padding: 10px;
  cursor: pointer;
}
.menu-button img { filter: brightness(0) invert(1); }

.nav-shell { background: var(--navy-1000); border-top: 1px solid rgba(255,255,255,.08); }
.module-tabs {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: stretch;
  overflow: visible;
}
.module-tab {
  position: relative;
  min-width: 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 0 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.66);
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.module-tab img { width: 17px; height: 17px; filter: brightness(0) invert(1); opacity: .68; }
.module-tab:hover { color: #fff; background: rgba(255,255,255,.07); }
.module-tab.active { color: #fff; border-bottom-color: var(--cyan-300); background: rgba(255,255,255,.09); }
.module-tab.active img { opacity: 1; }

/* Introdução do módulo */
main { width: 100%; }
.module-intro {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--blue-800);
}
.module-intro-pattern { display: none; }
.module-intro-inner {
  position: relative;
  width: min(var(--content), calc(100% - 48px));
  min-height: 154px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding: 28px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #cceef8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.module-copy h1 { margin: 0; max-width: 900px; font-size: clamp(29px, 3vw, 46px); line-height: 1.06; letter-spacing: -.04em; }
.module-copy p { margin: 12px 0 0; max-width: 930px; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.55; }
.intro-actions { display: flex; align-items: center; gap: 10px; }
.intro-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.intro-link img { width: 17px; height: 17px; filter: brightness(0) invert(1); }
.intro-link:hover { background: rgba(255,255,255,.15); }
.intro-link-strong { color: var(--navy-900); background: #fff; border-color: #fff; }
.intro-link-strong img { filter: none; }
.intro-link-strong:hover { background: #eefaff; }

/* Power BI */
.report-section { width: min(var(--content), calc(100% - 48px)); margin: 26px auto 0; }
.report-toolbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--surface);
}
.report-kicker, .section-kicker, .card-label {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-600);
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.report-toolbar h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.report-actions { display: flex; align-items: center; gap: 8px; }
.action-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.action-button:hover { transform: translateY(-1px); border-color: #b8cfdd; background: #f5f9fc; }
.action-button img { width: 16px; height: 16px; }
.action-button.primary { border-color: var(--blue-800); background: var(--blue-800); color: #fff; }
.action-button.primary img { filter: brightness(0) invert(1); }
.action-button.primary:hover { background: var(--blue-700); }
.report-frame-shell {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.powerbi-frame { display: block; width: 100%; height: 78vh; min-height: 720px; border: 0; background: #fff; }
.report-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: #eef6fa;
  transition: opacity .25s ease, visibility .25s ease;
}
.report-loading.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.report-loading strong { color: var(--navy-900); font-size: 16px; }
.report-loading p { margin: 0; color: var(--muted); font-size: 13px; }
.loading-mark { height: 34px; display: flex; align-items: flex-end; gap: 5px; margin-bottom: 4px; }
.loading-mark span { width: 7px; border-radius: 5px; background: var(--cyan-500); animation: loading-bars .9s ease-in-out infinite alternate; }
.loading-mark span:nth-child(1) { height: 14px; }
.loading-mark span:nth-child(2) { height: 28px; animation-delay: .12s; }
.loading-mark span:nth-child(3) { height: 20px; animation-delay: .24s; }
@keyframes loading-bars { to { height: 8px; opacity: .42; } }
.report-help { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; color: var(--muted); font-size: 12px; }
.report-help img { width: 16px; height: 16px; }
.noscript-message { padding: 32px; text-align: center; color: var(--text); }

/* Cabeçalhos de seções */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}
.section-heading h2 { margin: 0; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.section-heading p { max-width: 820px; margin: 8px 0 0; color: var(--text); font-size: 14px; line-height: 1.6; }
.text-link, .inline-link {
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.text-link:hover, .inline-link:hover { text-decoration: underline; }

/* Metodologia */
.context-section { width: min(var(--content), calc(100% - 48px)); margin: 64px auto 0; scroll-margin-top: 150px; }
.context-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; }
.method-card {
  min-height: 292px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.card-icon, .fact-icon, .theme-icon {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--cyan-100);
}
.card-icon { width: 54px; height: 54px; }
.card-icon img { width: 25px; height: 25px; }
.method-card h3 { margin: 1px 0 10px; font-size: 23px; letter-spacing: -.025em; }
.method-card p { margin: 0 0 18px; color: var(--text); font-size: 14px; line-height: 1.72; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact-card {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}
.fact-icon { width: 34px; height: 34px; margin-bottom: 16px; border-radius: 10px; background: var(--blue-75); }
.fact-icon img { width: 18px; height: 18px; }
.fact-card > span:not(.fact-icon) { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.fact-card strong { margin-top: 6px; color: var(--ink); font-size: 13px; line-height: 1.45; }
.dataset-panel {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(270px, .42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.dataset-panel h3 { margin: 0 0 6px; font-size: 19px; }
.dataset-panel p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.55; }
.dataset-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.dataset-chip {
  min-height: 54px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface-soft);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.dataset-chip:hover { transform: translateY(-1px); border-color: #a9c8da; background: #f0f8fc; }
.dataset-chip span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--blue-800); background: var(--cyan-100); font-size: 11px; font-weight: 850; }
.dataset-chip strong { font-size: 12.5px; line-height: 1.35; }
.dataset-chip b { color: var(--blue-600); font-size: 16px; }

/* Faixa de bases abertas */
.open-data-band {
  position: relative;
  width: min(var(--content), calc(100% - 48px));
  min-height: 260px;
  margin: 62px auto 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(380px, .82fr);
  align-items: center;
  gap: 32px;
  overflow: hidden;
  padding: 34px 38px;
  border-radius: 28px;
  color: #fff;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg);
}
.open-data-band::before { display: none; }
.open-data-band > * { position: relative; }
.open-data-visual { width: 110px; height: 110px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; background: rgba(255,255,255,.1); }
.open-data-visual img { width: 58px; height: 58px; filter: brightness(0) invert(1); }
.section-kicker.light { color: #9be7f4; }
.open-data-copy h2 { margin: 0; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -.04em; }
.open-data-copy p { margin: 11px 0 20px; max-width: 680px; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.6; }
.open-data-actions { display: flex; gap: 10px; }
.button-light, .button-ghost {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
.button-light { color: var(--navy-900); background: #fff; }
.button-ghost { border: 1px solid rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.07); }
.open-data-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.open-data-stats div { min-height: 82px; padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(3,31,54,.28); backdrop-filter: blur(8px); }
.open-data-stats strong { display: block; margin-bottom: 5px; font-size: 13px; }
.open-data-stats span { color: rgba(255,255,255,.68); font-size: 11px; line-height: 1.4; }

/* Temas */
.explore-section { width: min(var(--content), calc(100% - 48px)); margin: 68px auto 0; }
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.theme-card {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.theme-card:hover { transform: translateY(-3px); border-color: #b4cfde; box-shadow: var(--shadow-sm); }
.theme-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--blue-75); }
.theme-icon img { width: 21px; height: 21px; }
.theme-copy strong { display: block; margin: 2px 0 6px; font-size: 14px; }
.theme-copy small { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 11.5px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.theme-arrow { position: absolute; right: 18px; bottom: 14px; color: var(--blue-600); font-size: 18px; }

/* Editorial */
.editorial-section { width: min(var(--content), calc(100% - 48px)); margin: 72px auto 72px; }
.editorial-heading { padding-top: 36px; border-top: 1px solid var(--line); }
.editorial-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.featured-article {
  min-height: 430px;
  display: grid;
  grid-template-columns: .82fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.featured-art { position: relative; min-height: 100%; overflow: hidden; background: var(--blue-800); }
.featured-art::after { content: none; }
.featured-art img { width: 100%; height: 100%; object-fit: cover; }
.featured-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 34px; }
.article-tag { display: inline-flex; padding: 6px 9px; border-radius: 999px; color: var(--blue-800); background: var(--cyan-100); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.featured-copy h3 { margin: 16px 0 12px; font-size: clamp(25px, 2.3vw, 36px); line-height: 1.13; letter-spacing: -.04em; }
.featured-copy p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.68; }
.article-meta { display: flex; gap: 14px; margin: 20px 0; color: var(--muted); font-size: 11px; }
.article-link, .article-card a { color: var(--blue-700); font-size: 12.5px; font-weight: 850; text-decoration: none; }
.article-link:hover, .article-card a:hover { text-decoration: underline; }
.article-list { display: grid; grid-template-rows: repeat(3, 1fr); gap: 10px; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.article-card-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.article-date { color: var(--muted); font-size: 10.5px; }
.article-card h3 { margin: 12px 0 7px; font-size: 17px; line-height: 1.25; letter-spacing: -.015em; }
.article-card p { margin: 0 0 12px; color: var(--text); font-size: 12px; line-height: 1.5; }
.article-card a { margin-top: auto; }

/* Rodapé */
.site-footer { color: rgba(255,255,255,.72); background: var(--navy-1000); }
.footer-main {
  width: min(var(--content), calc(100% - 48px));
  min-height: 250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, .72fr);
  gap: 48px;
  align-items: start;
  padding: 54px 0 42px;
}
.footer-brand img { width: 360px; max-width: 100%; }
.footer-brand p { max-width: 440px; margin: 18px 0 0; font-size: 13px; line-height: 1.65; }
.footer-column { display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.footer-column strong { margin-bottom: 4px; color: #fff; font-size: 13px; }
.footer-column a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-column a:hover { color: #fff; }
.footer-column span { line-height: 1.45; }
.footer-bottom { width: min(var(--content), calc(100% - 48px)); min-height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }

/* Páginas internas */
.internal-main { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 80px; }
.internal-hero { color: #fff; background: var(--navy-900); }
.internal-hero-inner { width: min(1200px, calc(100% - 48px)); min-height: 260px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 44px 0; }
.internal-hero h1 { max-width: 780px; margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -.05em; }
.internal-hero p { max-width: 780px; margin: 16px 0 0; color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.6; }
.back-link { display: inline-flex; margin-bottom: 26px; color: #bdebf4; font-size: 12px; font-weight: 800; text-decoration: none; }
.catalog-toolbar { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-bottom: 24px; }
.catalog-toolbar input, .catalog-toolbar select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.catalog-card { display: flex; flex-direction: column; min-height: 260px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.catalog-card .article-tag { align-self: flex-start; }
.catalog-card h2 { margin: 14px 0 8px; font-size: 20px; }
.catalog-card p { margin: 0; color: var(--text); font-size: 12.5px; line-height: 1.6; }
.catalog-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.catalog-meta div { padding: 9px; border-radius: 9px; background: var(--surface-soft); }
.catalog-meta span { display: block; color: var(--muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; }
.catalog-meta strong { display: block; margin-top: 4px; font-size: 11px; }
.catalog-path { margin-top: auto; padding: 10px; border-radius: 9px; color: var(--blue-800); background: var(--cyan-100); font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.article-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.article-index .article-card { min-height: 250px; }
.prose { max-width: 850px; margin: 0 auto; }
.prose h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -.05em; }
.prose h2 { margin-top: 42px; font-size: 27px; }
.prose p, .prose li { color: var(--text); font-size: 16px; line-height: 1.8; }
.prose .lead { color: var(--ink); font-size: 20px; line-height: 1.6; }
.prose-note { margin: 32px 0; padding: 20px; border-left: 4px solid var(--cyan-500); border-radius: 0 12px 12px 0; background: var(--cyan-100); }

/* Modo ampliado */
body.focus-mode { overflow: hidden; }
body.focus-mode .site-header, body.focus-mode .module-intro, body.focus-mode .context-section, body.focus-mode .open-data-band, body.focus-mode .explore-section, body.focus-mode .editorial-section, body.focus-mode .site-footer, body.focus-mode .report-help { display: none; }
body.focus-mode .report-section { width: 100%; margin: 0; }
body.focus-mode .report-toolbar { border-radius: 0; }
body.focus-mode .report-frame-shell { height: calc(100vh - 74px); min-height: 0; border-radius: 0; border: 0; }
body.focus-mode .powerbi-frame { height: calc(100vh - 74px); min-height: 0; }
body.focus-mode .action-button.primary::after { content: 'Sair'; }
body.focus-mode .action-button.primary span { display: none; }

@media (max-width: 1220px) {
  .utility-nav { display: none; }
  .module-intro-inner { grid-template-columns: 1fr; gap: 20px; }
  .intro-actions { justify-content: flex-start; }
  .open-data-band { grid-template-columns: 100px 1fr; }
  .open-data-stats { grid-column: 1 / -1; }
  .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1.4fr repeat(3, .8fr); gap: 28px; }
}

@media (max-width: 940px) {
  .aviation-strip { display: none; }
  .context-grid, .editorial-layout { grid-template-columns: 1fr; }
  .dataset-panel { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-article { min-height: 360px; }
  .catalog-grid, .article-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar-inner, .module-tabs, .module-intro-inner, .report-section, .context-section, .open-data-band, .explore-section, .editorial-section, .footer-main, .footer-bottom { width: min(100% - 28px, var(--content)); }
  .topbar-inner { min-height: 92px; }
  .brand img { width: 330px; max-width: calc(100vw - 92px); }
  .menu-button { display: grid; place-items: center; }
  .nav-shell { display: none; }
  .nav-shell.open { display: block; }
  .module-tabs { flex-direction: column; padding: 8px 0 12px; overflow: visible; }
  .module-tab { width: 100%; min-height: 44px; border-bottom: 0; border-left: 3px solid transparent; border-radius: 8px; }
  .module-tab.active { border-left-color: var(--cyan-300); }
  .module-intro-inner { min-height: 0; padding: 26px 0; }
  .intro-actions { flex-wrap: wrap; }
  .report-toolbar { align-items: flex-start; flex-direction: column; }
  .report-actions { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .powerbi-frame, .report-frame-shell { min-height: 620px; height: 74vh; }
  .open-data-band { width: min(100% - 28px, var(--content)); padding: 28px; grid-template-columns: 1fr; }
  .open-data-visual { width: 76px; height: 76px; }
  .open-data-visual img { width: 40px; height: 40px; }
  .featured-article { grid-template-columns: 1fr; }
  .featured-art { min-height: 230px; }
  .article-list { grid-template-rows: none; }
}

@media (max-width: 620px) {
  .module-copy h1 { font-size: 31px; }
  .module-copy p { font-size: 14px; }
  .intro-actions { display: grid; grid-template-columns: 1fr; }
  .intro-link { justify-content: center; }
  .report-toolbar { padding: 13px; }
  .report-actions { grid-template-columns: 1fr 1fr; }
  .action-button.primary { grid-column: 1 / -1; }
  .powerbi-frame, .report-frame-shell { min-height: 560px; height: 70vh; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .context-section { margin-top: 48px; }
  .method-card { grid-template-columns: 1fr; padding: 22px; }
  .fact-grid, .dataset-links, .open-data-stats, .theme-grid, .catalog-grid, .article-index { grid-template-columns: 1fr; }
  .open-data-band { border-radius: 20px; }
  .open-data-actions { flex-direction: column; }
  .featured-copy { padding: 24px; }
  .featured-copy h3 { font-size: 28px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
  .catalog-toolbar { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Ajustes visuais v3: composição plana e referências à aviação */
.site-header { position: sticky; top: 0; }
.topbar { border-bottom: 4px solid var(--blue-700); }
.utility-nav a::after { background: var(--cyan-300); }
.module-tab { border-right: 1px solid rgba(255,255,255,.06); }
.module-tab:first-child { border-left: 1px solid rgba(255,255,255,.06); }
.module-tab img { width: 18px; height: 18px; }
.module-tab.active { background: var(--blue-800); border-bottom-color: var(--cyan-300); }
.module-tab:hover { background: var(--navy-850); }

.intro-side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.intro-aviation { display: flex; align-items: center; gap: 10px; }
.intro-aviation span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px;
  background: var(--navy-900);
}
.intro-aviation span img { width: 27px; height: 27px; filter: brightness(0) invert(1); }
.intro-aviation i { width: 34px; height: 1px; border-top: 1px dashed rgba(255,255,255,.5); }
.intro-link { background: var(--blue-700); }
.intro-link:hover { background: var(--navy-900); }
.intro-link-strong { background: #fff; }
.intro-link-strong:hover { background: #eaf5fa; }

.report-title-group { display: flex; align-items: center; gap: 12px; }
.report-title-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-75);
}
.report-title-icon img { width: 23px; height: 23px; }

.open-data-stats div { position: relative; padding-left: 52px; }
.open-data-stats div > img {
  position: absolute;
  left: 14px;
  top: 17px;
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.open-data-stats div strong, .open-data-stats div span { display: block; }

@media (max-width: 1220px) {
  .module-tab { font-size: 11.5px; padding: 0 7px; }
  .module-tab img { width: 16px; height: 16px; }
}

@media (max-width: 940px) and (min-width: 761px) {
  .module-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .module-tab { min-height: 46px; }
  .site-header { position: sticky; }
}

@media (max-width: 760px) {
  .site-header { position: sticky; }
  .intro-side { align-items: flex-start; }
  .intro-aviation { display: none; }
  .module-tabs { display: flex; }
  .module-tab { justify-content: flex-start; text-align: left; border-right: 0; }
}


@media (max-width: 520px) {
  .topbar-inner { min-height: 84px; }
  .brand img { width: 285px; max-width: calc(100vw - 82px); }
}


/* ============================================================
   DATA ROOM V4 — refinamento visual
   ============================================================ */

:root {
  --module-accent: #16A7D4;
  --violet: #735FC2;
  --coral: #D96855;
  --teal: #128D91;
  --amber: #C98722;
}

/* Marca: mais presença e melhor leitura */
.topbar-inner {
  min-height: 118px;
}
.brand img {
  width: 520px;
  max-width: 55vw;
  height: auto;
}
.footer-brand img {
  width: 440px;
  max-width: 100%;
}

/* Sem ícones decorativos no topo */
.aviation-strip {
  display: none !important;
}

/* Menu principal mais legível e com cor funcional por tema */
.nav-shell {
  background: #041A2D;
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.module-tabs {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.module-tab {
  min-height: 68px;
  gap: 10px;
  padding: 7px 10px;
  border-bottom-width: 4px;
  color: rgba(255,255,255,.78);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.1;
}
.module-tab-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--tab-accent, #16A7D4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.13);
}
.module-tab-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}
.module-tab > img {
  display: none;
}
.module-tab-label {
  display: inline-block;
}
.module-tab:hover {
  color: #fff;
  background: #073452;
}
.module-tab.active {
  color: #fff;
  background: #0A4F7E;
  border-bottom-color: var(--tab-accent, #16A7D4);
}
.module-tab.active .module-tab-icon {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 4px 12px rgba(0,0,0,.16);
}

/* Introdução: composição plana, sem desenhos e sem padronagem */
.module-intro {
  background: #07568F;
  border-bottom: 4px solid var(--module-accent);
}
.module-intro-pattern,
.intro-aviation {
  display: none !important;
}
.module-intro-inner {
  min-height: 142px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
}
.intro-side {
  gap: 0;
}
.module-copy h1 {
  font-size: clamp(31px, 3.1vw, 48px);
}
.eyebrow {
  color: #D7F4FA;
}
.eyebrow img {
  width: 20px;
  height: 20px;
}

/* Toolbar mais limpa */
.report-toolbar {
  min-height: 80px;
}
.report-title-icon {
  width: 46px;
  height: 46px;
  background: color-mix(in srgb, var(--module-accent) 14%, white);
  border: 1px solid color-mix(in srgb, var(--module-accent) 28%, #d9e6ee);
}
.report-title-icon img {
  width: 24px;
  height: 24px;
}
.report-toolbar h2 {
  color: var(--module-accent);
  font-size: 23px;
  font-weight: 800;
}
.report-kicker {
  color: #55768E;
}
.action-button {
  min-height: 42px;
  padding: 9px 15px;
  font-size: 13px;
}
.action-button img {
  width: 18px;
  height: 18px;
}

/* Títulos de seções com identidade cromática distinta */
.section-heading h2 {
  font-weight: 800;
}
.context-section .section-heading h2 {
  color: var(--teal);
}
.context-section .section-kicker {
  color: var(--teal);
}
.explore-section .section-heading h2 {
  color: var(--violet);
}
.explore-section .section-kicker {
  color: var(--violet);
}
.editorial-section .section-heading h2 {
  color: var(--coral);
}
.editorial-section .section-kicker {
  color: var(--coral);
}
.open-data-copy h2 {
  color: #FFFFFF;
}
.open-data-band .section-kicker {
  color: #8FE8F1;
}
.card-label {
  color: var(--module-accent);
}
.method-card h3 {
  color: #124E72;
}
.dataset-panel h3 {
  color: #725EAF;
}

/* Cartões relacionados recebem o acento do tema */
.theme-card .theme-icon {
  background: color-mix(in srgb, var(--theme-accent) 18%, white);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 32%, #d9e6ee);
}
.theme-card .theme-icon img {
  filter: none;
}
.theme-card:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 55%, #c4d8e5);
}

/* Mobile/tablet */
@media (max-width: 1220px) {
  .brand img {
    width: 455px;
    max-width: 50vw;
  }
  .module-tab {
    font-size: 13px;
    padding-inline: 7px;
  }
  .module-tab-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }
  .module-tab-icon img {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 940px) and (min-width: 761px) {
  .module-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .module-tab {
    min-height: 58px;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: 96px;
  }
  .brand img {
    width: 390px;
    max-width: calc(100vw - 92px);
  }
  .module-tab {
    min-height: 54px;
    gap: 12px;
    font-size: 14px;
  }
  .module-tab-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

@media (max-width: 520px) {
  .topbar-inner {
    min-height: 88px;
  }
  .brand img {
    width: 330px;
    max-width: calc(100vw - 78px);
  }
}


/* ============================================================
   DATAROOM V5 — full width + mobile-first + SEO content
   ============================================================ */

:root {
  --page-pad: clamp(18px, 3vw, 52px);
  --text-measure: 1080px;
}

/* Full width: o site ocupa a tela inteira; apenas o texto recebe respiro interno. */
.topbar-inner,
.module-tabs,
.module-intro-inner,
.context-section,
.explore-section,
.editorial-section,
.footer-main,
.footer-bottom {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.topbar-inner,
.module-intro-inner,
.context-section,
.explore-section,
.editorial-section,
.footer-main,
.footer-bottom {
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.module-tabs {
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.report-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
}

.report-toolbar {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.report-frame-shell {
  width: 100%;
  min-height: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
}

.powerbi-frame {
  width: 100%;
  min-height: 0;
  border: 0;
}

.report-help {
  margin: 0;
  padding: 12px var(--page-pad) 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.module-intro-inner {
  padding-top: 30px;
  padding-bottom: 30px;
}

.context-section,
.explore-section,
.editorial-section,
.seo-content-section {
  margin-top: 0;
  padding-top: 72px;
  padding-bottom: 72px;
}

.context-section {
  background: #f7fbfd;
}

.explore-section {
  background: #ffffff;
}

.editorial-section {
  background: #f7fbfd;
  margin-bottom: 0;
}

.open-data-band {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  padding: 48px var(--page-pad);
  grid-template-columns: 110px minmax(0, 1.4fr) minmax(340px, .9fr);
}

.site-footer {
  margin-top: 0;
}

/* Seção textual estática para descoberta, navegação e indexação. */
.seo-content-section {
  width: 100%;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  background: #ffffff;
}
.seo-content-section .section-heading {
  max-width: var(--text-measure);
}
.seo-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.seo-topic-card {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan-500);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.seo-topic-card:nth-child(2) { border-top-color: #E99A2D; }
.seo-topic-card:nth-child(3) { border-top-color: #8270D6; }
.seo-topic-card:nth-child(4) { border-top-color: #E06472; }
.seo-topic-card:nth-child(5) { border-top-color: #3489D1; }
.seo-topic-card:nth-child(6) { border-top-color: #C95BA5; }
.seo-topic-card:nth-child(7) { border-top-color: #C89A30; }
.seo-topic-card:nth-child(8) { border-top-color: #2EAF7D; }
.seo-topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.seo-topic-card strong {
  color: var(--navy-900);
  font-size: 17px;
}
.seo-topic-card span {
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

/* Conteúdo textual legível mesmo em telas muito largas. */
.section-heading > div,
.module-copy {
  max-width: var(--text-measure);
}

/* Desktop largo: marca e navegação continuam visíveis sem caixa central. */
.topbar-inner {
  min-height: 116px;
}
.brand-picture {
  display: block;
}
.brand img {
  width: 520px;
  max-width: 46vw;
}
.utility-nav {
  padding-right: 4px;
}

/* Tablet */
@media (max-width: 1100px) {
  .seo-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .open-data-band {
    grid-template-columns: 90px 1fr;
  }
  .open-data-stats {
    grid-column: 1 / -1;
  }
}

/* Versão mobile: mesmo HTML/URL, layout próprio. */
@media (max-width: 760px) {
  :root { --page-pad: 16px; }

  body {
    overflow-x: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .topbar-inner {
    width: 100%;
    min-height: 88px;
    padding: 8px 12px 8px 14px;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-picture,
  .brand-picture img {
    width: 100%;
  }

  .brand img {
    width: 330px;
    max-width: calc(100vw - 76px);
    height: auto;
  }

  .menu-button {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 13px;
  }

  /* O menu abre abaixo do cabeçalho, sem empurrar o relatório e permanece ligado ao topo sticky. */
  .nav-shell {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--navy-1000);
    box-shadow: 0 16px 36px rgba(3,31,52,.28);
  }
  .nav-shell.open { display: block; }

  .module-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .module-tab {
    width: 100%;
    min-height: 68px;
    justify-content: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-left: 4px solid transparent;
    border-radius: 12px;
    text-align: left;
    font-size: 13px;
    background: rgba(255,255,255,.035);
  }

  .module-tab.active {
    border-left-color: var(--tab-accent, var(--cyan-300));
    border-bottom-color: rgba(255,255,255,.08);
    background: #0A4F7E;
  }

  .module-tab-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .module-tab-icon img {
    width: 21px;
    height: 21px;
  }

  .module-intro-inner {
    width: 100%;
    padding: 24px var(--page-pad);
  }

  .module-copy h1 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .module-copy p {
    font-size: 14px;
  }

  .intro-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .intro-link {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .report-toolbar {
    width: 100%;
    padding: 12px var(--page-pad);
    align-items: stretch;
    flex-direction: column;
  }

  .report-title-group {
    align-items: flex-start;
  }

  .report-toolbar h2 {
    font-size: 20px;
  }

  .report-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .action-button {
    min-height: 44px;
  }

  .report-frame-shell,
  .powerbi-frame {
    width: 100%;
    min-height: 0 !important;
  }

  .report-help {
    font-size: 12px;
    line-height: 1.5;
  }

  .context-section,
  .explore-section,
  .editorial-section,
  .seo-content-section {
    width: 100%;
    padding: 52px var(--page-pad);
  }

  .open-data-band {
    width: 100%;
    padding: 34px var(--page-pad);
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: clamp(27px, 8vw, 35px);
  }

  .context-grid,
  .editorial-layout,
  .fact-grid,
  .dataset-links,
  .theme-grid,
  .article-index {
    grid-template-columns: 1fr;
  }

  .seo-topic-grid {
    grid-template-columns: 1fr;
  }

  .seo-topic-card {
    min-height: 0;
  }

  .footer-main {
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .footer-brand img {
    width: 330px;
    max-width: 100%;
  }

  .footer-bottom {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

@media (max-width: 390px) {
  .module-tabs {
    grid-template-columns: 1fr;
  }
  .intro-actions {
    grid-template-columns: 1fr;
  }
}

/* Modo ampliado continua ocupando toda a viewport. */
body.focus-mode .report-section,
body.focus-mode .report-frame-shell,
body.focus-mode .powerbi-frame {
  width: 100% !important;
  max-width: none !important;
}


/* Páginas internas também seguem o princípio full width. */
.internal-main,
.internal-hero-inner {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.internal-main {
  padding-top: 56px;
  padding-bottom: 80px;
}

.internal-hero-inner {
  padding-top: 46px;
  padding-bottom: 46px;
}

.internal-subnav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 var(--page-pad);
  border-top: 1px solid rgba(255,255,255,.08);
  background: var(--navy-1000);
}
.internal-subnav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: rgba(255,255,255,.78);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.internal-subnav a:hover,
.internal-subnav a[aria-current="page"] {
  color: #fff;
  background: #073452;
  border-bottom-color: var(--cyan-300);
}

@media (max-width: 760px) {
  .internal-subnav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 0;
    padding: 0;
  }
  .internal-subnav a {
    min-height: 48px;
    justify-content: center;
    padding: 6px 4px;
    font-size: 11px;
    text-align: center;
    line-height: 1.15;
  }
  .internal-main {
    padding-top: 42px;
    padding-bottom: 62px;
  }
  .internal-hero-inner {
    padding-top: 34px;
    padding-bottom: 34px;
  }
}

@media (max-width: 390px) {
  .internal-subnav {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}


/* ============================================================
   DATAROOM V6 — EXPERIÊNCIA MÓVEL REAL
   No celular, o portal NÃO é a página desktop simplesmente empilhada.
   ============================================================ */

.mobile-only {
  display: none;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
  }

  body {
    padding-bottom: 70px;
    background: #F3F7FA;
  }

  body.mobile-panel-open {
    overflow: hidden;
    padding-bottom: 0;
  }

  .desktop-experience {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  /* CABEÇALHO MÓVEL */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: #06345C;
  }

  .topbar {
    border-bottom: 0;
  }

  .topbar-inner {
    min-height: 76px;
    padding: 6px 10px 6px 14px;
  }

  .brand img {
    width: min(268px, calc(100vw - 76px));
    max-width: none;
  }

  .menu-button {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    background: rgba(255,255,255,.09);
  }

  .menu-button img {
    width: 24px;
    height: 24px;
  }

  /* SHEET DE TEMAS */
  .nav-shell {
    display: none;
    position: fixed;
    z-index: 290;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 68px;
    padding: 14px;
    background: #041A2D;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,.32);
  }

  .nav-shell.open {
    display: block;
  }

  .module-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
  }

  .module-tab {
    min-height: 88px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 10px 7px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    border-left: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: #082B45;
    text-align: center;
    font-size: 12px;
  }

  .module-tab.active {
    border: 1px solid var(--tab-accent);
    background: #0A4168;
  }

  .module-tab-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
  }

  .module-tab-icon img {
    width: 24px;
    height: 24px;
  }

  /* HOME MÓVEL */
  .mobile-dashboard {
    min-height: calc(100dvh - 146px);
    padding: 24px 16px 34px;
    background: #F3F7FA;
  }

  .mobile-module-head {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr);
    gap: 14px;
    align-items: center;
  }

  .mobile-module-icon {
    --mobile-accent: #16A7D4;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: var(--mobile-accent);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--mobile-accent) 24%, transparent);
  }

  .mobile-module-icon img {
    width: 31px;
    height: 31px;
    filter: brightness(0) invert(1);
  }

  .mobile-module-heading {
    min-width: 0;
  }

  .mobile-kicker {
    display: block;
    margin-bottom: 3px;
    color: #507188;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .mobile-module-heading h1 {
    margin: 0;
    color: #062B48;
    font-size: clamp(24px, 7.2vw, 31px);
    line-height: 1.05;
    letter-spacing: -.035em;
  }

  .mobile-module-description {
    margin: 17px 0 20px;
    color: #48687E;
    font-size: 14px;
    line-height: 1.58;
  }

  /* BOTÃO PRINCIPAL DO PAINEL */
  .mobile-open-panel {
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) 24px;
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 12px 14px;
    border: 0;
    border-radius: 18px;
    background: #07568F;
    color: #fff;
    text-align: left;
    box-shadow: 0 12px 28px rgba(6,52,92,.18);
    cursor: pointer;
  }

  .mobile-open-panel-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.13);
  }

  .mobile-open-panel-icon img {
    width: 27px;
    height: 27px;
    filter: brightness(0) invert(1);
  }

  .mobile-open-panel strong,
  .mobile-open-panel small {
    display: block;
  }

  .mobile-open-panel strong {
    font-size: 16px;
    font-weight: 850;
  }

  .mobile-open-panel small {
    margin-top: 4px;
    color: #C6E7F4;
    font-size: 11.5px;
  }

  .mobile-open-panel b {
    font-size: 23px;
  }

  /* FATOS RÁPIDOS */
  .mobile-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .mobile-facts article {
    display: grid;
    grid-template-columns: 82px minmax(0,1fr);
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid #DCE7EE;
    border-radius: 13px;
    background: #fff;
  }

  .mobile-facts span {
    color: #718B9D;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .mobile-facts strong {
    color: #173D58;
    font-size: 12px;
    line-height: 1.35;
  }

  /* ATALHOS */
  .mobile-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .mobile-shortcuts a {
    min-width: 0;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 10px;
    border: 1px solid #DDE8EF;
    border-radius: 15px;
    background: #fff;
    text-decoration: none;
  }

  .mobile-shortcuts a > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin-bottom: 3px;
    border-radius: 10px;
    background: #EAF5FA;
  }

  .mobile-shortcuts a:nth-child(2) > span {
    background: #F0EDFB;
  }

  .mobile-shortcuts a:nth-child(3) > span {
    background: #FFF0E9;
  }

  .mobile-shortcuts img {
    width: 18px;
    height: 18px;
  }

  .mobile-shortcuts strong {
    color: #113C59;
    font-size: 12px;
  }

  .mobile-shortcuts small {
    color: #708B9D;
    font-size: 9.8px;
    line-height: 1.3;
  }

  /* OUTROS TEMAS */
  .mobile-theme-section {
    margin-top: 30px;
  }

  .mobile-section-title span {
    color: #735FC2;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  .mobile-section-title h2 {
    margin: 3px 0 12px;
    color: #173D58;
    font-size: 21px;
  }

  .mobile-theme-list {
    display: grid;
    gap: 8px;
  }

  .mobile-theme-card {
    --theme-accent: #16A7D4;
    width: 100%;
    min-height: 66px;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 20px;
    gap: 10px;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid #DDE7ED;
    border-left: 4px solid var(--theme-accent);
    border-radius: 14px;
    background: #fff;
    text-align: left;
  }

  .mobile-theme-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--theme-accent) 16%, white);
  }

  .mobile-theme-icon img {
    width: 22px;
    height: 22px;
  }

  .mobile-theme-card strong,
  .mobile-theme-card small {
    display: block;
  }

  .mobile-theme-card strong {
    color: #173D58;
    font-size: 13px;
  }

  .mobile-theme-card small {
    margin-top: 2px;
    color: #7890A0;
    font-size: 10.5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-theme-card b {
    color: var(--theme-accent);
    font-size: 18px;
  }

  /* CARD INSTITUCIONAL CURTO */
  .mobile-about-card {
    margin-top: 28px;
    padding: 19px;
    border-radius: 18px;
    background: #062F50;
    color: #fff;
  }

  .mobile-about-card .mobile-kicker {
    color: #7ED7EA;
  }

  .mobile-about-card h2 {
    margin: 4px 0 8px;
    font-size: 20px;
  }

  .mobile-about-card p {
    margin: 0 0 13px;
    color: #C5DAE7;
    font-size: 12px;
    line-height: 1.55;
  }

  .mobile-about-card a {
    color: #7ED7EA;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
  }

  /* BOTTOM NAV */
  .mobile-bottom-nav {
    position: fixed;
    z-index: 310;
    left: 0;
    right: 0;
    bottom: 0;
    height: 68px;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid #DCE6EC;
    box-shadow: 0 -8px 22px rgba(4,36,59,.08);
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #607D91;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-bottom-nav img {
    width: 21px;
    height: 21px;
    opacity: .78;
  }

  .mobile-bottom-nav .active {
    color: #07568F;
  }

  /* OVERLAY DO POWER BI */
  .mobile-report-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: #fff;
  }

  .mobile-report-overlay.open {
    display: grid;
    grid-template-rows: 62px minmax(0,1fr) 34px;
  }

  .mobile-report-topbar {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) 46px;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    background: #06345C;
    color: #fff;
  }

  .mobile-report-close,
  .mobile-report-reload {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.10);
    color: #fff;
  }

  .mobile-report-close span {
    font-size: 30px;
    line-height: 1;
    transform: translateY(-1px);
  }

  .mobile-report-reload img {
    width: 21px;
    height: 21px;
    filter: brightness(0) invert(1);
  }

  .mobile-report-title {
    min-width: 0;
    text-align: center;
  }

  .mobile-report-title span,
  .mobile-report-title strong {
    display: block;
  }

  .mobile-report-title span {
    color: #9DDDEE;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .mobile-report-title strong {
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
  }

  .mobile-report-stage {
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    background: #F2F6F8;
  }

  .mobile-powerbi-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
  }

  .mobile-report-loading {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #F3F7FA;
    color: #173D58;
    transition: opacity .2s ease;
  }

  .mobile-report-loading.hidden {
    opacity: 0;
    pointer-events: none;
  }

  .mobile-report-loading p {
    margin: 0;
    color: #6A8395;
    font-size: 11px;
  }

  .mobile-report-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    background: #F7FAFC;
    border-top: 1px solid #DCE6EC;
    color: #668094;
    font-size: 9.8px;
    text-align: center;
  }

  .mobile-report-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #2EAF7D;
  }

  /* Rodapé desktop não é necessário no app móvel */
  .site-footer {
    display: none;
  }
}

@media (max-width: 380px) {
  .mobile-shortcuts {
    grid-template-columns: 1fr;
  }

  .mobile-shortcuts a {
    min-height: 72px;
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
  }

  .mobile-shortcuts a > span {
    grid-row: 1 / 3;
  }

  .module-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) {
  .desktop-experience {
    display: block;
  }

  .mobile-report-overlay,
  .mobile-bottom-nav,
  .mobile-dashboard {
    display: none !important;
  }
}


/* V6.1 — refinamento visual móvel após validação */
@media (max-width:760px) {
  .mobile-dashboard {
    padding-top: 20px;
  }

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

  .mobile-module-icon {
    display: none;
  }

  .mobile-module-heading h1 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .mobile-module-description {
    margin-top: 10px;
  }

  .mobile-open-panel-icon {
    display: none;
  }

  .mobile-open-panel {
    grid-template-columns: minmax(0,1fr) 24px;
    min-height: 74px;
    padding: 14px 16px;
  }

  .mobile-shortcuts a > span {
    display: none;
  }

  .mobile-shortcuts a {
    min-height: 88px;
    justify-content: center;
    padding: 12px;
  }

  .mobile-shortcuts strong {
    font-size: 13px;
  }

  .mobile-shortcuts small {
    font-size: 10px;
  }

  .mobile-theme-icon {
    width: 38px;
    height: 38px;
  }

  .mobile-theme-icon img {
    width: 20px;
    height: 20px;
  }

  .mobile-theme-card {
    grid-template-columns: 38px minmax(0,1fr) 18px;
  }
}
