/* ===================================================
   ORDEMIA · APOSTILA PREMIUM
   Português · Gramática · Edição 2026
   =================================================== */

/* --- TOKENS --- */
:root {
  --navy: #0B2E59;
  --navy-deep: #071F3D;
  --mint: #18E3A4;
  --mint-deep: #0FB57E;
  --mint-soft: #D8F8EC;
  --lime: #a6e84c;
  --off-white: #F6F8FB;
  --charcoal: #1F2937;
  --white: #FFFFFF;
  --muted: #5b6b7e;
  --line: #dde4ee;

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  --shadow-sm: 0 2px 8px rgba(11,46,89,.05);
  --shadow-md: 0 8px 24px rgba(11,46,89,.07);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --page-max: 880px;
  --page-px: 48px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--charcoal);
  background: #e8ecf2;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* --- PAGE SHELL --- */
.apostila {
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 60px rgba(11,46,89,.08);
}

.content {
  padding: var(--space-2xl) var(--page-px);
}

/* ============================================
   01 · CAPA
   ============================================ */
.capa {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3xl) var(--page-px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 400px at 85% 8%, rgba(24,227,164,.20), transparent 60%),
    radial-gradient(400px 300px at 10% 95%, rgba(24,227,164,.08), transparent 60%),
    linear-gradient(170deg, #071F3D 0%, #0B2E59 50%, #0E3C72 100%);
  color: var(--white);
}

/* Geometric decorative element */
.capa-geo {
  position: absolute;
  top: 40px;
  right: -20px;
  width: 260px;
  height: 260px;
  border: 3px solid rgba(24,227,164,.15);
  border-radius: 32px;
  transform: rotate(15deg);
  z-index: 1;
}
.capa-geo::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 3px solid rgba(255,255,255,.06);
  border-radius: 32px;
}

.capa > * { position: relative; z-index: 2; }

.capa-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: var(--space-xl);
}
.capa-badge::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--mint);
  border-radius: 9px;
}

.capa-titulo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 60px);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: var(--space-md);
}
.capa-titulo .accent { color: var(--mint); }

.capa-sub {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: var(--space-xl);
}

.capa-pills {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.capa-pills span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.75);
}

.capa-footer {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,.1);
}

.capa-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.capa-logo svg { width: 28px; height: 28px; }
.capa-logo b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--white);
}
.capa-logo b i { font-style: normal; color: var(--mint); }

.capa-info {
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.capa-info strong { color: rgba(255,255,255,.7); font-weight: 600; }


/* ============================================
   02 · CAPA DASHBOARD (Meta)
   ============================================ */
.capa-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.capa-dashboard-item {
  padding: var(--space-xl) var(--page-px);
  border-right: 1px solid var(--line);
}
.capa-dashboard-item:last-child {
  border-right: none;
}
.capa-dashboard-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}
.capa-dashboard-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  display: block;
}
.capa-dashboard-desc {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.capa-diff {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.capa-diff-bar {
  height: 6px;
  width: 24px;
  border-radius: 99px;
  background: var(--line);
}
.capa-diff-bar.active {
  background: var(--mint-deep);
}

@media (max-width: 800px) {
  .capa-dashboard { grid-template-columns: 1fr; }
  .capa-dashboard-item { border-right: none; border-bottom: 1px solid var(--line); padding: var(--space-lg) var(--page-px); }
  .capa-dashboard-item:last-child { border-bottom: none; }
}

/* ============================================
   03 · SUMÁRIO
   ============================================ */
.sumario {
  padding: var(--space-2xl) var(--page-px);
  border-bottom: 1px solid var(--line);
}

.sumario-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mint-deep);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.sumario-label::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--mint);
  border-radius: 9px;
}

.sumario-list {
  list-style: none;
  counter-reset: sum;
}

.sumario-link {
  counter-increment: sum;
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  color: inherit;
  transition: .2s;
}
.sumario-link:last-child { border-bottom: none; }
.sumario-link:hover { padding-left: 6px; color: var(--mint-deep); }

.sumario-link::before {
  content: counter(sum, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--mint-deep);
  min-width: 28px;
}
.sumario-link .t {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}
.sumario-link:hover .t { color: var(--mint-deep); }
.sumario-link .pg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   03 · CAPÍTULO HEADER
   ============================================ */
.cap-header {
  padding: var(--space-2xl) var(--page-px) var(--space-lg);
  border-bottom: 3px solid var(--navy);
  position: relative;
}
.cap-header::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: var(--page-px);
  width: 72px;
  height: 3px;
  background: var(--mint);
}

.cap-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin-bottom: 6px;
}

.cap-titulo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -1.2px;
  line-height: 1.08;
  color: var(--navy);
}

/* ============================================
   04 · HEADINGS
   ============================================ */
.h-secao {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.2px;
  color: var(--navy);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--line);
  position: relative;
}
.h-secao::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--mint);
}
.h-secao .num {
  color: var(--mint-deep);
  margin-right: 6px;
}

.h-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  margin: var(--space-xl) 0 var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.h-sub::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--mint);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================
   05 · TEXTO
   ============================================ */
p { margin-bottom: var(--space-md); }

.texto {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--charcoal);
}
.texto strong { color: var(--navy); font-weight: 600; }
.texto em { color: var(--mint-deep); font-style: normal; font-weight: 600; }
.texto code {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  background: var(--mint-soft);
  color: var(--mint-deep);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ============================================
   06 · CALLOUT BOXES
   ============================================ */
.box {
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}
.box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.box-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.box-head svg { width: 18px; height: 18px; flex-shrink: 0; }

.box-body {
  font-size: 14.5px;
  line-height: 1.7;
}
.box-body strong { font-weight: 600; }

/* Variantes */
.box--dica { background: linear-gradient(135deg,#f0fdf7,#D8F8EC); border: 1px solid rgba(24,227,164,.22); }
.box--dica::before { background: var(--mint); }
.box--dica .box-head { color: var(--mint-deep); }

.box--atencao { background: linear-gradient(135deg,#FFF8ED,#FFF0D4); border: 1px solid rgba(234,170,47,.22); }
.box--atencao::before { background: #EAA92F; }
.box--atencao .box-head { color: #B8860B; }

.box--importante { background: linear-gradient(135deg,#EBF0FF,#D6E0FF); border: 1px solid rgba(66,99,235,.18); }
.box--importante::before { background: #4263EB; }
.box--importante .box-head { color: #3651C9; }

.box--pegadinha { background: linear-gradient(135deg,var(--navy),var(--navy-deep)); border: none; }
.box--pegadinha::before { display: none; }
.box--pegadinha .box-head { color: var(--lime); }
.box--pegadinha .box-body { color: #d6e7f7; }
.box--pegadinha .box-body strong, .box--pegadinha .box-body b { color: var(--white); }
.box--pegadinha .box-body em { color: var(--lime); font-style: normal; font-weight: 700; }

.box--definicao { background: linear-gradient(135deg,var(--off-white),#eef3fa); border: 1px solid var(--line); }
.box--definicao::before { background: var(--navy); }
.box--definicao .box-head { color: var(--navy); }

.box--exemplo { background: linear-gradient(135deg,#F5F0FF,#E8DFFF); border: 1px solid rgba(124,77,255,.18); }
.box--exemplo::before { background: #7C4DFF; }
.box--exemplo .box-head { color: #5E35B1; }

.box--resumo { background: linear-gradient(135deg,var(--mint-soft),#f0fdf7); border: 1px solid rgba(24,227,164,.3); }
.box--resumo::before { background: var(--mint-deep); }
.box--resumo .box-head { color: var(--mint-deep); }

/* ============================================
   07 · MAPA EM ÁRVORE E FLUXO VERTICAL
   ============================================ */
.arvore {
  margin: var(--space-xl) 0;
  text-align: center;
}
.arvore-root {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
}
.arvore-root .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--mint);
}
.arvore-connector {
  height: 32px;
  width: 2px;
  background: var(--line);
  margin: 0 auto;
}
.arvore-branches {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.arvore-branch {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  position: relative;
  text-align: left;
}
.arvore-node {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--mint-deep);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.arvore-node.alt { border-top-color: var(--navy); }
.arvore-node b { display: block; font-family: var(--font-display); color: var(--navy); font-size: 15px; margin-bottom: 6px; }
.arvore-node p { margin: 0; font-size: 13.5px; color: var(--charcoal); line-height: 1.5; }
.arvore-leaves { margin-top: 14px; display: grid; gap: 8px; }
.arvore-leaf { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.arvore-leaf::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin-top: 7px; flex-shrink: 0; }

.passos {
  display: grid;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  position: relative;
}
.passos::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 26px;
  width: 2px;
  background: var(--line);
  z-index: 0;
}
.passo {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-lg);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 24px 16px 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  transition: transform .2s, box-shadow .2s;
}
.passo:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(24,227,164,.4);
}
.passo-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--mint);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(11,46,89,.2);
}
.passo p { margin: 0; font-size: 15px; color: var(--charcoal); line-height: 1.6; }
.passo p b { color: var(--navy); font-weight: 700; }
.passo p em { color: var(--muted); font-style: normal; font-size: 13.5px; display: block; margin-top: 4px; }

/* ============================================
   08 · TABELA
   ============================================ */
.tabela-wrap {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tabela thead {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.tabela th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  padding: 14px var(--space-md);
  text-align: left;
}

.tabela td {
  padding: 14px var(--space-md);
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.tabela tbody tr:last-child td { border-bottom: none; }
.tabela tbody tr:nth-child(even) { background: var(--off-white); }
.tabela tbody tr:hover { background: var(--mint-soft); transition: .15s; }
.tabela td strong { color: var(--navy); font-weight: 600; }
.tabela td code {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  background: var(--mint-soft);
  color: var(--mint-deep);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ============================================
   09 · CITAÇÃO DE LEI
   ============================================ */
.citacao-lei {
  position: relative;
  margin: var(--space-xl) 0;
  padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-xl);
  border-left: 4px solid var(--navy);
  background: linear-gradient(90deg, rgba(11,46,89, 0.04), transparent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--charcoal);
  font-style: italic;
}

.citacao-lei .lei-ref {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mint-deep);
  margin-bottom: 8px;
}

.citacao-lei strong {
  font-weight: 700;
  color: var(--navy);
  background: rgba(24,227,164, 0.15);
  padding: 0 4px;
  border-radius: 4px;
}

/* ============================================
   10 · LISTAS
   ============================================ */
.lista {
  margin: var(--space-md) 0 var(--space-lg);
  padding-left: var(--space-lg);
}
.lista li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.7;
}
.lista li::marker { color: var(--mint-deep); font-weight: 700; }

.lista--alpha { list-style-type: lower-alpha; }

.lista-check {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 var(--space-lg);
}
.lista-check li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 15px;
  line-height: 1.65;
}
.lista-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  font-weight: 800;
  color: var(--mint-deep);
}

/* ============================================
   10 · DESTAQUE DE LEI / CITAÇÃO
   ============================================ */
.citacao {
  margin: var(--space-lg) 0;
  padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, var(--off-white), #eef3fa);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: #41536a;
  font-style: italic;
}
.citacao .ref {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
}

/* ============================================
   11 · QUESTÃO
   ============================================ */
.questao {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.questao-top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.questao-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 5px 14px;
  border-radius: 99px;
}

.questao-banca {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--mint-deep);
  background: var(--mint-soft);
  padding: 5px 14px;
  border-radius: 99px;
}

.questao-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 99px;
}

.questao-enunciado {
  font-size: 15px;
  line-height: 1.72;
  margin-bottom: var(--space-md);
}

.alternativas {
  list-style: none;
  padding: 0;
}
.alternativas li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: 12px var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
  font-size: 14.5px;
  line-height: 1.6;
  transition: .12s;
  cursor: pointer;
  border: 1px solid transparent;
}
.alternativas li:hover { background: var(--off-white); }

.questao.respondida .alternativas li {
  cursor: default;
  pointer-events: none;
}

.alternativas .letra {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--navy);
  background: var(--off-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 2px solid var(--line);
  transition: .2s;
}

.questao.respondida .alternativas li[data-correta="true"] {
  background: linear-gradient(135deg, #f0fdf7, #D8F8EC);
  border-color: rgba(24,227,164,.4);
}
.questao.respondida .alternativas li[data-correta="true"] .letra {
  background: var(--mint-soft);
  border-color: var(--mint);
  color: var(--mint-deep);
}

.questao.respondida .alternativas li.selecionada:not([data-correta="true"]) {
  background: linear-gradient(135deg, #FFF0F0, #FFE0E0);
  border-color: rgba(220,50,50,.2);
}
.questao.respondida .alternativas li.selecionada:not([data-correta="true"]) .letra {
  background: #FFF0F0;
  border-color: #DC3232;
  color: #DC3232;
}

.gabarito {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  display: none;
  animation: fadeIn 0.4s ease;
}
.questao.respondida .gabarito {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.gabarito-feedback {
  margin-bottom: 12px;
}
.gabarito-feedback .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 99px;
}
.gabarito-feedback .tag--certo {
  background: var(--mint-soft);
  color: var(--mint-deep);
  border: 1px solid rgba(24,227,164,.4);
}
.gabarito-feedback .tag--errado {
  background: #FFF0F0;
  color: #DC3232;
  border: 1px solid rgba(220,50,50,.2);
}

.gabarito strong {
  color: var(--mint-deep);
  font-family: var(--font-display);
  font-weight: 800;
}

/* ============================================
   12 · SEPARADORES
   ============================================ */
.sep {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: var(--space-2xl) 0;
}
.sep--forte {
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--mint));
  border-radius: 2px;
  margin: var(--space-3xl) 0;
}

/* ============================================
   13 · COMPARATIVO LADO A LADO
   ============================================ */
.comparativo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.comparativo-col {
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid;
}

.comparativo-col--certo {
  background: linear-gradient(135deg, #f0fdf7, #D8F8EC);
  border-color: rgba(24,227,164,.3);
}
.comparativo-col--errado {
  background: linear-gradient(135deg, #FFF0F0, #FFE0E0);
  border-color: rgba(220,50,50,.18);
}

.comparativo-col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}
.comparativo-col--certo h4 { color: var(--mint-deep); }
.comparativo-col--errado h4 { color: #C02424; }

.comparativo-col ul {
  list-style: none;
  padding: 0;
}
.comparativo-col li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}
.comparativo-col--certo li::before { content: "✓"; position: absolute; left: 0; color: var(--mint-deep); font-weight: 800; }
.comparativo-col--errado li::before { content: "✕"; position: absolute; left: 0; color: #C02424; font-weight: 800; }

/* ============================================
   13.1 · PILLAR SPLIT (VS)
   ============================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: var(--space-xl) 0; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; background: var(--white); box-shadow: var(--shadow-sm); }
.pillar.a { border-top: 4px solid var(--mint-deep); background: linear-gradient(180deg, var(--mint-soft), #fff 60%); }
.pillar.b { border-top: 4px solid var(--navy); background: linear-gradient(180deg, #eaf1fb, #fff 60%); }
.pillar-top { display: flex; align-items: baseline; gap: 14px; }
.pillar-num { font-family: var(--font-display); font-weight: 900; font-size: 42px; line-height: 1; }
.pillar.a .pillar-num { color: var(--mint-deep); }
.pillar.b .pillar-num { color: var(--navy); }
.pillar h3 { font-family: var(--font-display); font-size: 19px; color: var(--navy); margin: 0; }
.pillar .sub { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.pillar p { font-size: 14.5px; color: var(--charcoal); margin: 14px 0 0; line-height: 1.6; }
.pillar .ex { font-size: 13px; color: var(--muted); margin-top: 10px; }
.pillar .ex b { color: var(--navy); }
.vs { position: relative; }
.vs::before {
  content: "VS"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-weight: 800; font-size: 12px; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(11,46,89,.25);
}

/* ============================================
   13.2 · CARDS GRADE ANIMADA
   ============================================ */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; margin: var(--space-xl) 0; }
.tcard {
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white);
  padding: 16px 14px 16px; border-top: 4px solid var(--mint); box-shadow: var(--shadow-sm); transition: .22s;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(24,227,164,.4); }
.tcard .verb { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--navy); line-height: 1.1; margin: 0; }
.tcard .name { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); margin: 2px 0 9px; }
.tcard .desc { font-size: 12.5px; color: var(--charcoal); line-height: 1.45; margin: 0; }
.tcard .marks { font-size: 11px; color: var(--muted); margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); }
.tcard .marks b { color: var(--navy); }
.tcard.c2 { border-top-color: var(--navy); }
.tcard.c3 { border-top-color: #C59738; }
.tcard.c4 { border-top-color: #6747FF; }
.tcard.c5 { border-top-color: var(--mint-deep); }

/* ============================================
   14 · DESTAQUE NUMÉRICO / STAT
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.stat {
  text-align: center;
  padding: var(--space-lg);
  background: var(--off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.stat .number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  color: var(--mint-deep);
  line-height: 1;
  margin-bottom: 6px;
}

.stat .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================
   15 · FLASHCARDS
   ============================================ */
.flashcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
  perspective: 1000px;
}

.flashcard {
  background-color: transparent;
  height: 220px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  perspective: 1000px;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
}

.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard:hover .flashcard-inner {
  box-shadow: var(--shadow-md);
}

.flashcard-front, .flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  border: 1px solid var(--line);
}

.flashcard-front {
  background: linear-gradient(135deg, #FFFFFF, #EEF3FA);
  color: var(--navy);
}

.flashcard-front h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: var(--navy);
}

.flashcard-front .tag {
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mint-deep);
  margin-bottom: 12px;
}

.flashcard-front .click-hint {
  font-size: 11px;
  color: var(--muted);
  position: absolute;
  bottom: 16px;
  font-weight: 600;
}

.flashcard-back {
  background: radial-gradient(420px 240px at 88% 10%, rgba(24,227,164,.32), transparent 60%), linear-gradient(135deg, #F6F8FB, #D8F8EC);
  color: var(--navy);
  transform: rotateY(180deg);
  border-color: rgba(24,227,164,.3);
}

.flashcard-back p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--charcoal);
}

.flashcard-back p strong {
  color: var(--navy);
  font-weight: 700;
}

/* ============================================
   16 · RODAPÉ
   ============================================ */
.rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--page-px);
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.rodape-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--navy);
}
.rodape-logo svg { width: 16px; height: 16px; }
.rodape-logo i { font-style: normal; color: var(--mint-deep); }
.rodape-brand { display: flex; flex-direction: column; line-height: 1.25; }
.rodape-brand b { font-size: 12px; }
.rodape-brand small { font-family: var(--font-body); font-weight: 600; font-size: 10px; letter-spacing: 0; color: var(--muted); }

.rodape-pg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--navy);
}

/* ============================================
   18 · RESPONSIVO
   ============================================ */
@media (max-width: 700px) {
  :root { --page-px: 24px; }
  .capa { min-height: 420px; }
  .capa-geo { display: none; }
  .esquema-grid--2, .esquema-grid--3 { grid-template-columns: 1fr; }
  .comparativo { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .fluxo { flex-direction: column; }
  .fluxo-arrow { transform: rotate(90deg); }
}

@media print {
  body { background: white; }
  .apostila { box-shadow: none; }
  .sep--forte { page-break-before: always; }
}

/* ============================================
   19 · AJUSTES DA APOSTILA PREMIUM
   (.cards e .split não quebravam no celular no CSS da apostila 05)
   ============================================ */
@media (max-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .cards { grid-template-columns: 1fr; } }
div.questao-enunciado > p { margin: 0 0 10px; }
.texto-base { background: var(--off-white); border-left: 3px solid var(--line); border-radius: 6px; padding: 12px 16px; margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.texto-base p { margin: 0 0 8px; }
.texto-base .fonte { font-size: 11.5px; color: var(--muted); margin: 6px 0 0; }

/* Definição de termo: <dfn> marca o ponto em que o conceito é ensinado (o conferidor de
   pré-requisitos lê essas marcas). Visualmente, igual ao destaque do termo-chave. */
dfn { font-style: normal; font-weight: 700; color: var(--navy); }

/* Questão discursiva (inédita OrdemIA) com roteiro de resposta que abre no clique */
.discursiva {
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mint-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.discursiva-top { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: 12px; }
.discursiva-num {
  font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .5px;
  text-transform: uppercase; color: var(--white); background: var(--navy); border-radius: 999px; padding: 4px 12px;
}
.discursiva-tipo {
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .4px;
  text-transform: uppercase; color: var(--mint-deep); background: var(--mint-soft); border-radius: 999px; padding: 4px 10px;
}
.discursiva-enunciado { font-size: 15px; line-height: 1.65; color: var(--charcoal); margin: 0 0 14px; }
.discursiva-roteiro { border-top: 1px dashed var(--line); padding-top: 12px; }
.discursiva-roteiro summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--navy);
  list-style: none; display: inline-flex; align-items: center; gap: 8px;
}
.discursiva-roteiro summary::-webkit-details-marker { display: none; }
.discursiva-roteiro summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-deep); font-weight: 900; }
.discursiva-roteiro[open] summary::before { content: "−"; }
.discursiva-roteiro ol { margin: 12px 0 0; padding-left: 22px; font-size: 14.5px; line-height: 1.6; color: var(--charcoal); }
.discursiva-roteiro li { margin-bottom: 6px; }
.discursiva-roteiro .discursiva-nota { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Ligação com o caderno de questões da meta (apostila e caderno) */
.pratique {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--space-lg) 0 var(--space-md);
  padding: 12px 16px;
  border: 1px dashed rgba(15,181,126,.5);
  border-radius: var(--radius-md);
  background: #f3fcf8;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--charcoal);
}
.pratique-rotulo {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--mint);
  border-radius: 999px;
  padding: 4px 10px;
}
.pratique strong { color: var(--navy); font-weight: 700; }
.caderno-indice {
  margin: var(--space-lg) 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--off-white);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.caderno-indice h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--navy);
}
.caderno-indice ul { margin: 0; padding: 0; list-style: none; }
.caderno-indice li { margin: 4px 0; }
.caderno-secao {
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--mint);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--navy);
}
@media (max-width: 600px) {
  .pratique { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===================================================
   ORDEMIA · APOSTILA PREMIUM · COMPONENTES VISUAIS
   Complemento de apostila_premium.css: não repete nem muda nada dela e só usa
   os tokens da folha base (var(--navy), var(--mint), var(--line)...).
   O montar_apostila.py junta esta folha depois da base, automaticamente.

   De onde vem cada bloco:
   · biblioteca validada (design-apostilas/Validado/componentes-didaticos.html):
     processo em chevrons, ciclo, pirâmide, matriz, info-stats, barras, rosca,
     mapa mental, napkin (hub e fluxo), síntese, frase-chave, checklist, saiba mais;
   · design.md, seção 14.3: linha do tempo;
   · estudo-por-edital (só leitura): resolução passo a passo e a ideia da análise
     de frase, refeita aqui sem script (rótulo e seta desenhados só com CSS);
   · criados aqui, no mesmo desenho: fluxograma com decisão, organograma em três
     níveis, resumo em árvore de texto, bloco de código e tabela-verdade.

   Regras: a primeira classe do elemento raiz é o nome do componente (o conferidor
   conta a variedade por ela); todo seletor interno fica preso à classe raiz;
   tudo cabe em 375 px sem rolagem lateral da página; tema claro, como a base.
   Catálogo (quando usar, limites, marcação): references/componentes-visuais.md
   Vitrine com todos os componentes: assets/vitrine_componentes.html
   =================================================== */

/* ============================================
   V1 · PROCESSO EM CHEVRONS (biblioteca 3a)
   Etapas em sequência linear. No celular, setas para baixo.
   ============================================ */
.esq-processo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--space-lg) 0;
}
.esq-processo .chevron {
  flex: 1;
  min-width: 120px;
  position: relative;
  background: var(--off-white);
  border: 1px solid var(--line);
  padding: 16px 22px 16px 30px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
}
.esq-processo .chevron:first-child {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  padding-left: 22px;
}
.esq-processo .chevron .n {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--mint-deep);
}
.esq-processo .chevron b {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  color: var(--navy);
  overflow-wrap: break-word;
}
.esq-processo .chevron span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.esq-processo .chevron.fill { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-color: transparent; }
.esq-processo .chevron.fill .n { color: var(--mint); }
.esq-processo .chevron.fill b { color: var(--white); }
.esq-processo .chevron.fill span { color: rgba(255,255,255,.75); }

@media (max-width: 700px) {
  .esq-processo { flex-direction: column; gap: 3px; }
  .esq-processo .chevron,
  .esq-processo .chevron:first-child {
    flex: none;
    min-width: 0;
    padding: 22px 18px 24px;
    text-align: center;
    clip-path: polygon(0 0, 50% 12px, 100% 0, 100% calc(100% - 12px), 50% 100%, 0 calc(100% - 12px));
  }
  .esq-processo .chevron:first-child {
    padding-top: 14px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% 100%, 0 calc(100% - 12px));
  }
}

/* ============================================
   V2 · CICLO (biblioteca 3b, com anel e setas em SVG)
   Quatro etapas: top, right, bottom, left. Três etapas: top, bottom-right,
   bottom-left. No celular vira lista com setas e a volta ao começo.
   ============================================ */
.esq-ciclo {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  margin: var(--space-xl) auto;
}
.esq-ciclo .ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.esq-ciclo .ring circle { fill: none; stroke: var(--mint); stroke-width: .8; stroke-dasharray: 2.4 1.8; }
.esq-ciclo .ring path { fill: var(--mint-deep); stroke: none; }
.esq-ciclo .ciclo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(11,46,89,.2);
}
.esq-ciclo .ciclo-center b { font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 1.15; }
.esq-ciclo .ciclo-node {
  position: absolute;
  width: 32%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--mint-deep);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.esq-ciclo .ciclo-node b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--navy);
  overflow-wrap: break-word;
}
.esq-ciclo .ciclo-node span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.esq-ciclo .ciclo-node.top          { top: 7%;  left: 50%; }
.esq-ciclo .ciclo-node.right        { top: 50%; left: 83%; }
.esq-ciclo .ciclo-node.bottom       { top: 93%; left: 50%; }
.esq-ciclo .ciclo-node.left         { top: 50%; left: 17%; }
.esq-ciclo .ciclo-node.bottom-right { top: 72%; left: 82%; }
.esq-ciclo .ciclo-node.bottom-left  { top: 72%; left: 18%; }

@media (max-width: 560px) {
  .esq-ciclo {
    aspect-ratio: auto;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: var(--space-lg) 0;
  }
  .esq-ciclo .ring { display: none; }
  .esq-ciclo .ciclo-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    aspect-ratio: auto;
    border-radius: var(--radius-md);
    padding: 12px 16px;
  }
  .esq-ciclo .ciclo-node,
  .esq-ciclo .ciclo-node[class] {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    text-align: left;
    padding: 10px 14px;
  }
  .esq-ciclo .ciclo-node::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -20px;
    width: 12px;
    height: 17px;
    transform: translateX(-50%);
    background:
      conic-gradient(from -30deg at 50% 100%, var(--mint-deep) 60deg, transparent 0) 50% 100% / 10px 7px no-repeat,
      linear-gradient(var(--mint), var(--mint)) 50% 0 / 2px 11px no-repeat;
  }
  .esq-ciclo::after {
    content: "\21BB  e o ciclo recomeça";
    align-self: center;
    margin-top: -8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    color: var(--mint-deep);
  }
}

/* ============================================
   V3 · PIRÂMIDE (biblioteca 3c, com quarto nível e eixo opcional)
   n1 é o topo. Com quatro níveis, use também .esq-piramide--4.
   ============================================ */
.esq-piramide { display: grid; gap: 4px; max-width: 560px; margin: var(--space-lg) auto; }
.esq-piramide .pir-nivel {
  width: 100%;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.3;
  color: var(--white);
  overflow-wrap: break-word;
}
.esq-piramide .pir-nivel small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.4;
  opacity: .9;
}
.esq-piramide .pir-nivel.n1 { width: 42%; background: linear-gradient(135deg, var(--mint), var(--mint-deep)); color: var(--navy-deep); }
.esq-piramide .pir-nivel.n2 { width: 64%; background: linear-gradient(135deg, #2f6fb0, #0E3C72); }
.esq-piramide .pir-nivel.n3 { width: 86%; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); }
.esq-piramide--4 .pir-nivel.n1 { width: 40%; }
.esq-piramide--4 .pir-nivel.n2 { width: 60%; }
.esq-piramide--4 .pir-nivel.n3 { width: 80%; background: linear-gradient(135deg, #0E3C72, var(--navy)); }
.esq-piramide--4 .pir-nivel.n4 { width: 100%; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); }
.esq-piramide .pir-eixo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.esq-piramide .pir-eixo span::before { content: "\25B2  "; color: var(--mint-deep); }
.esq-piramide .pir-eixo span + span::before { content: "\25BC  "; color: var(--navy); }

@media (max-width: 560px) {
  .esq-piramide .pir-nivel { padding: 10px; }
  .esq-piramide .pir-nivel.n1 { width: 56%; }
  .esq-piramide .pir-nivel.n2 { width: 78%; }
  .esq-piramide .pir-nivel.n3 { width: 100%; }
  .esq-piramide--4 .pir-nivel.n1 { width: 52%; }
  .esq-piramide--4 .pir-nivel.n2 { width: 68%; }
  .esq-piramide--4 .pir-nivel.n3 { width: 84%; }
  .esq-piramide .pir-eixo { flex-direction: column; }
}

/* ============================================
   V4 · MATRIZ 2 × 2 (biblioteca 3d, com eixos opcionais)
   Com .esq-matriz--eixos: canto, 2 cabeçalhos de coluna e, por linha,
   1 cabeçalho de linha + 2 células. No celular o cabeçalho da linha
   ocupa a largura toda, acima das duas células.
   ============================================ */
.esq-matriz {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: var(--space-lg) 0;
}
.esq-matriz .matriz-cell {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--off-white);
  box-shadow: var(--shadow-sm);
  overflow-wrap: break-word;
}
.esq-matriz .matriz-cell b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--navy);
}
.esq-matriz .matriz-cell p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--charcoal); }
.esq-matriz .matriz-cell.hi { background: var(--mint-soft); border-color: rgba(24,227,164,.35); }
.esq-matriz .matriz-cell.hi b { color: var(--mint-deep); }
.esq-matriz--eixos { grid-template-columns: minmax(96px, .8fr) repeat(2, minmax(0, 1fr)); }
.esq-matriz .matriz-canto {
  align-self: end;
  padding: 0 4px 6px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
}
.esq-matriz .matriz-col,
.esq-matriz .matriz-lin {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .8px;
  line-height: 1.3;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.esq-matriz .matriz-col {
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
}
.esq-matriz .matriz-lin {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mint-deep);
}

@media (max-width: 560px) {
  .esq-matriz { gap: 8px; }
  .esq-matriz .matriz-cell { padding: 12px; }
  .esq-matriz--eixos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .esq-matriz--eixos .matriz-canto { display: none; }
  .esq-matriz--eixos .matriz-lin { grid-column: 1 / -1; margin-top: 6px; }
}

/* ============================================
   V5 · FLUXOGRAMA COM DECISÃO (novo)
   Início, seta, losango com a pergunta e os ramos Sim e Não, cada um com
   passos e um fim. No celular os ramos empilham: primeiro o Sim, depois o Não.
   ============================================ */
.fluxograma {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--space-xl) 0;
}
.fluxograma .flx-inicio,
.fluxograma .flx-passo,
.fluxograma .flx-fim {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--charcoal);
  overflow-wrap: break-word;
}
.fluxograma .flx-inicio {
  max-width: 360px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
}
.fluxograma .flx-passo b,
.fluxograma .flx-fim b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--navy);
}
.fluxograma .flx-fim { background: linear-gradient(135deg, #f0fdf7, var(--mint-soft)); border-color: rgba(24,227,164,.35); }
.fluxograma .flx-fim b { color: var(--mint-deep); }

/* losango: SVG esticado no fundo (cores = --mint-soft e --mint-deep); o texto fica no miolo */
.fluxograma .flx-decisao {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-height: 124px;
  display: grid;
  place-items: center;
  padding: 30px 12px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: var(--navy);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon points='50,1.5 98.5,50 50,98.5 1.5,50' fill='%23D8F8EC' stroke='%230FB57E' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.fluxograma .flx-decisao > span { display: block; max-width: 56%; overflow-wrap: break-word; }

/* setas: a do tronco é um elemento (.flx-seta); dentro dos ramos, cada caixa desenha a sua */
.fluxograma .flx-seta,
.fluxograma .flx-ramo > .flx-passo::before,
.fluxograma .flx-ramo > .flx-fim::before,
.fluxograma .flx-ramo > .flx-decisao::before {
  background:
    conic-gradient(from -30deg at 50% 100%, var(--mint-deep) 60deg, transparent 0) 50% 100% / 10px 7px no-repeat,
    linear-gradient(var(--mint), var(--mint)) 50% 0 / 2px calc(100% - 6px) no-repeat;
}
.fluxograma .flx-seta { flex: none; width: 12px; height: 28px; }
.fluxograma .flx-ramo > .flx-passo::before,
.fluxograma .flx-ramo > .flx-fim::before,
.fluxograma .flx-ramo > .flx-decisao::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -21px;
  width: 12px;
  height: 19px;
  transform: translateX(-50%);
}

/* ramos: o "U" invertido sai da ponta de baixo do losango e desce para cada coluna */
.fluxograma .flx-ramos {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 30px;
}
.fluxograma .flx-ramos::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(25% - 4px);
  right: calc(25% - 4px);
  height: 30px;
  border: 2px solid var(--mint);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.fluxograma .flx-ramo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.fluxograma .flx-ramo > .flx-ramos { margin-top: -22px; }
.fluxograma .flx-rotulo {
  padding: 3px 14px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.fluxograma .flx-ramo--sim .flx-rotulo { color: var(--mint-deep); background: var(--mint-soft); border: 1px solid rgba(24,227,164,.45); }
.fluxograma .flx-ramo--nao .flx-rotulo { color: var(--navy); background: #eaf1fb; border: 1px solid rgba(11,46,89,.18); }

@media (max-width: 560px) {
  .fluxograma .flx-decisao { min-height: 120px; font-size: 13.5px; }
  .fluxograma .flx-ramos { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; }
  .fluxograma .flx-ramos::before {
    left: 50%;
    right: auto;
    width: 0;
    height: 24px;
    border: 0;
    border-left: 2px solid var(--mint);
    border-radius: 0;
    transform: translateX(-1px);
  }
  .fluxograma .flx-ramo + .flx-ramo { padding-top: 20px; border-top: 1px dashed var(--line); }
}

/* ============================================
   V6 · LINHA DO TEMPO (design.md, seção 14.3)
   Ano no chip; data completa e fato no cartão. No celular, ponto e linha à
   esquerda e o conteúdo à direita.
   ============================================ */
.timeline-estudo { position: relative; display: grid; gap: 14px; margin: var(--space-xl) 0; }
.timeline-estudo::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 108px;
  width: 3px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--mint), rgba(24,227,164,.18));
}
.timeline-estudo .timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 86px 28px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.timeline-estudo .timeline-date {
  justify-self: end;
  min-width: 78px;
  padding: 7px 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
.timeline-estudo .timeline-dot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin-top: 7px;
  border-radius: 50%;
  border: 4px solid var(--white);
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(24,227,164,.22);
}
.timeline-estudo .timeline-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--mint-deep);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--white), #f8fbff);
  box-shadow: var(--shadow-sm);
}
.timeline-estudo .timeline-card b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
  color: var(--navy);
}
.timeline-estudo .timeline-card span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--charcoal); }

@media (max-width: 700px) {
  .timeline-estudo::before { left: 16px; }
  .timeline-estudo .timeline-step { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .timeline-estudo .timeline-date { grid-column: 2; justify-self: start; margin-bottom: -4px; }
  .timeline-estudo .timeline-dot { grid-column: 1; grid-row: 1 / span 2; justify-self: center; margin-top: 4px; }
  .timeline-estudo .timeline-card { grid-column: 2; }
}

/* ============================================
   V7 · ORGANOGRAMA EM TRÊS NÍVEIS (novo)
   Topo; de 2 a 3 ramos lado a lado; em cada ramo, os filhos em lista com
   linha-guia. No celular os ramos empilham e a linha-guia passa para a esquerda.
   ============================================ */
.organograma { margin: var(--space-xl) 0; }
.organograma .org-topo {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.organograma .org-topo b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.25; }
.organograma .org-topo span { display: block; margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.65); }
.organograma .org-nivel2 {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 16px;
  padding-top: 22px;
}
.organograma .org-nivel2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 22px;
  border-left: 2px solid var(--mint);
  transform: translateX(-1px);
}
.organograma .org-ramo { position: relative; min-width: 0; padding-top: 22px; }
.organograma .org-ramo::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  right: -8px;
  border-top: 2px solid var(--mint);
}
.organograma .org-ramo:first-child::before { left: 50%; }
.organograma .org-ramo:last-child::before { right: 50%; }
.organograma .org-ramo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 22px;
  border-left: 2px solid var(--mint);
  transform: translateX(-1px);
}
.organograma .org-no {
  position: relative;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--mint-deep);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.organograma .org-ramo:nth-child(even) .org-no { border-top-color: var(--navy); }
.organograma .org-no b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.25; color: var(--navy); }
.organograma .org-no span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.organograma .org-filhos {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 10px 0 0 18px;
  padding: 0 0 0 20px;
}
.organograma .org-filhos li {
  position: relative;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  font-size: 13px;
  line-height: 1.45;
  color: var(--charcoal);
  overflow-wrap: break-word;
}
.organograma .org-filhos li b { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--navy); }
.organograma .org-filhos li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: -10px;
  width: 16px;
  height: calc(50% + 10px);
  border-left: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  border-bottom-left-radius: 8px;
}
.organograma .org-filhos li + li::before { top: -8px; height: calc(50% + 8px); }
.organograma .org-filhos li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  bottom: -8px;
  border-left: 2px solid var(--mint);
}

@media (max-width: 560px) {
  .organograma .org-topo { margin: 0; text-align: left; }
  .organograma .org-nivel2 {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0 0 24px;
  }
  .organograma .org-nivel2::before { display: none; }
  .organograma .org-ramo { padding-top: 0; }
  .organograma .org-ramo::before,
  .organograma .org-ramo:first-child::before,
  .organograma .org-ramo:last-child::before {
    left: -14px;
    right: auto;
    top: -14px;
    width: 12px;
    height: 38px;
    border-top: 0;
    border-left: 2px solid var(--mint);
    border-bottom: 2px solid var(--mint);
    border-bottom-left-radius: 8px;
  }
  .organograma .org-ramo::after { left: -14px; top: 24px; bottom: -14px; height: auto; transform: none; }
  .organograma .org-ramo:last-child::after { display: none; }
  .organograma .org-no { text-align: left; }
}

/* ============================================
   V8 · NÚMEROS COM BARRA (biblioteca 4a, info-stats)
   ============================================ */
.info-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.info-stats .info-stat {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--mint-deep);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.info-stats .info-stat .big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--navy);
}
.info-stats .info-stat .big i { font-style: normal; font-size: 18px; letter-spacing: 0; color: var(--mint-deep); }
.info-stats .info-stat .lab { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.info-stats .info-stat .bar { height: 6px; margin-top: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.info-stats .info-stat .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--mint-deep)); }

/* título e nota dos gráficos (barras e rosca): a nota diz de onde vêm os dados */
.info-barras .graf-titulo,
.info-donut .graf-titulo {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--navy);
}
.info-barras .graf-nota,
.info-donut .graf-nota { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* ============================================
   V9 · GRÁFICO DE BARRAS HORIZONTAIS (biblioteca 4b)
   A largura do .fill é o valor em % do maior (style="width:80%").
   ============================================ */
.info-barras { display: grid; gap: 12px; margin: var(--space-lg) 0; }
.info-barras .barra-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 56px;
  gap: 12px;
  align-items: center;
}
.info-barras .barra-row .nome { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--navy); overflow-wrap: break-word; }
.info-barras .barra-row .track { height: 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--off-white); overflow: hidden; }
.info-barras .barra-row .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--navy), #2f6fb0); }
.info-barras .barra-row .fill.mint { background: linear-gradient(90deg, var(--mint-deep), var(--mint)); }
.info-barras .barra-row .val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
  color: var(--navy);
}

/* ============================================
   V10 · GRÁFICO DE ROSCA COM LEGENDA (biblioteca 4c, fatias configuráveis)
   Fatias acumuladas no style da .donut: --p1 (fim da 1ª), --p2 (fim da 2ª),
   --p3 (fim da 3ª). Até 4 fatias; cores k1 a k4 na legenda.
   ============================================ */
.info-donut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-xl);
  margin: var(--space-lg) 0;
}
.info-donut .graf-titulo,
.info-donut .graf-nota { flex-basis: 100%; }
.info-donut .donut {
  --p1: 68%;
  --p2: 88%;
  --p3: 100%;
  position: relative;
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--mint-deep) 0 var(--p1), var(--navy) 0 var(--p2), #2f6fb0 0 var(--p3), var(--line) 0 100%);
}
.info-donut .donut::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}
.info-donut .donut .center { position: relative; z-index: 1; text-align: center; line-height: 1.1; }
.info-donut .donut .center b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 24px; color: var(--navy); }
.info-donut .donut .center span { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.info-donut .donut-legend { flex: 1 1 220px; min-width: 0; display: grid; gap: 10px; }
.info-donut .donut-legend div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.4; color: var(--charcoal); }
.info-donut .donut-legend b { min-width: 40px; font-family: var(--font-display); color: var(--navy); }
.info-donut .donut-legend .key { flex-shrink: 0; width: 12px; height: 12px; border-radius: 3px; background: var(--mint-deep); }
.info-donut .donut-legend .key.k2 { background: var(--navy); }
.info-donut .donut-legend .key.k3 { background: #2f6fb0; }
.info-donut .donut-legend .key.k4 { background: var(--line); }

@media (max-width: 560px) {
  .info-stats { grid-template-columns: minmax(0, 1fr); }
  .info-barras .barra-row { grid-template-columns: 96px minmax(0, 1fr) 48px; gap: 10px; }
  .info-donut { justify-content: center; }
  .info-donut .donut-legend { flex-basis: 100%; }
}

/* ============================================
   V11 · MAPA MENTAL (biblioteca 1)
   Ideia central no meio, de 2 a 3 ramos de cada lado.
   ============================================ */
.mindmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.mindmap .mm-col { display: grid; gap: var(--space-md); min-width: 0; }
.mindmap .mm-hub {
  position: relative;
  justify-self: center;
  min-width: 150px;
  max-width: 200px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--white);
  text-align: center;
  box-shadow: 0 10px 28px rgba(11,46,89,.25);
}
.mindmap .mm-hub .dot { width: 8px; height: 8px; margin: 0 auto 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(24,227,164,.2); }
.mindmap .mm-hub b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.2; }
.mindmap .mm-hub span { font-size: 11.5px; color: rgba(255,255,255,.65); }
.mindmap .mm-node {
  position: relative;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.mindmap .mm-node:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(24,227,164,.4); }
.mindmap .mm-node b { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 13.5px; color: var(--navy); }
.mindmap .mm-node p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.mindmap .mm-col--left .mm-node { border-right: 4px solid var(--mint-deep); }
.mindmap .mm-col--right .mm-node { border-left: 4px solid var(--mint-deep); }
.mindmap .mm-col--left .mm-node::after,
.mindmap .mm-col--right .mm-node::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--mint);
  transform: translateY(-50%);
}
.mindmap .mm-col--left .mm-node::after { right: -16px; }
.mindmap .mm-col--right .mm-node::after { left: -16px; }
.mindmap .mm-node.is-navy { border-color: var(--navy); }
.mindmap .mm-node.is-amber { border-top: 3px solid #EAA92F; }

@media (max-width: 740px) {
  .mindmap { grid-template-columns: minmax(0, 1fr); }
  .mindmap .mm-col--left .mm-node,
  .mindmap .mm-col--right .mm-node { border-left: 4px solid var(--mint-deep); border-right: 1px solid var(--line); }
  .mindmap .mm-col--left .mm-node::after,
  .mindmap .mm-col--right .mm-node::after { display: none; }
  .mindmap .mm-hub { order: -1; max-width: none; justify-self: stretch; }
}

/* ============================================
   V12 · IDEIA CENTRAL E DESDOBRAMENTOS (biblioteca 5b, napkin-hub)
   De 3 a 5 satélites numa linha. No celular, um por linha, ícone à esquerda.
   ============================================ */
.napkin-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.napkin-hub .nk-center {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 100%;
  padding: 14px 28px;
  border: 2px dashed var(--mint-deep);
  border-radius: var(--radius-lg);
  background: #f3fdf8;
  text-align: center;
}
.napkin-hub .nk-center b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.3; color: var(--navy); }
.napkin-hub .nk-center span { display: block; font-size: 12px; color: var(--muted); }
.napkin-hub .nk-sat {
  position: relative;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.napkin-hub .nk-sat::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 2px;
  height: 12px;
  background: var(--mint);
  transform: translateX(-50%);
}
.napkin-hub .nk-sat .ico { width: 30px; height: 30px; margin-bottom: 8px; border-radius: 8px; display: grid; place-items: center; background: var(--navy); }
.napkin-hub .nk-sat .ico svg { width: 18px; height: 18px; }
.napkin-hub .nk-sat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.3; color: var(--navy); overflow-wrap: break-word; }
.napkin-hub .nk-sat p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

@media (max-width: 560px) {
  .napkin-hub { grid-template-columns: minmax(0, 1fr); }
  .napkin-hub .nk-sat { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .napkin-hub .nk-sat .ico { grid-row: span 2; margin-bottom: 0; }
  .napkin-hub .nk-sat::before { left: 29px; }
}

/* ============================================
   V13 · CAUSA E EFEITO COM SETAS ROTULADAS (biblioteca 5a, napkin-flow)
   De 2 a 4 blocos. No celular, empilhados com a seta para baixo.
   ============================================ */
.napkin-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) 0;
}
.napkin-flow .nk-node {
  min-width: 120px;
  max-width: 220px;
  padding: 14px 18px;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.napkin-flow .nk-node b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 1.3; color: var(--navy); }
.napkin-flow .nk-node span { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); }
.napkin-flow .nk-node.accent { border-color: var(--mint-deep); background: var(--mint-soft); }
.napkin-flow .nk-arrow { display: flex; flex-direction: column; align-items: center; padding: 0 6px; }
.napkin-flow .nk-arrow span {
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  white-space: nowrap;
  color: var(--muted);
}
.napkin-flow .nk-arrow svg { width: 40px; height: 14px; }
.napkin-flow .nk-arrow svg path { stroke: var(--mint); }

@media (max-width: 700px) {
  .napkin-flow { flex-direction: column; }
  .napkin-flow .nk-node { width: 100%; max-width: 340px; }
  .napkin-flow .nk-arrow { padding: 4px 0; }
  .napkin-flow .nk-arrow svg { margin: 12px 0; transform: rotate(90deg); }
}

/* ============================================
   V14 · SÍNTESE (biblioteca 2)
   Pontos numerados à esquerda e a frase para guardar à direita.
   ============================================ */
.sintese {
  margin: var(--space-lg) 0;
  border: 1px solid rgba(24,227,164,.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--white), #f3fdf8);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sintese .sintese-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--mint-soft), #eafaf2);
  border-bottom: 1px solid rgba(24,227,164,.25);
}
.sintese .sintese-top svg { flex-shrink: 0; width: 20px; height: 20px; }
.sintese .sintese-top b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mint-deep);
}
.sintese .sintese-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.sintese .sintese-points { display: grid; gap: 12px; padding: 20px; }
.sintese .sintese-point { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.sintese .sintese-point .n {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--mint);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
}
.sintese .sintese-point p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--charcoal); }
.sintese .sintese-point p b { font-weight: 600; color: var(--navy); }
.sintese .sintese-key {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: var(--white);
}
.sintese .sintese-key span {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mint);
}
.sintese .sintese-key p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.4; }
.sintese .sintese-key p em { font-style: normal; color: var(--lime); }

@media (max-width: 700px) {
  .sintese .sintese-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================
   V15 · CHECKLIST DE REVISÃO (biblioteca 6b, sem script)
   Cada item é um <label> com <input type="checkbox">: marca no clique, sem JS.
   A marcação some ao recarregar a página.
   ============================================ */
.checklist {
  margin: var(--space-lg) 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}
.checklist .checklist-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}
.checklist .checklist-item:last-child { border-bottom: none; }
.checklist .checklist-item:hover { background: var(--off-white); }
.checklist .checklist-item input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.checklist .ck {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--white);
  transition: background .15s, border-color .15s;
}
.checklist .ck svg { width: 14px; height: 14px; opacity: 0; transition: opacity .15s; }
.checklist .ck svg path { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.checklist .ck-txt { font-size: 14.5px; line-height: 1.5; color: var(--charcoal); transition: color .15s; }
.checklist input:checked + .ck { background: var(--mint-deep); border-color: var(--mint-deep); }
.checklist input:checked + .ck svg { opacity: 1; }
.checklist input:checked ~ .ck-txt { color: var(--muted); text-decoration: line-through; }
.checklist input:focus-visible + .ck { outline: 3px solid var(--mint); outline-offset: 2px; }

/* ============================================
   V16 · FRASE-CHAVE (biblioteca 6a)
   ============================================ */
.frase-chave {
  position: relative;
  margin: var(--space-xl) 0;
  padding: 22px 26px 22px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--white);
  overflow: hidden;
}
.frase-chave::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 90px;
  line-height: 1;
  color: rgba(24,227,164,.18);
}
.frase-chave p { position: relative; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.45; }
.frase-chave p em { font-style: normal; color: var(--lime); }
.frase-chave small {
  position: relative;
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: rgba(255,255,255,.6);
}

/* ============================================
   V17 · SAIBA MAIS (biblioteca 6c, <details> recolhível, sem script)
   ============================================ */
.saibamais {
  margin: var(--space-lg) 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}
.saibamais summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: var(--navy);
}
.saibamais summary::-webkit-details-marker { display: none; }
.saibamais summary:focus-visible { outline: 3px solid var(--mint); outline-offset: -3px; }
.saibamais summary .ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--mint-soft); }
.saibamais summary .ic svg { width: 16px; height: 16px; }
.saibamais summary .chev { margin-left: auto; font-weight: 800; color: var(--mint-deep); transition: transform .2s; }
.saibamais[open] summary .chev { transform: rotate(90deg); }
.saibamais .sm-body { padding: 0 18px 16px; font-size: 14px; line-height: 1.7; color: var(--charcoal); }
.saibamais .sm-body p { margin: 0 0 8px; }
.saibamais .sm-body p:last-child { margin-bottom: 0; }
.saibamais .sm-body b,
.saibamais .sm-body strong { color: var(--navy); }

/* ============================================
   V18 · ANÁLISE DE FRASE (rótulo e seta sobre cada termo, sem script)
   Português (termos da oração) e Raciocínio Lógico (partes da proposição).
   Cada .af-termo leva o rótulo em data-rot; a cor vem de .af-c1 a .af-c6;
   .af-grupo cerca o termo com tracejado (oração, proposição).
   ============================================ */
.analise-frase {
  margin: var(--space-lg) 0;
  padding: 18px 22px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.analise-frase figcaption {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mint-deep);
}
.analise-frase .af-frase {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
  color: var(--navy);
  overflow-wrap: break-word;
}
.analise-frase .af-c1 { --c: var(--mint-deep); }
.analise-frase .af-c2 { --c: #2F6FB0; }
.analise-frase .af-c3 { --c: #B8860B; }
.analise-frase .af-c4 { --c: #5E35B1; }
.analise-frase .af-c5 { --c: #C02424; }
.analise-frase .af-c6 { --c: #0E8A9E; }
.analise-frase .af-termo {
  --c: var(--mint-deep);
  display: inline-block;
  max-width: 100%;
  margin: 0 2px 10px;
  vertical-align: baseline;
  text-align: center;
}
.analise-frase .af-termo.af-c2 { --c: #2F6FB0; }
.analise-frase .af-termo.af-c3 { --c: #B8860B; }
.analise-frase .af-termo.af-c4 { --c: #5E35B1; }
.analise-frase .af-termo.af-c5 { --c: #C02424; }
.analise-frase .af-termo.af-c6 { --c: #0E8A9E; }
/* rótulo em cima e seta apontando para o termo (o rótulo ocupa espaço: termos vizinhos não se sobrepõem) */
.analise-frase .af-termo::before {
  content: attr(data-rot);
  display: block;
  max-width: 124px;
  margin: 0 auto 1px;
  padding: 0 2px 19px;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .6px;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--c);
  background:
    conic-gradient(from -30deg at 50% 100%, var(--c) 60deg, transparent 0) 50% 100% / 10px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) 50% calc(100% - 6px) / 2px 11px no-repeat;
}
.analise-frase .af-termo > span { padding: 0 1px 1px; border-bottom: 3px solid var(--c); }
.analise-frase .af-grupo > span { padding: 1px 7px 3px; border: 2px dashed var(--c); border-radius: 8px; }
/* ligações entre termos: seta colorida + explicação */
.analise-frase .af-ligacoes {
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.analise-frase .af-ligacoes li { --c: var(--mint-deep); display: flex; align-items: flex-start; gap: 8px; }
.analise-frase .af-ligacoes li.af-c2 { --c: #2F6FB0; }
.analise-frase .af-ligacoes li.af-c3 { --c: #B8860B; }
.analise-frase .af-ligacoes li.af-c4 { --c: #5E35B1; }
.analise-frase .af-ligacoes li.af-c5 { --c: #C02424; }
.analise-frase .af-ligacoes li.af-c6 { --c: #0E8A9E; }
.analise-frase .af-ligacoes li::before {
  content: "";
  flex: 0 0 22px;
  height: 8px;
  margin-top: 6px;
  background:
    conic-gradient(from 240deg at 100% 50%, var(--c) 60deg, transparent 0) 100% 50% / 7px 8px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 50% / 17px 2px no-repeat;
}
.analise-frase .af-ligacoes b { font-weight: 700; color: var(--navy); }
.analise-frase .af-notas {
  margin: 10px 0 0;
  padding: 10px 0 0 18px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--charcoal);
}
.analise-frase .af-notas li { margin-bottom: 4px; }
.analise-frase .af-notas li::marker { color: var(--mint-deep); }
.analise-frase .af-notas em { font-style: normal; font-weight: 600; color: var(--mint-deep); }

/* ============================================
   V19 · RESOLUÇÃO PASSO A PASSO (estudo-por-edital, cores da folha base)
   Um passo por linha: a conta à esquerda, o porquê à direita.
   ============================================ */
.resolucao {
  margin: var(--space-lg) 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.resolucao .res-enunciado {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--off-white);
  font-size: 14.5px;
  line-height: 1.6;
}
.resolucao .res-enunciado b {
  margin-right: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mint-deep);
}
.resolucao .res-passos { list-style: none; margin: 0; padding: 6px 0; counter-reset: passo; }
.resolucao .res-passos li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 32px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 20px;
  border-bottom: 1px dashed var(--line);
}
.resolucao .res-passos li:last-child { border-bottom: none; }
.resolucao .res-passos li::before {
  content: counter(passo);
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--mint);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
}
.resolucao .res-expr {
  font-family: var(--font-mono, ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace);
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--navy);
}
.resolucao .res-expr mark { padding: 0 3px; border-radius: 4px; background: rgba(24,227,164,.18); color: var(--navy); font-weight: 700; }
.resolucao .res-pq { padding-top: 2px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.resolucao .res-pq b { color: var(--navy); }
.resolucao .res-pq em { font-style: normal; font-weight: 600; color: var(--mint-deep); }
.resolucao .res-resposta {
  padding: 12px 20px;
  border-top: 1px solid rgba(24,227,164,.3);
  background: rgba(24,227,164,.10);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

/* ============================================
   V20 · RESUMO ESQUEMATIZADO EM ÁRVORE DE TEXTO (novo)
   <pre> com ├───, └─── e │ em fonte de largura fixa. Linha comprida rola
   só dentro do quadro, nunca a página.
   ============================================ */
.resumo-arvore {
  margin: var(--space-lg) 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.resumo-arvore figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.resumo-arvore figcaption::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.resumo-arvore pre {
  max-width: 100%;
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--off-white);
  font-family: var(--font-mono, ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace);
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre;
  tab-size: 4;
  color: var(--charcoal);
}
.resumo-arvore pre b { font-weight: 700; color: var(--navy); }
.resumo-arvore pre em { font-style: normal; font-weight: 700; color: var(--mint-deep); }

/* ============================================
   V21 · BLOCO DE CÓDIGO (novo, para Informática)
   Comando, consulta SQL, trecho de programa. Rola só dentro do quadro.
   Destaques opcionais: .k palavra reservada, .s texto, .n número, .c comentário.
   ============================================ */
.bloco-codigo {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  background: var(--navy-deep);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.bloco-codigo .cod-topo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--navy);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mint);
}
.bloco-codigo pre {
  max-width: 100%;
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono, ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace);
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre;
  tab-size: 4;
  color: #d6e7f7;
}
.bloco-codigo pre .k { font-weight: 700; color: var(--mint); }
.bloco-codigo pre .s { color: var(--lime); }
.bloco-codigo pre .n { color: #EAA92F; }
.bloco-codigo pre .c { font-style: italic; color: rgba(214,231,247,.6); }

/* ============================================
   V22 · TABELA-VERDADE E QUADROS DE VALORES (modificador da tabela base)
   <table class="tabela tabela--centro"> dentro do .tabela-wrap; V e F coloridos.
   ============================================ */
.tabela--centro th,
.tabela--centro td { text-align: center; }
.tabela--centro th { font-size: 13px; letter-spacing: .3px; text-transform: none; }
.tabela--centro td { font-family: var(--font-mono, ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace); font-size: 14px; }
.tabela--centro .v { font-weight: 700; color: var(--mint-deep); }
.tabela--centro .f { font-weight: 700; color: #C02424; }

/* ============================================
   AJUSTES DE CELULAR E DE MOVIMENTO (comuns)
   ============================================ */
@media (max-width: 700px) {
  .resolucao .res-passos li { grid-template-columns: 28px minmax(0, 1fr); padding: 10px 16px; }
  .resolucao .res-pq { grid-column: 2; }
  .resolucao .res-enunciado,
  .resolucao .res-resposta { padding: 12px 16px; }
  .resolucao .res-expr { font-size: 14px; }
}
@media (max-width: 560px) {
  .analise-frase { padding: 16px 16px 12px; }
  .analise-frase .af-frase { font-size: 16px; }
  .frase-chave { padding: 20px 20px 20px 24px; }
  .frase-chave p { font-size: 16.5px; }
  .resumo-arvore pre,
  .bloco-codigo pre { padding: 14px; font-size: 12.5px; }
  .tabela--centro th,
  .tabela--centro td { padding-left: 8px; padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mindmap .mm-node,
  .checklist .checklist-item,
  .checklist .ck,
  .checklist .ck svg,
  .checklist .ck-txt,
  .saibamais summary .chev { transition: none; }
  .mindmap .mm-node:hover { transform: none; }
}

/* ============================================
   IMPRESSÃO
   ============================================ */
@media print {
  .esq-processo, .esq-ciclo, .esq-piramide, .esq-matriz, .fluxograma, .organograma,
  .timeline-estudo .timeline-step, .info-stats, .info-barras, .info-donut, .mindmap,
  .napkin-hub, .napkin-flow, .sintese, .checklist, .frase-chave, .saibamais,
  .analise-frase, .resolucao, .resumo-arvore, .bloco-codigo { break-inside: avoid; }
  .resumo-arvore pre,
  .bloco-codigo pre { overflow: visible; white-space: pre-wrap; }
  .esq-processo .chevron, .esq-ciclo, .esq-piramide .pir-nivel, .esq-matriz, .fluxograma,
  .info-stats, .info-barras, .info-donut, .mindmap, .sintese, .frase-chave,
  .resumo-arvore, .bloco-codigo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== Ajuste para o trecho dentro do site (ordemia.app) ===== */
html, body { background: #fff; overflow: hidden; }
.apostila { box-shadow: none; max-width: none; }
.abas { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #DDE4EE; background: #F7F9FC; }
.abas button { flex: none; border: 1px solid #DDE4EE; background: #fff; color: #0B2E59; border-radius: 999px; padding: 7px 13px;
  font: 800 12.5px/1.2 "Montserrat", "Inter", system-ui, sans-serif; cursor: pointer; }
.abas button:hover { border-color: #0FB57E; color: #0A7F5A; }
.abas button[aria-selected="true"] { background: #0B2E59; border-color: #0B2E59; color: #fff; }
.abas button:focus-visible { outline: 2px solid #0FB57E; outline-offset: 2px; }
@media (max-width: 600px) {
  /* No celular, uma linha só que corre para o lado, em vez de seis linhas de abas. */
  .abas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 10px 12px; }
  .abas::-webkit-scrollbar { display: none; }
}
.painel[hidden] { display: none !important; }
.painel > .content { padding-top: 8px; padding-bottom: 28px; }
.sumario-link.sem-aba { cursor: default; }
.flash-pagina .content { padding: 18px 18px 22px; }
.flash-pagina .flashcards { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; margin: 0; }
.flash-pagina .flashcard { height: 200px; }
