/* Arreganho POP 4.2 — pequenos retoques, sem mexer na identidade. */
/* A faixa dos parceiros abre a sidebar, antes de Siga o Arreganho. */
body.ap-v4 .ap-sidebar { gap: 10px; }
body.ap-v4 .ap-sidebar .ap-widget-partners { order: -5; }
body.ap-v4 .ap-sidebar .ap-widget-social { order: -4; }
body.ap-v4 .ap-sidebar .ap-widget-popular { order: -3; }
body.ap-v4 .ap-sidebar .ap-promo-widget { order: -2; }
/* Redes sociais: círculos pequenos, mesma cor do layout, ícones vazados em branco.
   Sempre uma linha, incluindo telas pequenas, sem quebrar ícones. */
body.ap-v4 .ap-sidebar .ap-socials,
body.ap-v4 .ap-footer-follow .ap-socials {
    display:flex; flex-wrap:nowrap; justify-content:center; align-items:center;
    gap:clamp(5px, .55vw, 9px); width:100%; min-width:0;
}
body.ap-v4 :is(.ap-sidebar,.ap-footer-follow) .ap-social {
    display:grid;place-items:center;flex:0 1 37px;width:37px;height:37px;min-width:0;aspect-ratio:1;
    border-radius:50%; padding:7px; box-sizing:border-box;
    color:#fff; background:#9c0013; border:1px solid #ffffff78;
    box-shadow:inset 0 1px 2px #ffffff18,0 2px 4px #41000a18;
    font-size:0; text-shadow:none; transform:none;
    transition:background-color .16s ease, border-color .16s ease, transform .16s ease;
}
body.ap-v4 :is(.ap-sidebar,.ap-footer-follow) .ap-social-icon {
    display:block;width:100%;height:100%;stroke:#fff;overflow:visible; flex-shrink:0;
}
body.ap-v4 :is(.ap-sidebar,.ap-footer-follow) .ap-social[href]:is(:hover,:focus-visible) {
    background:#66000d; border-color:var(--ap-yellow,#ffda00); transform:translateY(-2px);
    box-shadow:0 0 0 2px #ffd21b78,0 3px 6px #53000033;
}
/* Ícones não clicáveis não parecem botões habilitados. */
body.ap-v4 :is(.ap-sidebar,.ap-footer-follow) span.ap-social:not([href]) {opacity:.67;}
body.ap-v4 .ap-widget-social {padding:11px 9px 13px;}
body.ap-v4 .ap-widget-social h2 {margin-bottom:9px; font-size:clamp(18px,1.5vw,23px);}
body.ap-v4 .ap-partner-grid {padding:9px 10px 12px;gap:6px;}
/* Colunas do footer mais próximas, sem sobreposição. */
body.ap-v4 .ap-footer-grid {
    grid-template-columns:minmax(230px,1.55fr) repeat(3,minmax(120px,.92fr)) minmax(170px,1.08fr);
    gap:clamp(12px,1.25vw,19px); align-items:start;
}
body.ap-v4 .ap-footer-since{margin-top:12px;}
body.ap-v4 .ap-footer-follow {min-width:0;}
body.ap-v4 .ap-footer-follow .ap-socials {justify-content:flex-start;}
body.ap-v4 .ap-footer-follow .ap-social {flex:0 1 31px; width:31px;height:31px;padding:5px;}
@media(max-width:1140px){
 body.ap-v4 .ap-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
 body.ap-v4 .ap-footer-identity{grid-column:span 3;}
 body.ap-v4 .ap-footer-follow{grid-column:span 3;}
 body.ap-v4 .ap-footer-follow .ap-socials{justify-content:flex-start;}
}
@media(max-width:900px){
 body.ap-v4 .ap-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
 body.ap-v4 .ap-sidebar .ap-widget-partners{grid-column:span 2;}
 body.ap-v4 .ap-sidebar .ap-widget-social{grid-column:span 1;}
 body.ap-v4 .ap-sidebar .ap-widget-popular{grid-column:span 1;}
 body.ap-v4 .ap-sidebar .ap-partner-grid{grid-template-columns:repeat(8,minmax(0,1fr));}
}
@media(max-width:610px){
 body.ap-v4 .ap-sidebar{display:flex;flex-direction:column;}
 body.ap-v4 .ap-sidebar .ap-partner-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
 body.ap-v4 .ap-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
 body.ap-v4 .ap-footer-identity,body.ap-v4 .ap-footer-follow{grid-column:span 2;}
 body.ap-v4 .ap-sidebar .ap-socials {gap:clamp(6px,2vw,12px);}
 body.ap-v4 .ap-sidebar .ap-social {flex:0 1 39px;width:39px;height:39px;}
 body.ap-v4 .ap-footer-follow .ap-social {flex:0 1 35px;width:35px;height:35px;}
}
@media(max-width:350px){
 body.ap-v4 .ap-sidebar .ap-socials{gap:5px;}
 body.ap-v4 .ap-sidebar .ap-social{flex:0 1 35px;width:35px;height:35px;}
}
