/* =====================================================================
   Elementor bridge: lets the site design (site.css) style pages that are
   built from Elementor containers and widgets. Loaded after site.css.
   ===================================================================== */

/* Containers mirror the website's own boxes: no default padding, gaps or widths from Elementor */
.cog-page .e-con { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; }
.cog-page .e-con.e-flex { --width: auto; }   /* size like the website's boxes (allows full-bleed negative margins) */

/* Widget wrappers are invisible: site rules written for the website's boxes must not hit them */
.cog-page div.elementor-widget,
.cog-page div.elementor-widget > .elementor-widget-container { padding: 0; margin: 0; border: 0; background: none; box-shadow: none; }

/* Headings: spacing comes from the widget's own settings */
.cog-page .elementor-widget-heading .elementor-heading-title { margin: 0; padding: 0; font-family: inherit; }
.cog-page .elementor-widget-heading .elementor-heading-title a { color: inherit; }

/* Text Editor: the website's paragraphs and lists keep their own spacing; positioned items
   (e.g. the card over the hero photo) position against the website's box, not the widget */
.cog-page .elementor-widget-text-editor { color: inherit; font-family: inherit; position: static; }

/* Images fill their frame, as on the website */
.cog-page .elementor-widget-image.cog-img,
.cog-page .elementor-widget-image.cog-img > .elementor-widget-container { width: 100%; height: 100%; }
.cog-page .elementor-widget-image.cog-img img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }

/* Buttons and text links */
.cog-page .cog-btn .elementor-button { display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; transition: background-color .2s, color .2s, border-color .2s; }
.cog-page .cog-btn--link .elementor-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.cog-page .cog-btn .elementor-button-text { white-space: nowrap; }

/* FAQ (Nested Accordion): the website's FAQ styles (.faq details / summary) apply;
   Elementor's own icon, padding and borders are switched off */
.cog-page .cog-faq .e-n-accordion-item-title-icon { display: none; }
.cog-page .cog-faq .e-n-accordion-item-title { border-width: 0; background: none; justify-content: space-between; padding: 20px 0; }
.cog-page .cog-faq .e-n-accordion-item-title-header,
.cog-page .cog-faq .e-n-accordion-item-title-text { font: inherit; color: inherit; letter-spacing: inherit; }
.cog-page .cog-faq .cog-faq-pane { padding: 0; border: 0; }

/* Form error message from the server */
.form .err-msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 4px; background: #FDECEA; color: #B3261E; font-size: 14px; }
.screen-reader-text { position: absolute !important; left: -9999px; }

/* Plain pages (not built with Elementor) */
.entry { max-width: 820px; }
.entry p, .entry li { font-size: 16px; line-height: 1.7; }
