:root{
  --court:#2F4A82;      /* azul do escudo */
  --navy:#14295A;       /* azul profundo do escudo */
  --line:#F2B53A;       /* linha de quadra */
  --paper:#F5F7FB;
  --ink:#13213F;
  --mist:#5E6F93;
  --rule:#D7DEEA;
  --white:#FFFFFF;
  --ok:#1F7A4D;
  --display:"Barlow Condensed","Arial Narrow",Arial,sans-serif;
  --body:"Barlow","Segoe UI",Roboto,Arial,sans-serif;
  --wrap:1180px;
  font-size:100%;
}
html.fs-1{font-size:112.5%}
html.fs-2{font-size:125%}
html.fs-3{font-size:137.5%}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(5.5rem + env(safe-area-inset-top,0px))}
body{margin:0;font-family:var(--body);font-size:1.0625rem;line-height:1.6;color:var(--ink);background:var(--paper);
  padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
img{max-width:100%;height:auto;display:block}
a{color:var(--court)}
h1,h2,h3{font-family:var(--display);line-height:1.05;margin:0 0 .5em;letter-spacing:.005em}
h2{font-size:clamp(2.1rem,4.2vw,3.1rem);color:var(--navy)}
h3{font-size:1.45rem;color:var(--navy)}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.25rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* foco visível */
:focus-visible{outline:3px solid var(--line);outline-offset:3px;border-radius:2px}
.skip{position:absolute;left:1rem;top:-4rem;z-index:100;background:var(--line);color:var(--ink);padding:.7rem 1rem;font-weight:600;text-decoration:none}
.skip:focus{top:1rem}

/* botões */
.btn{display:inline-flex;align-items:center;gap:.55rem;font:600 1rem/1 var(--body);padding:.9rem 1.35rem;border-radius:6px;text-decoration:none;border:2px solid transparent;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.btn svg{width:1.15em;height:1.15em;flex:none}
.btn-line{background:var(--line);color:var(--ink)}
.btn-line:hover{background:#FFC857}
.btn-ghost{border-color:rgba(255,255,255,.55);color:var(--white)}
.btn-ghost:hover{border-color:var(--white);background:rgba(255,255,255,.08)}
.btn-court{background:var(--court);color:var(--white)}
.btn-court:hover{background:var(--navy)}

/* barra de acessibilidade */
.a11y{background:var(--navy);color:#DCE4F3;font-size:.9rem}
.a11y .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:2.6rem}
.a11y-tools{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap}
.a11y-tools span{margin-right:.4rem}
.a11y button{background:none;border:1px solid transparent;color:inherit;font:500 .9rem var(--body);padding:.3rem .55rem;border-radius:4px;cursor:pointer}
.a11y button:hover{border-color:rgba(255,255,255,.35)}
.a11y button[aria-pressed="true"]{background:var(--line);color:var(--ink)}
.a11y-links{display:flex;gap:1.1rem;align-items:center}
.a11y-links a{color:#DCE4F3;text-decoration:none}
.a11y-links a:hover{color:var(--white);text-decoration:underline}
.a11y-toggle{display:none}

/* cabeçalho */
.site-head{position:sticky;top:0;z-index:50;background:var(--white);border-bottom:1px solid var(--rule)}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:5rem}
.brand{display:flex;align-items:center;gap:.8rem;text-decoration:none;color:var(--navy)}
.brand img{width:56px;height:56px}
.brand strong{display:block;font:700 1.6rem/1 var(--display);letter-spacing:.02em}
.brand small{display:block;font-size:.82rem;color:var(--mist);line-height:1.25}
.nav{display:flex;align-items:center;gap:1.6rem}
.nav ul{display:flex;gap:1.4rem;list-style:none;margin:0;padding:0}
.nav ul a{color:var(--ink);text-decoration:none;font-weight:500;padding:.4rem 0;border-bottom:2px solid transparent}
.nav ul a:hover{border-bottom-color:var(--line)}
.nav .btn{padding:.7rem 1.05rem}
.menu-toggle{display:none;background:none;border:2px solid var(--rule);border-radius:6px;padding:.5rem .7rem;font:600 .95rem var(--body);color:var(--navy);cursor:pointer}

/* hero: meia quadra */
.hero{position:relative;background:var(--court);color:var(--white);overflow:hidden}
.hero .wrap{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:center;gap:2rem;min-height:min(78vh,640px);padding-top:3.5rem;padding-bottom:3.5rem}
.hero h1{font-size:clamp(3.2rem,8vw,6.4rem);text-transform:uppercase;line-height:.92;margin-bottom:.35em;letter-spacing:.01em}
.hero h1 span{display:block;font-size:.34em;letter-spacing:.06em;color:#C9D5EE;margin-top:.35em;font-weight:600}
.hero p.lead{font-size:1.2rem;max-width:34em;color:#E4EAF6}
.hero-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.6rem}
.court{position:absolute;inset:0;z-index:1;pointer-events:none}
.court svg{position:absolute;right:-4%;top:50%;transform:translateY(-50%);height:118%;width:auto;max-width:none}
.court .ln{fill:none;stroke:rgba(255,255,255,.9);stroke-width:5}
.court .ln-y{stroke:var(--line)}
.court .dash{stroke-dasharray:22 18}
.draw{stroke-dasharray:var(--len);stroke-dashoffset:var(--len);animation:draw 1.6s ease-out forwards}
.draw.d2{animation-delay:.35s}.draw.d3{animation-delay:.7s}
@keyframes draw{to{stroke-dashoffset:0}}
.hero-seal{justify-self:center;width:min(330px,70%);filter:drop-shadow(0 18px 40px rgba(8,20,48,.45))}

/* faixa AVA */
.ava{background:var(--white);border-bottom:1px solid var(--rule)}
.ava .wrap{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1.5rem;padding-top:1.8rem;padding-bottom:1.8rem}
.ava-icon{width:64px;height:64px;border-radius:50%;background:var(--paper);display:grid;place-items:center;color:var(--court)}
.ava-icon svg{width:32px;height:32px}
.ava h2{font-size:1.9rem;margin:0 0 .15em}
.ava p{margin:0;color:var(--mist)}
.ava-actions{display:flex;flex-direction:column;align-items:flex-end;gap:.45rem}
.ava-actions a.small{font-size:.92rem}

/* seções */
section.block{padding:5rem 0}
.intro{max-width:44em;color:var(--mist);font-size:1.12rem}

/* a federação */
.fed{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:3.5rem;align-items:start}
.fed-text p{max-width:38em}
.fed-facts{margin:0;padding:0;list-style:none;border-left:4px solid var(--line)}
.fed-facts li{padding:1.1rem 0 1.1rem 1.4rem;border-bottom:1px solid var(--rule)}
.fed-facts li:last-child{border-bottom:0}
.fed-facts h3{margin:0 0 .2em}
.fed-facts p{margin:0;color:var(--mist)}

/* cursos */
.cursos{background:var(--white)}
.cursos-head{display:flex;justify-content:space-between;align-items:end;gap:2rem;flex-wrap:wrap;margin-bottom:2.5rem}
.cursos-head .intro{margin:0}
.filter{display:flex;gap:.4rem;flex-wrap:wrap}
.filter button{font:500 .95rem var(--body);padding:.5rem .9rem;border:1.5px solid var(--rule);background:var(--white);color:var(--ink);border-radius:999px;cursor:pointer}
.filter button[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:var(--white)}
.curso-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:2rem 1.6rem;list-style:none;margin:0;padding:0}
.curso{display:flex;flex-direction:column}
.curso figure{margin:0 0 1rem;aspect-ratio:1/1;overflow:hidden;border-radius:4px;background:var(--paper)}
.curso figure img{width:100%;height:100%;object-fit:cover}
.curso h3{font-size:1.5rem;margin-bottom:.3em}
.curso dl{margin:0 0 .9rem;display:grid;grid-template-columns:auto 1fr;gap:.15rem .7rem;font-size:.97rem}
.curso dt{color:var(--mist)}
.curso dd{margin:0}
.status{align-self:flex-start;margin-top:auto;font-size:.88rem;font-weight:600;padding:.3rem .7rem;border-radius:4px;background:#ECEFF5;color:var(--mist)}
.cursos-note{margin-top:2.5rem;padding:1.2rem 1.4rem;background:var(--paper);border-left:4px solid var(--court);display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.cursos-note p{margin:0}

/* transparência */
.transp-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:3.5rem;align-items:start}
.docs{list-style:none;margin:0;padding:0;border-top:2px solid var(--navy)}
.doc{display:grid;grid-template-columns:auto 1fr auto;gap:1.1rem;align-items:center;padding:1.25rem 0;border-bottom:1px solid var(--rule)}
.doc-ico{width:44px;height:52px;border:2px solid var(--court);border-radius:3px 12px 3px 3px;display:grid;place-items:center;font:700 .72rem var(--body);color:var(--court)}
.doc h3{font-size:1.3rem;margin:0}
.doc p{margin:.1rem 0 0;font-size:.95rem;color:var(--mist)}
.doc .pending{font-size:.9rem;font-weight:600;color:var(--mist);border:1.5px dashed var(--rule);padding:.5rem .8rem;border-radius:5px;white-space:nowrap}
.transp-aside p{color:var(--mist)}

/* contato */
.contato{background:var(--navy);color:var(--white)}
.contato h2{color:var(--white)}
.contato .intro{color:#C9D5EE}
.contato-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:3.5rem;align-items:start;margin-top:2rem}
.canais{list-style:none;margin:0;padding:0}
.canais li{padding:1rem 0;border-bottom:1px solid rgba(255,255,255,.15)}
.canais small{display:block;color:#AFC0E2;font-size:.9rem}
.canais a,.canais strong{color:var(--white);font-size:1.2rem;font-weight:600;text-decoration:none}
.canais a:hover{text-decoration:underline}
form.fale{background:var(--white);color:var(--ink);padding:2rem;border-radius:6px;display:grid;gap:1rem}
.field label{display:block;font-weight:600;margin-bottom:.3rem}
.field input,.field select,.field textarea{width:100%;font:inherit;padding:.75rem .85rem;border:1.5px solid #B9C4D8;border-radius:5px;background:var(--white);color:var(--ink)}
.field textarea{min-height:8rem;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--court);outline:3px solid rgba(47,74,130,.25);outline-offset:0}
.field .hint{font-size:.88rem;color:var(--mist);margin-top:.25rem}
.form-error{color:#A12828;font-weight:600;margin:0;display:none}
.form-error.show{display:block}

/* rodapé */
.site-foot{background:#0E1D40;color:#AFC0E2;padding:3rem 0 2rem;font-size:.95rem}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem}
.site-foot a{color:#DCE4F3;text-decoration:none}
.site-foot a:hover{text-decoration:underline}
.site-foot ul{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
.site-foot h2{font-size:1.25rem;color:var(--white);margin-bottom:.8rem}
.foot-brand{display:flex;gap:.9rem;align-items:center}
.foot-brand img{width:64px;height:64px}
.foot-base{border-top:1px solid rgba(255,255,255,.12);margin-top:2.5rem;padding-top:1.2rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem}

/* modos de acessibilidade */
html.contrast body{background:#000;color:#fff}
html.contrast .site-head,html.contrast .ava,html.contrast .cursos,html.contrast form.fale,html.contrast .cursos-note,html.contrast .filter button,html.contrast .doc .pending,html.contrast .status,html.contrast .curso figure,html.contrast .ava-icon{background:#000;color:#fff;border-color:#fff}
html.contrast .hero,html.contrast .contato,html.contrast .site-foot,html.contrast .a11y{background:#000}
html.contrast h1,html.contrast h2,html.contrast h3,html.contrast .brand,html.contrast .nav ul a,html.contrast .intro,html.contrast .fed-facts p,html.contrast .doc p,html.contrast .curso dt,html.contrast .transp-aside p,html.contrast .ava p,html.contrast .brand small,html.contrast .field .hint{color:#fff}
html.contrast a{color:#FFE600 !important}
html.contrast .btn{background:#000 !important;color:#FFE600 !important;border-color:#FFE600 !important}
html.contrast .field input,html.contrast .field select,html.contrast .field textarea{background:#000;color:#fff;border-color:#fff}
html.contrast .doc-ico{border-color:#fff;color:#fff}
html.contrast .filter button[aria-pressed="true"],html.contrast .a11y button[aria-pressed="true"]{background:#FFE600;color:#000}
html.contrast .court{display:none}
html.underline a{text-decoration:underline !important}
html.nomotion *,html.nomotion *::before,html.nomotion *::after{animation:none !important;transition:none !important;scroll-behavior:auto !important}
html.nomotion .draw{stroke-dashoffset:0}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
  html{scroll-behavior:auto}
  .draw{stroke-dashoffset:0}
}

/* responsivo */
@media (max-width:1020px){
  .nav ul{gap:1rem}
  .brand small{display:none}
}
@media (max-width:900px){
  .menu-toggle{display:inline-block}
  .nav{position:absolute;left:0;right:0;top:100%;background:var(--white);border-bottom:1px solid var(--rule);flex-direction:column;align-items:stretch;padding:1rem 1.25rem 1.4rem;gap:1rem;display:none}
  .nav.open{display:flex}
  .nav ul{flex-direction:column;gap:0}
  .nav ul a{display:block;padding:.8rem 0;border-bottom:1px solid var(--rule)}
  .hero .wrap{grid-template-columns:1fr;min-height:auto;padding-top:3rem}
  .hero-seal{display:none}
  .court svg{right:-35%;opacity:.55}
  .fed,.transp-grid,.contato-grid,.foot-grid{grid-template-columns:1fr;gap:2.2rem}
  .ava .wrap{grid-template-columns:auto 1fr}
  .ava-actions{grid-column:1/-1;align-items:flex-start}
  .a11y-toggle{display:inline-block}
  .a11y-tools{display:none;width:100%;padding:.5rem 0}
  .a11y-tools.open{display:flex}
  .a11y .wrap{flex-wrap:wrap}
  html.contrast .nav{background:#000}
}
@media (max-width:520px){
  section.block{padding:3.5rem 0}
  .a11y-links .hide-sm{display:none}
  .doc{grid-template-columns:auto 1fr}
  .doc .pending{grid-column:2;justify-self:start}
  form.fale{padding:1.4rem}
  .brand img{width:46px;height:46px}
}

/* ===== páginas internas ===== */
.page-head{background:var(--court);color:var(--white);position:relative;overflow:hidden}
.page-head .wrap{position:relative;z-index:1;padding-top:2.6rem;padding-bottom:2.4rem}
.page-head h1{font-size:clamp(2.4rem,5vw,3.8rem);text-transform:uppercase;margin:.2em 0 .15em}
.page-head p{margin:0;color:#DCE4F3;max-width:42em;font-size:1.1rem}
.page-head::after{content:"";position:absolute;right:-160px;top:50%;width:420px;height:420px;border:5px solid rgba(255,255,255,.35);border-radius:50%;transform:translateY(-50%)}
.page-head::before{content:"";position:absolute;right:-280px;top:50%;width:640px;height:640px;border:5px dashed rgba(242,181,58,.6);border-radius:50%;transform:translateY(-50%)}
.trilha{font-size:.92rem;color:#C9D5EE}
.trilha ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem}
.trilha li+li::before{content:"/";margin-right:.4rem;opacity:.6}
.trilha a{color:#fff}
.prose{max-width:44em;font-size:1.1rem}
.prose h2{font-size:2rem;margin-top:1.4em}
.prose h3{font-size:1.5rem;margin-top:1.2em}
.prose ul,.prose ol{padding-left:1.3em;margin:0 0 1em}
.prose li{margin-bottom:.35em}
.prose blockquote{margin:1.2em 0;padding:.4em 0 .4em 1.2em;border-left:4px solid var(--line);color:var(--mist)}
.prose a{text-decoration:underline}

.curso h3 a{color:inherit;text-decoration:none}
.curso h3 a:hover{text-decoration:underline}
.curso figure a{display:block;height:100%}
.status.aberto{background:#DDF3E7;color:var(--ok)}
.status.em_breve{background:#FDF0D3;color:#7A5300}
.ver-todos{margin-top:2rem}

.curso-det{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:3rem;align-items:start}
.curso-det figure{margin:0;border-radius:4px;overflow:hidden;background:var(--white)}
.curso-det dl{display:grid;grid-template-columns:auto 1fr;gap:.55rem 1.2rem;margin:1.2rem 0 1.6rem;padding:1.2rem 0;border-top:2px solid var(--navy);border-bottom:1px solid var(--rule)}
.curso-det dt{color:var(--mist)}
.curso-det dd{margin:0;font-weight:500}
.acoes{display:flex;flex-wrap:wrap;gap:.7rem;margin:1.4rem 0 2rem}

.noticias-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:2rem 1.6rem;list-style:none;margin:0;padding:0}
.noticia figure{margin:0 0 .9rem;aspect-ratio:16/10;overflow:hidden;border-radius:4px;background:var(--rule)}
.noticia figure img{width:100%;height:100%;object-fit:cover}
.noticia time{font-size:.92rem;color:var(--mist)}
.noticia h3{font-size:1.45rem;margin:.2em 0 .35em}
.noticia h3 a{color:inherit;text-decoration:none}
.noticia h3 a:hover{text-decoration:underline}
.noticia p{color:var(--mist);margin:0}
.materia figure{margin:0 0 2rem;max-width:56rem}
.materia figure img{border-radius:4px}
.materia time{color:#C9D5EE}

.docs-cat{margin-bottom:3rem}
.docs-cat>h2{font-size:1.9rem;margin-bottom:.3em}
.docs-cat>p{color:var(--mist);margin-bottom:1rem}
.doc .baixar{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;text-decoration:none;padding:.5rem .85rem;border:1.5px solid var(--court);border-radius:5px;white-space:nowrap}
.doc .baixar:hover{background:var(--court);color:var(--white)}
.doc .baixar small{font-weight:500;opacity:.8}
.doc time{font-size:.9rem;color:var(--mist)}
.transp-meta{margin-top:1.5rem;padding:1.1rem 1.3rem;background:var(--white);border-left:4px solid var(--court)}
.transp-meta p{margin:0}

.vazio{padding:1.6rem;border:1.5px dashed var(--rule);border-radius:6px;color:var(--mist);background:var(--white)}
.paginacao{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:2.5rem}
.paginacao a,.paginacao span{padding:.5rem .9rem;border:1.5px solid var(--rule);border-radius:5px;text-decoration:none;font-weight:600}
.paginacao [aria-current]{background:var(--navy);border-color:var(--navy);color:#fff}
.nav ul a[aria-current="page"]{border-bottom-color:var(--line)}

html.contrast .page-head{background:#000}
html.contrast .page-head::before,html.contrast .page-head::after{display:none}
html.contrast .vazio,html.contrast .transp-meta,html.contrast .curso-det figure{background:#000;border-color:#fff;color:#fff}
html.contrast .noticia p,html.contrast .noticia time,html.contrast .docs-cat>p,html.contrast .curso-det dt,html.contrast .doc time{color:#fff}
html.contrast .status.aberto,html.contrast .status.em_breve{background:#000;color:#fff;border:1px solid #fff}

@media (max-width:900px){
  .curso-det{grid-template-columns:1fr;gap:2rem}
  .curso-det figure{max-width:440px}
  .page-head::after,.page-head::before{opacity:.5}
}
@media (max-width:520px){
  .doc .baixar{grid-column:2;justify-self:start}
}
@media print{
  .a11y,.site-head,.site-foot,.skip,[vw]{display:none !important}
  .page-head{background:none;color:#000}
  .page-head h1,.page-head p{color:#000}
}
