
:root{
  --paper:#f4efe4;
  --paper-2:#ebe1d0;
  --ink:#172126;
  --muted:#5e6769;
  --blue:#0f3045;
  --blue-2:#173f5c;
  --red:#9b2d27;
  --green:#5f765e;
  --gold:#c49b5a;
  --line:rgba(23,33,38,.16);
  --white:#fffaf2;
  --shadow:0 24px 70px rgba(15,48,69,.18);
  --radius:22px;
  --radius-sm:14px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(var(--max),calc(100% - 36px));margin-inline:auto}
.kicker{letter-spacing:.16em;text-transform:uppercase;font-size:.72rem;font-weight:800;color:var(--red);margin-bottom:.7rem}
.h1{font-size:clamp(2.65rem,7vw,6.8rem);line-height:.92;letter-spacing:-.07em;margin:0;font-weight:900;max-width:1120px}
.h2{font-size:clamp(2rem,4vw,4.1rem);line-height:.96;letter-spacing:-.055em;margin:0 0 1rem;font-weight:900}
.h3{font-size:1.35rem;line-height:1.12;margin:.15rem 0 .55rem;font-weight:850;letter-spacing:-.03em}
.lead{font-size:clamp(1.05rem,1.8vw,1.34rem);max-width:850px;color:#25323a;margin:1.15rem 0 0}
.muted{color:var(--muted)}
.small{font-size:.92rem}
.btn{display:inline-flex;align-items:center;gap:.55rem;border:1px solid var(--ink);padding:.86rem 1.05rem;border-radius:999px;font-weight:800;background:var(--ink);color:var(--paper);box-shadow:0 10px 30px rgba(23,33,38,.12);transition:transform .18s ease, background .18s ease,color .18s ease}
.btn:hover{transform:translateY(-2px)}
.btn.secondary{background:transparent;color:var(--ink)}
.btn.red{background:var(--red);border-color:var(--red);color:white}
.btn.gold{background:var(--gold);border-color:var(--gold);color:#1a1712}
.site-header{position:sticky;top:0;z-index:90;background:rgba(244,239,228,.88);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav{height:72px;display:flex;align-items:center;justify-content:space-between;gap:1.2rem}
.brand{display:flex;align-items:center;gap:.8rem;font-weight:900;letter-spacing:-.04em}
.brand-mark{width:38px;height:38px;border-radius:50%;background:radial-gradient(circle at 30% 30%,var(--gold),var(--red) 42%,var(--blue) 44%);box-shadow:inset 0 0 0 3px rgba(255,255,255,.45)}
.brand span{max-width:260px;line-height:1.02}
.menu{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;justify-content:flex-end}
.menu a{padding:.54rem .72rem;border-radius:999px;font-weight:760;font-size:.88rem;color:#26343a}
.menu a:hover,.menu a.active{background:rgba(15,48,69,.09)}
.mobile-toggle{display:none;background:none;border:1px solid var(--line);border-radius:999px;padding:.5rem .8rem;font-weight:800}
.hero{position:relative;min-height:calc(100vh - 72px);display:grid;align-items:end;overflow:hidden;border-bottom:1px solid var(--line)}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(244,239,228,.96) 0%,rgba(244,239,228,.78) 42%,rgba(244,239,228,.22) 100%),url('../assets/hero-map.png') center/cover no-repeat;filter:saturate(.9);}
.hero .container{position:relative;padding:8rem 0 4.8rem}
.hero-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:2rem}
.hero-meta{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:2.2rem}
.pill{border:1px solid var(--line);background:rgba(255,250,242,.72);border-radius:999px;padding:.42rem .75rem;font-weight:750;color:#33434a;font-size:.88rem}
.section{padding:5.4rem 0;border-bottom:1px solid var(--line)}
.section.compact{padding:3.8rem 0}
.grid{display:grid;gap:1.15rem}
.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{background:rgba(255,250,242,.62);border:1px solid var(--line);border-radius:var(--radius);padding:1.35rem;box-shadow:0 12px 40px rgba(15,48,69,.055)}
.card.dark{background:var(--blue);color:var(--paper);border-color:rgba(255,255,255,.1)}
.card.redline{border-top:5px solid var(--red)}
.card.greenline{border-top:5px solid var(--green)}
.card.blueline{border-top:5px solid var(--blue)}
.card.goldline{border-top:5px solid var(--gold)}
.card .meta{font-size:.78rem;font-weight:850;text-transform:uppercase;letter-spacing:.11em;color:var(--red);margin-bottom:.6rem}
.number{font-size:3rem;font-weight:950;letter-spacing:-.08em;line-height:.9}
.big-panel{border-radius:calc(var(--radius) + 8px);overflow:hidden;background:var(--blue);color:var(--paper);display:grid;grid-template-columns:1.1fr .9fr;box-shadow:var(--shadow)}
.big-panel .copy{padding:2rem}
.big-panel .image{min-height:360px;background:url('../assets/rede-pesquisa.png') center/cover no-repeat;opacity:.9}
.subhero{position:relative;overflow:hidden;background:var(--blue);color:var(--paper)}
.subhero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,48,69,.96),rgba(15,48,69,.72)),url('../assets/mapa-global.png') center/cover no-repeat;}
.subhero .container{position:relative;padding:5.6rem 0 4.4rem}
.breadcrumb{font-size:.86rem;color:rgba(244,239,228,.72);font-weight:700;margin-bottom:1.2rem}
.filters{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:.7rem;margin:1.4rem 0 1rem}
.input,select{width:100%;border:1px solid var(--line);background:rgba(255,250,242,.82);border-radius:14px;padding:.82rem .88rem;color:var(--ink);font:inherit;font-weight:650;outline:none}
.input:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(15,48,69,.08)}
.timeline-list{display:grid;gap:.8rem;margin-top:1rem}
.event-row{display:grid;grid-template-columns:100px 1fr;gap:1rem;border:1px solid var(--line);background:rgba(255,250,242,.64);border-radius:18px;padding:1rem;position:relative;overflow:hidden}
.event-year{font-size:1.55rem;font-weight:950;color:var(--blue);letter-spacing:-.06em}
.event-row::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--red);opacity:.85}
.event-tags{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.7rem}
.tag{font-size:.75rem;font-weight:760;padding:.25rem .48rem;border:1px solid var(--line);border-radius:999px;background:rgba(15,48,69,.045);color:#34454c}
.map-wrap{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.65fr);gap:1rem;align-items:stretch}
.map-stage{position:relative;border-radius:var(--radius);overflow:hidden;min-height:620px;background:#0b2232 url('../assets/mapa-global.png') center/cover no-repeat;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.16)}
.map-stage::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,15,23,.12),rgba(4,15,23,.35));pointer-events:none}
.pin{position:absolute;width:12px;height:12px;border-radius:50%;background:var(--gold);border:2px solid white;box-shadow:0 0 0 5px rgba(196,155,90,.24),0 5px 18px rgba(0,0,0,.3);transform:translate(-50%,-50%);z-index:2;cursor:pointer}
.pin.high{background:var(--red);box-shadow:0 0 0 6px rgba(155,45,39,.25),0 5px 18px rgba(0,0,0,.3)}
.pin:hover{transform:translate(-50%,-50%) scale(1.35)}
.map-panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem;box-shadow:0 12px 40px rgba(15,48,69,.08);min-height:620px;display:flex;flex-direction:column}
.map-panel .empty{margin:auto;text-align:center;color:var(--muted)}
.stat-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem;margin-top:1.2rem}
.stat{background:rgba(255,250,242,.7);border:1px solid var(--line);border-radius:18px;padding:1rem}.stat .label{font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;font-weight:850;color:var(--muted)}
.library-list,.case-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.2rem}
.item-card{border:1px solid var(--line);background:rgba(255,250,242,.68);border-radius:var(--radius);padding:1.2rem;display:flex;flex-direction:column;gap:.6rem}
.item-card .topline{display:flex;justify-content:space-between;gap:.8rem;align-items:flex-start}.badge{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:.25rem .5rem;font-size:.75rem;font-weight:850;color:var(--red);background:rgba(155,45,39,.05);white-space:nowrap}
.footer{background:#101a1f;color:var(--paper);padding:3.2rem 0}.footer-grid{display:grid;grid-template-columns:1.25fr repeat(3,.7fr);gap:1.4rem}.footer a{display:block;color:rgba(244,239,228,.72);padding:.2rem 0;font-weight:650}.footer a:hover{color:white}.footer .brand-mark{flex:0 0 auto}.footer p{color:rgba(244,239,228,.72)}
.callout{border-left:5px solid var(--red);background:rgba(155,45,39,.055);padding:1rem 1.1rem;border-radius:0 16px 16px 0}.quote{font-size:1.35rem;line-height:1.25;font-weight:800;letter-spacing:-.025em;color:var(--blue);max-width:900px}.mini-table{width:100%;border-collapse:collapse;margin-top:1rem;overflow:hidden;border-radius:16px}.mini-table th,.mini-table td{text-align:left;border-bottom:1px solid var(--line);padding:.78rem}.mini-table th{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
@media(max-width:980px){.menu{display:none;position:absolute;left:18px;right:18px;top:74px;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:.7rem;box-shadow:var(--shadow)}.menu.open{display:grid}.mobile-toggle{display:inline-flex}.big-panel,.map-wrap{grid-template-columns:1fr}.grid.cols-4,.grid.cols-3,.grid.cols-2,.library-list,.case-list,.footer-grid{grid-template-columns:1fr}.filters{grid-template-columns:1fr}.map-stage,.map-panel{min-height:450px}.stat-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.nav{height:66px}.brand span{max-width:200px}.hero .container{padding:5.6rem 0 3rem}.section{padding:3.5rem 0}.event-row{grid-template-columns:1fr}.stat-row{grid-template-columns:1fr}.h1{font-size:3.05rem}.hero::before{background:linear-gradient(90deg,rgba(244,239,228,.96),rgba(244,239,228,.68)),url('../assets/hero-map.png') center/cover no-repeat}}

/* v2 — grupos, integrantes, acervo e mapa SIGWeb */
code{background:rgba(15,48,69,.08);border:1px solid var(--line);border-radius:8px;padding:.12rem .32rem;font-size:.9em}
.section-title-row{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin:2rem 0 1rem}
.group-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:1rem;align-items:start;margin:1rem 0 2.5rem}
.group-tabs{display:grid;gap:.55rem;position:sticky;top:92px}
.group-tab{text-align:left;border:1px solid var(--line);background:rgba(255,250,242,.7);border-radius:16px;padding:.85rem;cursor:pointer;color:var(--ink)}
.group-tab strong{display:block;font-size:1.05rem;letter-spacing:-.02em}.group-tab span{display:block;font-size:.78rem;color:var(--muted);font-weight:760;text-transform:uppercase;letter-spacing:.08em;margin-top:.2rem}.group-tab.active{background:var(--blue);color:var(--paper);border-color:var(--blue)}.group-tab.active span{color:rgba(244,239,228,.72)}
.group-detail{background:rgba(255,250,242,.72);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;box-shadow:0 14px 42px rgba(15,48,69,.08)}
.group-detail-head{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.65fr);gap:1rem;align-items:start}.group-facts{align-self:start}.members-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.member-card{display:grid;grid-template-columns:96px 1fr;gap:.9rem;border:1px solid var(--line);border-radius:18px;background:rgba(244,239,228,.7);padding:.85rem}.member-photo{width:96px;height:96px;border-radius:16px;object-fit:cover;border:1px solid var(--line);background:var(--paper)}.member-card h4{margin:0 0 .15rem;font-size:1.08rem;line-height:1.1}.member-card p{margin:.25rem 0}.member-role{font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;color:var(--red);font-weight:850}
.real-map{position:relative;border-radius:var(--radius);overflow:hidden;min-height:620px;background:#0b2232;box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.16)}.real-map .fallback{position:absolute;inset:0;border-radius:0;box-shadow:none;min-height:100%}.real-map.leaflet-loaded .fallback{display:none}.leaflet-popup-content-wrapper{border-radius:14px}.leaflet-container{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.upload-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-top:1rem}.upload-card{border:1px dashed rgba(23,33,38,.3);border-radius:18px;padding:1rem;background:rgba(255,250,242,.6)}.upload-card strong{display:block;margin-bottom:.35rem}.file-path{font-size:.78rem;color:var(--blue);font-weight:800;word-break:break-word}.schema-table{font-size:.92rem}.schema-table th{width:185px}.asset-note{background:rgba(15,48,69,.055);border:1px solid var(--line);border-radius:18px;padding:1rem;margin-top:1rem}
@media(max-width:980px){.group-layout,.group-detail-head{grid-template-columns:1fr}.group-tabs{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.members-grid,.upload-grid{grid-template-columns:1fr}.real-map{min-height:450px}}
@media(max-width:620px){.group-tabs{grid-template-columns:1fr}.member-card{grid-template-columns:76px 1fr}.member-photo{width:76px;height:76px}.section-title-row{display:block}}


/* v3 — logotipos institucionais e tradução automática */
.site-header{box-shadow:0 12px 34px rgba(15,48,69,.06)}
.institutional-header{border-bottom:1px solid rgba(23,33,38,.10);background:rgba(255,250,242,.72)}
.institutional-header-inner{min-height:54px;display:flex;align-items:center;gap:1rem;justify-content:space-between}
.institutional-title{font-size:.68rem;text-transform:uppercase;letter-spacing:.14em;font-weight:900;color:var(--muted);white-space:nowrap}
.institutional-logos{display:flex;align-items:center;gap:.8rem;min-width:0;margin-right:auto}
.institutional-logos img{object-fit:contain;display:block;filter:saturate(.94);flex:0 0 auto}
.logo-iau{width:auto;height:38px}
.logo-ungs{width:auto;height:34px}
.logo-usp{width:auto;height:44px}.institutional-logos .logo-usp{filter:none}
.translate-box{display:flex;align-items:center;gap:.35rem;border:1px solid var(--line);border-radius:999px;background:rgba(244,239,228,.72);padding:.28rem .35rem .28rem .72rem;white-space:nowrap}
.translate-box span{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;font-weight:900;color:var(--muted);margin-right:.1rem}
.translate-box button{border:0;background:transparent;color:var(--ink);font-weight:900;border-radius:999px;padding:.38rem .5rem;cursor:pointer;line-height:1}
.translate-box button:hover,.translate-box button.active{background:var(--blue);color:var(--paper)}
.translate-box button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.translate-box button[lang="zh-CN"]{font-family:system-ui,"Noto Sans CJK SC","Microsoft YaHei",sans-serif}
.translation-status{margin-bottom:.65rem;padding:.65rem .85rem;border:1px solid rgba(26,81,103,.22);border-radius:10px;background:#fffbf3;color:var(--ink);font-size:.83rem;line-height:1.5;overflow-wrap:anywhere}
.translation-status[hidden]{display:none}
.translation-status a{color:var(--blue);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.translation-status a:focus-visible,.translation-status button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.translation-status p{margin:.2rem 0}
.translation-status button{margin-left:.65rem;border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:.3rem .6rem;font:inherit;color:var(--ink);cursor:pointer}
.translation-status progress{max-width:100%;height:.5rem;accent-color:var(--blue)}
html[lang="zh-CN"] .mini-table th{white-space:nowrap;letter-spacing:0}


.footer-institutions{width:min(var(--max),calc(100% - 36px));margin:2.4rem auto 0;padding-top:1.6rem;border-top:1px solid rgba(244,239,228,.16);display:flex;align-items:center;justify-content:space-between;gap:1.4rem}
.footer-institutions span{font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;font-weight:900;color:rgba(244,239,228,.62)}
.footer-logos{display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap;justify-content:flex-end}.footer-logos img{object-fit:contain;display:block;max-width:100%;background:rgba(255,250,242,.88);border-radius:12px;padding:.52rem;border:1px solid rgba(244,239,228,.14)}
.footer-logo-iau{width:270px;height:54px}.footer-logo-usp{width:128px;height:54px}.footer-logo-ungs{width:172px;height:54px}
.footer-logos img.footer-logo-cnpq{height:auto;max-height:72px;background:transparent;border:0;border-radius:0;padding:0;filter:none}
.footer-support{width:min(var(--max),calc(100% - 36px));margin:1rem auto 0;padding-top:1.2rem;border-top:1px solid rgba(244,239,228,.10);display:flex;align-items:center;justify-content:space-between;gap:1.4rem}.footer-support-copy{display:flex;flex-direction:column;gap:.35rem;min-width:0}.footer-support-copy span{font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;font-weight:900;color:rgba(244,239,228,.62)}.footer-support-copy p{margin:0;color:rgba(244,239,228,.86);font-size:.94rem;line-height:1.55;max-width:760px}.footer-logo-cnpq{width:220px;height:72px}.footer-support .footer-logos{justify-content:flex-end}
@media(max-width:980px){.institutional-header-inner{display:grid;grid-template-columns:1fr auto;gap:.55rem;padding:.55rem 0}.institutional-title{grid-column:1 / -1}.institutional-logos{margin-right:0}.logo-iau{width:auto}.logo-ungs{width:auto}.translate-box{justify-self:end}.footer-institutions{align-items:flex-start;flex-direction:column}.footer-logos{justify-content:flex-start}.footer-logo-iau{width:238px}.footer-logo-ungs{width:150px}.footer-logo-cnpq{width:200px}.footer-support{align-items:flex-start;flex-direction:column}.footer-support .footer-logos{justify-content:flex-start}}
@media(max-width:620px){.institutional-header-inner{grid-template-columns:1fr}.institutional-logos{gap:.75rem;flex-wrap:nowrap}.logo-usp{height:36px}.logo-iau{width:auto;height:32px}.logo-ungs{width:auto;height:30px}.translate-box{justify-self:start}.nav{height:auto;min-height:66px;padding:.55rem 0}.footer-logo-iau{width:220px}.footer-logo-ungs{width:150px}.footer-logo-cnpq{width:180px}}

/* v4: cards de integrantes */
.member-institution{font-size:.86rem;color:var(--muted);font-weight:750}
.member-links{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.5rem}
.member-links a{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;font-weight:850;border:1px solid var(--line);border-radius:999px;padding:.28rem .5rem;background:rgba(255,250,242,.75)}
.member-links a:hover{background:var(--blue);color:var(--paper);border-color:var(--blue)}


/* v9 — eventos com vídeo, PDF e página individual */
.event-feature{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:1.2rem;align-items:stretch;margin:1.6rem 0 2rem}
.event-cover{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);background:var(--white);box-shadow:0 14px 42px rgba(15,48,69,.08)}
.event-cover img{width:100%;height:100%;object-fit:cover;min-height:420px}
.event-detail-card{display:flex;flex-direction:column;gap:.9rem}.event-detail-card .lead{margin:.2rem 0 .2rem}
.event-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:.5rem 0}
.event-meta-box{border:1px solid var(--line);border-radius:16px;padding:.8rem;background:rgba(255,250,242,.68)}
.event-meta-box strong{display:block;font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:.18rem}
.event-actions{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:.6rem}.video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.video-frame{position:relative;width:100%;aspect-ratio:16/9;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:#0b2232;box-shadow:0 12px 36px rgba(15,48,69,.12)}.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.program-list{display:grid;gap:.75rem;margin-top:1rem}.program-item{display:grid;grid-template-columns:150px 1fr;gap:.9rem;padding:1rem;border:1px solid var(--line);border-radius:18px;background:rgba(255,250,242,.64)}.program-date{font-weight:950;color:var(--red);letter-spacing:-.02em}.speaker-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.speaker-mini{border:1px solid var(--line);border-radius:18px;background:rgba(255,250,242,.66);padding:1rem}.speaker-mini h3{margin:.1rem 0 .35rem}.pdf-preview{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--white);box-shadow:0 14px 42px rgba(15,48,69,.08)}.pdf-preview img{width:100%;height:auto}.embed-note{font-size:.86rem;color:var(--muted);margin-top:.55rem}@media(max-width:980px){.event-feature,.video-grid,.speaker-list{grid-template-columns:1fr}.event-cover img{min-height:auto}.program-item{grid-template-columns:1fr}.event-meta-grid{grid-template-columns:1fr}}


/* v10: cards de vídeo com link direto para YouTube, evitando erro 153 em embeds locais */
.video-link-grid { align-items: stretch; }
.video-link-card { overflow: hidden; }
.video-thumb { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid rgba(18, 38, 63, .14); background: #111827; }
.video-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.9) contrast(.95); }
.play-badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: rgba(11, 31, 51, .88); color: #fff; font-weight: 700; box-shadow: 0 10px 25px rgba(0,0,0,.22); transition: transform .2s ease; }
.video-thumb:hover .play-badge { transform: translateY(-2px); }

/* Eventos v11: acervo audiovisual */
.seminar-grid { align-items: stretch; }
.seminar-video-card { display: flex; flex-direction: column; gap: 12px; }
.seminar-video-card .video-thumb { margin: 4px 0 2px; }
.compact-meta { grid-template-columns: 1fr; margin: 4px 0; }
.seminar-tags { margin-top: auto; }
@media (max-width: 900px) { .grid.cols-2.seminar-grid { grid-template-columns: 1fr; } }

/* Biblioteca com capas de livros */
.library-card.has-cover{display:grid;grid-template-columns:150px 1fr;gap:1rem;align-items:start}
.book-cover-wrap{display:block;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#fff;box-shadow:0 10px 25px rgba(0,0,0,.10)}
.book-cover{display:block;width:100%;height:220px;object-fit:cover}
.library-card-body{min-width:0}
@media(max-width:720px){.library-card.has-cover{grid-template-columns:1fr}.book-cover{height:auto;max-height:420px;object-fit:contain;background:#fff}}

.subhero .lead-branca{color:#fff}

/* Navegação com a entrada do Atlas da imprensa. */
@media (min-width:981px) {
  .nav { gap: .8rem; }
  .menu { gap: .06rem; }
  .menu a { padding-inline: .47rem; white-space: nowrap; font-size: .84rem; }
}
@media (min-width:981px) and (max-width:1210px) {
  .menu { display: grid; grid-template-columns: repeat(5,max-content); justify-items: center; gap: 0 .17rem; }
  .menu a { padding-block: .24rem; }
}
@media (max-width:980px) {
  .nav { position: relative; }
  .menu { top: calc(100% - .2rem); left: 0; right: 0; max-height: min(66vh, 27rem); overflow-y: auto; }
}

/* v66 — três instituições em telas menores */
@media(max-width:620px){.footer-institutions .footer-logos{display:grid;grid-template-columns:1.25fr .85fr 1fr;gap:.65rem;width:100%;max-width:420px}.footer-institutions .footer-logos img{width:100%;height:54px;min-width:0}}

/* v66 — equilíbrio óptico e cabeçalhos compactos dos atlas temáticos */
.footer-logos img.footer-logo-usp{padding-block:6px}
@media(max-width:620px){
  .paulista-page .institutional-logos .logo-iau,.paulista-page .institutional-logos .logo-ungs,.ev-page .institutional-logos .logo-iau,.ev-page .institutional-logos .logo-ungs{width:auto}
  .paulista-page .institutional-logos .logo-usp,.ev-page .institutional-logos .logo-usp{height:34px}
}
@media(max-width:480px){
  .td-page .institutional-logos .logo-usp,.sj-page .institutional-logos .logo-usp{height:28px}
}
