/* Teste do Consultor Tributário na página inicial (14/11/2026, pedido do dono). Só o index carrega esta
   folha (não mexe no marketing.css, que vale para o site inteiro). Dogmas do site: fonte mínima de 13px,
   texto corrido justificado, link sem reação ao passar o mouse, sem rolagem lateral de 320px em diante. */

/* Texto na largura da coluna (dono, 14/11: "não precisa quebrar as frases se tem largura na coluna"): o
   cabeçalho de seção do site limita o parágrafo a 460px; aqui ele e a área da pergunta usam a coluna toda. */
#consultor-teste .section-hdr > div { flex: 1 1 100%; }
#consultor-teste .section-hdr p { max-width: none; flex: 1 1 100%; }
.ctt { margin-top: 34px; display: grid; gap: 18px; }
.ctt-form { display: grid; gap: 10px; }
.ctt-rotulo { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.ctt-form textarea {
  width: 100%; min-height: 96px; max-height: 260px; resize: vertical;
  background: var(--dark); color: var(--white); border: 1px solid var(--border); border-radius: 2px;
  padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.5;
}
.ctt-form textarea:focus { outline: none; border-color: var(--light); }
.ctt-acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ctt-acoes .btn[disabled] { opacity: .55; cursor: default; }
.ctt-exemplos { display: flex; flex-wrap: wrap; gap: 8px; }
.ctt-exemplo {
  background: transparent; color: var(--light); border: 1px solid var(--border); border-radius: 2px;
  padding: 8px 12px; font: inherit; font-size: 13px; line-height: 1.4; text-align: left; cursor: pointer; max-width: 100%;
}

.ctt-resultado:empty { display: none; }
.ctt-resultado { border: 1px solid var(--border); background: rgba(255,255,255,.015); padding: 22px 24px; min-width: 0; }
.ctt-resultado.recusa { border-color: rgba(209,161,58,.55); }
.ctt-resultado.erro { border-color: rgba(192,24,24,.6); }
.ctt-pensando { font-size: 14px; color: var(--light); }
.ctt-pensando::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: cttPontos 1.2s steps(4) infinite; }
@keyframes cttPontos { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.ctt-pergunta { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin-bottom: 6px; }
.ctt-pergunta-txt { font-size: 15px; color: var(--off); margin-bottom: 14px; overflow-wrap: break-word; }
.ctt-entendida { font-size: 13px; color: var(--mid); margin-bottom: 12px; text-align: justify; hyphens: none; }
.ctt-resposta p { margin: 0 0 .9em; font-size: 15px; line-height: 1.7; color: var(--off); text-align: justify; hyphens: none; overflow-wrap: normal; word-break: normal; }
.ctt-resposta p:last-child { margin-bottom: 0; }
.ctt-ref {
  display: inline-block; min-width: 1.7em; padding: 0 .35em; margin: 0 1px; border-radius: 2px;
  border: 1px solid var(--muted); background: transparent; color: var(--white);
  font-size: 13px; font-weight: 700; line-height: 1.4; cursor: pointer; vertical-align: baseline;
}
.ctt-fontes { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.ctt-fontes-tit { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin-bottom: 8px; }
.ctt-fonte { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.ctt-fonte:last-child { border-bottom: 0; }
.ctt-fonte.destaque { background: rgba(192,24,24,.1); }
.ctt-fonte-n { flex: none; min-width: 1.8em; text-align: center; font-weight: 700; font-size: 13px; color: var(--white); padding-top: 1px; }
.ctt-fonte-txt { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--light); overflow-wrap: anywhere; }
.ctt-fonte-base { color: var(--white); font-weight: 400; }
.ctt-fonte-data { color: var(--mid); white-space: nowrap; }
.ctt-abrir {
  flex: none; background: transparent; color: var(--white); border: 1px solid var(--muted); border-radius: 2px;
  padding: 6px 12px; font: inherit; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
/* Fonte de apoio (STJ, STF, AbitOs) abre o original: link com a cara do botão, sem reação ao passar o mouse. */
a.ctt-abrir, a.ctt-abrir:hover, a.ctt-abrir:focus, a.ctt-abrir:visited { color: var(--white); text-decoration: none; display: inline-block; }
.ctt-bases { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; color: var(--mid); }
/* Alerta da segunda pergunta do dia (âmbar = ação pendente, como no app). */
.ctt-resultado.alerta { border-color: var(--amber); border-left-width: 4px; background: rgba(209,161,58,.08); }
.ctt-alerta-tit { font-size: 16px; font-weight: 400; color: var(--white); margin-bottom: 8px; }
.ctt-alerta p { font-size: 15px; line-height: 1.7; color: var(--off); text-align: justify; hyphens: none; margin-bottom: 16px; }
.ctt-planos p { font-size: 15px; line-height: 1.7; color: var(--off); text-align: justify; hyphens: none; margin-bottom: 16px; }

.ctt-aviso { font-size: 13px; line-height: 1.6; color: var(--mid); text-align: justify; hyphens: none; }
.ctt-aviso a, .ctt-aviso a:hover, .ctt-aviso a:focus, .ctt-aviso a:visited { color: var(--off); text-decoration: underline; white-space: nowrap; }

/* Janela da fonte citada */
.ctt-modal-fundo { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ctt-modal {
  background: var(--panel); border: 1px solid var(--border); width: min(860px, 100%); max-height: calc(100vh - 40px);
  display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow);
}
.ctt-modal-cab { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.ctt-modal-tit { font-size: 17px; font-weight: 400; color: var(--white); line-height: 1.35; overflow-wrap: anywhere; }
.ctt-modal-sub { font-size: 13px; color: var(--mid); margin-top: 4px; }
.ctt-modal-fechar { flex: none; background: transparent; border: 1px solid var(--muted); color: var(--white); width: 34px; height: 34px; border-radius: 2px; font-size: 18px; line-height: 1; cursor: pointer; }
.ctt-modal-corpo { padding: 16px 20px 20px; overflow: auto; font-size: 14px; line-height: 1.7; color: var(--off); }
.ctt-modal-corpo p { margin: 0 0 .8em; text-align: justify; hyphens: none; }
.ctt-modal-corpo table { max-width: 100%; display: block; overflow-x: auto; }
.ctt-modal-corpo img { max-width: 100%; height: auto; }
.ctt-modal-ementa { font-size: 13px; color: var(--light); border-left: 2px solid var(--red); padding-left: 12px; margin-bottom: 14px; text-align: justify; }
.ctt-modal-rodape { padding: 12px 20px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .ctt { margin-top: 24px; }
  .ctt-resultado { padding: 16px 14px; }
  .ctt-fonte { flex-wrap: wrap; }
  .ctt-abrir { margin-left: calc(1.8em + 12px); }
  .ctt-acoes .btn { width: 100%; white-space: normal; }
  .ctt-modal-fundo { padding: 0; align-items: stretch; }
  .ctt-modal { max-height: 100vh; height: 100%; border: 0; }
  .ctt-modal-rodape .btn { width: 100%; white-space: normal; }
}
