/* WordPress / Elementor compatibility layer — hand-written part; scripts/wp-package.js appends the generated part for the original design (assets/css/main.css is the unmodified site CSS).
   1. On the live site, Elementor's wrapper boxes around the "פלא" widgets are removed from layout (display: contents),
      so the page behaves exactly like the static HTML (incl. the sticky header). In the editor they stay as boxes.
   2. Elementor's frontend CSS is not loaded on pages built only from "פלא" widgets (inc/assets.php). Where it is loaded,
      the generated block at the end restores the design's link/image rules that Elementor's resets would override.
   3. Layout for the two pieces the static site did not have: pagination and previous/next post. */

body:not(.elementor-editor-active) .pela-tpl,
body:not(.elementor-editor-active) [data-elementor-type]:has(> .pela-root),
body:not(.elementor-editor-active) .e-con.pela-root,
body:not(.elementor-editor-active) .pela-root > .e-con-inner,
body:not(.elementor-editor-active) .elementor-widget[class*="elementor-widget-pela-"],
body:not(.elementor-editor-active) .elementor-widget[class*="elementor-widget-pela-"] > .elementor-widget-container { display: contents; }

/* Editor: wrappers are real boxes; keep them visually neutral */
.elementor-editor-active .e-con.pela-root { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; padding: 0; gap: 0; max-width: none; }
.elementor-editor-active .elementor-widget[class*="elementor-widget-pela-"] { width: 100%; margin: 0; }
.elementor-editor-active .pela-tpl--header .site-header { position: relative; }

/* Elementor frontend resets (.elementor a / .elementor img): see the generated block at the end of this file */

/* Admin bar: the sticky header sits below it */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

/* New: pagination + previous / next article (built from existing button / card components) */
.pagination { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.pagination__current { pointer-events: none; }
.post-nav .grid > span:empty { display: none; }
@media (max-width: 639.98px) { .post-nav .grid { grid-template-columns: 1fr; } }

/* WordPress block markup inside articles: neutral to .prose */
.prose .wp-block-heading { margin-inline: 0; }

/* ---- Generated by scripts/wp-package.js from assets/css/main.css ---- */
:where(.elementor) a:not([class]) { text-decoration-line: underline; text-decoration-thickness: 1px; }
:where(.elementor) a:not([class]):hover { text-decoration-thickness: 2px; }
.elementor .brand img { height:auto; }
.elementor .hero-visual__photo img { height:100%; }
.elementor .breadcrumbs a { text-decoration:none; }
.elementor .post-card__media img { height:100%; }
.elementor .post-card__title a { text-decoration:none; }
.elementor .article-meta__author img { height:2.75rem; border-radius:50%; }
.elementor .article-meta__author a { text-decoration:none; }
.elementor .author-box img { height:4.5rem; border-radius:50%; }
.elementor .toc a { text-decoration:none; }
.elementor .site-footer a { text-decoration:none; }
.elementor .story-closing__media img { height:100%; }
