/* Rodapé institucional partilhado (shells CMS + portal) */
:root {
  --bp-cnmp-hero-bg: #2b2b2b;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

body > footer.cms-institutional-footer,
body > footer.bp-browse-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.cms-page-footer-plugins {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.cms-page-footer-plugins > .container > *:empty {
  display: none;
}
/* â€”â€” Footer (institucional CNMP + social links) â€”â€” */
.bp-browse-footer {
  background: var(--bp-cnmp-hero-bg);
  color: rgba(255, 255, 255, 0.92);
  padding: 1.75rem 1.5rem 1.25rem;
  margin-top: auto;
  font-size: 0.85rem;
  line-height: 1.55;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
}

.bp-browse-footer__layout {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.bp-browse-footer__info {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 48rem;
}

.bp-browse-footer__social {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-width: max-content;
  min-height: 2rem;
}

.bp-browse-footer__social[data-cms-ready="0"] {
  visibility: hidden;
}

/* Só Footer Extra (sem redes no rodapé) â€” posiciona o bloco no layout */
.bp-browse-footer__layout--text-left.bp-browse-footer__layout--social-none {
  justify-content: flex-start;
}

.bp-browse-footer__layout--text-center.bp-browse-footer__layout--social-none {
  justify-content: center;
}

.bp-browse-footer__layout--text-center.bp-browse-footer__layout--social-none .bp-browse-footer__info {
  margin-left: auto;
  margin-right: auto;
}

.bp-browse-footer__layout--text-right.bp-browse-footer__layout--social-none {
  justify-content: flex-end;
}

.bp-browse-footer__layout--text-right.bp-browse-footer__layout--social-none .bp-browse-footer__info {
  margin-left: auto;
  margin-right: 0;
}

.bp-browse-footer__layout--text-left .bp-browse-footer__info {
  text-align: left;
}

.bp-browse-footer__layout--text-center .bp-browse-footer__info {
  text-align: center;
}

.bp-browse-footer__layout--text-right .bp-browse-footer__info {
  text-align: right;
}

/* Texto centro + social centro â†’ ícones abaixo do texto */
.bp-browse-footer__layout--stacked {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bp-browse-footer__layout--stacked .bp-browse-footer__info,
.bp-browse-footer__layout--stacked .bp-browse-footer__social {
  width: 100%;
  max-width: none;
  flex: none;
  justify-content: center;
}

.bp-browse-footer__layout--stacked .bp-browse-footer__social .cms-social-links {
  justify-content: center;
  width: 100%;
}

/* Social à esquerda do texto (mesma linha) */
.bp-browse-footer__layout--social-left:not(.bp-browse-footer__layout--stacked) {
  flex-direction: row;
  flex-wrap: nowrap;
}

.bp-browse-footer__layout--social-left:not(.bp-browse-footer__layout--stacked) .bp-browse-footer__social {
  order: -1;
}

.bp-browse-footer__layout--text-left.bp-browse-footer__layout--social-left:not(.bp-browse-footer__layout--stacked) {
  justify-content: flex-start;
}

.bp-browse-footer__layout--text-right.bp-browse-footer__layout--social-left:not(.bp-browse-footer__layout--stacked) {
  justify-content: space-between;
  width: 100%;
}

.bp-browse-footer__layout--text-right.bp-browse-footer__layout--social-left:not(.bp-browse-footer__layout--stacked) .bp-browse-footer__info {
  margin-left: auto;
}

.bp-browse-footer__layout--text-center.bp-browse-footer__layout--social-left:not(.bp-browse-footer__layout--stacked) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.bp-browse-footer__layout--text-center.bp-browse-footer__layout--social-left:not(.bp-browse-footer__layout--stacked) .bp-browse-footer__social {
  order: 0;
  flex: 0 0 auto;
  padding-right: 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.bp-browse-footer__layout--text-center.bp-browse-footer__layout--social-left:not(.bp-browse-footer__layout--stacked) .bp-browse-footer__info {
  order: 1;
  flex: 0 1 auto;
  max-width: min(48rem, 100%);
}

/* Social à direita do texto (mesma linha) */
.bp-browse-footer__layout--social-right:not(.bp-browse-footer__layout--stacked) {
  flex-direction: row;
}

.bp-browse-footer__layout--text-left.bp-browse-footer__layout--social-right:not(.bp-browse-footer__layout--stacked) {
  justify-content: space-between;
  width: 100%;
}

.bp-browse-footer__layout--text-left.bp-browse-footer__layout--social-right:not(.bp-browse-footer__layout--stacked) .bp-browse-footer__info {
  flex: 1 1 auto;
  max-width: none;
}

.bp-browse-footer__layout--text-right.bp-browse-footer__layout--social-right:not(.bp-browse-footer__layout--stacked) {
  justify-content: flex-end;
}

.bp-browse-footer__layout--text-center.bp-browse-footer__layout--social-right:not(.bp-browse-footer__layout--stacked) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.bp-browse-footer__layout--text-center.bp-browse-footer__layout--social-right:not(.bp-browse-footer__layout--stacked) .bp-browse-footer__info {
  flex: 0 1 auto;
  max-width: min(48rem, 100%);
}

.bp-browse-footer__layout--text-center.bp-browse-footer__layout--social-right:not(.bp-browse-footer__layout--stacked) .bp-browse-footer__social {
  flex: 0 0 auto;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

/* Social centro mas texto não centro â†’ ícones abaixo, alinhados ao texto */
.bp-browse-footer__layout--social-center:not(.bp-browse-footer__layout--stacked) {
  flex-direction: column;
  align-items: stretch;
}

.bp-browse-footer__layout--text-left.bp-browse-footer__layout--social-center:not(.bp-browse-footer__layout--stacked) {
  align-items: flex-start;
}

.bp-browse-footer__layout--text-right.bp-browse-footer__layout--social-center:not(.bp-browse-footer__layout--stacked) {
  align-items: flex-end;
}

.bp-browse-footer__layout--social-center:not(.bp-browse-footer__layout--stacked) .bp-browse-footer__social {
  width: 100%;
}

.bp-browse-footer__layout--text-left.bp-browse-footer__layout--social-center:not(.bp-browse-footer__layout--stacked) .cms-social-links {
  justify-content: flex-start;
}

.bp-browse-footer__layout--text-right.bp-browse-footer__layout--social-center:not(.bp-browse-footer__layout--stacked) .cms-social-links {
  justify-content: flex-end;
}

.bp-browse-footer__layout--text-center.bp-browse-footer__layout--social-center:not(.bp-browse-footer__layout--stacked) .cms-social-links {
  justify-content: center;
}

.bp-browse-footer .cms-footer-extra {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
}

.bp-browse-footer .cms-footer-extra--left {
  text-align: left;
}

.bp-browse-footer .cms-footer-extra--center {
  text-align: center;
}

.bp-browse-footer .cms-footer-extra--right {
  text-align: right;
}

.bp-browse-footer .cms-footer-extra__p {
  margin: 0 0 0.45rem;
  max-width: none;
  color: rgba(255, 255, 255, 0.88);
}

.bp-browse-footer .cms-footer-extra--center .cms-footer-extra__p {
  margin-left: auto;
  margin-right: auto;
}

.bp-browse-footer .cms-footer-extra--right .cms-footer-extra__p {
  margin-left: auto;
  margin-right: 0;
}

.bp-browse-footer .cms-footer-extra__p:first-child {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.bp-browse-footer .cms-footer-extra__links {
  margin-top: 0.5rem;
}

.bp-browse-footer .cms-footer-extra--left .cms-footer-extra__links {
  justify-content: flex-start;
}

.bp-browse-footer .cms-footer-extra--center .cms-footer-extra__links {
  justify-content: center;
}

.bp-browse-footer .cms-footer-extra--right .cms-footer-extra__links {
  justify-content: flex-end;
}

.bp-browse-footer .cms-footer-extra__links a {
  color: rgba(255, 255, 255, 0.92);
}

.bp-browse-footer .cms-footer-extra__links a:hover {
  color: #fff;
  text-decoration: underline;
}

.bp-browse-footer__org {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.bp-browse-footer__line {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.88);
}

.bp-browse-footer__tagline {
  opacity: 0.85;
}

.bp-browse-footer .cms-social-links {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  max-width: 100%;
}

.bp-browse-footer__layout--stacked .cms-social-links {
  width: 100%;
}

.bp-browse-footer .cms-social-links__item {
  width: 2rem;
  height: 2rem;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #fff;
  box-shadow: none;
}

.bp-browse-footer .cms-social-links__item:hover {
  color: rgba(255, 255, 255, 0.75);
  transform: none;
  box-shadow: none;
}

.bp-browse-footer .cms-social-links__item i {
  font-size: 1.25rem;
}

.bp-browse-footer__copy {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  opacity: 0.82;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bp-browse-footer a {
  color: #fff;
}

@media (max-width: 768px) {
  .bp-browse-footer__layout:not(.bp-browse-footer__layout--stacked) {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }

  .bp-browse-footer__layout--text-center:not(.bp-browse-footer__layout--stacked) {
    align-items: center;
  }

  .bp-browse-footer__layout--text-right:not(.bp-browse-footer__layout--stacked) {
    align-items: flex-end;
  }

  .bp-browse-footer__layout:not(.bp-browse-footer__layout--stacked) .bp-browse-footer__info {
    order: 0;
  }

  .bp-browse-footer__layout:not(.bp-browse-footer__layout--stacked) .bp-browse-footer__social {
    order: 1;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
    border-right: 0;
  }

  .bp-browse-footer__layout--social-left:not(.bp-browse-footer__layout--stacked) .cms-social-links {
    justify-content: flex-start !important;
  }

  .bp-browse-footer__layout--social-right:not(.bp-browse-footer__layout--stacked) .cms-social-links {
    justify-content: flex-end !important;
  }

  .bp-browse-footer__layout--social-center:not(.bp-browse-footer__layout--stacked) .cms-social-links {
    justify-content: center !important;
  }
}
