/* Notícias is the only header disclosure. Keep other items and floating controls intact. */
.site-header .site-nav { z-index:50; }
.site-header .site-nav .menu > .menu-item-has-children { display:grid; grid-template-columns:minmax(0,auto) 44px; align-items:center; position:relative; }
.site-header .site-nav .submenu-toggle { position:relative; float:none; box-sizing:border-box; width:44px; min-width:44px; height:44px; min-height:44px; padding:0; margin:0; border:0; border-radius:.2rem; line-height:1; background:transparent; }
/* A centered geometric chevron avoids the font-dependent baseline of the old glyph. */
.site-header .site-nav .submenu-toggle::after { content:''; display:block; box-sizing:border-box; width:.5rem; height:.5rem; border:solid currentColor; border-width:0 2px 2px 0; transform:translateY(-.125rem) rotate(45deg); }
.site-header .site-nav .submenu-toggle::before { content:''; position:absolute; width:1.75rem; height:1.75rem; border-radius:50%; background:transparent; }
.site-header .site-nav .submenu-toggle:hover { background:transparent; }
.site-header .site-nav .submenu-toggle:focus-visible { outline-offset:-4px; box-shadow:none; }
.site-header .site-nav .submenu-toggle:hover::before { background:rgb(255 255 255 / 12%); }
.site-header .site-nav .submenu-toggle[aria-expanded=true]::after { transform:translateY(.125rem) rotate(225deg); }
.site-header .site-nav .menu-item-has-children > .sub-menu { grid-column:1 / -1; }
.site-header .site-nav .sub-menu { box-sizing:border-box; width:max-content; min-width:13rem; max-width:calc(100vw - 40px); padding:.5rem; border:1px solid #ffffff55; margin:0; z-index:40; }
.site-header .site-nav .sub-menu a { white-space:normal; padding:.7rem .85rem; }
.site-header .site-nav .menu > .current-menu-ancestor > a { text-decoration:underline; text-decoration-color:var(--gold); text-decoration-thickness:2px; text-underline-offset:.55rem; }
@media(min-width:75rem) { .site-header .site-nav .sub-menu { position:absolute; top:100%; left:0; } }
@media(max-width:74.99rem) {
 .site-header .site-nav .menu > .menu-item-has-children { grid-template-columns:minmax(0,1fr) 44px; }
 .site-header .site-nav .sub-menu { position:static; flex-basis:100%; min-width:0; width:100%; border:0; border-left:2px solid var(--gold); margin-bottom:.75rem; box-shadow:none; }
}
.large-text .site-header .site-nav .menu > .menu-item-has-children { grid-template-columns:minmax(0,1fr) 44px; }
.large-text .site-header .site-nav .sub-menu { position:static; flex-basis:100%; width:100%; min-width:0; box-shadow:none; }
.high-contrast .site-header .site-nav .submenu-toggle:hover { background:#ffe66d; color:#000; }
.high-contrast .site-header .site-nav .sub-menu { border-color:#fff; }
.media-section { min-width:0; }
.media-section .entry-content { max-width:75ch; line-height:1.65; }
.media-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2rem; margin-top:2rem; }
.media-card { min-width:0; }
.media-card img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:.3rem; }
.media-card h2 { font-size:1.4rem; line-height:1.35; margin:.6rem 0; overflow-wrap:anywhere; }
.media-card p { margin:.5rem 0; }
.media-provisional { font-size:.875rem; color:var(--muted); }
.media-cover { margin:0 0 2rem; max-width:56rem; }
.media-cover img { display:block; width:100%; max-height:32rem; object-fit:contain; object-position:left; }
.media-section .gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.media-section .gallery-item { width:auto; max-width:none; margin:0; }
.media-section .gallery img { width:100%; height:auto; }
.media-section .gallery-caption { font-size:.9rem; }
.media-pdf { display:block; width:100%; height:75vh; min-height:28rem; margin-top:2rem; border:1px solid var(--line); }
.media-return { margin-top:2rem; }
.media-pagination { display:flex; justify-content:center; flex-wrap:wrap; gap:.75rem; margin-top:2rem; }
.media-pagination .page-numbers { padding:.5rem .8rem; }
.media-pagination .current { background:var(--blue); color:var(--white); }
@media(max-width:63.99rem) { .media-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:47.99rem) { .media-grid,.media-section .gallery { grid-template-columns:1fr; } .media-cover img { max-height:20rem; } }
.large-text .media-grid,.large-text .media-section .gallery { grid-template-columns:1fr; }
.high-contrast .media-provisional { color:#fff; }
