/* CSS extraído do anexo chegou_conta_diretora_home_ux_ui_html (6).html para uso global no painel educacional. Cole aqui o conteúdo do <style> do HTML anexo. */

:root {
  --bg: #f6f7f4;
  --paper: #fffdf7;
  --card: #ffffff;
  --card-soft: #fbfaf5;
  --line: #e5e1d7;
  --line-strong: #d5cfbf;
  --text: #24313f;
  --muted: #6b7785;
  --blue: #2d5a88;
  --blue-soft: #e9f1fb;
  --green: #2f7a58;
  --green-soft: #e9f7ef;
  --amber: #9b6a16;
  --amber-soft: #fff4db;
  --red: #b74f42;
  --red-soft: #fdecea;
  --shadow-sm: 0 8px 24px rgba(38, 56, 76, 0.06);
  --shadow-md: 0 18px 44px rgba(38, 56, 76, 0.10);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1420px;
}

/* ...demais regras do anexo, cole aqui... */

/* Cards de resumo nacional: 1 coluna fora de desktop, 4 colunas em desktop */
.summary-grid-resumo {
  grid-template-columns: 1fr !important;
}
@media (min-width: 1024px) {
  .summary-grid-resumo {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Dados educacionais: evita overflow horizontal em tablet e laptop */
@media (max-width: 1399px) {
  .section,
  .section-pauta,
  .hero,
  .hero-inner,
  .summary-grid,
  .summary-grid-resumo,
  .chart-wall,
  .chart-stage,
  .chart-menu,
  .two-col,
  .priority-layout,
  .analytics-layout,
  .finance-layout,
  .alert-grid,
  .snapshot-grid,
  .indicator-grid,
  .compare-grid,
  .auto-text-grid,
  .filters-grid,
  .tab-panel-v6,
  .tab-buttons-v6,
  .table-card,
  .list-card,
  .soft-card,
  .card-v6,
  .metric {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .summary-grid > *,
  .summary-grid-resumo > *,
  .chart-wall > *,
  .chart-stage > *,
  .chart-menu > *,
  .two-col > *,
  .priority-layout > *,
  .analytics-layout > *,
  .finance-layout > *,
  .alert-grid > *,
  .snapshot-grid > *,
  .indicator-grid > *,
  .compare-grid > *,
  .auto-text-grid > *,
  .filters-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #sec-ficha {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  .section-pauta div[style*="overflow-x:auto"],
  .section-pauta div[style*="overflow-x: auto"],
  .section-pauta div[style*="overflow:auto"],
  .section-pauta div[style*="overflow: auto"] {
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
  }

  .section-pauta table,
  .section-pauta svg,
  .section-pauta canvas {
    max-width: 100% !important;
  }
}

/* Centralização do painel de dados educacionais no mobile (iPhone SE e similares) */
@media (max-width: 400px) {
  .container,
  .section,
  .summary-grid,
  .card-clay,
  .soft-card,
  .hero-inner,
  .section-title,
  .organic-divider,
  .two-col,
  .priority-layout,
  .chart-wall,
  .tab-panel-v6,
  .tab-buttons-v6 {
    max-width: 100vw !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .summary-grid,
  .two-col,
  .priority-layout {
    display: block !important;
  }
  .mini-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   ACESSIBILIDADE: ALTO CONTRASTE
   Garante que os elementos da página respondam ao modo high-contrast
   ================================================================ */

/* Fundo da página */
.high-contrast .hl-root {
  background: #ffffff !important;
}

/* Cards coloridos → brancos com borda escura */
.high-contrast .hl-yellow,
.high-contrast .hl-pink,
.high-contrast .hl-blue,
.high-contrast .hl-green,
.high-contrast .hl-orange,
.high-contrast .hl-purple,
.high-contrast .hl-teal {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

.high-contrast .hl-note-card {
  box-shadow: none !important;
}

.high-contrast .hl-note-card:hover {
  box-shadow: 0 0 0 3px #000000 !important;
  transform: none !important;
}

.high-contrast .hl-note-card:before {
  background: #cccccc !important;
}

.high-contrast .hl-note-card h3 {
  color: #000000 !important;
}

.high-contrast .hl-note-card p,
.high-contrast .hl-note-card small {
  color: #1a1a1a !important;
}

.high-contrast .hl-card-icon {
  filter: grayscale(1) contrast(1.5) !important;
  opacity: 1 !important;
}

/* Caixa Dica */
.high-contrast .hl-tip-box {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
}

.high-contrast .hl-tip-box:before,
.high-contrast .hl-tip-box:after {
  display: none !important;
}

.high-contrast .hl-tip-box strong,
.high-contrast .hl-tip-box p {
  color: #000000 !important;
}

/* Hero note (caixa do título principal) */
.high-contrast .hl-hero-note {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

.high-contrast .hl-hero-note:before,
.high-contrast .hl-hero-note:after {
  display: none !important;
}

/* Eyebrow / tags */
.high-contrast .hl-eyebrow,
.high-contrast .hl-tag {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  color: #000000 !important;
}

/* Remendo (badge "atualizado") */
.high-contrast .hl-remendo {
  background: #ffff00 !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

.high-contrast .hl-remendo:before {
  background: #dddd00 !important;
  opacity: 1 !important;
}

/* Footer strip */
.high-contrast .hl-footer-strip {
  color: #000000 !important;
  border-top: 1.5px solid #000000 !important;
}

/* Caderno / Trilha */
.high-contrast .hl-caderno-box {
  background: #f8f8f8 !important;
  border: 1px solid #333333 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.high-contrast .hl-trilha-item {
  background: #f5f5f5 !important;
  border: 2px solid #333333 !important;
  box-shadow: none !important;
}

.high-contrast .hl-trilha-item:hover,
.high-contrast .hl-trilha-item:active,
.high-contrast .hl-trilha-item:focus {
  background: #eeeeee !important;
  border-color: #000000 !important;
  box-shadow: none !important;
}

.high-contrast .hl-trilha-item:after {
  display: none !important;
}

.high-contrast .hl-trilha-item-num {
  color: #000000 !important;
  background: transparent !important;
}

.high-contrast .hl-trilha-item-title {
  color: #000000 !important;
}

.high-contrast .hl-trilha-item-sub {
  color: #333333 !important;
}

.high-contrast .hl-trilha-ver-todas {
  color: #000080 !important;
  text-decoration: underline !important;
}

/* Acessibilidade: botão pill */
.high-contrast .hl-a11y-pill {
  background: #ffff00 !important;
  border-color: #000000 !important;
  color: #000000 !important;
  opacity: 1 !important;
}

/* Layout label "Por onde começar" */
.high-contrast .hl-mural-label {
  color: #000000 !important;
}

/* ================================================================
   ACESSIBILIDADE: MODO DISLEXIA
   Reforça espaçamento e legibilidade além do CSS base
   ================================================================ */

.dyslexia-font .hl-note-card h3,
.dyslexia-font .hl-note-card p,
.dyslexia-font .hl-note-card small {
  word-spacing: 0.18em !important;
  letter-spacing: 0.05em !important;
  line-height: 1.85 !important;
}

.dyslexia-font .hl-trilha-item-title,
.dyslexia-font .hl-trilha-item-sub {
  word-spacing: 0.18em !important;
  letter-spacing: 0.04em !important;
  line-height: 1.75 !important;
}

.dyslexia-font .hl-tip-box p,
.dyslexia-font .hl-tip-box strong {
  word-spacing: 0.18em !important;
  letter-spacing: 0.04em !important;
  line-height: 1.85 !important;
}

/* Aumenta levemente o tamanho de texto muito pequeno */
.dyslexia-font .hl-note-card p {
  font-size: 0.78rem !important;
}

.dyslexia-font .hl-trilha-item-sub {
  font-size: 0.78rem !important;
}

/* ================================================================
   ACESSIBILIDADE: COMBINAÇÃO (Alto Contraste + Dislexia)
   ================================================================ */

.high-contrast.dyslexia-font .hl-note-card h3,
.high-contrast .dyslexia-font .hl-note-card h3 {
  color: #000000 !important;
}

/* ================================================================
   ACESSIBILIDADE: ROLAGEM COM ZOOM DE FONTE (a11y-zoom)
   Quando o tamanho da fonte é aumentado, o layout fixo do "caderno"
   bloqueia a rolagem. Esta regra libera overflow e permite scroll.
   A classe a11y-zoom é adicionada via JS quando fontSize != 100%.
   ================================================================ */

/* html e body: permite scroll horizontal se necessário */
html.a11y-zoom,
html.a11y-zoom body {
  overflow-x: auto !important;
}

html.a11y-zoom .hl-root {
  overflow-y: auto !important;
  overflow-x: auto !important;
  align-items: flex-start !important;
}

html.a11y-zoom .hl-notebook {
  height: auto !important;
  min-height: min(720px, calc(100vh - 20px)) !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

html.a11y-zoom .hl-page {
  height: auto !important;
  overflow: visible !important;
  padding-bottom: 48px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html.a11y-zoom .hl-layout {
  overflow: visible !important;
}

html.a11y-zoom .hl-left-col {
  overflow: visible !important;
  min-width: 0 !important;
}

html.a11y-zoom .hl-right-col {
  overflow: visible !important;
  min-width: 0 !important;
}

/* Garante que tabelas e conteúdo largo rolem horizontalmente */
html.a11y-zoom table {
  display: block !important;
  overflow-x: auto !important;
  max-width: 100% !important;
}

/* Garante rolagem suave */
html.a11y-zoom {
  scroll-behavior: smooth;
}

/* ================================================================
   TRILHA DA DIRETORA — sidebar da página inicial
   Card levemente mais largo e com melhor distribuição interna.
   Permite que título e subtítulo caibam dentro do quadro,
   cada um em sua própria linha (sem truncar com ellipsis).
   ================================================================ */

/* Amplia levemente o card marrom da Trilha da Diretora */
.hl-caderno-box {
  overflow: visible !important;
  max-width: 430px !important;
  padding: 18px 22px 16px !important;
}

/* Coluna direita: acomoda o card ligeiramente mais largo */
.hl-right-col {
  min-width: 200px !important;
}

/* A lista interna cuida do scroll vertical e tem mais respiro */
.hl-caderno-box .hl-trilha-list {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  gap: 9px !important;
}

/* Item: alinha pelo topo, com espaçamento interno melhorado */
.hl-caderno-box .hl-trilha-item {
  align-items: flex-start !important;
  height: auto !important;
  min-height: unset !important;
  overflow: visible !important;
  padding: 9px 6px 9px 2px !important;
  gap: 6px !important;
}

/* Número: alinha com o início do título */
.hl-caderno-box .hl-trilha-item-num {
  flex: 0 0 auto !important;
  min-width: 20px !important;
  width: auto !important;
  margin-left: -2px !important;
  margin-top: 1px !important;
  line-height: 1.2 !important;
  text-align: left !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

/* Body do item: garante altura automática com gap melhorado */
.hl-caderno-box .hl-trilha-item-body {
  overflow: visible !important;
  height: auto !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  gap: 3px !important;
}

/* Título: permite quebra de linha e espaçamento vertical adequado */
.hl-caderno-box .hl-trilha-item-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  font-size: 0.72rem !important;
  line-height: 1.3 !important;
}

/* Subtítulo: permite quebra de linha com boa legibilidade */
.hl-caderno-box .hl-trilha-item-sub {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  font-size: 0.62rem !important;
  line-height: 1.3 !important;
  margin-top: 1px !important;
}

/* Modo de seleção de texto para leitura por voz */
body.tts-select-mode,
body.tts-select-mode * {
  cursor: text !important;
}

body.tts-select-mode .tts-select-btn {
  background: #4a7c5c !important;
  color: #ffffff !important;
  border-color: #3a6c4c !important;
}

body.tts-select-mode .tts-select-btn svg {
  color: #ffffff !important;
}
