/* ==========================================================================
   Orbit — Elementor bridge

   Maps Elementor's generated custom properties onto ours so a colour is
   defined in exactly one place. An editor choosing "Primary" in the editor
   and a stylesheet reading var(--primary) resolve to the same value, and
   changing tokens.css changes both.
   Version: 1.3.1
   ========================================================================== */

.elementor-kit-1,
:root {
  --e-global-color-primary:   var(--primary);
  --e-global-color-secondary: var(--deep);
  --e-global-color-text:      var(--ink);
  --e-global-color-accent:    var(--mint);

  --e-global-typography-primary-font-family:   var(--font-display);
  --e-global-typography-secondary-font-family: var(--font-display);
  --e-global-typography-text-font-family:      var(--font-body);
  --e-global-typography-accent-font-family:    var(--font-body);
}

/* Elementor's container defaults, aligned to the grid in tokens.css.
   
   Scoped to BOXED containers only. Written against every .e-con, this capped
   the full-width hero row at 1280 and left-aligned it, so the artwork stopped
   231px short of the right edge on a 1536px screen and the band ended in dead
   paper. A container that has been asked to be full width has said what it
   wants; a default must not overrule it. W-10 §5 · defect L-19. */
.elementor-section.elementor-section-boxed > .elementor-container,
.e-con.e-con-boxed { max-width: var(--container); }
.e-con.e-con-full { max-width: none; }

.elementor-widget-heading .elementor-heading-title { font-family: var(--font-display); }
.elementor-widget-text-editor { font-family: var(--font-body); line-height: var(--lh-body); }
/* The measure is a READING constraint. It belongs on prose and on nothing
   else: applied to everything it squeezed the definition table on Who It's
   For to 720px, which put "Everything above has to agree, at the same moment,
   in every place" onto four cramped lines beside an empty half-section.
   W-08 defect L-11. */
.elementor-widget-text-editor > * { max-width: var(--measure); }
.elementor-widget-text-editor > :is(table, figure, img, svg, hr) { max-width: none; }
.elementor-widget-text-editor > table { width: 100%; }

/* ---- Buttons -----------------------------------------------------------

   Elementor puts a widget's custom classes on the wrapper <div>, never on the
   <a class="elementor-button"> inside it:

     <div class="... btn btn--secondary elementor-widget-button">
       <a class="elementor-button ...">

   So "btn btn--secondary" painted a bordered, rounded, 48px-tall box AROUND
   Elementor's own button — the double outline on the hero's secondary button —
   and "btn btn--primary" wrapped a green box around a green box, doubling the
   padding.

   The wrapper is neutralised and the treatment forwarded to the anchor, which
   is the element that is actually the control. The class names stay where the
   builder puts them, so nothing in the page documents has to change.
   W-08 defect L-10. */
.elementor-widget-button.btn {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
  transition: none;
}
.elementor-widget-button.btn > .elementor-button {
  border: 2px solid transparent;
  font-weight: 600;
}
.elementor-widget-button.btn--primary > .elementor-button {
  background-color: var(--primary); color: var(--white);
}
.elementor-widget-button.btn--primary > .elementor-button:hover {
  background-color: var(--primary-hover); color: var(--white);
}
.elementor-widget-button.btn--secondary > .elementor-button {
  background-color: transparent; color: var(--primary); border-color: var(--primary);
}
.elementor-widget-button.btn--secondary > .elementor-button:hover {
  background-color: var(--mist); color: var(--primary-hover);
}
.elementor-widget-button.btn--on-dark > .elementor-button {
  background-color: var(--white); color: var(--deep);
}
.elementor-widget-button.btn--on-dark > .elementor-button:hover {
  background-color: var(--mint-light); color: var(--deep);
}

/* Elementor buttons adopt the theme button so there is one button on the
   site, not two that look similar. */
.elementor-button {
  min-height: 48px; padding: 0 var(--s-5);
  border-radius: var(--r-input);
  font-family: var(--font-body); font-size: var(--t-small); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--d-micro) var(--ease), color var(--d-micro) var(--ease);
}
.elementor-button:active { transform: translateY(1px); }

/* Elementor sets its own focus styling on some controls. The dual ring wins. */
.elementor a:focus-visible,
.elementor button:focus-visible,
.elementor .elementor-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--white) inset;
}

/* Icon boxes and lists — the widgets that carry the outcome tiles and the
   checklist on How We Build. */
.elementor-widget-icon-box .elementor-icon-box-title { font-family: var(--font-display); }
.elementor-widget-icon-list .elementor-icon-list-text { font-size: var(--t-body); }

/* Accordions are used for the mobile table of contents. Elementor's default
   heading is a div; this keeps the hit area at 48px either way. */
.elementor-accordion .elementor-tab-title { min-height: 48px; display: flex; align-items: center; }

/* Elementor's animations are off by design — nothing on this site moves
   without a user action. */
.elementor-invisible { visibility: visible !important; }
