/* Guia de Instalação Tés, v10 (12/11/2026). Só o que é específico do guia.
   v9: página em largura total (sem faixas brancas), figuras e carrossel dinâmicos,
   e cinza do guia trocado de #ECE7DE para #E8E7E5 (só aqui, via variável local). */
/* Guia de Instalação Tés, v7 (02/11/2026). Só o que é específico do guia.
   Tipografia, cores, cards, avisos, tabela, botões e menu lateral vêm do tes-ds.css
   (classes .tes-). Carregado na página, depois do tes-ds.css. Tudo escopado em .tes-guia. */
.tes-guia{ --tes-surface:#E8E7E5; padding:0 0 var(--tes-sp-6); -webkit-font-smoothing:antialiased }
.tg-layout{ padding-top:var(--tes-sp-5); align-items:start }
.tg-content{ width:100%; max-width:none; margin:0; padding:0 15px 0 0 }
.tes-guia p,.tes-guia li{ margin:0 }

/* texto corrido, listas, avisos e tabelas acompanham a largura da janela, como as imagens (v8) */
.tes-guia .tes-text{ max-width:none }

/* seções: o espaço entre blocos fica nas margens dos componentes do DS */
.tg-sec{ margin-top:var(--tes-sp-6); scroll-margin-top:96px }
.tg-content > .tg-sec:first-child{ margin-top:0 }
.tg-sec > .tes-text{ margin-top:var(--tes-sp-3) }
.tg-sec > .tes-h2 + .tes-text,.tg-sec > .tes-h3 + .tes-text{ margin-top:0 }
.tg-sec > .tes-h4{ margin-top:var(--tes-sp-4) }
.tes-guia ul,.tes-guia .tg-ol{ margin:var(--tes-sp-3) 0 0; padding-left:1.25em; max-width:none }
.tes-guia li + li{ margin-top:var(--tes-sp-2) }
.tes-guia li::marker{ color:var(--tes-muted) }
.tg-spec{ list-style:none; padding-left:0 !important }
.tg-spec > li + li{ margin-top:var(--tes-sp-4) }
.tes-guia .tg-content a:not(.tes-btn){ color:var(--tes-ink); text-decoration:underline; text-decoration-color:var(--tes-muted); text-underline-offset:3px }
.tes-guia a:focus-visible,.tes-guia button:focus-visible,.tg-gal__track:focus-visible{ outline:2px solid var(--tes-ink); outline-offset:2px }

/* menu lateral: o DS marca o ativo com .is-active, o JS do guia usa aria-current */
.tes-guia .tg-index__list{ list-style:none; margin:0; padding:0 }
.tes-guia .tg-index__list li + li{ margin-top:0 }
.tes-guia .tes-sidenav a[aria-current="true"]{ color:var(--tes-ink); font-weight:600 }
.tg-side{ position:sticky; top:var(--tes-sp-5); padding:0 15px }
.tg-head h1{ font-size:18px; line-height:1.55; font-weight:400; color:var(--tes-ink); margin:0 }
.tg-index{ margin-top:var(--tes-sp-4) }
.tg-index__top{ display:flex; align-items:center; justify-content:space-between }
.tg-index__close,.tg-bar__btn{ display:none }

/* aviso: o rótulo do DS vem antes do texto */
.tg-note{ margin-top:var(--tes-sp-4); padding:var(--tes-sp-4); background:var(--tes-surface); border-color:transparent; border-left-color:var(--tes-ink) }
.tg-note .tes-text{ margin:0; color:var(--tes-ink); max-width:none }

/* figuras */
.tg-fig{ margin:var(--tes-sp-4) 0 0; background:var(--tes-surface); border-radius:var(--tes-radius); overflow:hidden }
.tg-fig img{ display:block; width:100%; max-width:1600px; height:auto; max-height:85vh; object-fit:contain; margin:0 auto; mix-blend-mode:multiply }
/* imagens menores que 1600px não são esticadas além do tamanho original */
.tg-fig img[src$="guia-08.jpg"]{ max-width:1120px }
.tg-fig img[src$="guia-09a.jpg"]{ max-width:840px }
.tg-fig img[src$="guia-09b.jpg"]{ max-width:800px }
.tg-fig--small,.tg-fig--medium{ padding:var(--tes-sp-4) 0 }
.tg-fig--small img,.tg-fig--medium img{ margin:0 auto }
.tg-fig--small img{ width:48% }
.tg-fig--medium img{ width:64% }
.tg-spec .tg-fig{ margin-top:var(--tes-sp-3) }

/* tabela */
.tg-table-wrap{ margin-top:var(--tes-sp-4); overflow-x:auto }
.tg-table th,.tg-table td{ white-space:nowrap }
.tg-table tbody th{ font-weight:400; color:var(--tes-ink); font-size:var(--tes-fs-ui); letter-spacing:0; text-transform:none }

/* carrossel, no padrão da galeria de produtos do site */
.tg-gal{ margin:var(--tes-sp-4) 0 0 }
.tg-gal__main{ display:grid; grid-template-columns:76px minmax(0,1fr); gap:var(--tes-sp-3) }
.tg-gal__thumbs-wrap{ position:relative }
.tg-gal__thumbs{ position:absolute; inset:0; overflow-y:auto; display:flex; flex-direction:column; gap:var(--tes-sp-2); scrollbar-width:none }
.tg-gal__thumbs::-webkit-scrollbar{ display:none }
.tg-gal__thumb{ flex:0 0 auto; width:76px; aspect-ratio:1/1; padding:0; border:0; border-radius:var(--tes-radius); background:var(--tes-surface); cursor:pointer; opacity:.55; transition:opacity .16s ease; position:relative; overflow:hidden }
.tg-gal__thumb img{ width:100%; height:100%; object-fit:contain; display:block; mix-blend-mode:multiply }
.tg-gal__thumb:hover{ opacity:.85 }
.tg-gal__thumb[aria-current="true"]{ opacity:1 }
.tg-gal__thumb[aria-current="true"]::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--tes-ink) }
.tg-gal__stage{ position:relative; background:var(--tes-surface); border-radius:var(--tes-radius); aspect-ratio:1/1; max-height:85vh; overflow:hidden }
.tg-gal__track{ display:flex; height:100%; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch }
.tg-gal__track::-webkit-scrollbar{ display:none }
.tg-gal__slide{ flex:0 0 100%; height:100%; margin:0; scroll-snap-align:start; scroll-snap-stop:always }
.tg-gal__slide img{ width:100%; height:100%; object-fit:contain; display:block; mix-blend-mode:multiply }
.tg-gal__arrow{ position:absolute; top:50%; transform:translateY(-50%); width:40px; height:40px; padding:0; border:0; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.85); color:var(--tes-ink); cursor:pointer; transition:opacity .16s ease }
.tg-gal__arrow--prev{ left:var(--tes-sp-2) } .tg-gal__arrow--next{ right:var(--tes-sp-2) }
.tg-gal__arrow:disabled{ opacity:0; pointer-events:none }
.tg-gal__count{ position:absolute; right:var(--tes-sp-3); bottom:var(--tes-sp-2); font-size:var(--tes-fs-label); letter-spacing:.08em; color:var(--tes-body) }
.tg-gal__dots{ display:none; justify-content:center; gap:var(--tes-sp-1); margin-top:var(--tes-sp-2) }
.tg-gal__dot{ width:24px; height:24px; padding:0; border:0; background:transparent; cursor:pointer; position:relative }
.tg-gal__dot::before{ content:""; position:absolute; left:50%; top:50%; width:8px; height:8px; margin:-4px 0 0 -4px; border-radius:50%; background:var(--tes-line); transition:background .16s ease }
.tg-gal__dot[aria-current="true"]::before{ background:var(--tes-ink) }

/* legenda: o texto do passo muda junto com a foto; todas ocupam a mesma célula, então a altura não pula */
.tg-gal__caps{ display:grid; margin:var(--tes-sp-3) 0 0 calc(76px + var(--tes-sp-3)) }
.tg-gal__cap{ grid-area:1/1; display:grid; grid-template-columns:32px minmax(0,1fr); gap:var(--tes-sp-3); visibility:hidden }
.tg-gal__cap[aria-current="step"]{ visibility:visible }
.tg-step__n{ width:32px; height:32px; border:1px solid var(--tes-ink); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:var(--tes-fs-ui); line-height:1; background:var(--tes-ink); color:var(--tes-bg) }
.tg-step__t{ color:var(--tes-ink); padding-top:3px }

@media (max-width:767px){
  .tes-guia{ padding-bottom:var(--tes-sp-5) }
  .tg-layout{ display:block; padding-top:var(--tes-sp-3) }
  .tg-content{ padding:0 var(--tes-sp-3) }
  .tg-fig--small img,.tg-fig--medium img{ width:100% }
  /* barra no topo: título à esquerda, botão "Seções" no canto superior direito, como o "Filtrar" dos produtos */
  .tg-side{ position:sticky; top:60px; z-index:1030; background:var(--tes-bg); border-bottom:1px solid var(--tes-line); display:flex; align-items:center; justify-content:space-between; gap:var(--tes-sp-3); padding:var(--tes-sp-2) var(--tes-sp-3); margin-bottom:var(--tes-sp-5) }
  .tg-side:has(.tg-index.is-open){ z-index:1050 }
  .tg-bar__btn,.tg-index__close{ display:inline-flex; padding:6px 14px; font-size:12px }
  .tg-index{ position:fixed; inset:0; z-index:1050; display:none; overflow-y:auto; background:var(--tes-bg); margin-top:0; padding:var(--tes-sp-4) var(--tes-sp-3) }
  .tg-index.is-open{ display:block }
  .tes-guia .tg-index__list li + li{ margin-top:var(--tes-sp-3) }
  .tg-sec{ margin-top:var(--tes-sp-5); scroll-margin-top:136px }
  .tg-gal__main{ grid-template-columns:minmax(0,1fr) }
  .tg-gal__thumbs-wrap{ display:none }
  .tg-gal__dots{ display:flex; flex-wrap:wrap }
  .tg-gal__caps{ margin-left:0 }
  .tg-gal__arrow{ display:none }
}
@media (prefers-reduced-motion:reduce){
  .tes-guia *{ transition:none !important; scroll-behavior:auto !important }
}

/* Ajuste 2026-11-12: elementos das imagens 35% menores (65% do tamanho), sem transform: a imagem encolhe de verdade, a faixa cinza continua em largura total e fica mais baixa. Bordas da imagem esmaecidas para nao aparecer retangulo/sombra. */
.tg-fig img,.tg-gal__slide img{ -webkit-mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent),linear-gradient(to bottom,transparent,#000 6%,#000 94%,transparent); -webkit-mask-composite:source-in; mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent),linear-gradient(to bottom,transparent,#000 6%,#000 94%,transparent); mask-composite:intersect }
.tg-fig img{ width:100%; max-width:1040px }
.tg-fig--small img{ width:100%; max-width:500px }
.tg-fig--medium img{ width:100%; max-width:666px }
.tg-fig img[src$="guia-08.jpg"]{ max-width:728px }
.tg-fig img[src$="guia-09a.jpg"]{ max-width:546px }
.tg-fig img[src$="guia-09b.jpg"]{ max-width:520px }
/* carrossel: faixa cinza so tão alta quanto a imagem; a imagem para de crescer em 650px (65% do tamanho antigo) e, quando o espaco acaba, encolhe junto com a faixa */
.tg-gal__stage{ aspect-ratio:auto; max-height:none }
.tg-gal__track{ height:auto }
.tg-gal__slide{ height:auto; display:flex; align-items:center; justify-content:center; padding:var(--tes-sp-3) 0 }
.tg-gal__slide img{ width:100%; max-width:650px; height:auto; aspect-ratio:1/1; object-fit:contain }
/* telas largas: miniaturas a esquerda, imagem no centro, passo a passo a direita (como a pagina de produto) */
@media (min-width:1280px){
  .tg-gal{ display:grid; grid-template-columns:76px minmax(0,1fr) minmax(280px,360px); gap:var(--tes-sp-4) var(--tes-sp-3); align-items:start }
  .tg-gal__main{ display:contents }
  .tg-gal__thumbs-wrap{ grid-column:1; grid-row:1; align-self:stretch }
  .tg-gal__stage{ grid-column:2; grid-row:1 }
  .tg-gal__caps{ grid-column:3; grid-row:1; margin:0; padding-top:var(--tes-sp-2) }
}
/* 6.1 Diagramas de Instalacao: alinhado ao padrao do guia (sem caixa centralizada de 1120px e sem recuo proprio) */
.tes-guia #tes-inst.tes-inst{max-width:none;margin:0;padding:0 0 var(--tes-sp-4)}
.tes-guia #tes-inst .ti-head{margin:0}
.tes-guia #tes-inst .ti-controls{margin:var(--tes-sp-4) 0}
.tes-guia #tes-inst .ti-svgwrap{max-width:300px}
/* clareia 3,5% o branco das imagens: some o retangulo/sombra "suja" que algumas fotos trazem no fundo */
.tg-fig img,.tg-gal__slide img{ filter:brightness(1.035) }

/* passo a passo: lista com todos os passos, o da foto atual em destaque */
.tg-gal__caps{ display:flex; flex-direction:column; gap:var(--tes-sp-3) }
.tg-gal__cap{ grid-area:auto; visibility:visible }
.tg-gal__cap .tg-step__n{ background:transparent; color:var(--tes-ink); transition:background .16s ease,color .16s ease }
.tg-gal__cap .tg-step__t{ color:var(--tes-muted); transition:color .16s ease }
.tg-gal__cap[aria-current="step"] .tg-step__n{ background:var(--tes-ink); color:var(--tes-bg) }
.tg-gal__cap[aria-current="step"] .tg-step__t{ color:var(--tes-ink) }

/* v10: titulo do menu em caixa alta, no mesmo tamanho de "Categorias" do orcamento; sem o rotulo "Secoes" no menu do computador */
.tg-head h1{ font-size:var(--tes-fs-ui); letter-spacing:.06em; text-transform:uppercase }
@media (min-width:768px){ .tg-index__title{ display:none } }
