/* ═══════════════════════════════════════════════════════════════════════════
   .top-element — clears the fixed header (#menu-container, see style.css).
   Add the class to the first block on a page (Kadence: Advanced > Additional
   CSS class). Header heights: 90px, 70px at <= 991px, 60px at <= 600px.
   Front end only (the editor has no fixed header).
   ═══════════════════════════════════════════════════════════════════════════ */
:root { --pemfit-header-height: 90px; }
@media (max-width: 991px) { :root { --pemfit-header-height: 70px; } }
@media (max-width: 600px) { :root { --pemfit-header-height: 60px; } }

body:not(.editor-styles-wrapper) .top-element {
    margin-top: var(--pemfit-header-height);
}


/* <picture> support (Imagify WebP "picture tags"): the wrapper must not take
   part in layout, so every existing img / .cover-fit / figure rule behaves
   exactly as it did with a bare <img>. */
picture {
    display: contents;
}


/* Editable footer (Appearance > Footers): block-based link columns and copyright bar */
#footer-links .footer-links-col {
    min-width: 165px;
    padding: 0;
}

#footer-links .footer-links-col ul {
    margin: 0;
    padding: 0;
}

#footer-links .footer-links-col li {
    list-style: none;
}

#footer-top .wp-block-image,
#footer-top figure {
    margin: 0;
}

#copyright-info p a {
    padding: 0;
    margin: 0;
}

@media (max-width: 991px) {
    #footer-links .footer-links-col {
        margin-right: auto;
    }
}


/* Footer logo is an image block now: undo the generic .wp-block-image radius / margin */
#footer-logo,
#footer-logo.wp-block-image {
    margin: 0;
    border-radius: 0;
}

#footer-logo img,
#footer-logo.wp-block-image img,
#footer-logo a {
    border-radius: 0 !important;
}
