/* TAUP Editora — perguntas frequentes e contrato.
   Complementa o site.css: busca, temas, fontes no contrato, simulador e o texto do contrato. */

[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* busca do topo */
.fq-busca { display: flex; max-width: 680px; background: #ffffff; border: 2px solid #111008; border-radius: 999px; padding: 6px 6px 6px 20px; align-items: center; gap: 10px; box-sizing: border-box; }
.fq-busca:focus-within { outline: 3px solid #111008; outline-offset: 2px; }
.fq-busca input { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; outline: none; font: inherit; font-size: 17px; padding: 10px 0; background: transparent; color: #111008; }
.fq-busca input::placeholder { color: #6b6656; }
.fq-botao { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; border: 0; border-radius: 999px; background: #111008; color: #ffffff; font: 600 15px/1.2 "Inter Tight", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.fq-botao:hover { background: #3a372b; }
.fq-sugestoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: -6px; }
.fq-sugestoes span { font-size: 13px; font-weight: 500; color: #4a4333; margin-right: 2px; }
.fq-sugestoes button { font: 600 14px/1.2 "Inter Tight", system-ui, sans-serif; color: #111008; background: #fff6c2; border: 1px solid transparent; border-radius: 999px; padding: 9px 13px; min-height: 40px; cursor: pointer; }
.fq-sugestoes button:hover { border-color: #111008; }

/* atalhos dos temas */
.fq-temas { display: flex; gap: 2px; background: #f3f2ee; border-radius: 999px; padding: 4px; overflow-x: auto; scrollbar-width: none; margin-top: -32px; }
.fq-temas::-webkit-scrollbar { display: none; }
.fq-temas a { flex: none; text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 13px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; white-space: nowrap; }
.fq-temas a:hover { background: #ffffff; }
.fq-temas small { font-size: 12px; color: #6b6656; font-variant-numeric: tabular-nums; }

@media (min-width: 900px) { .faq-lado { position: sticky; top: 24px; } }
.faq-item { border: 1px solid #e4e1d8; border-radius: 18px; background: #ffffff; }
.faq-item > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 17px; cursor: pointer; border-radius: 18px; }
.faq-item h3 { margin: 0; font: inherit; }
.faq-item .pm { width: 28px; height: 28px; border-radius: 50%; background: #f3f2ee; display: inline-grid; place-items: center; flex: none; }
.faq-item { scroll-margin-top: 24px; }
.faq-item:hover, .faq-item[open] { border-color: #111008 !important; }
.faq-item.fq-destaque { animation: fq-piscar 1.8s ease-out; }
@keyframes fq-piscar { 0%, 35% { background: #fff6c2; } 100% { background: #ffffff; } }

/* resposta */
.faq-resposta { padding: 0 22px 20px; color: #4a4333; display: grid; gap: 12px; }
.faq-resposta p { margin: 0; }
.faq-resposta ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.faq-resposta b { color: #111008; font-weight: 600; }
.fq-rodape { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid #e4e1d8; padding-top: 14px; margin-top: 2px; }
.fq-fonte { font-size: 13px; font-weight: 500; color: #6b6656; margin-right: 2px; }
.fq-ref { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.2; color: #111008; background: #fff6c2; border-radius: 999px; padding: 7px 12px; min-height: 32px; text-decoration: none; box-sizing: border-box; }
.fq-ref:hover, .fq-ref[aria-expanded="true"] { background: #fbda00; color: #111008; }
.fq-copiar { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; min-height: 32px; background: none; border: 0; padding: 0; font: 600 13px "Inter Tight", system-ui, sans-serif; color: #6b6656; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fq-copiar:hover { color: #111008; }
.fq-previa { background: #f3f2ee; border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; color: #111008; font-size: 15px; line-height: 1.55; }
.fq-previa b { font-size: 13px; font-weight: 600; }
.fq-previa p { margin: 0; }
.fq-previa a { font-weight: 600; font-size: 14px; justify-self: start; }

/* resultados da busca */
.fq-resultados { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 16px; }
.fq-resultados-topo { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.fq-resultados-topo h2 { margin: 0; font-size: clamp(26px, 3vw, 32px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.05; overflow-wrap: anywhere; }
.fq-limpar { background: none; border: 0; padding: 0; font: 600 14px "Inter Tight", system-ui, sans-serif; color: #111008; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fq-rotulo { font-size: 13px; font-weight: 500; color: #6b6656; }
.fq-lista { display: flex; flex-direction: column; gap: 10px; }
.fq-trecho { border: 1px solid #e4e1d8; border-radius: 18px; background: #f3f2ee; padding: 18px 22px; display: grid; gap: 8px; }
.fq-trecho b { font-weight: 600; font-size: 15px; }
.fq-trecho p { margin: 0; font-size: 15px; }
.fq-trecho a { font-weight: 600; font-size: 14px; justify-self: start; }
.fq-resultados mark, .fq-trecho mark { background: #fbda00; color: #111008; border-radius: 3px; padding: 0 2px; }
.fq-nada { border: 1px dashed #111008; background: #fff6c2; border-radius: 28px; padding: 32px; display: grid; gap: 12px; justify-items: start; }
.fq-nada h2 { margin: 0; font-size: clamp(26px, 3vw, 32px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.05; overflow-wrap: anywhere; }
.fq-nada p { margin: 0; color: #4a4333; max-width: 620px; }
.fq-nada a { white-space: normal; text-align: center; color: #ffffff; text-decoration: none; }
.fq-dica { margin: 0; font-size: 14px; color: #6b6656; }

/* simulador (dentro do grupo Metas) */
.fq-sim { display: grid; gap: 16px; color: #111008; }
.fq-sim-campo { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: #6b6656; }
.fq-sim-entrada { display: flex; align-items: center; gap: 10px; border: 2px solid #111008; border-radius: 12px; padding: 0 14px; max-width: 300px; background: #ffffff; }
.fq-sim-entrada:focus-within { outline: 3px solid #fbda00; outline-offset: 1px; }
.fq-sim-entrada span { font-size: 20px; font-weight: 600; color: #111008; }
.fq-sim-entrada input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 700 26px/1 "Inter Tight", system-ui, sans-serif; letter-spacing: -0.02em; padding: 12px 0; color: #111008; font-variant-numeric: tabular-nums; }
.fq-sim-faixa { width: 100%; max-width: 520px; accent-color: #111008; height: 28px; cursor: pointer; margin: 0; }
.fq-sim-atalhos { display: flex; flex-wrap: wrap; gap: 6px; }
.fq-sim-atalhos button { font: 600 14px/1.2 "Inter Tight", system-ui, sans-serif; color: #111008; background: #ffffff; border: 1px solid #e4e1d8; border-radius: 999px; padding: 9px 13px; min-height: 40px; cursor: pointer; }
.fq-sim-atalhos button:hover { border-color: #111008; }
.fq-sim-atalhos button[aria-pressed="true"] { background: #111008; color: #ffffff; border-color: #111008; }
.fq-sim-res { display: grid; gap: 14px; border-top: 1px solid #e4e1d8; padding-top: 16px; }
.fq-sim-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.fq-sim-meta strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.fq-selo { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #fbda00; color: #111008; }
.fq-selo--cinza { background: #f3f2ee; color: #6b6656; }
.fq-sim-numeros { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fq-sim-numeros li { border: 1px solid #e4e1d8; border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; background: #fff6c2; }
.fq-sim-numeros b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: #111008; font-variant-numeric: tabular-nums; }
.fq-sim-numeros span { font-size: 14px; color: #4a4333; }
.fq-sim-entregas { margin: 0; padding: 0 !important; list-style: none; display: grid; gap: 8px; }
.fq-sim-entregas li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; line-height: 1.4; color: #111008; }
.fq-sim-entregas li.nao { color: #6b6656; }
.fq-sim-entregas i { width: 22px; height: 22px; border-radius: 50%; background: #fbda00; color: #111008; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; margin-top: 1px; }
.fq-sim-entregas li.nao i { background: none; border: 1px solid #e4e1d8; color: #6b6656; }
.fq-sim-entregas small { display: block; color: #6b6656; font-size: 13px; }
.fq-sim-falta { font-size: 15px; color: #4a4333; margin: 0; }
.fq-sim-falta b { white-space: nowrap; }
.fq-sim-alerta { background: #f3f2ee; border-radius: 14px; padding: 12px 14px; font-size: 14px; color: #111008; margin: 0; }

.fq-aviso-copia { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 41; background: #111008; color: #ffffff; border-radius: 999px; padding: 12px 18px; font-size: 14px; font-weight: 600; }

/* página do contrato */
.ct-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 40px; align-items: start; }
.ct-sumario { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; border: 1px solid #e4e1d8; border-radius: 24px; background: #f3f2ee; }
.ct-sumario summary { padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.ct-sumario summary::after { content: "+"; font-size: 20px; line-height: 1; }
.ct-sumario details[open] summary::after { content: "−"; }
.ct-sumario ol { list-style: none; margin: 0; padding: 0 12px 16px; display: grid; gap: 2px; }
.ct-sumario a { display: block; padding: 8px 10px; border-radius: 12px; text-decoration: none; font-size: 14px; line-height: 1.3; }
.ct-sumario a:hover { background: #ffffff; }
.ct-sumario small { display: block; color: #6b6656; font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ct-texto { display: grid; gap: 28px; min-width: 0; }
.ct-carta { background: #fff6c2; border-radius: 24px; padding: 28px; display: grid; gap: 12px; scroll-margin-top: 16px; }
.ct-carta h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.ct-carta p { margin: 0; font-size: 15px; }
.ct-secao { display: grid; gap: 4px; scroll-margin-top: 16px; }
.ct-secao > h2 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b6656; padding: 8px 0 12px; border-bottom: 1px solid #e4e1d8; }
.clausula { display: grid; gap: 10px; padding: 14px 16px; margin: 0 -16px; border-radius: 16px; scroll-margin-top: 16px; }
.clausula p { margin: 0; font-size: 15px; line-height: 1.6; }
.clausula .cl-par, .clausula .cl-exemplo, .clausula .cl-item { padding: 0 0 0 20px; border-radius: 10px; scroll-margin-top: 16px; }
.clausula .cl-exemplo { color: #6b6656; }
.clausula .cl-item { padding-left: 36px; }
.clausula strong { font-weight: 600; }
.clausula a { overflow-wrap: anywhere; }
.cl-tabela { overflow-x: auto; border: 1px solid #e4e1d8; border-radius: 16px; }
.cl-tabela table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; min-width: 520px; }
.cl-tabela th, .cl-tabela td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #e4e1d8; vertical-align: top; }
.cl-tabela th { background: #f3f2ee; font-weight: 600; }
.cl-tabela tr:last-child td { border-bottom: 0; }
.cl-tabela p { font-size: 14px !important; line-height: 1.4 !important; }
.clausula:target, .clausula :target, .ct-carta:target { animation: fq-alvo 2.6s ease-out; }
@keyframes fq-alvo { 0%, 35% { background: #fbda00; } 100% { background: transparent; } }

@media (max-width: 899px) {
  .ct-grade { grid-template-columns: minmax(0, 1fr); }
  .ct-sumario { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .fq-temas { margin-top: -24px; border-radius: 20px; }
  .fq-busca { padding-left: 14px; }
  .fq-busca svg { display: none; }
  .faq-resposta { padding: 0 18px 18px; }
  .fq-copiar { margin-left: 0; }
  .fq-sim-numeros b { font-size: 34px; }
  .clausula { margin: 0 -10px; padding: 12px 10px; }
  .clausula .cl-par, .clausula .cl-exemplo { padding-left: 12px; }
  .clausula .cl-item { padding-left: 24px; }
  .ct-carta { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item.fq-destaque, .clausula:target, .clausula :target { animation: none; }
  .clausula:target, .clausula :target { background: #fff6c2; }
}

/* ---------- versão 2: banner "Pergunte aqui" e temas em sanfona ---------- */
.fq-banner { background: #111008; color: #ffffff; border-radius: 28px; padding: 44px 40px 40px; display: flex; flex-direction: column; gap: 20px; }
.fq-banner-topo { display: flex; gap: 8px; flex-wrap: wrap; }
.fq-banner-selo { background: #fbda00; color: #111008; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.fq-banner-n { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid #3a372b; color: #c9c4b4; }
.fq-banner h1 { margin: 0; font-size: clamp(56px, 8vw, 112px); font-weight: 700; letter-spacing: -0.035em; line-height: .9; color: #fbda00; }
.fq-banner-sub { margin: 0; font-size: 18px; line-height: 1.45; color: #c9c4b4; max-width: 640px; }
.fq-banner .fq-busca { max-width: 760px; border-color: #fbda00; padding: 7px 7px 7px 22px; }
.fq-banner .fq-busca:focus-within { outline-color: #fbda00; }
.fq-banner .fq-busca input { font-size: 19px; padding: 12px 0; }
.fq-banner .fq-botao { background: #fbda00; color: #111008; padding: 13px 24px; font-size: 16px; }
.fq-banner .fq-botao:hover { background: #fbda00; box-shadow: inset 0 0 0 2px #111008; }
.fq-banner .fq-sugestoes span { color: #c9c4b4; }
.fq-banner .fq-sugestoes button { background: transparent; color: #ffffff; border: 1px solid #3a372b; }
.fq-banner .fq-sugestoes button:hover { border-color: #fbda00; color: #fbda00; }
.fq-banner :focus-visible { outline-color: #fbda00; }

.fq-temas-sec { display: flex; flex-direction: column; gap: 20px; }
.fq-temas-topo { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; justify-content: space-between; }
.fq-temas-topo h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.fq-temas-topo p { margin: 0; color: #6b6656; font-size: 15px; }
.fq-temas-lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.fq-tema { border: 1px solid #e4e1d8; border-radius: 24px; background: #ffffff; scroll-margin-top: 16px; min-width: 0; }
.fq-tema:hover { border-color: #111008; }
.fq-tema[open] { border-color: #111008; background: #f3f2ee; }
.fq-tema .faq-item:not([open]) .pm { background: #f3f2ee !important; }
.fq-tema-cab { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 32px; gap: 16px; align-items: center; padding: 14px 18px; cursor: pointer; border-radius: 24px; }
.fq-tema-icone { width: 48px; height: 48px; border-radius: 15px; background: #fbda00; color: #111008; display: grid; place-items: center; }
.fq-tema[open] .fq-tema-icone { background: #111008; color: #fbda00; }
.fq-tema-texto { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; align-items: baseline; min-width: 0; }
.fq-tema-texto h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.fq-tema-texto span { font-size: 14px; color: #6b6656; line-height: 1.35; }
.fq-tema-n { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; background: #f3f2ee; border-radius: 999px; padding: 5px 10px; color: #4a4333; }
.fq-tema[open] .fq-tema-n { background: #ffffff; }
.fq-tema-pm { width: 32px; height: 32px; border-radius: 50%; background: #f3f2ee; position: relative; }
.fq-tema-pm::before, .fq-tema-pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #111008; transform: translate(-50%, -50%); }
.fq-tema-pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.fq-tema[open] .fq-tema-pm { background: #fbda00; }
.fq-tema[open] .fq-tema-pm::after { display: none; }
.fq-tema-corpo { max-width: 920px; padding: 4px 20px 20px 82px; display: flex; flex-direction: column; gap: 10px; }
.faq-item h4 { margin: 0; font: inherit; }

.fq-nao-achou { background: #fbda00; border-radius: 28px; padding: 32px 40px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.fq-nao-achou > div:first-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.fq-nao-achou h2 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.fq-nao-achou p { margin: 0; color: #4a4333; }
.fq-nao-achou-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.fq-nao-achou .fq-botao { text-decoration: none; color: #ffffff; }
.fq-botao--claro { background: #ffffff !important; color: #111008 !important; }
.fq-atualizado { margin: -40px 0 0; font-size: 13px; color: #6b6656; }

@media (max-width: 860px) {
  .fq-tema-corpo { padding-left: 20px; }
}
@media (max-width: 760px) {
  .fq-banner { padding: 32px 22px 28px; border-radius: 24px; gap: 18px; }
  .fq-banner h1 { font-size: 60px; }
  .fq-banner-sub { font-size: 16px; }
  .fq-banner .fq-busca { padding-left: 16px; }
  .fq-banner .fq-busca input { font-size: 17px; }
  .fq-banner .fq-botao { padding: 12px 16px; }
  .fq-tema-cab { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 14px 14px; }
  .fq-tema-icone { width: 44px; height: 44px; border-radius: 14px; }
  .fq-tema-pm { display: none; }
  .fq-tema-texto h3 { font-size: 18px; }
  .fq-tema-texto span { font-size: 13px; }
  .fq-tema-corpo { padding: 0 10px 12px; }
  .fq-tema-texto { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
  .fq-nao-achou { padding: 28px 24px; }
  .fq-atualizado { margin-top: -28px; }
}
@media (max-width: 760px) {
  .fq-banner .fq-sugestoes button:nth-of-type(n+4) { display: none; }
}
