/*
 * CONV-01E/FIX-001 — compatibilidade visual com o DOM real do Gutenberg.
 *
 * Usar depois dos CSS de página; o WordPress gera .is-layout-flex e
 * .is-layout-constrained com maior especificidade que os seletores
 * originais dos headers. Não altera conteúdo nem outros temas.
 */
body.wp-theme-technolife {
  overflow-x: clip;
}
body.wp-theme-technolife .wp-block-template-part {
  margin-block: 0;
}
body.wp-theme-technolife :is(.tl-a-main, .tl-ti-main, .wp-block-post-content) {
  min-width: 0;
}
body.wp-theme-technolife :is(
  .tl-portal-hero, .tl-portal-reasons, .tl-portal-about, .tl-portal-visit,
  .tl-a-hero, .tl-a-avell, .tl-a-services, .tl-a-process,
  .tl-a-contact, .tl-a-about, .tl-a-visit,
  .tl-ti-hero, .tl-ti-about, .tl-ti-journey, .tl-ti-mid-cta,
  .tl-ti-details, .tl-ti-contact, .tl-ti-visit
) {
  max-width: none;
  box-sizing: border-box;
}
body.wp-theme-technolife :is(
  .tl-a-avell-layout, .tl-a-avell-panel,
  .tl-a-services-grid, .tl-a-service-card, .tl-a-proof,
  .tl-a-process-grid, .tl-a-visit,
  .tl-ti-about-layout, .tl-ti-journey-grid,
  .tl-ti-journey-item, .tl-ti-mid-cta-layout,
  .tl-ti-carousel, .tl-ti-carousel-stage,
  .tl-ti-details-list, .tl-ti-contact-layout, .tl-ti-visit,
  .tl-journeys, .tl-reason-grid, .tl-about-columns
) > * {
  min-width: 0;
}
/* WordPress 7.1 applies body .is-layout-flex; resolve its actual cascade. */
body.wp-theme-technolife .tl-a-header.wp-block-group.is-layout-flex,
body.wp-theme-technolife .tl-ti-header.wp-block-group.is-layout-flex {
  display: grid;
  width: 100%;
  align-items: center;
}
body.wp-theme-technolife .tl-a-header.wp-block-group.is-layout-flex {
  grid-template-columns: 190px minmax(0, 1fr) 206px;
}
body.wp-theme-technolife .tl-ti-header.wp-block-group.is-layout-flex {
  grid-template-columns: 190px minmax(0, 1fr) 210px;
}
body.wp-theme-technolife .tl-portal-header.wp-block-group.is-layout-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
}
body.wp-theme-technolife :is(.tl-a-header, .tl-ti-header, .tl-portal-header) :is(
  .wp-block-navigation, .wp-block-buttons
) {
  min-width: 0;
  max-width: 100%;
}
body.wp-theme-technolife :is(.tl-a-header, .tl-ti-header, .tl-portal-header)
.wp-block-navigation__container {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 6px;
}
body.wp-theme-technolife :is(.tl-a-footer, .tl-ti-footer, .tl-portal-footer) {
  flex-wrap: wrap;
}
body.wp-theme-technolife .tl-portal-header .tl-brand img {
  display: block;
  width: 154px;
  height: auto;
}
body.wp-theme-technolife .tl-portal-footer .tl-brand img {
  display: block;
  width: 112px;
  height: auto;
  filter: grayscale(1);
  opacity: .36;
}
/* Neutralizar margens do layout flow nos cartões que definem sua própria grade. */
body.wp-theme-technolife :is(
  .tl-a-proof, .tl-a-services-grid, .tl-a-process-grid, .tl-a-avell-layout,
  .tl-ti-journey-grid, .tl-ti-about-stats, .tl-ti-feature-grid,
  .tl-reason-grid, .tl-journeys
) > :first-child {
  margin-block-start: 0;
}
/* Impedir vazamento lateral de textos longos em cards e formulários. */
body.wp-theme-technolife :is(
  .tl-journey-card, .tl-reason-card, .tl-a-service-card, .tl-a-avell-panel,
  .tl-ti-journey-item, .tl-ti-feature, .tl-ti-contact-form,
  .tl-a-visit-details, .tl-ti-visit-details
) {
  min-width: 0;
  overflow-wrap: break-word;
}
body.wp-theme-technolife :is(.tl-a-header, .tl-ti-header, .tl-portal-header)
.wp-block-navigation__responsive-container.is-menu-open {
  z-index: 100;
  background: #fff;
  color: #252d68;
}
body.wp-theme-technolife :is(.tl-a-header, .tl-ti-header, .tl-portal-header)
.wp-block-navigation__responsive-container.is-menu-open a {
  color: #252d68;
}
@media (min-width: 768px) and (max-width: 1179px) {
  body.wp-theme-technolife .tl-a-header.wp-block-group.is-layout-flex,
  body.wp-theme-technolife .tl-ti-header.wp-block-group.is-layout-flex {
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 14px;
  }
  body.wp-theme-technolife .tl-a-header .tl-a-nav,
  body.wp-theme-technolife .tl-ti-header .tl-ti-nav {
    font-size: 12px;
  }
  body.wp-theme-technolife .tl-portal-header .tl-brand img {
    width: 132px;
  }
  body.wp-theme-technolife .tl-ti-contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 1050px) {
  /* Cinco links + CTA não cabem com segurança em tablets estreitos. */
  body.wp-theme-technolife .tl-a-header.wp-block-group.is-layout-flex,
  body.wp-theme-technolife .tl-ti-header.wp-block-group.is-layout-flex {
    grid-template-columns: 142px minmax(0, 1fr);
  }
  body.wp-theme-technolife .tl-a-header-actions,
  body.wp-theme-technolife .tl-ti-header-actions {
    display: none;
  }
}
@media (max-width: 767px) {
  body.wp-theme-technolife .tl-a-header.wp-block-group.is-layout-flex,
  body.wp-theme-technolife .tl-ti-header.wp-block-group.is-layout-flex,
  body.wp-theme-technolife .tl-portal-header.wp-block-group.is-layout-flex {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding-inline: 18px;
  }
  body.wp-theme-technolife .tl-a-header-actions,
  body.wp-theme-technolife .tl-ti-header-actions,
  body.wp-theme-technolife .tl-portal-header .tl-header-actions {
    display: none;
  }
  body.wp-theme-technolife :is(.tl-a-header, .tl-ti-header, .tl-portal-header)
  .wp-block-navigation {
    flex: 0 0 auto;
    width: auto;
    max-width: min(100%, 72px);
    margin-left: auto;
  }
  body.wp-theme-technolife .tl-portal-header .tl-brand img {
    width: 124px;
  }
  body.wp-theme-technolife .tl-ti-no-orphan {
    white-space: normal;
  }
  body.wp-theme-technolife .tl-ti-contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  body.wp-theme-technolife :is(.tl-a-visit, .tl-ti-visit) {
    grid-template-columns: minmax(0, 1fr);
  }
  body.wp-theme-technolife :is(.tl-portal-hero, .tl-a-hero, .tl-ti-hero) {
    max-width: 100vw;
  }
}
@media (max-width: 380px) {
  body.wp-theme-technolife .tl-portal-header .tl-brand img,
  body.wp-theme-technolife .tl-a-header .tl-brand img,
  body.wp-theme-technolife .tl-ti-header .tl-brand img {
    width: 112px;
  }
}
