/* ── AS FRENTES DE ATUACAO NO DESENHO NOVO (22/11/2026) ──
   autoridade/frente.njk, com os dados de _data/frentesDesenho.json. Aprovado pelo Eduardo
   depois de tres rodadas do modelo da Defesa Criminal (20/11/2026): mais moderna, sem
   contar cidades, com o foco na qualidade tecnica e mais escura. Vem por ultimo (pageCssFim),
   sobre css/area-detalhe.css, css/area-preto.css e, no criminal, css/area-criminal.css. As
   cores sao as variaveis --ap-* do preto (e do criminal, que as redefine). Prefixo: fm-. */

/* O criminal das frentes, mais escuro que a pagina de Direito Penal: o azul-marinho desce
   para quase preto, com a luz e os pontos mais discretos. A foto dele nao muda. */
html:has(main.ad-frente.ad-criminal),html:has(main.ad-frente.ad-criminal) body{background-color:#03050B}
html:has(main.ad-frente.ad-criminal) body{background-image:radial-gradient(900px 600px at var(--gx,30%) var(--gy,20%),rgba(14,24,44,.5),transparent 70%),radial-gradient(rgba(255,207,121,.05) 1px,transparent 1.4px)}
html:has(main.ad-frente.ad-criminal) nav,html:has(main.ad-frente.ad-criminal) nav.shrunk{background:rgba(3,5,11,.82)}
html:has(main.ad-frente.ad-criminal) footer{background:#03050B}
:root .ad.ad-preto.ad-criminal.ad-frente{--ap-preto:#03050B;--ap-cartao:rgba(9,15,28,.62);--ap-cartao-alto:rgba(13,22,40,.8);--ap-borda:rgba(255,207,121,.12)}

/* A abertura: o titulo com a segunda parte em dourado, o fio e o botao de contorno. */
:root .ad.ad-frente .fm-ouro{background:linear-gradient(120deg,var(--ap-ouro2),var(--ap-ouro));-webkit-background-clip:text;background-clip:text;color:transparent}
:root .ad.ad-frente .fm-fio{display:block;width:0;height:2px;margin-top:22px;background:linear-gradient(90deg,var(--ap-ouro2),var(--ap-ouro));animation:fm-fio 1.4s cubic-bezier(.2,.7,.2,1) .4s forwards}
@keyframes fm-fio{to{width:120px}}
:root .ad.ad-frente .fm-btn-fio{display:inline-flex;align-items:center;border-radius:999px;padding:16px 28px;font-weight:600;font-size:.95rem;color:var(--ap-branco);text-decoration:none;box-shadow:inset 0 0 0 1px rgba(255,207,121,.35);transition:box-shadow .2s}
:root .ad.ad-frente .fm-btn-fio:hover,:root .ad.ad-frente .fm-btn-fio:focus-visible{box-shadow:inset 0 0 0 1px rgba(255,207,121,.75);outline:none}

/* As secoes mais juntas, o link do texto em dourado. */
:root .ad.ad-frente .section{padding:clamp(60px,9vh,104px) 0}
:root .ad.ad-frente .resumo a{color:var(--ap-ouro);text-decoration:underline;text-decoration-color:rgba(255,207,121,.45);text-underline-offset:4px}
:root .ad.ad-frente .resumo a:hover{text-decoration-color:var(--ap-ouro)}
:root .ad.ad-frente .fm-depois{margin-top:22px}

/* A faixa da formacao e do que o escritorio publica: so fatos, sem contar cidades. */
:root .ad.ad-frente .fm-prova{background:rgba(0,0,0,.28);border-top:1px solid var(--ap-borda);border-bottom:1px solid var(--ap-borda)}
:root .ad.ad-frente .fm-prova ul{max-width:1180px;margin:0 auto;padding:34px 24px;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
:root .ad.ad-frente .fm-prova b{display:block;font:400 30px/1.05 var(--ff-serif);background:linear-gradient(120deg,var(--ap-ouro2),var(--ap-ouro));-webkit-background-clip:text;background-clip:text;color:transparent}
:root .ad.ad-frente .fm-prova span{display:block;margin-top:8px;font-size:13.5px;line-height:1.55;color:var(--ap-texto)}

/* O metodo em tres passos, com o fio dourado por cima. */
:root .ad.ad-frente .fm-trilha{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:48px;padding-top:28px}
:root .ad.ad-frente .fm-trilha::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--ap-ouro2),var(--ap-ouro) 70%,rgba(255,207,121,.15));box-shadow:0 0 18px rgba(255,207,121,.35)}
:root .ad.ad-frente .fm-passo{position:relative;padding:28px 26px;border-radius:22px;background:var(--ap-cartao);box-shadow:inset 0 0 0 1px var(--ap-borda)}
:root .ad.ad-frente .fm-passo::before{content:"";position:absolute;top:-35px;left:18px;width:12px;height:12px;border-radius:50%;background:var(--ap-ouro);box-shadow:0 0 0 4px rgba(255,207,121,.2),0 0 16px rgba(255,207,121,.8)}
:root .ad.ad-frente .fm-passo b{display:block;margin-top:0;font:400 28px/1.1 var(--ff-serif);color:var(--ap-branco)}
:root .ad.ad-frente .fm-passo p{margin-top:10px;font-size:15px;line-height:1.6;color:var(--ap-texto)}

/* A tecnica da defesa: a referencia normativa em destaque e o link para a analise. */
:root .ad.ad-frente .fm-tec{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:40px}
:root .ad.ad-frente .fm-tec > :last-child:nth-child(odd){grid-column:1/-1}
:root .ad.ad-frente .fm-card{position:relative;display:flex;flex-direction:column;padding:30px 30px 26px;border-radius:24px;text-decoration:none;overflow:hidden;
  background:radial-gradient(120% 140% at 100% 0%,rgba(255,207,121,.07),transparent 55%),var(--ap-cartao);box-shadow:inset 0 0 0 1px var(--ap-borda);transition:box-shadow .25s,transform .25s}
:root .ad.ad-frente .fm-card::before{content:"";position:absolute;top:0;left:30px;right:30px;height:1px;background:linear-gradient(90deg,transparent,rgba(255,207,121,.35),transparent);opacity:.5;transition:opacity .25s}
:root .ad.ad-frente .fm-card:hover,:root .ad.ad-frente .fm-card:focus-visible{box-shadow:inset 0 0 0 1px rgba(255,207,121,.45),0 18px 40px rgba(0,0,0,.35);transform:translateY(-2px);outline:none}
:root .ad.ad-frente .fm-card:hover::before,:root .ad.ad-frente .fm-card:focus-visible::before{opacity:1}
:root .ad.ad-frente .fm-ref{font:600 11.5px var(--ff-ios,'Montserrat',system-ui,sans-serif);letter-spacing:.2em;text-transform:uppercase;color:var(--ap-ouro)}
:root .ad.ad-frente .fm-card h3{margin:14px 0 0;font:400 29px/1.12 var(--ff-serif);color:var(--ap-branco)}
:root .ad.ad-frente .fm-card h3:first-child{margin-top:0}
:root .ad.ad-frente .fm-card p{margin:12px 0 0;font-size:15px;line-height:1.65;color:var(--ap-texto)}
:root .ad.ad-frente .fm-card .fm-ler{margin-top:auto;padding-top:20px;font:600 13px var(--ff-ios,'Montserrat',system-ui,sans-serif);color:var(--ap-ouro)}

/* Os casos em mosaico: o urgente em destaque, com o numero grande e o botao. */
:root .ad.ad-frente .fm-bento{display:grid;grid-template-columns:1.2fr 1fr 1fr;grid-template-rows:auto auto;gap:16px;margin-top:40px}
:root .ad.ad-frente .fm-caso{padding:28px;border-radius:24px;background:var(--ap-cartao);box-shadow:inset 0 0 0 1px var(--ap-borda)}
:root .ad.ad-frente .fm-caso small{font:600 11.5px var(--ff-ios,'Montserrat',system-ui,sans-serif);letter-spacing:.2em;text-transform:uppercase;color:var(--ap-ouro)}
:root .ad.ad-frente .fm-caso b{display:block;margin-top:12px;font:400 26px/1.15 var(--ff-serif);color:var(--ap-branco)}
:root .ad.ad-frente .fm-caso b:first-child{margin-top:0}
:root .ad.ad-frente .fm-caso p{margin:10px 0 0;font-size:14.5px;line-height:1.6;color:var(--ap-texto)}
:root .ad.ad-frente .fm-caso--grande{grid-row:span 2;display:flex;flex-direction:column;background:linear-gradient(160deg,rgba(235,158,110,.12),rgba(255,207,121,.03) 45%,transparent 70%),var(--ap-cartao);box-shadow:inset 0 0 0 1px rgba(255,207,121,.24)}
:root .ad.ad-frente .fm-caso--grande b{font-size:34px}
:root .ad.ad-frente .fm-caso--grande .btn{margin-top:auto;align-self:flex-start}
:root .ad.ad-frente .fm-numero{margin:22px 0 26px;font:300 86px/1 var(--ff-serif);background:linear-gradient(120deg,var(--ap-ouro2),var(--ap-ouro));-webkit-background-clip:text;background-clip:text;color:transparent}
:root .ad.ad-frente .fm-numero span{font-size:22px;letter-spacing:.04em}

/* A abrangencia por estado, sem contar cidades. */
:root .ad.ad-frente .fm-alcance{display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:center}
:root .ad.ad-frente .fm-alcance .k{margin:0;font:600 12.5px var(--ff-ios,'Montserrat',system-ui,sans-serif);letter-spacing:.24em;text-transform:uppercase;color:var(--ap-ouro)}
:root .ad.ad-frente .fm-alcance h2{margin:12px 0 0;font:300 clamp(36px,4.4vw,58px)/1.05 var(--ff-serif);color:var(--ap-branco)}
:root .ad.ad-frente .fm-ufs{display:flex;flex-wrap:wrap;gap:10px}
:root .ad.ad-frente .fm-ufs span{padding:12px 20px;border-radius:999px;font:500 15px var(--ff-ios,'Montserrat',system-ui,sans-serif);color:var(--ap-branco);background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--ap-borda)}
:root .ad.ad-frente .fm-ufs span i{font-style:normal;color:var(--ap-ouro);margin-right:8px;font-weight:600}
:root .ad.ad-frente .fm-alcance p{margin:18px 0 0;font-size:15.5px;line-height:1.7;color:var(--ap-texto)}
/* O indice /autoridade/ (24/11/2026): as frentes nos cartoes da tecnica, em duas colunas e
   com o mesmo peso (desde o mesmo dia sao quatro); a de Defesa Criminal com o azul-marinho
   da pagina dela. */
:root .ad.ad-frente .fm-frentes h3{font-size:clamp(30px,3vw,40px)}
/* Tres frentes: lado a lado no computador, sem o ultimo cartao esticado. */
@media(min-width:1000px){:root .ad.ad-frente .fm-frentes:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}:root .ad.ad-frente .fm-frentes:has(> :nth-child(3):last-child) > :last-child{grid-column:auto}}
:root .ad.ad-frente .fm-frentes p strong{font-weight:600;color:var(--ap-branco)}
:root .ad.ad-frente .fm-card--criminal{background:radial-gradient(120% 140% at 100% 0%,rgba(255,207,121,.06),transparent 55%),linear-gradient(160deg,rgba(14,24,44,.85),rgba(6,10,22,.7))}

@media(max-width:900px){
  :root .ad.ad-frente .fm-prova ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  :root .ad.ad-frente .fm-bento{grid-template-columns:1fr 1fr}
  :root .ad.ad-frente .fm-caso--grande{grid-column:span 2;grid-row:auto}
  :root .ad.ad-frente .fm-alcance{grid-template-columns:1fr;gap:28px}
}
@media(max-width:760px){
  :root .ad.ad-frente .fm-trilha{grid-template-columns:1fr;padding-top:0;padding-left:30px}
  :root .ad.ad-frente .fm-trilha::before{top:0;bottom:0;left:6px;right:auto;width:2px;height:auto;background:linear-gradient(180deg,var(--ap-ouro2),var(--ap-ouro) 70%,rgba(255,207,121,.15))}
  :root .ad.ad-frente .fm-passo::before{top:30px;left:-29px}
  :root .ad.ad-frente .fm-btn-fio{width:100%;justify-content:center;min-height:44px}
}
@media(max-width:640px){
  :root .ad.ad-frente .fm-prova ul{grid-template-columns:1fr 1fr;gap:22px 18px;padding:26px 20px}
  :root .ad.ad-frente .fm-prova b{font-size:23px}
  :root .ad.ad-frente .fm-prova span{font-size:12.5px}
  :root .ad.ad-frente .fm-tec,:root .ad.ad-frente .fm-bento{grid-template-columns:1fr}
  :root .ad.ad-frente .fm-tec > :last-child:nth-child(odd),:root .ad.ad-frente .fm-caso--grande{grid-column:auto}
  :root .ad.ad-frente .fm-card{padding:24px 22px}
  :root .ad.ad-frente .fm-card h3{font-size:25px}
}
@media(prefers-reduced-motion:reduce){
  :root .ad.ad-frente .fm-card,:root .ad.ad-frente .fm-btn-fio{transition:none}
  :root .ad.ad-frente .fm-fio{animation:none;width:120px}
}
