/* fixes.css - hand-written overrides for the block build. Each rule names the WP/core default it neutralises. */

/* core/post-template renders each item in <li class="wp-block-post">; in Elementor the .e-loop-item div itself is the grid item. */
.elementor-loop-container > .wp-block-post { display: contents; }

/* Elementor loop cards were <a> containers; the block version links through the post-title and stretches that link over the card. */
.has-loop-link { position: relative; }
.has-loop-link .wp-block-post-title a { color: inherit; text-decoration: inherit; }
.has-loop-link .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }

/* Astra pads the groups, covers and columns that are direct children of .entry-content (it assumes block-editor content:
   `.entry-content > .wp-block-group { padding: var(--wp--custom--ast-default-block-*-padding) }`). The Elementor document
   wrapper is a group now, but on Elementor it was a plain div that got no padding. */
.entry-content > .wp-block-group.elementor { padding: 0; }

/* convert.py un-cloaks Cloudflare email obfuscation but keeps the `<a class="__cf_email__" href="/cdn-cgi/l/email-protection">`
   wrapper; on live, Cloudflare's script replaced that anchor with the plain text. Render the leftover wrapper as plain text. */
a.__cf_email__ { color: inherit; text-decoration: inherit; pointer-events: none; }

/* Elementor (optimized Gutenberg loading) did not load wp-block-library on its documents, so the block alignment classes
   in the Astra footer widgets had no effect there: the "Build With Urban Nest" heading (has-text-align-center) followed
   the widget area's alignment (left on desktop, centred <=921px). On the other pages core's
   `:root .has-text-align-center` applied, as it still does. Elementor documents carry .elementor-page (functions.php). */
.elementor-page #colophon .has-text-align-center { text-align: inherit; }
