/* Espacio de la franja institucional. El tema dibuja y opera la cabecera. */
#ima-ideas-datos[data-ima-theme-header] .intro .top {
  min-height: 60px;
}
#ima-ideas-datos[data-ima-theme-header] .calc-header .top {
  min-height: 58px;
}
@media (max-width: 650px) {
  #ima-ideas-datos[data-ima-theme-header] .intro .top,
  #ima-ideas-datos[data-ima-theme-header] .calc-header .top {
    min-height: 45px;
  }
}

/* Las páginas nuevas reutilizan la cabecera de ima2018 incluso como borradores. */
body.ima-v9-wordpress .wrapper {
  position: relative;
}
body.ima-v9-wordpress .wrapper > .h-header-inner {
  display: flex !important;
  position: absolute;
  z-index: 12;
  inset: 0 0 auto;
  width: 100%;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
body.ima-v9-wordpress .wrapper > .h-header-inner > :is(.hamburger, .menu-mobile-open, .h-logo-inner) {
  pointer-events: auto;
}
body.ima-v9-wordpress .h-header-inner .img-logo-black {
  display: none !important;
}
body.ima-v9-wordpress .h-header-inner .img-logo-white,
body.ima-v9-home .h-header-inner .img-logo-black {
  display: block !important;
}
body.ima-v9-home .h-header-inner .img-logo-white {
  display: none !important;
}
body.ima-v9-wordpress #ima-ideas-datos[data-ima-theme-header] :is(.intro, .calc-header) .top {
  justify-content: flex-end;
}
body.ima-v9-wordpress #ima-ideas-datos[data-ima-theme-header] :is(.intro, .calc-header) .back {
  margin-inline: auto 0;
}
@media (min-width: 1025px) {
  body.ima-v9-wordpress .wrapper > .h-header-inner {
    padding: 38px 0 0 20px;
  }
  body.ima-v9-wordpress .wrapper > .h-header-inner .h-logo-inner {
    margin: 0;
  }
  body.ima-v9-wordpress .wrapper > .h-header-inner .h-logo-inner img {
    width: 148px;
  }
}
@media (max-width: 1024px) {
  body.ima-v9-wordpress .cnt-wrapper {
    padding-top: 0;
  }
  body.ima-v9-wordpress .wrapper > .h-header-inner {
    padding: 0 0 0 48px;
    height: 78px;
  }
  body.ima-v9-wordpress .wrapper > .h-header-inner .h-logo-inner {
    margin-left: 16px;
  }
  body.ima-v9-wordpress .wrapper > .h-header-inner .h-logo-inner img {
    width: 105px;
  }
  body.ima-v9-wordpress:not(.ima-v9-home) .wrapper > .h-header-inner .menu-mobile-open .line {
    background-color: #fff;
  }
}

body.ima-v9-hub #ima-ideas-datos .calcula .top {
  min-height: 38px;
  justify-content: flex-end;
  margin-bottom: 16px;
}
body.ima-v9-hub #ima-ideas-datos .calcula .top a { color: #fff; margin-inline: auto 0; }
body.ima-v9-hub #ima-ideas-datos .calcula h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); }

/* Deja respirar el logo del tema antes de comenzar el contenido editorial. */
body.ima-v9-home #ima-ideas-datos .intro-row {
  padding-top: 30px;
  padding-inline-start: clamp(0px, calc(765px - 45vw), 120px);
}
@media (max-width: 1024px) {
  body.ima-v9-home #ima-ideas-datos .intro-row {
    padding-inline-start: 110px;
  }
}
@media (max-width: 650px) {
  body.ima-v9-home #ima-ideas-datos .intro-row {
    padding-top: 26px;
    padding-inline-start: 55px;
  }
}

/* El tema institucional asigna color a los titulares y centra controles. */
body.ima-v9-home #ima-ideas-datos .calcula .calcula-head h2 {
  color: #fff !important;
}
#ima-ideas-datos .calc-form .field-grid > label > span[id$="-label"] {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  justify-self: stretch;
  text-align: left !important;
}
#ima-ideas-datos .editorial .mini-story .link {
  justify-self: start;
  width: max-content;
  margin: 0;
  justify-content: flex-start;
  text-align: left;
}
