/* ARN Management: WordPress and Elementor additions.
   site.css is the approved static site's stylesheet, copied unchanged. This file only adds what WordPress brings:
   Elementor's wrappers around the ARN sections, the admin bar, and the Elementor Pro form skinned as the static form. */

/* ---------- Elementor wrappers around ARN sections: they add nothing.
   Each section sits in an Elementor Div block (e-div-block) with its own padding, gap, min-width and flex layout;
   around an ARN widget all of it is reset and the block flows like a plain div, so section spacing matches the
   static page exactly. Elementor's --gap would also leak into the design's --gap token, so it is set again. */
.elementor .e-con:has(> .elementor-widget[class*="elementor-widget-arn-"]),
.elementor .e-con:has(> .e-con-inner > .elementor-widget[class*="elementor-widget-arn-"]){
  --padding-top:0px;--padding-right:0px;--padding-bottom:0px;--padding-left:0px;--padding-block-start:0px;--padding-block-end:0px;--padding-inline-start:0px;--padding-inline-end:0px;
  --content-width:100%;--width:100%;--display:block;
  display:block!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;gap:0!important;row-gap:0!important;column-gap:0!important;
  border:0;border-radius:0;background:none;box-shadow:none;max-width:none;width:100%}
.elementor .e-con:has(> .e-con-inner > .elementor-widget[class*="elementor-widget-arn-"]) > .e-con-inner{display:block;max-width:none;padding:0;gap:0}
.elementor-widget[class*="elementor-widget-arn-"]{display:block;width:100%;max-width:100%;margin:0;padding:0;--gap:18px}
.elementor .elementor-widget[class*="elementor-widget-arn-"]:not(:last-child){margin-block-end:0}
.elementor-widget[class*="elementor-widget-arn-"] > .elementor-widget-container{margin:0;padding:0}

/* The static page's sibling rules (.sec + .sec and friends) across the Div blocks: in Elementor every section has its
   own block, so the rules are repeated for "a block whose section is X, followed by a block whose section is Y". */
.e-con:has(> .elementor-widget > .sec) + .e-con > .elementor-widget > .sec{padding-top:0}
.hz .e-con:has(> .elementor-widget > .sec) + .e-con > .elementor-widget > .sec{padding-top:clamp(60px,7.4vw,136px)}
.hx .e-con:has(> .elementor-widget > .sec) + .e-con > .elementor-widget > .sec{padding-top:clamp(64px,8.4vw,150px)}
.e-con:has(> .elementor-widget > .hz-sol) + .e-con > .elementor-widget > .hz-sol{padding-top:0}

/* Elementor's global element rules must not change the design's links, pictures and lists */
body.arn{overflow-x:clip}

/* ---------- admin bar: the sticky header sits below it */
.admin-bar .hdr{top:32px}
@media (max-width:782px){.admin-bar .hdr{top:46px}}
@media (max-width:600px){.admin-bar .hdr{top:0}}

/* ---------- forms: Elementor Pro's form, skinned as the static form (site.css .form styles it once these wrappers
   step aside). The template's wrappers take no space; the form grid holds the field groups directly. */
.arn-ftpl,.arn-ftpl > .elementor,.arn-ftpl .e-con,.arn-ftpl .e-con-inner,.arn-ftpl .elementor-widget-form,.arn-ftpl .elementor-widget-form > .elementor-widget-container{display:contents!important}
.form.elementor-form .elementor-form-fields-wrapper{display:contents!important;margin:0!important}
.form.elementor-form .elementor-field-group{display:block;padding:0;margin-bottom:0;width:auto;max-width:none;flex:none}
.form.elementor-form .elementor-field-group.row{display:flex}
.form.elementor-form .elementor-col-100,.form.elementor-form .full{grid-column:1/-1}
.form.elementor-form .elementor-field-label{display:block;padding:0;line-height:inherit}
.form.elementor-form .elementor-field-type-html{order:2}
.form.elementor-form .elementor-field-type-html .small{margin:0}
.form.elementor-form .elementor-field-type-submit{order:1}
.form.elementor-form input,.form.elementor-form select,.form.elementor-form textarea{min-height:0}
.form.elementor-form .row .cta{flex:none}
/* messages: Elementor's own (server reply, field errors) in the static form's message style */
.form.elementor-form > .elementor-message,.form.elementor-form .elementor-message{grid-column:1/-1;order:3;margin:0;font-size:var(--t-xs);font-weight:var(--fw-label);color:var(--ink);line-height:1.5}
.form.elementor-form .elementor-message::before{display:none}
.form.elementor-form .elementor-message-success{color:var(--leaf)}
.form.elementor-form .elementor-help-inline{display:block;margin-top:6px}
.form.elementor-form .elementor-error input,.form.elementor-form .elementor-error select,.form.elementor-form .elementor-error textarea{border-color:var(--ink);box-shadow:0 0 0 3px color-mix(in srgb,var(--ink) 12%,transparent)}
.form.elementor-form.elementor-form-waiting .cta{opacity:.7;pointer-events:none}
.forest .form.elementor-form .elementor-message{color:var(--on-dark)}

/* ---------- phase 2, family A (pillar and audience pages), shared by every page family.
   Elementor's ".elementor img{height:auto;max-width:100%;border:none;border-radius:0;box-shadow:none}" outranks the
   design's one-class picture rules (.dx-img, .side-ph ...). The same declarations as site.css, at img.class weight
   (equal to Elementor's and later), so the pictures keep the static look. Generated from site.css: every one-class rule
   for a picture class that sets one of those properties. */
img.dx-img{height:100%}
img.spot-ph{height:100%}
img.side-ph{border-radius:var(--r) var(--r-arc) var(--r) var(--r)}
@media (max-width:900px){img.side-ph{max-width:560px}}
img.pair-ph{border-radius:var(--r) var(--r-arc) var(--r) var(--r)}
img.po-img{border-radius:.6em}
img.ad-img{border-radius:.6em}
img.rc-logo{height:auto;max-width:190px}
img.by-ph{height:48px;border-radius:50%}
img.sol-hero{height:auto;border-radius:var(--r) clamp(60px,7vw,120px) var(--r) var(--r);box-shadow:var(--sh-2,0 24px 60px color-mix(in srgb,var(--forest) 30%,transparent))}
img.sol-logo{height:clamp(40px,3.4vw,58px)}

/* ---------- phase 2, family C (Partners, About, Contact, audit, case study)
   Elementor's frontend sets every figure inside a widget to margin 0 (.elementor .elementor-widget:not(...) figure);
   the case study's screenshots keep the space site.css gives them (.shotfig). */
.elementor .elementor-widget .post2 .prose figure.shotfig{margin:1.6em 0}
/* Elementor's frontend removes the shadow from every link (.elementor a{box-shadow:none}); the featured case study's
   screenshot is a link with the site's shadow (site.css .case1-shot). */
.elementor a.case1-shot{box-shadow:0 24px 50px -30px color-mix(in srgb,var(--ink) 55%,transparent)}

/* ---------- phase 3: a logo image from Customize > Site Identity > Logo replaces the typographic lockup (arn_logo()).
   It takes the lockup's place and height; without one, nothing here applies. */
.lock.has-img{align-items:center;padding-top:0}
.lock.has-img img.lock-img{display:block;width:auto;height:1.7em;max-width:min(240px,50vw);object-fit:contain}
.ftr .lock.has-img img.lock-img{height:1.9em}
