body{height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
main{width:100%;overflow:auto;padding:clamp(14px,2.4vw,34px);align-content:safe center}
body .tema,body #inicio,body .tema:target{display:none}
body main section.active,body:has(.tema:target) #inicio.active{display:block;animation:appear .25s ease-out}
#inicio .grid,#inicio .poster,.tema nav,footer{display:none}
.hero{min-height:min(48vh,430px);display:grid;align-content:center;padding:clamp(25px,5vw,75px)}
.hero p{max-width:780px}.hero .subtitle{margin-top:1em}
.tema>h1{font-size:clamp(26px,3vw,44px);margin:0 0 16px}
.lesson{margin:0;max-width:none}.lesson figure{padding:clamp(12px,2vw,26px);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:4%;align-items:start}
.lesson figure>:first-child{grid-row:1/4;width:100%}.lesson figure img{max-height:52vh;object-fit:contain;border-radius:8px}
.lesson figcaption,.lesson .controls,.lesson .answer{grid-column:2;padding:8px}
.bar{display:flex;justify-content:center;flex-wrap:wrap;padding:10px;gap:10px;background:white;border-top:1px solid #cad9e8}.bar span{align-self:center;font-variant-numeric:tabular-nums}
button,dialog a{border:1px solid #a9bed1;border-radius:8px;background:white;color:#14467c;font:600 16px system-ui;padding:9px 15px;cursor:pointer}
button:disabled{opacity:.45;cursor:default}#next{background:#14467c;color:white}.home{display:block}
dialog{border:0;border-radius:14px;max-height:85vh;color:#14467c}dialog::backdrop{background:#102a45aa}#links{display:grid;margin:15px 0;gap:5px}dialog a{text-decoration:none}
@keyframes appear{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){body main section.active{animation:none}}
@media(max-width:700px){.lesson figure{display:block}.lesson figure img{max-height:32vh}.bar{gap:5px}.bar button,.mast button{font-size:14px;padding:7px 10px}.hero p{max-width:100%}}
body main #inicio.active,body main .tema.active{display:block}
.hero{background-color:#10385c;background-image:linear-gradient(90deg,rgba(8,34,61,.97) 0%,rgba(8,34,61,.91) 33%,rgba(8,34,61,.30) 62%,transparent 82%),url(/capa-prefeitura.jpg);background-size:cover;background-position:center,center 42%;min-height:min(59vh,570px)}
.hero h1,.hero p{max-width:57%}.hero .subtitle{font-size:clamp(19px,2.2vw,32px)}
.closing{padding:clamp(24px,5vw,74px);background:var(--blue);color:white;border-radius:12px;border-bottom:6px solid var(--orange)}.closing h1{color:white}.closing-question{max-width:30em;font-size:clamp(24px,3.2vw,45px);line-height:1.15;margin:1em 0 .5em}
@media(max-width:700px){.hero{padding:20px;padding-top:clamp(130px,24vh,210px);background-image:linear-gradient(0deg,#0b2b4c 12%,rgba(11,43,76,.88) 48%,transparent 82%),url(/capa-prefeitura.jpg);background-position:center,75% 25%}.hero h1,.hero p{max-width:100%}}

.scene-name{display:block;color:#41617d;font:600 1rem/1.3 system-ui;margin-bottom:.65rem}
