/* Tapetes flutuantes — ampliação de 28/10/2026: «Circuito de tapetes na sua piscina» (planta em escala), o que cada tapete trabalha,
   idade/supervisão/sol e a lista da escola. Sem preço.
   Gerado por ~/floty-lps/lps-produto/tapete/patch_tapete.py. Vem depois do /style.css e do /lp-produtos.css (usa .calc-medidas e .calc-unid). */
[hidden] { display: none !important; }
.tp { --tp-abismo: #072A3D; --tp-azul: #0B5F86; --tp-aqua: #5ED3E0; --tp-agua: #D3EEF5; --tp-eq: #F5B41E; --tp-desl: #F28C28; --tp-trav: #7E5CC9;
      --tp-trav-esc: #5B3FA8; --tp-linha: #DCE5EA; --tp-fundo: #F4F7F9; --tp-texto: #33464F; --tp-fonte: #5E6F79; }
.tp .section-head { display: block; max-width: 820px; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.tp .section-head p { margin: .7rem 0 0; max-width: 70ch; }
.tp input:focus-visible, .tp select:focus-visible, .tp button:focus-visible, .tp a:focus-visible { outline: 3px solid var(--tp-azul); outline-offset: 2px; }
.tp-res, .tp-lista { scroll-margin-top: 110px; }   /* o cabeçalho fixo não cobre o painel nem a lista quando a página rola até eles */
.tp-rot-campo, .tp legend { display: block; font: 800 .8rem/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--tp-fonte); padding: 0; margin: 0 0 .6rem; }

/* ---------- botões: ação principal com 48 px e texto de 16 px ---------- */
.tp .tp-btn, .tp .tp-btn-sec, .tp .tp-enviar { min-height: 48px; font: 800 1rem/1.15 var(--f-ui); letter-spacing: .01em; text-transform: none; padding: .75em 1.25em; }
.tp .tp-btn-sec { border: 2px solid var(--tp-azul); color: var(--tp-azul); background: #fff; }
.tp .tp-btn-sec:hover { background: #EEF6F9; color: var(--tp-abismo); }

/* ---------- 1. a ferramenta ---------- */
.tp-ferr { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }
.tp-form, .tp-res { background: #fff; border: 1px solid var(--tp-linha); border-radius: 18px; padding: clamp(1rem, 2.4vw, 1.5rem); min-width: 0; }
.tp-form { display: grid; gap: 1.25rem; }
.tp-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tp-medidas label { font: 700 .95rem/1.3 var(--f-ui); color: #23343E; }
.tp-medidas .calc-unid { min-height: 52px; }
.tp-medidas .calc-unid input { min-height: 50px; }
.tp-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.tp-chips .tp-rot-campo { flex: 1 0 100%; margin-bottom: .1rem; }
.tp-chip { min-height: 44px; padding: .45rem .85rem; border: 1.5px solid var(--tp-linha); border-radius: 999px; background: #fff; cursor: pointer;
           font: 700 .95rem/1.2 var(--f-ui); color: var(--tp-abismo); font-variant-numeric: tabular-nums; }
.tp-chip:hover { border-color: var(--tp-azul); color: var(--tp-azul); }
.tp-chip[aria-pressed="true"] { background: var(--tp-azul); border-color: var(--tp-azul); color: #fff; }
.tp-idade { display: flex; flex-wrap: wrap; gap: .5rem; }
.tp-idade legend { flex: 1 0 100%; }
.tp-pil { position: relative; cursor: pointer; }
.tp-pil input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tp-pil span { display: inline-flex; align-items: center; min-height: 46px; padding: .5rem 1rem; border: 1.5px solid var(--tp-linha); border-radius: 999px;
               font: 800 .98rem/1.2 var(--f-ui); color: var(--tp-abismo); background: #fff; }
.tp-pil input:checked + span { background: var(--tp-abismo); border-color: var(--tp-abismo); color: #fff; }
.tp-pil input:focus-visible + span { outline: 3px solid var(--tp-azul); outline-offset: 2px; }
.tp-sel { display: grid; }
.tp-sel select { min-height: 48px; width: 100%; border: 1.5px solid var(--tp-linha); border-radius: 10px; background: #fff; padding: 0 .6rem;
                 font: 700 .98rem/1.2 var(--f-ui); color: var(--tp-abismo); }
.tp-premissa { margin: 0; font-size: .86rem; color: var(--tp-fonte); border-top: 2px dashed var(--tp-linha); padding-top: .9rem; }

.tp-res { display: grid; gap: .95rem; }
.tp-titulo { margin: 0; font: 700 clamp(1.1rem, 1rem + .5vw, 1.35rem)/1.25 var(--f-display); color: var(--tp-abismo); }

/* a planta: SVG em escala; números e cotas em HTML por cima (texto dentro do SVG fica ilegível no celular) */
.tp-planta { margin: 0; min-width: 0; }
.tp-planta--ret { display: none; margin-inline: auto; }
.tp-quadro { position: relative; width: 100%; container-type: inline-size; }
.tp-svg { display: block; width: 100%; height: 100%; }
.tp-rot { position: absolute; inset: 0; pointer-events: none; }
.tp-n { position: absolute; transform: translate(-50%, -50%); width: clamp(20px, var(--tp-b), 28px); height: clamp(20px, var(--tp-b), 28px);
        display: grid; place-items: center; border-radius: 50%; font: 900 clamp(12px, calc(var(--tp-b) * .52), 15px)/1 var(--f-ui);
        box-shadow: 0 0 0 2px #fff, 0 3px 8px -2px rgba(7,42,61,.45); }
.tp-n--eq { background: var(--tp-eq); color: #1C1C1C; }
.tp-n--desl { background: var(--tp-desl); color: #1C1C1C; }
.tp-n--trav { background: var(--tp-trav-esc); color: #fff; }
.tp-cota { position: absolute; transform: translate(-50%, -50%); font: 800 11.5px/1 var(--f-ui); color: var(--tp-texto); white-space: nowrap;
           background: #E6ECEF; padding: 2px 4px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.tp-cota--l { writing-mode: vertical-rl; transform: translate(-50%, -50%) rotate(180deg); }
.tp-escala { position: absolute; height: 7px; transform: translateY(-50%); }
.tp-escala i { display: block; width: 100%; height: 100%; border: 2px solid var(--tp-texto); border-top: 0; }
.tp-escala em { position: absolute; left: calc(100% + 5px); top: 50%; transform: translateY(-50%); font: 800 11.5px/1 var(--f-ui); font-style: normal;
                white-space: nowrap; color: var(--tp-texto); }
.tp-leg { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; margin-top: .6rem; font: 700 .85rem/1.3 var(--f-ui); color: var(--tp-fonte); }
.tp-leg-f { display: inline-flex; align-items: center; gap: .35rem; color: var(--tp-texto); }
.tp-c { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.tp-c--eq { background: var(--tp-eq); } .tp-c--desl { background: var(--tp-desl); } .tp-c--trav { background: var(--tp-trav); }
.tp-leg-q { margin-left: auto; }

.tp-resumo { display: grid; gap: .7rem; }
.tp-uso { margin: 0; font: 700 1rem/1.4 var(--f-ui); color: var(--tp-abismo); }
.tp-est { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.tp-est li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .75rem; align-items: start; padding: .7rem .85rem; background: var(--tp-fundo);
             border-radius: 12px; border-left: 5px solid var(--tp-eq); }
.tp-est .tp-est--desl { border-left-color: var(--tp-desl); }
.tp-est .tp-est--trav { border-left-color: var(--tp-trav); }
.tp-est-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 900 1rem/1 var(--f-ui); background: var(--tp-eq); color: #1C1C1C; }
.tp-est--desl .tp-est-n { background: var(--tp-desl); }
.tp-est--trav .tp-est-n { background: var(--tp-trav-esc); color: #fff; }
.tp-est p { margin: 0; }
.tp-est-t { font: 600 1.05rem/1.3 var(--f-display); color: var(--tp-abismo); }
.tp-est-t b { font-weight: 700; }
.tp-est-m { margin-top: .15rem !important; font: 700 .84rem/1.35 var(--f-ui); color: var(--tp-fonte); font-variant-numeric: tabular-nums; }
.tp-est-d { margin-top: .3rem !important; font-size: .96rem; color: #23343E; }
.tp-faltou { margin: 0; padding: .65rem .85rem; background: #FFF8E6; border-left: 4px solid var(--tp-eq); border-radius: 0 8px 8px 0; font-size: .95rem; color: #3B3420; }
.tp-cabe { margin: 0; font-size: .9rem; color: var(--tp-fonte); }
.tp-seg { margin: 0; padding: .75rem .9rem; background: #EAF6FA; border-left: 5px solid var(--tp-azul); border-radius: 0 10px 10px 0; font-size: .95rem; color: #173240; }
.tp-seg cite, .tp-tab cite, .tp-cuid cite { display: block; margin-top: .3rem; font: 700 .78rem/1.35 var(--f-ui); font-style: normal; color: var(--tp-fonte); }
.tp-seg cite a, .tp-tab cite a, .tp-cuid cite a { color: var(--tp-azul); }
.tp-acoes { display: flex; flex-wrap: wrap; gap: .6rem; }
.tp-copiado { margin: -.3rem 0 0; font: 700 .86rem/1.35 var(--f-ui); color: #1F6B45; overflow-wrap: anywhere; }
.tp-copiado:empty { display: none; }
.tp-casa { margin: 0; }
.tp-casa a { display: inline-block; padding: .72rem 0; font: 800 .98rem/1.35 var(--f-ui); color: var(--tp-azul); }   /* 44 px de alvo; a seta segue o texto */
.tp-fonte { margin: 0; font-size: .82rem; color: var(--tp-fonte); }

/* ---------- 2. o que cada tapete trabalha ---------- */
.tp-tab { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--tp-linha); border-radius: 18px; overflow: hidden;
          table-layout: fixed; font-size: .97rem; }
.tp-tab caption { caption-side: bottom; text-align: left; padding: .8rem 0 0; font-size: .84rem; color: var(--tp-fonte); }
.tp-tab th, .tp-tab td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--tp-linha); }
.tp-tab thead th { border-top: 0; border-bottom: 3px solid var(--tp-eq); font: 800 .8rem/1.2 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--tp-fonte); background: var(--tp-fundo); }
.tp-tab thead th:nth-child(1) { width: 29%; } .tp-tab thead th:nth-child(2) { width: 20%; } .tp-tab thead th:nth-child(4) { width: 18%; }
.tp-tab tbody tr:first-child th, .tp-tab tbody tr:first-child td { border-top: 0; }
.tp-tab tbody th { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: .8rem; align-items: center; font: 700 1.05rem/1.25 var(--f-display); color: var(--tp-abismo); }
.tp-tab tbody th img { width: 104px; height: 78px; object-fit: cover; border-radius: 10px; background: #EEF2F4; }
.tp-tab tbody th small { display: block; margin-top: .2rem; font: 700 .76rem/1.3 var(--f-ui); color: var(--tp-fonte); letter-spacing: .02em; }
.tp-tab tbody td { color: #23343E; }
.tp-tab td:nth-child(2) { font-weight: 700; color: var(--tp-abismo); font-variant-numeric: tabular-nums; }
.tp-fase { display: inline-block; padding: .3rem .6rem; border-radius: 999px; font: 800 .8rem/1.2 var(--f-ui); background: #FFF1CC; color: #5C4300; }
.tp-fase--desl { background: #FDE3C6; color: #6B3A08; }
.tp-fase--trav { background: #E6DEF8; color: #3D2780; }
.tp-fase--fora { background: #E8EEF1; color: var(--tp-texto); }
.tp-id { display: block; margin-top: .4rem; font: 700 .9rem/1.3 var(--f-ui); color: var(--tp-texto); }

/* ---------- 3. idade, supervisão e sol ---------- */
.tp-cuid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tp-cuid li { background: #fff; border: 1px solid var(--tp-linha); border-top: 5px solid var(--tp-azul); border-radius: 14px; padding: 1rem 1.15rem; display: grid; gap: .5rem; align-content: start; }
.tp-cuid li:nth-child(2) { border-top-color: var(--tp-eq); }
.tp-cuid li:nth-child(3) { border-top-color: var(--tp-desl); }
.tp-cuid h3 { font: 700 1.25rem/1.2 var(--f-display); color: var(--tp-abismo); }
.tp-cuid p { margin: 0; color: var(--tp-texto); font-size: .97rem; }

/* ---------- 4. lista da escola e loja ---------- */
.tp-compra { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.tp-lista, .tp-casa-box { background: #fff; border: 1px solid var(--tp-linha); border-radius: 18px; padding: clamp(1.1rem, 2.6vw, 1.7rem); min-width: 0; }
.tp-lista { border-top: 5px solid #25D366; display: grid; gap: .8rem; }
.tp-casa-box { border-top: 5px solid var(--tp-azul); display: grid; gap: .75rem; align-content: start; }
.tp-lista h3, .tp-casa-box h3 { margin: 0; font: 700 clamp(1.25rem, 1.05rem + .8vw, 1.6rem)/1.2 var(--f-display); color: var(--tp-abismo); }
.tp-casa-box p { margin: 0; color: var(--tp-texto); }
.tp-tag { justify-self: start; display: inline-block; background: var(--tp-eq); color: #1C1C1C; font: 800 .76rem/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; padding: .38rem .6rem; border-radius: 999px; }
.tp-tag--casa { background: #DDEFF6; color: var(--tp-abismo); }
.tp-vazio { margin: 0; padding: .8rem .9rem; border: 2px dashed var(--tp-linha); border-radius: 12px; color: var(--tp-fonte); font-size: .95rem; }
.tp-itens { list-style: none; margin: 0; padding: 0; }
.tp-itens:empty { display: none; }
.tp-itens li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--tp-linha); }
.tp-itens li:last-child { border-bottom: 1px solid var(--tp-linha); }
.tp-item-n b { display: block; font: 700 1rem/1.3 var(--f-ui); color: var(--tp-abismo); }
.tp-item-n small { display: block; font: 700 .78rem/1.3 var(--f-ui); color: var(--tp-fonte); }
.tp-q { display: inline-flex; align-items: center; border: 1.5px solid var(--tp-azul); border-radius: 10px; overflow: hidden; }
.tp-q button { width: 44px; height: 44px; border: 0; background: #fff; color: var(--tp-azul); font: 800 1.35rem/1 var(--f-ui); cursor: pointer; }
.tp-q button:hover { background: #EEF6F9; }
.tp-q output { min-width: 2.4rem; text-align: center; font: 700 1.15rem/1 var(--f-display); color: var(--tp-abismo); font-variant-numeric: tabular-nums; }
.tp-add-l { display: flex; flex-wrap: wrap; gap: .5rem; }
.tp-add select { flex: 1 1 220px; min-width: 0; min-height: 48px; border: 1.5px solid var(--tp-linha); border-radius: 10px; background: #fff; padding: 0 .6rem;
                 font: 700 .95rem/1.2 var(--f-ui); color: var(--tp-abismo); }
.tp-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; margin: .2rem 0 0; }
.tp-campos label { display: grid; gap: .3rem; font: 700 .9rem/1.3 var(--f-ui); color: var(--tp-texto); min-width: 0; }
.tp-campos input { width: 100%; min-width: 0; min-height: 46px; border: 1.5px solid var(--tp-linha); border-radius: 10px; padding: 0 .75rem; background: #fff; font: 600 1rem/1.2 var(--f-ui); color: var(--ink); }
.tp-campos .tp-largo { grid-column: 1 / -1; }
.tp .tp-enviar { width: 100%; min-height: 52px; }
.tp-nota { font-size: .86rem !important; color: var(--tp-fonte) !important; }

/* ---------- larguras ---------- */
@media (max-width: 1000px) {
  .tp-ferr { grid-template-columns: minmax(0, 1fr); }
  .tp-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .tp-form .tp-medidas, .tp-form .tp-chips, .tp-premissa { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .tp-compra { grid-template-columns: minmax(0, 1fr); }
  .tp-cuid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tp-tab tbody, .tp-tab tr, .tp-tab th, .tp-tab td { display: block; width: 100% !important; }
  .tp-tab { display: flex; flex-direction: column; width: 100%; border: 0; background: none; border-radius: 0; overflow: visible; }
  .tp-tab thead { display: none; }
  .tp-tab caption { display: block; order: 2; padding-top: .7rem; }
  .tp-tab tbody { display: grid; gap: .8rem; }
  .tp-tab tr { background: #fff; border: 1px solid var(--tp-linha); border-radius: 14px; padding: .85rem .95rem; }
  .tp-tab tbody th, .tp-tab td { border: 0; padding: 0; }
  .tp-tab tbody th { display: grid; grid-template-columns: 88px minmax(0, 1fr); margin-bottom: .55rem; }
  .tp-tab tbody th img { width: 88px; height: 66px; }
  .tp-tab td { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: .6rem; padding: .45rem 0; border-top: 1px dashed var(--tp-linha); }
  .tp-tab td::before { content: attr(data-m); font: 800 .8rem/1.3 var(--f-ui); color: var(--tp-azul); }
}
@media (max-width: 640px) {
  .tp-planta--pais { display: none; }
  .tp-planta--ret { display: block; }
  .tp-form { grid-template-columns: minmax(0, 1fr); }
  .tp-campos { grid-template-columns: minmax(0, 1fr); }
  .tp-leg-q { margin-left: 0; }
}
@media (max-width: 440px) {
  .tp-acoes .btn, .tp-casa-box .btn { width: 100%; justify-content: center; }
  .tp-medidas .calc-unid input { font-size: 1.3rem; }
}
