/* ─────────────────────────────────────────────────────────────
   Plataforma AGROGENÔMICA — Design Tokens & Estilos
   Paleta herdada do NAPI Microbioma de Solos (DESIGN.md)
   Tipografia Panton → substituída por Mulish (Google Fonts)
   Conformidade WCAG 2.1 Nível AA / e-MAG
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --c-ink:        #0a2230;   /* Azul-Marinho profundo (autoridade) */
  --c-ink-2:      #14304a;
  --c-cream:      #fcf9de;   /* Creme (fundo, respiro) */
  --c-cream-2:    #f5f0c8;
  --c-paper:      #fffdf5;
  --c-green:      #92c251;   /* Verde vivo (destaque em fundo escuro / elementos gráficos) */
  --c-green-2:    #98c771;
  --c-green-dark: #68a654;   /* Verde escuro (hover / bordas) */
  --c-green-deep: #3f6b2e;
  --c-green-text: #2c571d;   /* Verde acessível para texto sobre creme/papel (contraste > 7.2:1 WCAG AA) */
  --c-earth:      #4f3320;   /* Marrom — base/ancoragem (contraste > 9.5:1) */
  --c-earth-2:    #5b3f2c;
  --c-earth-3:    #3d2314;
  --c-tan:        #8c6d46;   /* Tom médio acessível para bordas/detalhes */
  --c-line:       #e4dfbc;
  --c-line-soft:  #ede9c6;
  --c-muted:      #565134;   /* Contraste > 6.4:1 sobre --c-cream e --c-paper (WCAG AA) */

  /* Status (acessível) */
  --c-warn:   #9e5211;
  --c-ok:     #266834;

  /* Tipografia */
  --ff-display: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --ff-body:    "Mulish", "Helvetica Neue", Arial, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Espaçamento & Raios */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10,34,48,.06), 0 2px 8px rgba(10,34,48,.04);
  --shadow-md: 0 10px 30px rgba(10,34,48,.10), 0 2px 6px rgba(10,34,48,.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--ff-body);
  background: var(--c-cream);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

main:focus { outline: none; }

::selection { background: var(--c-green); color: var(--c-ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; text-decoration: none; }
a.link { color: var(--c-green-text); text-decoration: underline; text-underline-offset: 3px; }
a.link:hover { color: var(--c-ink); }

button { font-family: inherit; }

/* Foco visível universal para acessibilidade por teclado (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[role="link"]:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--c-green-dark);
  outline-offset: 3px;
}

/* Tipografia utilitária — espaçamento melhorado (AS-2) */
.t-eyebrow {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-earth);
}
.t-display {
  font-family: var(--ff-display);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--c-ink);
}
.t-h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--c-ink);
}
.t-h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--c-ink);
}
.t-script {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--c-ink); color: var(--c-cream); }
.btn--primary:hover { background: var(--c-ink-2); }

.btn--green { background: var(--c-green); color: var(--c-ink); }
.btn--green:hover { background: var(--c-green-dark); color: var(--c-cream); }

.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: var(--c-cream); }

.btn--ghost-light { background: transparent; color: var(--c-cream); border-color: rgba(252,249,222,0.45); }
.btn--ghost-light:hover { background: var(--c-cream); color: var(--c-ink); border-color: var(--c-cream); }

.btn--sm { padding: 8px 14px; font-size: 12px; }
.btn--lg { padding: 16px 24px; font-size: 15px; }

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
}

/* Faixa de acessibilidade (e-MAG) */
.a11y-bar {
  background: var(--c-ink);
  color: var(--c-cream);
  font-size: 12px;
  border-bottom: 1px solid rgba(252,249,222,0.1);
}
.a11y-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  flex-wrap: wrap;
  padding-top: 4px;
  padding-bottom: 4px;
}
.a11y-bar .group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.a11y-bar .keys { display: flex; gap: 12px; }
@media (max-width: 820px) {
  .a11y-bar .keys { display: none; }
}
.a11y-bar .keys a {
  color: rgba(252,249,222,0.85);
  font-size: 11px;
}
.a11y-bar .keys a:hover { color: var(--c-green); }
.a11y-bar .keys kbd {
  font-family: var(--ff-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(252,249,222,0.12);
  border: 1px solid rgba(252,249,222,0.22);
  margin-right: 4px;
}
.a11y-bar button {
  background: transparent;
  border: 1px solid rgba(252,249,222,0.3);
  color: var(--c-cream);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  font-family: var(--ff-display);
}
.a11y-bar button:hover { background: rgba(252,249,222,0.1); }
.a11y-bar button.is-active { background: var(--c-green); color: var(--c-ink); border-color: var(--c-green); }

/* Topbar — header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--c-cream);
  border-bottom: 1px solid var(--c-line);
}
.topbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}
.brandmark {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.brandmark .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brandmark .wordmark .top {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brandmark .wordmark .sub {
  font-family: var(--ff-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--c-earth);
  margin-top: 4px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--c-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav a:hover { background: var(--c-cream-2); }
.nav a.is-active { background: var(--c-ink); color: var(--c-cream); }

/* Badge discreto "Em breve" (Item 2.2.1) */
.nav-badge {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--c-cream-2);
  color: var(--c-earth);
  border: 1px solid var(--c-line);
  line-height: 1.2;
}
.nav-badge--dark {
  background: rgba(252,249,222,0.12);
  color: var(--c-green-2);
  border-color: rgba(252,249,222,0.22);
  margin-left: 6px;
}

.nav .has-menu { position: relative; }
.nav .menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  min-width: 260px;
  padding: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
.nav .has-menu:hover .menu,
.nav .has-menu:focus-within .menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav .menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}
.nav .menu a small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-muted);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.topbar .actions { display: flex; align-items: center; gap: 10px; }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--c-ink);
  border-radius: var(--r-pill);
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
}

@media (max-width: 1120px) {
  .nav { display: none; }
  .topbar .actions .btn { display: none; }
  .mobile-toggle { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--c-cream);
  z-index: 50;
  padding: 28px 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
}

/* Cards */
.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 24px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--c-green);
  color: var(--c-ink);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--c-cream-2);
  color: var(--c-earth);
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--c-line);
}
.tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-green-dark);
}

.prelim-pill {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: #fff7e6;
  border: 1px solid #f0d9a0;
  color: #6e5000;
  white-space: nowrap;
}

.prelim-banner {
  background: #fff7e6;
  border-bottom: 1px solid #f0d9a0;
  color: #6e5000;
  font-size: 12.5px;
  font-family: var(--ff-mono);
  text-align: center;
  padding: 8px 16px;
}

/* Hero — capa */
.hero {
  position: relative;
  background: var(--c-cream);
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
  padding: 24px 0 34px;
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 20px 0 30px; }
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-paper);
  margin-bottom: 24px;
}
.hero .kicker .pin {
  background: var(--c-green);
  color: var(--c-ink);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-family: var(--ff-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.hero .kicker .txt {
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-earth);
}
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--c-ink);
}
.hero h1 .accent { color: var(--c-green-text); }
.hero .hero-inst {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--c-earth);
  margin: 0 0 20px;
  padding: 8px 12px;
  background: var(--c-cream-2);
  border-left: 3px solid var(--c-green-dark);
  border-radius: 0 8px 8px 0;
  max-width: 560px;
}
.hero p.lead {
  font-size: 17px;
  line-height: 1.58;
  max-width: 540px;
  color: var(--c-ink-2);
  margin: 0 0 28px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── INFOGRÁFICO DA PLATAFORMA (AS-3 / SR-1) ─── */
.infographic-box {
  background: var(--c-paper);
  border: 1.5px solid var(--c-line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.infographic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}
.infographic-badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-green-text);
  font-weight: 600;
}
.infographic-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.infographic-fomento {
  font-family: var(--ff-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-cream);
}
.infographic-layer-label {
  font-family: var(--ff-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-earth);
  margin-top: 2px;
}
.infographic-napis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 720px) {
  .infographic-napis { grid-template-columns: 1fr; }
}
.info-node {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.info-node:hover {
  transform: translateY(-2px);
  border-color: var(--c-ink);
  box-shadow: var(--shadow-sm);
}
.info-node.is-milho {
  border-style: dashed;
  background: #fffdf0;
}
.info-node-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.info-tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--c-muted);
}
.info-node strong {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--c-ink);
}
.info-node span {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--c-muted);
}
.infographic-connectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 14px;
  padding: 0 24px;
}
.infographic-connectors span {
  border-left: 1.5px dashed var(--c-tan);
  margin: 0 auto;
  height: 100%;
}
.info-transversal {
  background: var(--c-ink);
  color: var(--c-cream);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: background .15s ease, transform .15s ease;
}
.info-transversal:hover {
  background: var(--c-ink-2);
  transform: translateY(-1px);
}
.info-transversal-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.info-tag-dark {
  font-family: var(--ff-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-green);
}
.info-transversal strong {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 15.5px;
}
.info-transversal span {
  font-size: 11.5px;
  color: rgba(252,249,222,0.8);
  line-height: 1.4;
}
.infographic-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .infographic-platforms { grid-template-columns: 1fr; }
}
.info-plat {
  background: var(--c-cream-2);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-plat-kicker {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-earth);
}
.info-plat strong {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--c-ink);
}
.info-plat small {
  font-size: 11px;
  color: var(--c-muted);
  line-height: 1.35;
}
.infographic-insts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--c-line);
}
@media (max-width: 560px) {
  .infographic-insts { grid-template-columns: repeat(2, 1fr); }
}
.info-inst-chip {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  height: 36px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-inst-chip img {
  max-height: 24px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* Stat strip */
.stat-strip {
  background: var(--c-ink);
  color: var(--c-cream);
  position: relative;
  overflow: hidden;
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 28px 32px;
}
.stat-strip .item {
  border-left: 1px solid rgba(252,249,222,0.14);
  padding: 8px 18px;
}
.stat-strip .item:first-child { border-left: 0; padding-left: 0; }
.stat-strip .num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-green);
}
.stat-strip .num .plus { color: rgba(252,249,222,0.55); }
.stat-strip .lbl {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(252,249,222,0.85);
}
.stat-strip .item .note {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(252,249,222,0.68);
  font-style: italic;
}
.stat-strip .item.is-placeholder {
  border-left: 1px dashed rgba(252,249,222,0.22);
}
.stat-strip .num-placeholder {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  color: rgba(252,249,222,0.35);
  border: 1.5px dashed rgba(252,249,222,0.25);
  border-radius: 10px;
  padding: 4px 14px;
  display: inline-block;
}
.stat-strip .ph-mono {
  font-family: var(--ff-mono);
  color: var(--c-green);
}
@media (max-width: 920px) {
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .stat-strip .item { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .stat-strip .container { grid-template-columns: 1fr; }
}

/* Section header (AS-2 corrigido: line-height 1.08) */
.sect-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.sect-head h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 6px 0 0;
}
.sect-head .meta {
  font-family: var(--ff-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-earth);
  font-weight: 700;
}
@media (max-width: 720px) {
  .sect-head { grid-template-columns: 1fr; }
}

/* Section spacing */
section { padding: 40px 0; }
@media (max-width: 760px) { section { padding: 30px 0; } }

/* Sub-arranjo card */
.napi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.napi-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1020px) {
  .napi-grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .napi-grid { grid-template-columns: 1fr; } }

.napi-hierarchy-label {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.napi-hierarchy-label span {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-earth);
  background: var(--c-cream-2);
  border: 1px solid var(--c-line);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}

.napi-hierarchy-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 6px 0;
}
.napi-connector-stems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  height: 18px;
}
.napi-connector-stems span {
  width: 2px;
  height: 100%;
  background: var(--c-tan);
  margin: 0 auto;
}
.napi-connector-bus {
  width: 68%;
  height: 2px;
  background: var(--c-tan);
}
.napi-connector-center-stem {
  width: 2px;
  height: 16px;
  background: var(--c-tan);
}
.napi-connector-pill {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-cream);
  background: var(--c-ink);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin: 2px 0 12px;
  letter-spacing: 0.04em;
}
@media (max-width: 1020px) {
  .napi-connector-stems, .napi-connector-bus { display: none; }
}

.napi-card--transversal {
  border-width: 1.5px;
  border-color: var(--c-ink);
}
.transversal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: center;
}
.transversal-side {
  border-left: 1px dashed var(--c-line);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 860px) {
  .transversal-grid { grid-template-columns: 1fr; gap: 18px; }
  .transversal-side { border-left: 0; padding-left: 0; border-top: 1px dashed var(--c-line); padding-top: 16px; }
}

.napi-card {
  position: relative;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.napi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-earth);
}
.napi-card .top-band {
  height: 8px;
  background: var(--c-green);
}
.napi-card.is-feijao .top-band { background: var(--c-earth); }
.napi-card.is-soja .top-band { background: var(--c-green-dark); }
.napi-card.is-microbioma .top-band { background: var(--c-green); }
.napi-card.is-equipamentos .top-band { background: var(--c-ink); }

.napi-card .body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.napi-card .head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.napi-card h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.015em;
}
.napi-card h3 small {
  display: block;
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-earth);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.napi-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--c-ink-2);
}
.napi-card .leads {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--c-earth);
  padding-top: 14px;
  border-top: 1px dashed var(--c-line);
}
.napi-card .leads strong {
  color: var(--c-ink);
  font-weight: 700;
}
.napi-card .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  margin-top: auto;
}
.napi-card .badge-line {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.napi-card .arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.napi-card:hover .arrow {
  background: var(--c-green-dark);
  transform: rotate(-45deg);
}

/* Quote / mission */
.mission {
  background: var(--c-earth);
  color: var(--c-cream);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 67px; /* altura da .topbar sticky: /#rede não esconde o título sob o cabeçalho */
}
.mission .container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .mission .container { grid-template-columns: 1fr; gap: 32px; }
}
.mission h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 16px 0 24px;
  color: var(--c-cream);
}
.mission h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--c-green-2);
}
.mission p {
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(252,249,222,0.9);
  max-width: 560px;
}
.mission .pillars {
  display: grid;
  gap: 14px;
}
.mission .pillar {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(252,249,222,0.18);
  border-radius: var(--r-lg);
  background: rgba(252,249,222,0.05);
}
.mission .pillar .num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--c-green);
  line-height: 1;
}
.mission .pillar h3 {
  margin: 0 0 6px;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--c-cream);
}
.mission .pillar p {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(252,249,222,0.78);
  margin: 0;
}

/* Destaque de Publicação Científica (23WCSS 2026) */
.pub-highlight-card {
  background: var(--c-paper);
  border: 1.5px solid var(--c-line);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 320px);
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 860px) {
  .pub-highlight-card { grid-template-columns: 1fr; }
}
.pub-highlight-body h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--c-ink);
}
.pub-highlight-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-cream);
  cursor: pointer;
  max-height: 320px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.pub-highlight-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.pub-highlight-thumb:hover img { transform: scale(1.03); }
.pub-zoom-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--c-ink);
  color: var(--c-cream);
  font-family: var(--ff-mono);
  font-size: 10.5px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--c-earth); }
.news-card .thumb {
  aspect-ratio: 16/8;
  background: var(--c-ink);
  position: relative;
  overflow: hidden;
}
.news-card .thumb .news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.news-card:hover .thumb .news-thumb-img {
  transform: scale(1.03);
}
.news-card .thumb .stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(10,34,48,0.05) 12px 13px);
}
.news-card .thumb .label {
  position: absolute;
  bottom: 12px; left: 14px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-earth);
}
.news-card .body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.news-card .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--ff-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-earth);
  text-transform: uppercase;
  font-weight: 700;
}
.news-card h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 18.5px;
  line-height: 1.24;
  margin: 0;
  letter-spacing: -0.01em;
}
.news-card.featured h3 { font-size: 21px; }
.news-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-muted);
}
.news-expanded {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* Partners / footer */
.partners {
  background: var(--c-cream-2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.partners .container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 32px;
}
@media (max-width: 760px) { .partners .container { grid-template-columns: 1fr; } }
.partners h2 {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-earth);
  margin: 0;
}
.partners h2 small {
  display: block;
  font-weight: 400;
  margin-top: 6px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--c-muted);
  font-size: 12px;
}
.partners .logos-showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.partners .logos-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.partners .logo-card {
  height: 58px;
  min-width: 112px;
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease;
}
.partners .logo-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-tan);
}
.partners .logo-card--fomento {
  height: 64px;
  min-width: 150px;
  border-color: var(--c-tan);
}
.partners .logo-card img {
  max-height: 100%;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

footer.site {
  background: var(--c-ink);
  color: var(--c-cream);
  padding: 64px 0 24px;
}
footer.site .grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(252,249,222,0.14);
}
@media (max-width: 880px) { footer.site .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { footer.site .grid { grid-template-columns: 1fr; } }

footer.site h6 {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(252,249,222,0.75);
  margin: 0 0 16px;
}
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
footer.site ul a:hover { color: var(--c-green); cursor: pointer; }

footer.site .brand-block p { font-size: 13.5px; color: rgba(252,249,222,0.8); max-width: 340px; line-height: 1.55; margin: 0; }

footer.site .row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(252,249,222,0.7);
  flex-wrap: wrap;
  gap: 14px;
}
footer.site .row-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site .row-bottom a:hover { color: var(--c-green); cursor: pointer; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,34,48,0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--c-paper);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  animation: pop .25s ease;
}
.modal--wide {
  max-width: 860px;
}
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-cream-2);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal h3 { font-family: var(--ff-display); font-weight: 900; font-size: 26px; letter-spacing: -0.015em; margin: 0 0 8px; line-height: 1.15; }
.modal p { font-size: 14px; color: var(--c-muted); margin: 0 0 24px; line-height: 1.5; }

.pub-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.9fr);
  gap: 24px;
  align-items: start;
  margin-top: 14px;
}
@media (max-width: 760px) {
  .pub-modal-grid { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--ff-display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--c-earth); }
.field input {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--c-line);
  background: var(--c-cream);
  color: var(--c-ink);
}
.field input:focus { border-color: var(--c-green-dark); background: var(--c-paper); }

/* Sub-arranjo detail page */
.detail-hero {
  background: var(--c-cream);
  position: relative;
  overflow: hidden;
}
.detail-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 22px 32px 30px;
}
@media (max-width: 880px) { .detail-hero .container { grid-template-columns: 1fr; padding: 20px 20px 26px; } }
.detail-hero .crumb {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--ff-display);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--c-earth);
  margin-bottom: 10px;
  cursor: pointer;
}
.detail-hero .crumb:hover { color: var(--c-ink); }
.detail-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.microbioma-emblem-badge {
  height: clamp(68px, 7.5vw, 94px);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(10,34,48,0.10));
}
@media (max-width: 560px) {
  .detail-hero-title-row {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
  }
}
.detail-hero h1 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 4px 0 0;
  color: var(--c-ink);
}
.detail-hero h1 .accent {
  color: var(--c-green-text);
}
.detail-hero h1 .sub {
  display: block;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-earth);
  margin-bottom: 6px;
}

.video-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.video-switcher .chip {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  color: var(--c-ink);
  cursor: pointer;
}
.video-switcher .chip.on {
  background: var(--c-ink);
  color: var(--c-cream);
  border-color: var(--c-ink);
}

/* Grids responsivos das páginas de NAPI, Rede e Contato (Seção 2.1) */
.metas-grid {
  display: grid;
  gap: 20px;
}
.metas-grid--4 { grid-template-columns: repeat(4, 1fr); }
.metas-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) {
  .metas-grid--4, .metas-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .metas-grid--4, .metas-grid--3 { grid-template-columns: 1fr; }
}

.frentes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 820px) {
  .frentes-grid { grid-template-columns: 1fr; }
}

.frente-card {
  border-radius: 18px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.frente-card.is-open {
  border-color: var(--c-earth);
  box-shadow: var(--shadow-sm);
}
.frente-head {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  color: inherit;
}
.frente-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}
.frente-main h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 19px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.frente-main p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--c-ink-2);
}
.frente-hint {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--c-muted);
}

/* Galeria de fotos (Microbioma de Solos) */
.fotos-solos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .fotos-solos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .fotos-solos-grid { grid-template-columns: 1fr; }
}
.foto-solos-card {
  margin: 0;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.foto-solos-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-earth);
}
.foto-solos-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--c-ink);
  overflow: hidden;
}
.foto-solos-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.foto-solos-card:hover .foto-solos-img-wrap img {
  transform: scale(1.04);
}
.foto-solos-step {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10,34,48,0.85);
  color: var(--c-green);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(146,194,81,0.4);
}
.foto-solos-caption {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foto-solos-caption strong {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 15.5px;
  color: var(--c-ink);
  line-height: 1.25;
}
.foto-solos-caption p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-muted);
}
.frente-body {
  padding: 0 24px 22px 86px;
  border-top: 1px dashed var(--c-line);
  margin-top: -4px;
  padding-top: 14px;
}
@media (max-width: 560px) {
  .frente-body { padding: 14px 20px 20px; }
}
.frente-detalhes {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-muted);
}
.frente-insts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.frente-insts-label {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--c-earth);
  margin-right: 4px;
}

.glossario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 760px) {
  .glossario-grid { grid-template-columns: 1fr; }
}

.inst-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .inst-grid { grid-template-columns: 1fr; }
}
.inst-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-ink-2);
}

.entregas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .entregas-grid { grid-template-columns: 1fr; }
}
.entregas-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 540px) {
  .entregas-2col { grid-template-columns: 1fr; }
}

.cadastros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) {
  .cadastros-grid { grid-template-columns: 1fr; }
}

/* ─── ORGANOGRAMA COMPLETO POR UNIDADES (Microbioma 02-11-2026 — Item 2.2.5) ─── */
.solos-org-wrapper {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.solos-org-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 28px;
}
.solos-org-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.solos-org-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--c-ink);
  color: var(--c-cream);
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.solos-org-meta strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 16px;
}
.solos-org-meta span {
  font-size: 12px;
  color: var(--c-muted);
}
.solos-org-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.solos-org-search {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-cream);
  color: var(--c-ink);
  min-width: 240px;
}

.org-tree-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-node {
  background: var(--c-cream);
  border: 1.5px solid var(--c-line);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}
.org-node--gestao {
  background: var(--c-paper);
  border-color: var(--c-ink);
}
.org-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-cream-2);
  outline: 2px solid var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 14px;
  color: var(--c-ink);
  flex-shrink: 0;
}
.org-node-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}
.org-node-role {
  font-size: 11px;
  color: var(--c-earth);
  font-weight: 700;
  margin-top: 2px;
}
.org-node-inst {
  font-size: 11px;
  color: var(--c-muted);
}
.org-vline {
  width: 2px;
  height: 22px;
  background: var(--c-tan);
}
.org-coord-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.org-hline-bus {
  width: 92%;
  height: 2px;
  background: var(--c-tan);
  margin-bottom: 16px;
}

.org-units-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
@media (max-width: 1080px) {
  .org-units-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .org-units-grid { grid-template-columns: 1fr; }
}
.org-unit-col {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.org-unit-head {
  padding: 12px 14px;
  background: var(--c-cream-2);
  border-bottom: 1px solid var(--c-line);
}
.org-unit-sigla {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--c-ink);
}
.org-unit-count {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 2px;
}
.org-unit-leaders {
  padding: 10px 12px;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.org-unit-researchers {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.org-member {
  display: flex;
  align-items: center;
  gap: 8px;
}
.org-mini-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-cream-2);
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 10px;
  color: var(--c-earth);
  flex-shrink: 0;
}
.org-mini-avatar.is-leader {
  background: var(--c-ink);
  color: var(--c-cream);
  border-color: var(--c-ink);
}
.org-member-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.25;
}
.org-member--leader .org-member-name {
  font-weight: 800;
}
.org-member-role {
  font-size: 10.5px;
  color: var(--c-muted);
  line-height: 1.25;
}

/* Equipe / org chart padrão (CSS connectors — sem SVG desalinhado) */
.org-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .org-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .org-grid { grid-template-columns: 1fr; } }
.org-tier-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}
.org-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 18px;
  text-align: center;
  width: 240px;
}
.org-card .photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-line-soft);
  margin: 0 auto 12px;
  border: 2px solid var(--c-paper);
  outline: 2px solid var(--c-green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 900; font-size: 24px;
  color: var(--c-earth);
}
.org-card .name { font-family: var(--ff-display); font-weight: 800; font-size: 14.5px; line-height: 1.2; }
.org-card .role { font-family: var(--ff-display); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-earth); margin-top: 6px; font-weight: 700; }
.org-card .inst { font-size: 12px; color: var(--c-muted); margin-top: 4px; }

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.org-chart .tier {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.org-chart .tier-lead .org-card { min-width: 240px; }
.org-chart .tier-team {
  margin-top: 8px;
  gap: 12px;
}
.org-chart .tier-team .org-card {
  width: 175px;
  padding: 14px;
}
.org-css-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 540px;
  margin: 6px 0;
}
.org-css-stem {
  width: 2px;
  height: 20px;
  background: var(--c-tan);
}
.org-css-bar {
  width: 75%;
  height: 2px;
  background: var(--c-tan);
}

.org-card--sm .photo {
  width: 56px !important;
  height: 56px !important;
  font-size: 16px !important;
  margin-bottom: 8px;
}

.db-note {
  margin-top: 24px;
  padding: 12px 16px;
  background: var(--c-cream);
  border: 1px dashed var(--c-line);
  border-radius: var(--r-md);
  text-align: center;
}
.db-note code {
  background: var(--c-cream-2);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--c-earth);
}
.db-note.inline {
  display: inline-block;
  margin: 0;
  text-align: left;
}

/* Quiet scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-cream); }
::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-tan); }

/* ─── PARTICIPE (cadastro de interessados) ─── */
.participe {
  background: var(--c-cream-2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.participe-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: 44px;
  align-items: center;
}
@media (max-width: 980px) {
  .participe-grid { grid-template-columns: 1fr; gap: 32px; }
}
.participe-copy h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 12px 0 18px;
}
.participe-copy h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--c-green-text);
}
.participe-copy p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink-2);
  max-width: 460px;
}
.participe-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.participe-cards--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) {
  .participe-cards--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .participe-cards { grid-template-columns: 1fr; }
}
.participe-card {
  padding: 22px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .2s ease;
  min-height: 180px;
}
.participe-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-earth);
  box-shadow: var(--shadow-md);
}
.participe-card .ic {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}
.participe-card h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
}
.participe-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-muted);
  margin: 0;
}
.participe-card .cta-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-green-text);
  text-transform: uppercase;
  padding-top: 10px;
}
.participe-card.on-dark {
  background: rgba(252,249,222,0.05);
  border: 1px solid rgba(252,249,222,0.18);
  color: var(--c-cream);
}
.participe-card.on-dark p { color: rgba(252,249,222,0.78); }
.participe-card.on-dark:hover { border-color: var(--c-green); background: rgba(252,249,222,0.09); }
.participe-card.on-dark .cta-link { color: var(--c-green); }
.participe-card.contact-card .mono {
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--c-green-2);
  margin-top: 14px;
  line-height: 1.4;
  word-break: break-word;
}

/* ─── CONSTELAÇÃO (Equipe page satellite com logos das 10 ICTs) ─── */
.constelacao {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px dashed var(--c-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto;
}
.constelacao-ring {
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  pointer-events: none;
}
.constelacao .centro {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--ff-display);
  z-index: 1;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--c-paper);
}
.constelacao-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  margin-left: -37px;
  margin-top: -37px;
  background: var(--c-paper);
  border: 2px solid var(--c-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: transform .2s ease, border-color .2s ease;
}
.constelacao-node img {
  max-width: 54px;
  max-height: 44px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 480px) {
  .constelacao { transform: scale(0.84); }
}

/* ─── FILTER TABS (Equipe) ─── */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-tabs .chip {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-cream);
  color: var(--c-ink-2);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.filter-tabs .chip.on {
  background: var(--c-ink);
  color: var(--c-cream);
  border-color: var(--c-ink);
}

/* ─── NAPI CONTACT CARD ─── */
.napi-contact {
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  min-width: 0;
  overflow: hidden;
}
.napi-contact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-earth);
}
.napi-contact .cta-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-green-text);
  text-transform: uppercase;
}

/* ─── MODO ALTO CONTRASTE (Padrão e-MAG / WCAG AAA) ─── */
body.high-contrast {
  --c-cream:      #000000;
  --c-cream-2:    #0a0a0a;
  --c-paper:      #000000;
  --c-line:       #ffffff;
  --c-line-soft:  #444444;
  --c-ink:        #ffffff;
  --c-ink-2:      #f5f5f5;
  --c-earth:      #ffff00;
  --c-muted:      #e0e0e0;
  --c-green:      #00ff66;
  --c-green-2:    #00ff66;
  --c-green-dark: #ffff00;
  --c-green-text: #00ff66;
  --c-tan:        #ffffff;
  background: #000000 !important;
  color: #ffffff !important;
}
body.high-contrast .a11y-bar,
body.high-contrast .topbar,
body.high-contrast .stat-strip,
body.high-contrast .mission,
body.high-contrast footer.site,
body.high-contrast .detail-hero,
body.high-contrast section {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}
body.high-contrast .card,
body.high-contrast .napi-card,
body.high-contrast .news-card,
body.high-contrast .participe-card,
body.high-contrast .frente-card,
body.high-contrast .infographic-box,
body.high-contrast .info-node,
body.high-contrast .info-transversal,
body.high-contrast .info-plat,
body.high-contrast .solos-org-wrapper,
body.high-contrast .org-unit-col,
body.high-contrast .org-node,
body.high-contrast .org-card,
body.high-contrast .pub-highlight-card,
body.high-contrast .modal {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: none !important;
}
body.high-contrast .btn--primary,
body.high-contrast .btn--green {
  background: #ffff00 !important;
  color: #000000 !important;
  border-color: #ffff00 !important;
}
body.high-contrast .btn--ghost,
body.high-contrast .btn--ghost-light {
  background: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

body.font-lg { font-size: 18px; }
body.font-lg .hero h1 { font-size: clamp(44px, 6.5vw, 84px); }

/* ─── RESPEITO A MOVIMENTO REDUZIDO (WCAG 2.3.3) ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Faixa de impacto (Home) — SR-2 / DIR-7 ── */
.impacto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .impacto-grid { grid-template-columns: 1fr; } }

/* ── WhatsApp flutuante (RF08 / DIR-4) ── */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-fab--pill {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  gap: 10px;
  background: #1da851;
  border: 2px solid #ffffff;
}
.wa-fab-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.wa-fab-txt strong {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wa-fab-txt small {
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.95;
}
.wa-fab:hover { transform: scale(1.04); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34); }
.wa-fab:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
@media (max-width: 540px) {
  .wa-fab { right: 16px; bottom: 16px; }
  .wa-fab--pill { padding: 10px 14px; }
}
