/* A guia Arquitetura do Mapa de Amarração (F5 do plano do MEPE modular 100%, 13/11/2026). Escala de espaço: 4 · 8 · 12 · 16 · 24;
   fora dela, só o ajuste ótico de 1 e 2 px que põe o ícone na altura da primeira linha do texto.
   Um dourado só, na régua do índice (--acc). Situação sempre em etiqueta com texto e ícone de forma distinta: Pronta, Sai
   sozinho, Na meta e Dentro do teto em creme, com o visto; Em obra e Com obra em grafite, com o relógio; Difícil, Não começou e
   Acima do teto com contorno escuro e o cadeado; Não medido com contorno claro e o i. Nada de azul. Valores à direita; situação,
   peso e percentual ao centro; texto e nome à esquerda; cabeçalho de coluna ao centro (estilos.css › .tab th). A largura da
   própria guia decide tabela ou cartões (container query), com o menu aberto, recolhido ou na gaveta do celular. */

.aq-tela { container: aq / inline-size; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* o atalho para os quatro blocos: botões de texto, quietos; o título que recebe o foco para abaixo do topo fixo (48 px) */
.aq-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; line-height: 16px; color: var(--tx2); }
.aq-nav > span { margin-right: 4px; }
.aq-ir { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--linha); border-radius: 999px; background: var(--folha); color: var(--tx); font-size: 12.5px; font-weight: 600; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.aq-ir:hover { background: var(--sf2); border-color: var(--linha2); }
.aq-ir:focus-visible, .aq-cab h2:focus-visible { outline: 2px solid var(--tx); outline-offset: 2px; }
.aq-cab h2:focus:not(:focus-visible) { outline: none; }
.aq-bloco { padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.aq-cab { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aq-cab h2 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 800; letter-spacing: -.01em; scroll-margin-top: 64px; text-wrap: balance; }
.aq-cab h3 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 800; text-wrap: balance; }
.aq-cab p { margin: 0; max-width: 920px; font-size: 12.5px; line-height: 20px; color: var(--tx2); }
.aq-cab-sub { padding-top: 8px; border-top: 1px solid var(--linha); }

/* as etiquetas (a família .et de estilos.css: o mesmo canto, a mesma altura, o mesmo corpo) */
.aq-et { gap: 4px; }
.aq-et-feito { background: var(--sf3); color: var(--tx); }
.aq-et-obra { background: var(--tx); color: var(--folha); }
.aq-et-preso { background: var(--folha); color: var(--tx); box-shadow: inset 0 0 0 1px var(--tx); }
.aq-et-nm { background: var(--folha); color: var(--tx2); box-shadow: inset 0 0 0 1px var(--linha2); }

/* 1. o placar do índice: o número, a régua (o dourado da tela) e a comparação */
.aq-placar { display: grid; grid-template-columns: minmax(200px, auto) minmax(240px, 1fr) minmax(240px, 300px); gap: 24px; align-items: center;
  padding: 16px 24px; border: 1px solid var(--linha); border-radius: var(--r2); background: var(--sf2); }
.aq-placar-agora { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aq-placar-linha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.aq-numero { font-size: 40px; line-height: 48px; font-weight: 800; letter-spacing: -.03em; color: var(--tx); }
.aq-legenda { font-size: 12.5px; line-height: 16px; color: var(--tx2); }
.aq-placar-regua { min-width: 0; }
.aq-regua { position: relative; height: 12px; border-radius: 999px; background: var(--sf3); box-shadow: inset 0 0 0 1px var(--linha2); }
.aq-regua-cheio { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--acc); }
.aq-regua-meta { position: absolute; top: 50%; width: 2px; height: 24px; border-radius: 2px; background: var(--tx); transform: translate(-50%, -50%); }
.aq-regua-antes { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--folha); box-shadow: inset 0 0 0 2px var(--tx2); transform: translate(-50%, -50%); }
.aq-regua-escala { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; font-size: 11px; line-height: 16px; color: var(--tx3); }
.aq-leg { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.aq-leg > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.aq-leg-antes { width: 10px; height: 10px; border-radius: 50%; background: var(--folha); box-shadow: inset 0 0 0 2px var(--tx2); }
.aq-leg-meta { width: 2px; height: 12px; border-radius: 2px; background: var(--tx); }
.aq-compara { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 1px solid var(--linha); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aq-compara li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 12.5px; line-height: 20px; color: var(--tx2); }
.aq-compara b { color: var(--tx); font-size: 13px; text-align: right; white-space: nowrap; }
.aq-compara b.aq-neg, .aq-neg { color: var(--dg); }
.aq-motivo { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--tx2); }

/* as tabelas da guia (a base .tab é de estilos.css; o cabeçalho de linha volta ao corpo de texto) */
.aq-caixa { border: 1px solid var(--linha); border-radius: var(--r2); }
.aq-tab { width: 100%; border-collapse: collapse; }
.aq-tab tbody th { font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--tx); text-align: left; background: transparent; white-space: normal; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--linha); }
.aq-tab tbody tr:last-child th { border-bottom: 0; }
.aq-tab tbody tr:hover th { background: var(--sf2); }
.aq-tab td, .aq-tab tbody th { overflow-wrap: break-word; }
.aq-tab td.c { vertical-align: top; }
.aq-nome { display: block; font-size: 13px; line-height: 18px; font-weight: 700; overflow-wrap: break-word; }
.aq-tab th small { display: block; margin-top: 4px; font-size: 11px; line-height: 16px; color: var(--tx3); font-weight: 500; }
.aq-c-como > span { display: block; font-size: 12.5px; line-height: 18px; }
.aq-c-como > small { display: block; margin-top: 4px; font-size: 11.5px; line-height: 16px; color: var(--tx2); }
.aq-c-como > small.aq-falta, .aq-falta { color: var(--tx); }
/* a linha do índice (a soma): o mesmo fundo em todas as células e o peso só nos números (estilos.css › .tab tr.total td pinta de
   branco e põe tudo em negrito; esta regra ganha pela mesma força e por vir depois) */
.aq-tab tr.total th, .aq-tab tr.total td { border-top: 2px solid var(--linha2); border-bottom: 0; background: var(--sf2); font-weight: 400; }
.aq-tab tr.total b { font-weight: 800; }
.aq-tab tbody tr.total:hover th, .aq-tab tbody tr.total:hover td { background: var(--sf2); }

/* as 7 peças: o nome, o peso, o antes, o agora (e quanto vale no índice), a situação e como se mede */
.aq-pecas thead th:nth-child(1) { width: 176px; }
.aq-pecas thead th:nth-child(2) { width: 64px; }
.aq-pecas thead th:nth-child(3) { width: 80px; }
.aq-pecas thead th:nth-child(4) { width: 136px; }
.aq-pecas thead th:nth-child(5) { width: 128px; }
.aq-pct { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.aq-pct b { font-size: 13px; }
.aq-pct small { font-size: 11px; line-height: 16px; color: var(--tx3); white-space: nowrap; }

/* 2. a liberdade e os tetos: os quadros lado a lado, com o mesmo topo e a mesma base (a grade estica; o conteúdo no topo) */
.aq-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.aq-tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 16px; border: 1px solid var(--linha); border-radius: var(--r2); background: var(--sf2); }
.aq-tile-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 32px; }
.aq-tile-cab .aq-et { margin-left: auto; }
.aq-tile-n { font-size: 24px; line-height: 32px; font-weight: 800; letter-spacing: -.02em; }
.aq-teto-de { font-size: 12px; line-height: 16px; color: var(--tx2); }
.aq-tile p { margin: 0; font-size: 12px; line-height: 18px; color: var(--tx2); }
.aq-lib thead th:nth-child(1) { width: 260px; }
.aq-lib thead th:nth-child(2) { width: 136px; }
.aq-lib .aq-c-como { font-size: 12.5px; line-height: 18px; }
.aq-nota { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 12px; border: 1px solid var(--linha); border-radius: var(--r2); background: var(--sf2); font-size: 12px; line-height: 18px; color: var(--tx2); }
.aq-nota svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--tx3); }
.aq-nota b { color: var(--tx); }

/* 3. quem chama a porta de quem: mais largura para as etiquetas dos módulos, menos para o resumo e os avisos */
.aq-totais { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; font-size: 12.5px; line-height: 20px; color: var(--tx2); }
.aq-totais b { margin-right: 4px; font-size: 14px; color: var(--tx); }
.aq-mapa thead th:nth-child(1) { width: 200px; }
.aq-mapa thead th:nth-child(4) { width: 22%; }
.aq-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.aq-chips li { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 8px; border: 1px solid var(--linha); border-radius: var(--r1); background: var(--folha); font-size: 12px; line-height: 16px; }
.aq-chips li span { min-width: 0; overflow-wrap: break-word; }
.aq-chips li b { flex: none; font-size: 11px; font-weight: 800; color: var(--tx2); text-align: right; }
.aq-nada { font-size: 12px; line-height: 18px; color: var(--tx3); }
.aq-rel { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 16px; color: var(--tx2); }
.aq-rel b { color: var(--tx); font-weight: 700; }
.aq-exc thead th:nth-child(1) { width: 200px; }
.aq-exc thead th:nth-child(2) { width: 200px; }
.aq-exc thead th:nth-child(3) { width: 104px; }

/* 4. como pensar: a instalação elétrica da casa (o texto do Guia Essencial v3), uma lista de leitura em três colunas, sem caixa:
   o fio fino em cima de cada item separa, e o termo em negrito puxa o olho */
.aq-casa { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.aq-casa li { min-width: 0; padding: 12px 0; border-top: 1px solid var(--linha); font-size: 12.5px; line-height: 20px; color: var(--tx2); }
.aq-casa li b { color: var(--tx); }
.aq-guia thead th:nth-child(1) { width: 176px; }
.aq-guia .aq-c-texto { font-size: 12.5px; line-height: 18px; }

/* os estados: sem a conta da plataforma, sem o arquivo, a falha */
.aq-estado { display: flex; gap: 12px; align-items: flex-start; padding: 24px; }
.aq-estado > svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--tx2); }
.aq-estado p { margin: 0; max-width: 640px; font-size: 13px; line-height: 20px; }
.aq-estado .bt { margin-top: 12px; }

/* a guia mais estreita (o computador menor e o tablet com o menu aberto): o placar em duas linhas */
@container aq (max-width: 1080px) {
  .aq-placar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .aq-placar-regua { grid-column: 1 / -1; grid-row: 2; }
}
@container aq (max-width: 900px) {
  .aq-casa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* o tablet e o celular: as tabelas viram cartões, um por linha, com o rótulo de cada campo */
@container aq (max-width: 720px) {
  .aq-bloco { padding: 16px; }
  .aq-placar { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
  .aq-placar-regua { grid-row: auto; }
  .aq-compara { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--linha); }
  .aq-tiles, .aq-casa { grid-template-columns: minmax(0, 1fr); }
  .aq-tab thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .aq-tab, .aq-tab tbody { display: block; width: 100%; }
  .aq-tab tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--linha); }
  .aq-tab tbody tr:last-child { border-bottom: 0; }
  .aq-tab tbody th, .aq-tab td { display: block; min-width: 0 !important; padding: 0; border: 0; text-align: left; background: transparent; }
  .aq-tab tbody tr:hover td, .aq-tab tbody tr:hover th { background: transparent; }
  .aq-tab td[data-rot]::before { content: attr(data-rot); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tx3); }
  .aq-tab .aq-c-nome { grid-column: 1; }
  .aq-tab td.aq-c-sit { grid-column: 2; grid-row: 1; justify-self: end; }
  .aq-tab td.aq-c-sit::before { display: none; }
  .aq-tab td.aq-c-como, .aq-tab td.aq-c-chips, .aq-tab td.aq-c-rel, .aq-tab td.aq-c-texto, .aq-tab td.aq-c-junta { grid-column: 1 / -1; }
  /* a linha do índice vira um cartão só, com o fundo creme inteiro (as células sem fundo próprio) */
  .aq-tab tr.total { border-top: 2px solid var(--linha2); background: var(--sf2); }
  .aq-tab tr.total th, .aq-tab tr.total td, .aq-tab tbody tr.total:hover th, .aq-tab tbody tr.total:hover td { border-top: 0; background: transparent; }
  /* as peças: o peso, o antes e o agora numa linha de três, centrados */
  .aq-pecas tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aq-pecas .aq-c-nome { grid-column: 1 / 3; }
  .aq-pecas td.aq-c-sit { grid-column: 3; }
  .aq-pecas td.aq-c-peso, .aq-pecas td.aq-c-antes, .aq-pecas td.aq-c-agora { grid-row: 2; text-align: center; }
  .aq-pecas td.aq-c-peso { grid-column: 1; } .aq-pecas td.aq-c-antes { grid-column: 2; } .aq-pecas td.aq-c-agora { grid-column: 3; }
  .aq-pecas td.aq-c-como { grid-row: 3; }
  /* o mapa: o nome em cima, sozinho; as junções: a contagem à direita do nome */
  .aq-mapa .aq-c-nome, .aq-guia .aq-c-nome { grid-column: 1 / -1; }
  .aq-exc td.aq-c-n { grid-column: 2; grid-row: 1; text-align: right; }
  .aq-exc td.aq-c-n::before { text-align: right; }
}
@container aq (max-width: 420px) {
  .aq-numero { font-size: 32px; line-height: 40px; }
  .aq-tab tr { padding: 12px; }
}
