/* WordPress-specific additions to the Webgital design (site.css stays shared with the static build). */

/* Sticky header sits below the admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Content written in the block editor */
.entry-content > * + * { margin-top: 1.1em; }
.entry-content img { height: auto; border-radius: var(--radius-m); }
.entry-content .alignwide { max-width: 64rem; }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 4px solid var(--blue); }
.entry-content .wp-block-button__link { display: inline-flex; min-height: 52px; align-items: center; padding: 0.85rem 1.6rem; border-radius: 0; background: var(--blue); color: #fff; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.entry-image { margin-bottom: 1.5rem; }
.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { font-size: 0.88rem; color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Blog list */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; max-width: 46rem; }
.post-list li { padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.post-list a { text-decoration: none; }
.post-list h2 { font-size: var(--step-2); margin-bottom: 0.3rem; }
.post-date { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.6rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; margin-top: 2rem; }
.pagination .page-numbers { padding: 0.4rem 0.8rem; border: 1px solid var(--rule); text-decoration: none; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Elementor: widgets that output full sections should not be boxed or padded twice */
.elementor-widget-webgital-section > .elementor-widget-container,
.elementor-widget-webgital-faq > .elementor-widget-container,
.elementor-widget-webgital-cta > .elementor-widget-container { padding: 0; margin: 0; }
.elementor-page main#main { overflow-x: clip; }
/* Theme headings stay on-brand inside Elementor unless the Kit overrides them */
.elementor-widget-heading .elementor-heading-title { font-family: var(--font-display); }

/* WordPress menus (when a "Main menu" is assigned) */
.nav-list .menu-item a[aria-current="page"], .nav-list .current-menu-item > a { color: var(--blue-text); box-shadow: inset 0 -3px 0 var(--blue); }

/* Elementor wraps each section, so "next section" spacing rules need :has() */
.elementor-element:has(> .elementor-container .outcomes) + .elementor-element .section,
.elementor-section:has(.outcomes) + .elementor-section .section { padding-top: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); }
