 .history .chapter-image{max-height:none;width:100%;height:auto;object-fit:contain}.history figure{margin:24px 0}.history figcaption{color:#b9c9bd;font-size:14px;margin-top:8px}.history .zoom-image{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}.history .zoom-image img{display:block;width:100%;height:auto}.history dialog{max-width:96vw;max-height:96vh;background:#091b12;color:white;border:1px solid #a3e635;border-radius:12px;padding:12px}.history dialog::backdrop{background:#000d}.history dialog img{display:block;max-width:90vw;max-height:78vh;object-fit:contain;margin:auto}.history dialog button{padding:10px;color:white;background:#173525;border:1px solid #a3e635;cursor:pointer}.history .research-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.history .research-grid a{display:block;padding:20px;border:1px solid #608c32;border-radius:12px;color:#b5ed62}.history .reading{max-width:1100px}.history .reading p{max-width:100%}.history .diagram{border:1px solid #608c32;border-radius:12px}.history input{width:100%;padding:14px;background:#10231a;color:white;border:1px solid #608c32;border-radius:8px} @media print{header,footer,.chapter-nav,.zoom-image+button,dialog{display:none!important}.history{color:black;background:white}.history p,.history h2{color:black!important}}
.history .zoom-image{width:min(100%,350px);margin:12px auto}.history .zoom-image img,.history .chapter-image,.history .history-banner{width:100%;height:auto;max-height:240px;object-fit:contain}.history figure{max-width:350px;margin:18px auto;text-align:center}.history dialog img{width:auto;max-width:90vw;max-height:78vh}.history .bio-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.history .bio-card{padding:18px;border:1px solid #608c32;border-radius:12px;background:#10231a}.history .bio-card a{color:#b5ed62}.history .bio-card img{height:180px;object-fit:contain}.history .research-grid a[hidden]{display:none}.history .photo-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}/* Limites explícitos, inclusive antes do JavaScript carregar. */
main.history img:not(dialog img){display:block!important;width:auto!important;max-width:min(100%,280px)!important;height:auto!important;max-height:200px!important;object-fit:contain!important;margin:0 auto!important;cursor:zoom-in}
main.history button.zoom-image{display:block!important;width:280px!important;max-width:100%!important;height:auto!important;margin:12px auto!important;padding:0!important}
main.history figure{width:280px!important;max-width:100%!important;margin:16px auto!important}
main.history dialog:not([open]){display:none!important}main.history dialog[open]{position:fixed;inset:0;margin:auto;width:max-content;max-width:95vw;max-height:95vh;overflow:auto}main.history dialog[open] img{width:auto!important;height:auto!important;max-width:88vw!important;max-height:76vh!important;object-fit:contain!important}
.history-quick{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.history-quick a{color:#b5ed62;border:1px solid #608c32;border-radius:8px;padding:10px}.featured-bio{background:#10231a;border:1px solid #608c32;border-radius:12px;padding:20px!important}.featured-bio .history-link{display:inline-block;margin:5px}.history .deep-bio{padding:12px 0}.history #bibliografia li{margin:12px 0;overflow-wrap:anywhere}.history #bibliografia a{color:#b5ed62}

main.history img:not(dialog img){max-width:min(100%,420px)!important;max-height:340px!important}main.history button.zoom-image{width:420px!important}main.history figure{width:420px!important}main.history .aula-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}main.history .aula-grid figure{width:100%!important;margin:0!important;padding:12px;border:1px solid #395747;border-radius:12px}main.history .aula-grid button.zoom-image{width:100%!important}main.history .aula-grid img:not(dialog img){width:100%!important;max-width:100%!important;max-height:260px!important}main.history .aula-grid figcaption{text-align:center}main.history .chapter-image{max-height:340px!important}
main.history .aula-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}main.history .aula-grid img:not(dialog img){width:auto!important;max-width:100%!important;max-height:240px!important}main.history .aula-grid figure{max-width:420px!important}
.history-video video{display:block;width:min(100%,760px);max-height:480px;margin:16px auto;background:#000;border-radius:12px}.history-video{margin:30px 0}.history .aula-grid figcaption{font-size:.9rem;line-height:1.5}
.history .bio-hero{padding:32px clamp(18px,4vw,48px);border:1px solid #608c32;border-radius:16px;background:linear-gradient(90deg,#091b12 15%,#091b12e8 50%,#091b1250),url('historia-informatica.webp') center/cover}.bio-hero span{color:#b5ed62;font-weight:bold;letter-spacing:.08em}.history .bio-card{padding:0;overflow:hidden}.history .bio-full{display:block;padding:16px;height:100%;text-decoration:none}.history .bio-full:hover{background:#203a24}.history .bio-full small{display:block;color:#a9b9af;font-size:11px;margin-top:8px}.history .bio-full h3{margin:10px 0}.history .bio-full p{font-size:13px}.history .bio-full span{font-weight:bold;font-size:12px}main.history .bio-card img.bio-thumb{width:100%!important;height:160px!important;max-height:160px!important;object-fit:contain!important;cursor:pointer;border-radius:8px;background:#091b12}.bio-detail{max-width:950px;margin:auto}.bio-detail h2{color:#b5ed62;font-size:clamp(22px,3vw,32px)}.bio-detail p{line-height:1.8}.bio-detail dl{display:grid;grid-template-columns:120px 1fr;gap:10px;padding:20px;background:#10231a;border-radius:12px}.bio-detail dt{font-weight:bold;color:#b5ed62}.bio-detail dd{margin:0}.bio-detail blockquote{border-left:3px solid #a3e635;padding:12px 20px;background:#10231a;font-size:1.15rem}
