/* ============================================================
   Datum × Elementor
   Makes Elementor containers/widgets behave like the original
   hand-written markup, so assets/site.css renders unchanged.
   Containers created by the importer carry the class "dr".
   New containers you add in Elementor are NOT affected — they
   keep normal Elementor behaviour.
   ============================================================ */

/* ---- structural containers: neutral wrappers (block flow, no padding/gap) */
body.datum .e-con.dr{
  --padding-top:0px;--padding-right:0px;--padding-bottom:0px;--padding-left:0px;
  --gap:0px;--row-gap:0px;--column-gap:0px;
  --width:auto;--min-height:0;--flex-wrap:nowrap;
  --container-widget-width:auto;--container-widget-flex-grow:0;
  display:block;
}
body.datum .e-con.dr > .elementor-widget{max-width:none;width:auto}
body.datum .e-con.dr{max-width:none}
body.datum .e-con.dr.wrap{max-width:var(--maxw)}
body.datum .e-con.dr.article{max-width:var(--readw)}
body.datum .e-con.dr > .elementor-widget:not(:last-child){margin-block-end:0}

/* restore the layouts that are grids / flex in the original design */
body.datum .e-con.dr.cards{display:grid}
body.datum .e-con.dr.split{display:grid}
body.datum .e-con.dr.card{display:flex;flex-direction:column}
body.datum .e-con.dr.body{display:flex;flex-direction:column;flex:1 1 auto}
body.datum .e-con.dr.body > .elementor-widget-text-editor{flex:1 1 auto;display:flex;flex-direction:column}
body.datum .e-con.dr.m0{margin:0}
body.datum .e-con.dr.wrap{margin-inline:auto}

/* ---- headings */
body.datum .elementor-widget-heading .elementor-heading-title{line-height:1.08;font-family:var(--cond)}
body.datum .elementor-widget-heading .elementor-heading-title a{color:inherit}
body.datum .blk > .wrap > .elementor-widget-heading h2.elementor-heading-title{
  font-size:clamp(1.6rem,1.2rem + 1.55vw,2.35rem);max-width:24ch;margin-bottom:0.55rem;letter-spacing:-.035em}
body.datum .center .elementor-heading-title{margin-inline:auto}

/* ---- text editor */
body.datum .elementor-widget-text-editor{color:inherit;font-family:inherit}

/* ---- images */
body.datum .elementor-widget-image{text-align:left}
body.datum .dr-img img,
body.datum .shot img{display:block;width:100%}
body.datum .card .dr-img img{border-radius:0;border-bottom:1px solid #d6e4f2;box-shadow:none;aspect-ratio:4/3;object-fit:cover;height:auto}
body.datum .shot img{border:0;border-radius:0;box-shadow:none;height:auto}
body.datum .shot figure.wp-caption{margin:0;max-width:100%}
body.datum .shot .widget-image-caption{
  display:block;margin:0;padding:0.55rem 0 0;text-align:left;
  font-size:0.83rem;color:var(--graphite-soft);font-family:var(--sans);font-style:normal;line-height:1.6}
body.datum .shot.elementor-widget-image{display:block}

body.datum .article .shot.elementor-widget,
body.datum .e-con.dr.article > .shot.elementor-widget:not(:last-child){margin-block:1.8rem}

/* ---- buttons (Elementor Button widget styled as .btn) */
body.datum .dr-btn .elementor-button{
  display:inline-block;border:0;border-radius:.65rem;
  background:linear-gradient(135deg,#256cff,#168eff);color:#fff;fill:#fff;
  font-family:var(--cond);font-weight:600;font-size:1rem;line-height:1.6;
  padding:0.62rem 1.15rem;text-decoration:none;cursor:pointer;
  box-shadow:0 9px 25px rgba(35,111,255,.22);transition:transform .2s,box-shadow .2s}
body.datum .dr-btn .elementor-button:hover{background:linear-gradient(135deg,#1f61e8,#0f80e0);color:#fff;transform:translateY(-2px);box-shadow:0 13px 34px rgba(35,111,255,.32)}
body.datum .dr-btn .elementor-button:active{transform:translateY(1px)}
body.datum .dr-btn .elementor-button-text{flex-grow:0}
body.datum .closer .dr-btn .elementor-button{margin-top:0.6rem;background:#071426}
body.datum .closer .dr-btn .elementor-button:hover{background:#0c2445}
body.datum .dr-btn.elementor-widget.mt16,
body.datum .e-con.dr > .dr-btn.elementor-widget.mt16:not(:last-child){margin-top:1.6rem;margin-bottom:1em}

/* ---- shortcode widget wrappers */
body.datum .elementor-shortcode > .postlist{margin:0}

/* ---- form success message */
.sent-ok{font-family:var(--cond);font-weight:600;font-size:1.15rem;color:#176ecb;margin:0}

/* ---- Elementor editor: keep empty structural containers visible while editing */
body.elementor-editor-active .e-con.dr:empty{min-height:40px}

/* ---- small phones: keep the header on one line (brand suffix hides) */
@media(max-width:520px){.masthead .wrap{gap:.6rem}.mark span{display:none}.masthead .btn{white-space:nowrap}}
