/* GIFO — reposição visual pontual do cabeçalho e rodapé.
   Carregado no fim para corrigir apenas regressões de escala, cor e alinhamento. */

/* O logótipo é um wordmark horizontal. Nunca deve ser comprimido num quadrado. */
html.gifo-public .nav-brand,
html.gifo-public header.nav .brand,
html.gifo-public .mobile-top .nav-brand{
  min-width:0;
}

html.gifo-public img.nav-logo,
html.gifo-public .nav-brand img,
html.gifo-public header.nav .brand img.logo,
html.gifo-public .mobile-top img,
html.gifo-public #mobile img.logo{
  display:block!important;
  width:132px!important;
  max-width:132px!important;
  height:36px!important;
  max-height:36px!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:left center!important;
  flex:0 0 auto;
}

/* Rodapé: recuperar a identidade cromática de cada área do ecossistema. */
html.gifo-public .site-footer{
  background:
    radial-gradient(circle at 8% 0,rgba(61,115,186,.09),transparent 32%),
    radial-gradient(circle at 78% 0,rgba(39,200,184,.055),transparent 28%),
    #06070a!important;
}

html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-investigation .footer-heading,
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-investigation h5{
  color:#8fb5e2!important;
}
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-technology .footer-heading,
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-technology h5{
  color:#46d5c6!important;
}
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-editorial .footer-heading,
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-editorial h5{
  color:#cda460!important;
}
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-gifo .footer-heading,
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-gifo h5{
  color:#f0f4ff!important;
}

html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-investigation .ft-accordion-icon::before,
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-investigation .ft-accordion-icon::after{
  background:#8fb5e2!important;
}
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-technology .ft-accordion-icon::before,
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-technology .ft-accordion-icon::after{
  background:#46d5c6!important;
}
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-editorial .ft-accordion-icon::before,
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-editorial .ft-accordion-icon::after{
  background:#cda460!important;
}
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-gifo .ft-accordion-icon::before,
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-gifo .ft-accordion-icon::after{
  background:rgba(240,244,255,.72)!important;
}

html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-investigation a.ft-highlight{
  color:#b5cdec!important;
}
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-technology a.ft-highlight{
  color:#7ee2d7!important;
}
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-editorial a,
html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col-editorial a.ft-highlight{
  color:#d7b77f!important;
}

@media(max-width:767px){
  html.gifo-public img.nav-logo,
  html.gifo-public .nav-brand img,
  html.gifo-public header.nav .brand img.logo{
    width:124px!important;
    max-width:124px!important;
    height:34px!important;
    max-height:34px!important;
  }

  html.gifo-public .mobile-menu .nav-brand img,
  html.gifo-public .mobile-top img,
  html.gifo-public #mobile img.logo{
    width:142px!important;
    max-width:142px!important;
    height:38px!important;
    max-height:38px!important;
  }

  /* Hierarquia mais leve nos acordeões do rodapé. */
  html.gifo-public .footer-cols.footer-cols-ecosystem .ft-col summary{
    min-height:48px!important;
    gap:12px!important;
  }
  html.gifo-public .footer-cols.footer-cols-ecosystem .footer-heading,
  html.gifo-public .footer-cols.footer-cols-ecosystem h5{
    margin:0!important;
    padding:0!important;
    font-size:.68rem!important;
    line-height:1.32!important;
    letter-spacing:1.65px!important;
  }
  html.gifo-public .footer-cols.footer-cols-ecosystem .ft-accordion-icon{
    width:20px!important;
    height:20px!important;
    flex-basis:20px!important;
    transform:scale(.9);
    transform-origin:center;
  }

  /* As três linhas finais partilham o mesmo eixo e deixam de herdar alvos de 40 px. */
  html.gifo-public .site-footer .footer-bottom{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:start!important;
    justify-items:start!important;
    gap:8px!important;
    padding-left:0!important;
    padding-right:0!important;
    text-align:left!important;
  }
  html.gifo-public .site-footer .footer-bottom>div{
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  html.gifo-public .site-footer .footer-legal-links,
  html.gifo-public .site-footer .footer-utility-links{
    display:flex!important;
    align-items:baseline!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:5px 0!important;
  }
  html.gifo-public .site-footer .footer-bottom a{
    display:inline!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    line-height:1.6!important;
    vertical-align:baseline!important;
  }
}

@media(max-width:360px){
  html.gifo-public img.nav-logo,
  html.gifo-public .nav-brand img,
  html.gifo-public header.nav .brand img.logo{
    width:112px!important;
    max-width:112px!important;
  }
  html.gifo-public .footer-cols.footer-cols-ecosystem .footer-heading,
  html.gifo-public .footer-cols.footer-cols-ecosystem h5{
    font-size:.65rem!important;
    letter-spacing:1.45px!important;
  }
}
