/* Shared fixes for preserved public themes. */
.row.conteudo, footer > .row { margin-left:0; margin-right:0; }
.ph-responsive-embed { position:relative; width:100%; aspect-ratio:16/9; }
.ph-responsive-embed iframe { position:absolute; inset:0; width:100%; height:100%; margin:0; }
.encyclopedia-prefix-filters { display:block; }
.encyclopedia-prefix-filters .filter-level { display:flex; flex-wrap:wrap; }
.encyclopedia-prefix-filters .filter-link { min-width:38px; min-height:40px; }
.ph-wiki-navigation > summary, .ph-alphabet > summary { cursor:pointer; font:600 20px Dosis,sans-serif; padding:10px 0; }
.ph-alphabet { margin-bottom:16px; }
.ph-seasons-menu > summary { cursor:pointer; list-style:none; }
.ph-seasons-menu > summary::-webkit-details-marker { display:none; }
#access .ph-seasons-menu[open] > ul { display:block; }
.ph-seasons-menu > summary:focus-visible { outline:2px solid currentColor; outline-offset:5px; }
@media(min-width:992px) { .ph-wiki-navigation > summary { display:none; } }
@media(max-width:991px) {
 .ph-wiki-navigation { margin-bottom:22px; border-bottom:1px solid #ddd; }
 .ph-wiki-navigation > summary, .ph-alphabet > summary { min-height:44px; }
 .wiki .box { max-width:100%; }
 .wiki .box h1 { overflow-wrap:anywhere; }
}

@media(max-width:767px) {
 article.encyclopedia > img.wp-post-image { float:none; display:block; max-width:100%; height:auto; padding:0; margin:0 0 24px; }
 article .alignleft, article .alignright { float:none; display:block; max-width:100%; height:auto; margin-left:0; margin-right:0; }
 .wp-caption { max-width:100%; }
}

/* Wiki covers share the compact header on homes, lists and entries. */
.imagem.wiki { height:310px; max-height:310px; }
.imagem.wiki > .capa { height:100%; max-height:none; }

/* Keep card thumbnails square as their columns shrink. */
.galeria img, .single .galeria div img { width:100%; max-width:300px; height:auto; aspect-ratio:1; object-fit:cover; }
/* Image links must not add the text-link padding around a full-width photo. */
.conteudo p a:has(img), .conteudo p a:has(img):hover { padding:0; }
/* Preserve the video player ratio at every viewport size. */
.conteudo iframe[src*="youtube.com/embed/"],
.conteudo iframe[src*="youtube-nocookie.com/embed/"],
.conteudo iframe[src*="player.vimeo.com/video/"] { display:block; width:100%; height:auto; aspect-ratio:16/9; }
/* Long addresses and card titles must wrap inside narrow reading columns. */
.conteudo, .site-footer { overflow-wrap:anywhere; }
.capa .box h1 { min-width:0; max-width:100%; overflow-wrap:anywhere; }
@media(max-width:480px) {
 .imagem:not(.wiki) .box h1 { font-size:clamp(54px,18vw,75px) !important; padding-left:0; padding-right:0; }
}

/* Identify the mobile search action even when the legacy submit value is empty. */
.secondary .search-submit {
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E");
 background-repeat:no-repeat; background-position:center; background-size:20px 20px;
}
