/* devCode: lets Elementor's native widgets (Heading, Text Editor, Button, Image, Accordion)
   use the site design in site.css. Loaded after site.css.
   Rules use low specificity on purpose: site.css section rules and anything set in the
   Elementor panel still win. */

/* Links inside page content are underlined, as before (.syful-sec a). */
.syf-native a{text-decoration:underline}

/* ---------- Heading widget: restore the site's heading spacing ---------- */
:where(h1).elementor-heading-title{line-height:1.2;margin-bottom:24px}
:where(h2).elementor-heading-title{line-height:1.25;margin-bottom:20px}
:where(h3).elementor-heading-title{line-height:1.4;margin-bottom:13px}
:where(p,div,span).elementor-heading-title{line-height:inherit}

/* ---------- Text Editor widget ----------
   site.css removes the bottom margin of the last paragraph in .about-grid; with one
   paragraph per widget that would hit every widget, so keep it where more follows. */
.about-grid .elementor-widget-text-editor:not(:last-child) p:last-child{margin-bottom:18px}
.about-grid p.eyebrow:last-child{margin-bottom:16px}
/* "On this page" links: the paragraph around them adds no space. */
.syf-native .page-aside .elementor-widget-text-editor p{margin:0}

/* ---------- Text link (Button widget with CSS class syf-textlink) ---------- */
:where(.syf-textlink) .elementor-button{display:inline;background:none;border:0;border-radius:0;padding:0;color:var(--navy);font-family:inherit;font-size:inherit;font-weight:400;line-height:inherit;letter-spacing:inherit;text-align:left;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;transition:color .15s ease;fill:currentColor}
:where(.syf-textlink,.syf-button) .elementor-button :is(.elementor-button-content-wrapper,.elementor-button-text){display:inline}
.syf-textlink .elementor-button:is(:link,:visited,:hover,:focus){color:var(--navy);background:none}
.tone-navy .syf-textlink .elementor-button:is(:link,:visited,:hover,:focus){color:#fff}
/* In a row (section heading, contact band) the old link was a flex item. */
.syf-native :is(.section-head,.wrap)>.elementor-widget.syf-textlink{display:flex}

/* ---------- Button (Button widget with CSS class syf-button / syf-button-outline) ---------- */
:where(.syf-button) .elementor-button{display:inline-block;background:var(--navy);border:1px solid var(--navy);border-radius:0;padding:11px 23px;color:#fff;font-family:inherit;font-size:1rem;font-weight:400;line-height:1.7;letter-spacing:inherit;text-decoration:none;fill:currentColor}
.syf-button .elementor-button:is(:link,:visited,:hover,:focus){color:#fff;text-decoration:none}
.syf-button .elementor-button:hover{background:var(--deep)}
.syf-button-outline .elementor-button,.syf-button-outline .elementor-button:hover{background:transparent}
.syf-button-outline .elementor-button:is(:link,:visited,:hover,:focus){color:var(--navy)}
.hero .syf-button .elementor-button,.cv-top .syf-button .elementor-button{background:#fff;border-color:#fff}
.hero .syf-button .elementor-button:is(:link,:visited,:hover,:focus),.cv-top .syf-button .elementor-button:is(:link,:visited,:hover,:focus){color:var(--navy)}
.hero .syf-button-outline .elementor-button{background:transparent;border-color:#C4CEE0}
.hero .syf-button-outline .elementor-button:is(:link,:visited,:hover,:focus){color:#fff}

/* ---------- Row containers: same direction rules as site.css (Elementor's own rule is stronger) ---------- */
.syf-native .e-con:is(.section-head,.actions,.cv-top),.syf-native.contact-band .e-con.wrap{flex-direction:row}
@media(max-width:780px){.syf-native .e-con.cv-top,.syf-native.contact-band .e-con.wrap{flex-direction:column}}
@media(max-width:420px){.syf-native .e-con.section-head{flex-direction:column}}

/* ---------- Containers in a row keep their natural width (like the old divs) ---------- */
.syf-native :is(.section-head,.actions,.cv-top)>.e-con,.syf-native.contact-band .wrap>.e-con{width:auto}

/* ---------- Content blocks ----------
   On the live HTML pages these blocks were <section> elements, and the old integration
   rule (body.syful-site .elementor-widget-html section{margin:0}) removed their margins.
   Keep that look. */
.syf-native .e-con.content-block{margin:0}
.journey-category>.elementor-widget-heading h2.elementor-heading-title{margin-bottom:12px}

/* ---------- Accordion widget (CSS class syf-details): looks like the old <details> link ---------- */
.syf-native .syf-details .e-n-accordion-item{display:block}
.syf-native .syf-details .e-n-accordion-item-title{display:list-item;list-style:revert;padding:0;border:0;border-radius:0;background:none;gap:0;justify-content:normal;color:var(--navy);font-size:1rem;line-height:1.7;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.syf-native .syf-details :is(.e-n-accordion-item-title-header,.e-n-accordion-item-title-text){display:inline;color:inherit;font:inherit;text-decoration:inherit}
.syf-native .tone-navy .syf-details .e-n-accordion-item-title{color:#fff}
.syf-native .syf-details .e-n-accordion-item-title-icon{display:none}
/* Open/close without Elementor's height animation (it measured the block layout wrong). */
.syf-native .syf-details details.e-n-accordion-item{height:auto!important;overflow:visible!important}

/* ---------- Contact form (Essential Addons "Contact Form 7" widget inside .syful-form) ----------
   Same look as the old form; EA's own form styles are neutralised. */
.syf-native .e-con.syful-form{margin-top:52px}
.syf-native .syful-form .eael-contact-form-7 .wpcf7-form p{display:block;margin:0 0 4px}
.syf-native .syful-form .eael-contact-form-7 :is(input[type=text],input[type=email],textarea){width:100%;max-width:100%;height:auto;margin:6px 0 0;padding:10px 12px;border:1px solid #AAB7C7;border-radius:0;background:#fff;color:var(--ink);font:inherit;font-size:1rem;box-shadow:none}
.syf-native .syful-form .eael-contact-form-7 textarea.wpcf7-form-control{height:150px}
.syf-native .syful-form .eael-contact-form-7 input[type=submit]{width:auto;height:auto;margin:0;padding:11px 23px;border:1px solid var(--navy);border-radius:0;background:var(--navy);color:#fff;font:inherit;font-size:1rem;cursor:pointer}
.syf-native .syful-form .eael-contact-form-7 input[type=submit]:hover{background:#132343}

/* ---------- Image widget ---------- */
body.syful-site .e-con>.elementor-widget.hero-portrait{max-width:380px}
.hero-portrait img,.conference-photo img{max-width:100%}
.syf-native .conference-photo figcaption{margin-bottom:0;text-align:left}

@media(max-width:780px){
  body.syful-site .e-con>.elementor-widget.hero-portrait{max-width:310px}
}
@media(max-width:420px){
  :where(.syf-button) .elementor-button{padding:10px 18px}
}
@media print{
  .cv-top .syf-button,.syf-print{display:none!important}
}
