/* TECH-REL-001 / R14 — refinamento do carrossel TI.
   Uma linha de cabeçalho: ícone à esquerda, título acima do subtítulo.
   A hierarquia HTML de <details>/<summary> permanece intacta. */
/* Chromium/WebKit expõem o conteúdo de <details> em um wrapper UA.
   display:contents integra os filhos no grid sem mover o <summary> do DOM. */
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail[open]::details-content{
  display:contents;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail[open]{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr);
  grid-template-rows:auto auto auto auto;
  column-gap:18px;row-gap:0;align-items:center;
  padding:27px 30px 0;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail[open] > summary{
  grid-column:2;grid-row:1;align-self:end;justify-self:stretch;
  box-sizing:border-box;margin:0!important;padding:0!important;
  min-width:0;min-height:0!important;
  font-size:21px!important;line-height:1.28!important;font-weight:720!important;
  letter-spacing:-.025em;color:#172143!important;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-top.wp-block-group{
  display:contents!important;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-icon.wp-block-image{
  grid-column:1;grid-row:1 / span 2;
  width:56px!important;height:56px!important;flex-basis:auto!important;
  justify-self:center;align-self:center;
  box-sizing:border-box;margin:0!important;padding:13px!important;
  border-radius:14px!important;background:#eef0fa!important;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-icon.wp-block-image img{
  width:30px!important;height:30px!important;object-fit:contain;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-subtitle{
  grid-column:2;grid-row:2;align-self:start;
  margin:5px 0 0!important;padding:0!important;
  font-size:14.5px!important;line-height:1.52!important;color:#68728b!important;
}
/* Benefícios: lista de leitura contínua; cabeçalhos e descrições bem alinhados,
   entrelinhas generosas, separação sutil, sem cards ou numeração. */
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature-grid.wp-block-group{
  grid-column:1/-1;grid-row:3;order:initial!important;
  margin:26px 0 4px!important;padding:0!important;
  border:0!important;background:transparent!important;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature.wp-block-group{
  display:grid!important;grid-template-columns:minmax(0,34%) minmax(0,1fr)!important;
  gap:25px!important;align-items:baseline!important;
  margin:0!important;padding:19px 12px!important;
  border:0!important;border-bottom:1px solid #e7eaf3!important;
  background:transparent!important;box-shadow:none!important;
  border-radius:0!important;transition:background-color .15s ease;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature.wp-block-group:first-child{
  border-top:1px solid #e7eaf3!important;
}
@media(hover:hover){
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature.wp-block-group:hover{
   background:#f9faff!important;
 }
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature :is(h4,h3).tl-ti-feature-title{
  margin:0!important;font-size:15.5px!important;font-weight:690!important;
  line-height:1.52!important;letter-spacing:-.01em;color:#172143!important;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature p.tl-ti-feature-desc{
  margin:0!important;font-size:14.5px!important;line-height:1.64!important;
  color:#58637a!important;
}
body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-closing{
  grid-column:1/-1;grid-row:4;order:initial!important;
  margin:0 0 27px!important;padding:19px 12px 0!important;
  font-size:13.5px!important;line-height:1.65!important;color:#637087!important;
  border:0!important;background:transparent!important;
}
@media(max-width:767px){
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail[open]{
   grid-template-columns:46px minmax(0,1fr);gap:0 13px;padding:22px 20px 0;
 }
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail[open] > summary{
   font-size:18px!important;line-height:1.34!important;
 }
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-icon.wp-block-image{
   width:46px!important;height:46px!important;padding:10px!important;border-radius:12px!important;
 }
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-icon.wp-block-image img{
   width:26px!important;height:26px!important;
 }
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-subtitle{
   font-size:13.5px!important;margin-top:5px!important;
 }
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature-grid.wp-block-group{
   margin:20px 0 2px!important;
 }
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature.wp-block-group{
   grid-template-columns:minmax(0,1fr)!important;gap:4px!important;
   padding:15px 0!important;
 }
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature :is(h4,h3).tl-ti-feature-title{font-size:15px!important;}
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature p.tl-ti-feature-desc{font-size:14px!important;}
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-closing{
   margin:0 0 22px!important;padding:14px 0 0!important;font-size:13px!important;
 }
}
/* Fallback para motores antigos sem ::details-content: sem quebrar <details>.
   A leitura permanece em lista e o cabeçalho continua semanticamente correto. */
@supports not selector(details::details-content){
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail[open]{
   display:flex!important;flex-direction:column!important;padding:0!important;
 }
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail[open] > summary{
   display:block!important;min-width:0;align-self:stretch!important;
   padding:25px 30px 0!important;margin:0!important;
 }
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-top.wp-block-group{
   display:flex!important;align-items:center!important;gap:17px!important;
   padding:10px 30px 8px!important;
 }
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-subtitle{
   flex:1;min-width:0;margin:0!important;
 }
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature-grid.wp-block-group{
   margin:20px 30px 4px!important;align-self:stretch;
 }
 body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-closing{
   margin:0 30px 24px!important;
 }
 @media(max-width:767px){
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail[open] > summary{
   padding:22px 20px 0!important;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-top.wp-block-group{
   padding:8px 20px!important;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-feature-grid.wp-block-group{
   margin:16px 20px 2px!important;
  }
  body.wp-theme-technolife .tl-ti-main .tl-ti-carousel.is-enhanced .tl-ti-detail-closing{
   margin:0 20px 20px!important;
  }
 }
}
