/* =========================================================
   DISTRICT 101 — Elementor compatibility
   Pages are built from Elementor containers that carry the
   design-system section classes (section, section-sm, hero,
   page-hero, bg-white, scallop-top…) plus "d101-sec".
   ========================================================= */

/* --- Section containers: let the design system own spacing --- */
.e-con.d101-sec{
  --padding-top:0px;--padding-right:0px;--padding-bottom:0px;--padding-left:0px;
  --gap:0px;--row-gap:0px;--column-gap:0px;--widgets-spacing:0px;--widgets-spacing-row:0px;--widgets-spacing-column:0px;
  --content-width:100%;--width:100%;
  display:block;position:relative;max-width:none;width:100%;
}
.e-con.d101-sec.section{padding:clamp(70px,9vw,130px) 0}
.e-con.d101-sec.section-sm{padding:clamp(44px,6vw,80px) 0}
.e-con.d101-sec.page-hero{padding:clamp(24px,3vw,40px) 0 clamp(40px,5vw,70px)}
.e-con.d101-sec.hero{padding:clamp(30px,5vw,70px) 0 clamp(70px,8vw,120px);overflow:hidden}
.e-con.d101-sec.d101-bleed{padding:0;overflow:visible;z-index:3}
.e-con.d101-sec.scallop-top{margin-top:-26px}
.e-con.d101-sec > .elementor-element,
.e-con.d101-sec > .e-con-inner > .elementor-element{margin:0!important;width:100%;max-width:none}
.e-con.d101-sec > .elementor-element + .elementor-element{margin-top:0}
.e-con.d101-sec .elementor-widget-container{margin:0;padding:0}

/* Stacked widgets inside a section: keep the rhythm of the original markup */
.d101-sec .elementor-widget-d101-heading + .elementor-element{margin-top:0}
.d101-sec .elementor-element + .elementor-widget-d101-buttons{margin-top:48px!important}
.d101-sec .elementor-widget-d101-cards + .elementor-widget-d101-cards,
.d101-sec .elementor-widget-d101-tiles + .elementor-widget-d101-tiles{margin-top:clamp(18px,2.4vw,28px)!important}
.d101-sec .elementor-widget-d101-packages + .elementor-widget-d101-cards{margin-top:40px!important}
.d101-sec .elementor-widget-d101-packages + .elementor-widget-d101-heading,
.d101-sec .elementor-widget-html + .elementor-widget-d101-heading{margin-top:clamp(50px,7vw,90px)!important}

/* Decorative shapes widget: out of the flow, fills its section */
.elementor-widget-d101-shapes{position:absolute!important;inset:0;pointer-events:none;z-index:0;margin:0!important;width:auto!important}
.elementor-widget-d101-shapes > .elementor-widget-container{position:absolute;inset:0}
.d101-shapes{position:absolute;inset:0}
.elementor-editor-active .elementor-widget-d101-shapes{pointer-events:none}
/* In the editor, a small "Shapes" tab lets you click the widget without blocking the rest of the section */
.elementor-editor-active .elementor-widget-d101-shapes::before{content:"✦ Shapes";position:absolute;left:8px;top:8px;z-index:5;pointer-events:auto;cursor:pointer;
  font:600 11px/1 Poppins,sans-serif;letter-spacing:.04em;color:#fff;background:#a554a1;padding:5px 8px;border-radius:6px;opacity:.85}
.elementor-editor-active .elementor-widget-d101-shapes .elementor-editor-element-settings{pointer-events:auto}
.d101-sec .wrap{position:relative;z-index:1}

/* Widgets render their own .wrap — make sure nothing else constrains width */
.d101-sec .elementor-widget-html .wrap{position:relative;z-index:1}

/* --- Editor: show reveal-animated content immediately --- */
.elementor-editor-active .reveal,.elementor-editor-active .reveal-pop{opacity:1!important;transform:none!important}
.elementor-editor-active .hl::after{transform:scaleX(1) rotate(-1.5deg)!important}

/* --- Elementor defaults that fight the design --- */
.d101 .elementor-widget-text-editor p:last-child{margin-bottom:0}
.d101 .elementor a{color:inherit}
.d101 .elementor .btn{color:var(--fg)}
.d101 .elementor .btn-white,.d101 .elementor .btn:not([class*="btn-blue"]):not([class*="btn-purple"]):not([class*="btn-green"]):not([class*="btn-navy"]):not(.btn-ghost){color:var(--fg,var(--ink))}
.elementor-widget-d101-marquee{overflow:visible}

/* Admin bar offset for the sticky header */
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}

/* Sub-head with a logo instead of an icon (Experiences page) */
.sub-head .ico.ico-logo{width:auto;height:auto;padding:10px 18px;border-radius:20px;background:#fff}
.sub-head .ico.ico-logo img{height:44px;width:auto}
.sub-head .sub-strong{font-weight:700;color:var(--ink)}

/* Event row highlighted by a deep link */
.ev-card.ev-target{box-shadow:0 0 0 4px var(--sun),var(--shadow)}

/* Prose (plain WordPress pages/posts) */
.d101-prose{max-width:820px}
.d101-prose h2{font-size:clamp(1.6rem,3vw,2.2rem);margin-top:1.4em}
.d101-prose a{text-decoration:underline;text-decoration-color:var(--sun);text-decoration-thickness:3px}
.d101-post{padding:24px 0;border-bottom:1px solid var(--hair)}
.form-err{color:#b3261e;font-weight:600}

/* Elementor's ".elementor img{height:auto}" ties with these — restore cover photos */
.d101 .act-img img,.d101 .arch-img img,.d101 .menu-photo img,.d101 .tile-img img,.d101 .f-img img,.d101 .ph-img img,.d101 .collage .ph img,.d101 .gallery figure img,.d101 .evf-img img{height:100%}
.d101 .elementor .shape{height:auto;border-radius:0}
.e-con.d101-sec.pt-0{padding-top:0}
