/* ir-conselhos: contencao do conteudo legado */
.articleBody img, .blog-item img, .item-content img, .sp-module img { max-width: 100%; height: auto; }
.articleBody table, .blog-item table { max-width: 100%; }
.articleBody iframe, .articleBody video { max-width: 100%; }
.articleBody { line-height: 1.65; overflow-wrap: break-word; max-width: 100%; }
.articleBody::after { content: ""; display: table; clear: both; }
.articleBody p { margin-bottom: 0.9em; }
.articleBody [style*="position:absolute"], .articleBody [style*="position: absolute"],
.articleBody [style*="position:fixed"], .articleBody [style*="position: fixed"] { position: static !important; }
.articleBody [style*="float:left"], .articleBody [style*="float: left"],
.articleBody [style*="float:right"], .articleBody [style*="float: right"] { float: none !important; }
.blog-item { margin-bottom: 28px; }
.featured-article-badge { display: none !important; }
.sp-module { margin-bottom: 20px; }

/* esconde a barra superior com dados de exemplo do Helix */
#sp-top-bar { display: none !important; }

/* offcanvas (menu mobile) nao aparece no desktop */
@media (min-width: 992px) {
  .offcanvas-menu, .offcanvas-overlay { display: none !important; }
  #offcanvas-toggler { display: none !important; }
  .sp-sign-in { display: none !important; }
}

/* acordeao {slide} */
.ir-slide { border:1px solid #dbe4ee; border-radius:4px; margin:12px 0; background:#f7fafd; }
.ir-slide > summary { cursor:pointer; padding:10px 14px; font-weight:600; color:#0b5faa; }
.ir-slide[open] > summary { border-bottom:1px solid #dbe4ee; margin-bottom:8px; }
.ir-slide-body { padding:0 14px 12px; }

/* galeria {gallery} */
.ir-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; margin:14px 0; }
.ir-gallery a { display:block; }
.ir-gallery img { width:100%; height:160px; object-fit:cover; border-radius:4px; border:1px solid #dbe4ee; }

/* ===== estilo institucional (aproximacao do site antigo) ===== */
body { background: #eaf2fa; }

/* cabecalho: banner de largura total, menu abaixo */
#sp-header {
  background: #e9f2fb url(/cedca/images/header.jpg) no-repeat center top;
  background-size: 100% auto;
  padding-top: 20.8vw;
  min-height: 0;
}
#sp-header #sp-logo { display: none; }

/* barra de menu azul */
#sp-menu { background: #1c4f87; }
#sp-menu .sp-megamenu-parent > li > a,
#sp-menu .sp-megamenu-parent > li > span {
  color: #fff; font-size: 14px; padding: 12px 12px; line-height: 1.2;
}
#sp-menu .sp-megamenu-parent > li.active > a,
#sp-menu .sp-megamenu-parent > li.current-item > a { background: #2f6db3; }
#sp-menu .sp-megamenu-parent > li > a:hover { background: #2f6db3; }
#sp-menu .sp-megamenu-parent { flex-wrap: wrap; }

/* moldura branca do conteudo */
#sp-component .sp-column {
  background: #fff; border: 1px solid #b9d0e6; border-radius: 8px; padding: 22px;
}
#sp-right .sp-column .sp-module {
  background: #fff; border: 1px solid #b9d0e6; border-radius: 8px; padding: 8px;
}

/* tipografia e links */
.articleBody a, .item-content a, .articleBody a:visited { color: #1b4f8a !important; }
.articleBody h1, .articleBody h2, .articleBody h3,
#sp-title h1, .page-header h1 { color: #1b4f8a; }
.articleBody { font-size: 15px; }
/* ===== fim estilo institucional ===== */

/* busca lateral */
#sp-right .ir-search { margin-bottom: 14px; }
#sp-right .ir-search input { width: 100%; border: 1px solid #b9d0e6; border-radius: 4px; padding: 7px 10px; font-size: 14px; }
#sp-right .ir-search button, #sp-right .ir-search .btn { display: none; }
/* rodape */
#sp-footer { background: #d9e3ee; padding: 10px 0; }
.ir-footer { text-align: center; font-size: 13px; color: #1b4f8a; margin: 0; }

/* ir-float-fix: permite o icone flutuar ao lado do texto (conteudo antigo) */
.articleBody img[style*="float:left"] { float: left !important; margin: 0 14px 10px 0; }
.articleBody img[style*="float: left"] { float: left !important; margin: 0 14px 10px 0; }
.articleBody img[style*="float:right"] { float: right !important; margin: 0 0 10px 14px; }
.articleBody img[style*="float: right"] { float: right !important; margin: 0 0 10px 14px; }
/* faixa preta: secao bottom vazia */
#sp-bottom { display: none !important; }
/* espacamento dos paragrafos da lista inicial */
.articleBody p { margin-bottom: 0.45em; }

/* ir-menu-center: menu centralizado */
#sp-menu { flex: 1 1 100% !important; }
#sp-menu > .sp-column { justify-content: center !important; width: 100%; }
#sp-menu .sp-megamenu-wrapper, #sp-menu .sp-megamenu-parent { justify-content: center !important; }

/* ir-header-align: imagem no tamanho nativo, centrada com o conteudo */
#sp-header {
  background-size: min(100%, 1200px) auto !important;
  padding-top: min(20.8vw, 250px) !important;
  background-position: center top !important;
}

/* ir-menu-width: barra do menu alinhada a imagem */
#sp-menu { max-width: 1200px; margin: 0 auto; }

/* ir-paleta-cedca */
body { background: #FFFFFF !important; }
#sp-menu { max-width: 1200px; margin: 0 auto; }
#sp-menu .sp-megamenu-parent > li { margin: 0 3px; }
#sp-menu .sp-megamenu-parent > li > a,
#sp-menu .sp-megamenu-parent > li > span {
  border-radius: 4px !important;
  font-weight: bold !important;
  font-size: 12px !important;
  padding: 6px 18px !important;
  line-height: 1.4 !important;
  margin: 3px 0;
}
/* remove molduras */
#sp-main-body .container-inner,
#sp-main-body .sp-column,
#sp-component,
#sp-component .sp-column { border: none !important; box-shadow: none !important; background: transparent !important; }
#sp-right .sp-column .sp-module { border: none !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; }
/* separador */
.articleBody hr { display: block !important; border: 0 !important; border-top: 1px solid #C9C9C9 !important; margin: 24px 0 !important; }
#sp-header { background-color: #156DCE !important; }
#sp-menu { background: #092D53 !important; }
#sp-menu .sp-megamenu-parent > li > a,
#sp-menu .sp-megamenu-parent > li > span { background: transparent !important; color: #FFFFFF !important; border: 1px solid transparent !important; }
#sp-menu .sp-megamenu-parent > li.active > a,
#sp-menu .sp-megamenu-parent > li.current-item > a,
#sp-menu .sp-megamenu-parent > li > a:hover { background: #1468C2 !important; color: #FFFFFF !important; }
.articleBody h1, .articleBody h2, .articleBody h3, #sp-title h1, .page-header h1 { color: #082A4E !important; }
.articleBody a, .item-content a { color: #1468C2 !important; font-weight: bold; }
#sp-footer { background: #AFC6D4 !important; }
#sp-footer .ir-footer { color: #0A325C !important; }

/* ir-sem-moldura: remove a moldura dos posts (regra nativa .article-list .article) */
.article-list .article,
.blog-item.article {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 28px !important;
}
.article-list .article .article-intro-image,
.article-list .article .article-full-image,
.article-list .article .article-featured-video,
.article-list .article .article-featured-audio {
  margin: 0 0 14px 0 !important;
  border: none !important;
  border-radius: 0 !important;
}
.article-list .article .article-intro-image img,
.article-list .article .article-full-image img { border-radius: 0 !important; }

/* ir-tabela: tabelas de conteudo cabem na coluna */
.articleBody table,
.ir-slide-body table,
.item-content table {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
  margin: 10px 0 !important;
  font-size: 13px !important;
}
.articleBody table td,
.articleBody table th,
.ir-slide-body table td,
.ir-slide-body table th,
.item-content table td,
.item-content table th {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 6px 8px !important;
  border: 1px solid #CCCCCC !important;
  vertical-align: top !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.articleBody table p,
.ir-slide-body table p { margin: 0 !important; }
.articleBody table strong,
.ir-slide-body table strong { font-size: 13px !important; }

/* ir-caret: setas do menu desenhadas em CSS (nao dependem de fonte de icones) */
#sp-menu .sp-megamenu-parent > li.sp-has-child > a:after,
#sp-menu .sp-megamenu-parent > li.sp-has-child > span:after,
#sp-menu .sp-megamenu-parent > li.menu-parent > a:after {
  content: "" !important;
  display: inline-block !important;
  width: 0 !important;
  height: 0 !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
  border-left: 4px solid transparent !important;
  border-right: 4px solid transparent !important;
  border-top: 5px solid currentColor !important;
  border-bottom: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  position: static !important;
}

/* seta lateral dos submenus */
#sp-menu .sp-megamenu-parent .sp-dropdown li.sp-has-child > a:after,
#sp-menu .sp-megamenu-parent .sp-dropdown li.sp-has-child > span:after {
  content: "" !important;
  display: inline-block !important;
  width: 0 !important;
  height: 0 !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
  border-top: 4px solid transparent !important;
  border-bottom: 4px solid transparent !important;
  border-left: 5px solid currentColor !important;
  border-right: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  position: static !important;
}
