/* Shared rendering rules: the editor canvas and published content use the same geometry. */
.we-rich-content .is-multi-selected{outline:2px dotted var(--site-theme,#856690)!important;outline-offset:2px}
.we-rich-content>[data-layout=area].is-drop-target{background:rgba(133,102,144,.08)}
.we-rich-content>[data-layout=area].is-drop-target:after{content:'';position:absolute;inset:0 calc(-1 * var(--ew-content-inset,24px));border:2px dashed var(--site-theme,#856690);pointer-events:none;z-index:3}
.we-shell .we-rich-content>[data-layout=area].is-area-active{outline:none}
.we-rich-content>[data-layout=area].is-area-active:before{content:'';position:absolute;inset:0 calc(-1 * var(--ew-content-inset,24px));border:2px dotted var(--site-theme,#856690);pointer-events:none;z-index:2}
.we-rich-content>[data-layout=area].is-area-active:first-child:before{top:calc(-1 * var(--ew-content-inset,24px))}
:is(.ew-card,.we-rich-content){container:website-content / inline-size;font:16px/1.65 Arial,sans-serif;color:#29333d;overflow-wrap:anywhere}
:is(.ew-card,.we-rich-content),:is(.ew-card,.we-rich-content) *{box-sizing:border-box}
:is(.ew-card,.we-rich-content) h1{font-size:32px;line-height:1.25;font-weight:400;margin:0 0 20px;letter-spacing:normal;color:inherit}
:is(.ew-card,.we-rich-content) h2{font-size:25px;line-height:1.3;font-weight:700;margin:24px 0 14px;letter-spacing:normal;color:inherit}
:is(.ew-card,.we-rich-content) h3{font-size:20px;line-height:1.3;font-weight:700;margin:22px 0 12px;letter-spacing:normal;color:inherit}
:is(.ew-card,.we-rich-content) p{margin:0 0 18px;line-height:inherit}
:is(.ew-card,.we-rich-content) p:last-child{margin-bottom:0}
:is(.ew-card,.we-rich-content) ul,:is(.ew-card,.we-rich-content) ol{padding-left:26px;margin:0 0 18px}
:is(.ew-card,.we-rich-content) li{margin:6px 0}
:is(.ew-card,.we-rich-content) [data-layout=text-box]>:first-child{margin-top:0}
:is(.ew-card,.we-rich-content) [data-layout=text-box]>:last-child,:is(.ew-card,.we-rich-content) [data-layout=text-box]>:has(+[data-editor-control]:last-child){margin-bottom:0}
:is(.ew-card,.we-rich-content) [data-layout=text-box],:is(.ew-card,.we-rich-content) [data-layout=special-text]{min-height:var(--ew-box-height,0px);padding-inline:var(--ew-text-padding,10px);box-sizing:border-box}
:is(.ew-card,.we-rich-content) a.ew-rich-button{min-height:42px;font:700 14px/1.4 Arial,sans-serif;padding:10px 18px;letter-spacing:normal;text-decoration:none;text-align:center}
/* Wrapped button labels need text alignment as well as flex alignment on iOS. */
@supports (-webkit-touch-callout:none){
  .ew-button,a.ew-rich-button,[data-website-button="1"]{
    -webkit-text-size-adjust:100%;text-size-adjust:100%;
  }
}
.we-rich-editor[data-editing-mode=mobile] .we-rich-content{width:min(358px,100%);padding:23px;--ew-content-inset:23px;border:1px solid #d8dfe5}
.we-rich-editor[data-editing-mode=mobile] .we-rich-content{scrollbar-width:none}
.we-rich-editor[data-editing-mode=mobile] .we-rich-content::-webkit-scrollbar{display:none}
.we-rich-content [data-layout=area]{margin-bottom:0}
:is(.ew-card,.we-rich-content) [data-layout=area]:has(>[data-layout=text-box][data-element-flow="1"]:first-child):not(:has(>:not([data-layout=text-box],[data-editor-control]))){padding-block:16px;padding-inline:12px}
:is(.ew-card,.we-rich-content)>[data-layout=area]:not(:has([data-layout=home])){padding-inline:12px}
/* Keep text clear of edge hit areas in editor and published content alike. */
:is(.ew-card,.we-rich-content)>[data-layout=area]:not(:has([data-layout=home])) [data-layout=text-box][data-element-flow="1"]{padding-inline:10px;box-sizing:border-box}
.we-shell .we-rich-content button.we-block-resize{position:absolute;left:50%;transform:translateX(-50%);width:20px;max-width:20px;height:14px;min-width:0;min-height:14px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--site-theme,#856690);box-shadow:none;cursor:ns-resize;touch-action:none;z-index:3;opacity:0}
.we-block-resize:before{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:4px;height:2px;background:radial-gradient(circle,currentColor .7px,transparent .9px) 0 0 / 3px 2px}
.we-block-resize-top{top:0;transform:translate(-50%,-50%)!important}.we-block-resize-bottom{bottom:0;transform:translate(-50%,50%)!important}
.we-shell .we-rich-content button.we-block-resize-bottom,.we-shell .we-rich-content button.we-block-resize-top{left:calc(-1 * var(--ew-content-inset,24px));right:calc(-1 * var(--ew-content-inset,24px));width:auto;max-width:none}
.we-shell .we-rich-content button.we-block-resize-bottom{transform:translateY(50%)!important}
.we-shell .we-rich-content button.we-block-resize-top{transform:translateY(-50%)!important}
.we-shell .we-rich-content button.we-block-resize{height:14px!important;min-height:14px!important}
.we-rich-content>[data-layout=area]:is(.is-area-active,.is-block-selected):first-child:before{top:0}
.we-block-resize:before{width:24px;height:4px;background-size:4px 4px}
.we-shell .we-rich-content>[data-layout=area]>.we-block-resize{visibility:hidden;pointer-events:none}
.we-shell .we-rich-content>[data-layout=area]:is(.is-area-active,.is-block-selected)>.we-block-resize{visibility:visible;pointer-events:auto;opacity:1}
.we-rich-content [data-layout=area]+[data-layout=area]{margin-top:0}
.we-rich-content>[data-area-empty=true]:last-child{margin-top:24px}
.we-rich-editor[data-editing-mode=mobile] [data-layout=home]{gap:22px}
.we-rich-content .ew-banner:after{opacity:0;transition:opacity .15s}
.we-rich-content .ew-banner:is(:hover,.is-block-selected):after{opacity:1}
.we-rich-content [data-layout=text-box]:not(.is-block-selected),.we-rich-content [data-layout=special-text]:not(.is-block-selected){outline-color:transparent}
.we-rich-content [data-layout=text-box]:hover,.we-rich-content [data-layout=special-text]:hover{outline-color:#cbd3da}
.we-rich-content figure:not(.is-selected):not(.is-block-selected){outline-color:transparent}
.we-preview-size{text-align:center;padding:12px 12px 0;color:#61707c;font:12px/1.4 Arial,sans-serif}
.we-element-context{z-index:6000}
.we-shell .we-rich-content [data-layout=text-box].we-text-editing{min-height:var(--we-editing-min-height,0px)!important}
.we-shell .we-rich-content [data-layout=text-box]:not([data-box-height]),.we-shell .we-rich-content [data-layout=special-text]:not([data-box-height]){min-height:0}
:is(.ew-card,.we-rich-content) [data-layout=text-box][data-element-flow="1"]{width:var(--ew-box-width,max-content);max-width:100%;height:auto}
[data-layout=team][data-team-style=portraits] [data-layout=team-card]>[data-layout=text-box][data-element-flow="1"]{margin-inline:auto;text-align:center}
[data-layout=team][data-team-style=portraits] [data-layout=team-card]>[data-layout=text-box]>h3{margin:0!important}
[data-layout=team][data-team-style=portraits] [data-layout=team-card]>[data-layout=text-box]>p{font-size:14px;color:#61707c;margin:0}
:is(.ew-card,.we-rich-content) [data-element-floating="1"]{position:absolute;left:var(--ew-element-x,0%);top:var(--ew-element-relative-y,var(--ew-element-y,0px));z-index:var(--ew-element-z,2);margin:0!important}
.we-rich-content>[data-area-empty=true]:after{display:none}
.we-rich-content>[data-area-empty=true]{display:flex;align-items:center;justify-content:center;min-height:96px;cursor:default;outline:1px dashed #cbd3da;border-radius:8px;background:#fafbfc}
.we-shell .we-rich-content .we-select-template{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;color:var(--site-theme-text,#654b6e);border:1px solid #bda8c8;border-radius:7px;min-height:38px;padding:9px 16px;font:600 13px Arial,sans-serif;cursor:pointer}
[data-layout=special-text][data-element-flow="1"]{position:relative;margin-block:12px}
.we-button-element-tools:has(>button[hidden]){display:none}
.we-shell .we-rich-block-tools:has(>.we-gallery-element-tools:not([hidden])){display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px}
.we-shell .we-rich-block-tools:has(>.we-gallery-element-tools:not([hidden]))>strong{grid-column:1;grid-row:1;margin:0;padding:0}
.we-shell .we-rich-block-tools:has(>.we-gallery-element-tools:not([hidden]))>.we-gallery-element-tools{grid-column:2;grid-row:1;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0;flex-basis:auto}
.we-shell .we-rich-block-tools:has(>.we-gallery-element-tools:not([hidden]))>.we-rich-menu{grid-column:3;grid-row:1;margin:0;align-self:start}
.we-shell .we-rich-block-tools:has(>.we-gallery-element-tools:not([hidden]))>.we-element-tools{display:none}
.we-gallery-element-tools label{white-space:nowrap;flex-wrap:nowrap}
.we-shell .we-gallery-element-tools select{max-width:180px}
.we-shell .we-gallery-element-tools input[type=number]{width:58px}
@media(max-width:600px){.we-shell .we-rich-block-tools:has(>.we-gallery-element-tools:not([hidden])){grid-template-columns:minmax(0,1fr) auto}.we-shell .we-rich-block-tools:has(>.we-gallery-element-tools:not([hidden]))>.we-gallery-element-tools{grid-column:1/-1;grid-row:2}.we-shell .we-rich-block-tools:has(>.we-gallery-element-tools:not([hidden]))>.we-rich-menu{grid-column:2;grid-row:1}}
@container website-content (max-width:710px){
 :is(.ew-card,.we-rich-content) [data-layout=home],:is(.ew-card,.we-rich-content) [data-layout=home]:has(>[data-layout=banner]){grid-template-columns:1fr!important;gap:22px}
 :is(.ew-card,.we-rich-content) [data-layout=team],:is(.ew-card,.we-rich-content) [data-layout=two-columns]{grid-template-columns:1fr!important;gap:18px}
 :is(.ew-card,.we-rich-content) .ew-banner{min-height:0;height:auto;aspect-ratio:var(--ew-gallery-ratio,1.45)}
 :is(.ew-card,.we-rich-content) .ew-banner[data-gallery-ratio]{min-height:0;height:auto;aspect-ratio:var(--ew-gallery-ratio)}
 :is(.ew-card,.we-rich-content) .ew-banner[data-gallery-fit=fill],:is(.ew-card,.we-rich-content) .ew-banner[data-gallery-fit=edge]{height:auto}
 :is(.ew-card,.we-rich-content) .ew-inline-image{float:none!important;clear:both!important;width:var(--ew-image-mobile-width,100%);margin:12px auto 22px!important}
 :is(.ew-card,.we-rich-content) .ew-inline-image[data-mobile-align=left]{margin-left:0!important}
 :is(.ew-card,.we-rich-content) .ew-inline-image[data-mobile-align=right]{margin-right:0!important}
 :is(.ew-card,.we-rich-content):not([data-mobile-custom="1"]) [data-element-floating="1"]:not([data-element-moved="1"]){position:relative!important;left:auto!important;top:auto!important;margin:12px 0;max-width:100%}
 :is(.ew-card,.we-rich-content):not([data-mobile-custom="1"]) [data-layout=area][data-canvas-height]:not([data-canvas-locked="1"]){min-height:0}
}

@container website-content (min-width:711px){
 :is(.ew-card,.we-rich-content) [data-layout=home]:has(>[data-layout=banner]){grid-template-columns:minmax(0,var(--ew-home-text-share,1.15fr)) minmax(0,var(--ew-home-gallery-share,1fr));gap:32px}
 :is(.ew-card,.we-rich-content) [data-layout=home]:has(>[data-layout=banner][data-gallery-fit=edge]){gap:0}
 :is(.ew-card,.we-rich-content) [data-layout=team]{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
 :is(.ew-card,.we-rich-content) [data-layout=two-columns]{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
 :is(.ew-card,.we-rich-content) .ew-banner:not([data-gallery-ratio]){min-height:320px}
}

:is(.ew-card,.we-rich-content) a[data-website-button="1"][data-element-floating="1"][data-box-width]{width:var(--ew-box-width);min-height:var(--ew-box-height,0px);box-sizing:border-box}

/* Keep automatic text boxes beside floated photos, including their selection outline. */
:is(.ew-card,.we-rich-content) [data-layout="area"]>figure.ew-inline-image:is([data-align="left"],[data-align="right"]):not([data-element-floating="1"])~[data-layout="text-box"][data-element-flow="1"]:not([data-box-width]):not([data-element-moved="1"]){display:flow-root;width:auto;min-width:0}

:is(.ew-card,.we-rich-content) hr[data-layout="divider"]{border:0;border-top:1px solid #d8dfe5;width:100%;height:0;margin:24px 0;clear:both}

/* A single selection-toolbar layout keeps every element's removal controls central. */
.we-shell .we-rich-block-tools.we-selection-toolbar[role="group"]{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;box-sizing:border-box;width:100%}
.we-shell .we-selection-toolbar[role="group"]>strong{grid-column:1;grid-row:1;margin:0;padding:0;justify-self:start;font-size:12px;min-width:0}
.we-shell .we-selection-toolbar[role="group"]>.we-content-block-tools{grid-column:2;grid-row:1;justify-self:center;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;min-width:0}
.we-shell .we-selection-toolbar[role="group"]>.we-rich-menu{grid-column:3;grid-row:1;justify-self:end;margin:0}
.we-shell .we-selection-toolbar .we-element-tools{flex:0 1 auto;justify-content:center}
.we-shell .we-selection-toolbar.is-image-editing>.we-content-block-tools{display:flex!important}
.we-shell .we-selection-toolbar.is-image-editing>.we-content-block-tools>:not(.we-rich-image-tools){display:none!important}
.we-shell .we-selection-toolbar .we-gallery-element-tools{flex-basis:auto;justify-content:center}
.we-shell .we-selection-toolbar .we-rich-image-tools{order:initial;flex-basis:auto;justify-content:center}
@media(max-width:700px){.we-shell .we-rich-block-tools.we-selection-toolbar[role="group"]{grid-template-columns:minmax(0,1fr) auto}.we-shell .we-selection-toolbar[role="group"]>.we-rich-menu{grid-column:2;grid-row:1}.we-shell .we-selection-toolbar[role="group"]>.we-content-block-tools{grid-column:1/-1;grid-row:2;width:100%}}
.we-rich-editor[data-editing-mode="mobile"] .we-rich-content>[data-layout="area"][data-area-empty="true"]:last-child{position:relative;clear:both;height:auto;min-height:96px;margin-block:24px 0;flex-shrink:0}
@container website-content (max-width:710px){
 :is(.ew-card,.we-rich-content) [data-layout=home]{gap:24px;align-items:start}
 :is(.ew-card,.we-rich-content) [data-layout=home-copy]{width:100%;text-align:center;align-self:start}
 :is(.ew-card,.we-rich-content) [data-layout=home-copy]>[data-element-flow="1"]{width:100%;margin-inline:auto}
 :is(.ew-card,.we-rich-content) [data-layout=home-copy] h1{font-size:28px;line-height:1.2;text-align:center;margin-bottom:16px}
 :is(.ew-card,.we-rich-content) [data-layout=home-copy] [data-layout=special-text]{line-height:1.5;margin-block:12px 20px}
 :is(.ew-card,.we-rich-content) [data-layout=home-copy] .ew-button{display:flex;justify-content:center;width:100%;box-sizing:border-box;white-space:normal}
 :is(.ew-card,.we-rich-content) [data-layout=home]>.ew-banner{width:100%;height:auto;min-height:0;aspect-ratio:var(--ew-gallery-ratio,1.45);align-self:start}
 :is(.ew-card,.we-rich-content) [data-layout=home]:has(>[data-gallery-fit=edge]){gap:0}
 :is(.ew-card,.we-rich-content) [data-layout=home]:has(>[data-gallery-fit=edge])>[data-layout=home-copy]{padding-block:28px}
}

:is(.ew-card,.we-rich-content) a[href]:not([data-website-button="1"]){color:inherit}
:is(.ew-card,.we-rich-content) [data-layout="map"]{position:relative;display:block;width:100%;min-height:280px;margin:18px 0;border:1px solid #d8dfe5;border-radius:12px;overflow:hidden;background:#f4f6f8}
:is(.ew-card,.we-rich-content) [data-layout="map"] iframe{display:block;width:100%;height:340px;border:0}
.we-rich-content [data-layout="map"] iframe{pointer-events:none}
.we-map-edit{position:absolute;inset:0;margin:auto!important;width:max-content;height:40px;max-width:90%;box-shadow:0 3px 14px #29333d25!important}
.we-map-dialog{width:min(520px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid #d8dfe5;border-radius:14px;padding:24px}.we-map-dialog::backdrop{background:#17212f88}.we-map-dialog h2{margin-top:0}.we-map-dialog textarea{display:block;box-sizing:border-box;width:100%;margin:10px 0;padding:12px;font:inherit;border:1px solid #cbd3da;border-radius:8px}
.we-media-file{display:grid;place-items:center;height:150px;background:#f1eef5;color:#654b6e;font:bold 28px Arial,sans-serif;letter-spacing:.05em}
.ew-card [data-layout="map"]:not(:has(iframe)){display:none}
.we-rich-content [data-layout="map"]{cursor:pointer}
.we-rich-block-tools .we-map-toolbar-edit{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;white-space:nowrap;font-size:12px;min-height:32px;padding:6px 10px}
:is(.ew-card,.we-rich-content) [data-layout="area"]:has(>figure.ew-inline-image:is([data-align="left"],[data-align="right"]):not([data-element-floating="1"]))>[data-layout="text-box"][data-element-flow="1"]:not([data-element-moved="1"]){display:block;width:auto;max-width:none;overflow:visible}
.we-image-wrap-controls{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.we-image-wrap-controls label{display:flex;align-items:center;gap:5px;margin:0!important;font-size:11px;white-space:nowrap}.we-image-wrap-controls input[type="range"]{width:80px!important;padding:0!important}.we-image-wrap-controls output{min-width:32px;font-size:11px}.we-image-wrap-controls [aria-pressed="true"]{background:var(--site-theme-soft,#eee7f0)!important;border-color:var(--site-theme,#856690)!important}
.we-image-flow-guide{position:fixed;z-index:5000;border-left:2px solid #ca3684;pointer-events:none;color:#8f1e5b;background:transparent;font:600 12px Arial,sans-serif;white-space:nowrap;padding-left:5px}.we-image-flow-guide[hidden]{display:none}.we-rich-content .is-flow-dragging{opacity:.65;cursor:grabbing}.we-rich-content figure.ew-inline-image{cursor:grab;touch-action:none}
@container website-content (max-width:710px){:is(.ew-card,.we-rich-content) figure.ew-inline-image[data-mobile-align="left"]:not([data-element-floating="1"]){float:left!important;clear:left!important;margin:5px 16px 12px 0!important}:is(.ew-card,.we-rich-content) figure.ew-inline-image[data-mobile-align="right"]:not([data-element-floating="1"]){float:right!important;clear:right!important;margin:5px 0 12px 16px!important}}
@container website-content (max-width:710px){:is(.ew-card,.we-rich-content) [data-layout="area"]:has(>figure.ew-inline-image:is([data-mobile-align="left"],[data-mobile-align="right"]):not([data-element-floating="1"]))>[data-layout="text-box"][data-element-flow="1"]:not([data-element-moved="1"]){display:block;width:auto;max-width:none;overflow:visible}}
.we-rich-content[data-editing-mode="desktop"] figure.ew-inline-image:not([data-element-floating="1"]){width:var(--ew-image-width,100%)!important}
.we-rich-content[data-editing-mode="desktop"] figure.ew-inline-image[data-align="left"]:not([data-element-floating="1"]){float:left!important;clear:left!important;margin:5px 24px 18px 0!important}
.we-rich-content[data-editing-mode="desktop"] figure.ew-inline-image[data-align="right"]:not([data-element-floating="1"]){float:right!important;clear:right!important;margin:5px 0 18px 24px!important}
:is(.ew-card,.we-rich-content) [data-social-icon]{display:inline-block;width:18px;height:18px;margin-right:7px;vertical-align:-3px;background:currentColor;mask:var(--ew-social-icon) center/contain no-repeat;-webkit-mask:var(--ew-social-icon) center/contain no-repeat}
:is(.ew-card,.we-rich-content) [data-social-icon="facebook"]{--ew-social-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M14%2022v-9h3l.5-3H14V8c0-.9.3-1.5%201.6-1.5H18V3.8c-.4-.1-1.8-.2-3.3-.2-3.2%200-5.2%201.9-5.2%205.3V10H6v3h3.5v9z%22%2F%3E%3C%2Fsvg%3E")}
:is(.ew-card,.we-rich-content) [data-social-icon="instagram"]{--ew-social-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%225%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%2217.5%22%20cy%3D%226.5%22%20r%3D%221%22%20fill%3D%22currentColor%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E")}
:is(.ew-card,.we-rich-content) figure.ew-inline-image[data-image-margin-top][data-align][data-mobile-align][data-width]{margin-top:var(--ew-image-margin-top,0px)!important}
/* Unified canvas sizing: CSS owns natural height; the shared layout core
   provides only the minimum necessary to contain direct floating children. */
:is(.ew-card,.we-rich-content) :is([data-layout="area"],[data-canvas-height]){--ew-content-min-height:0px}
:is(.ew-card,.we-rich-content) [data-layout="area"]{position:relative;height:auto;min-height:max(var(--ew-canvas-height,0px),var(--ew-content-min-height,0px))}
:is(.ew-card,.we-rich-content) [data-layout="area"][data-canvas-locked="1"]{height:var(--ew-canvas-height);min-height:var(--ew-canvas-height)}
@container website-content (max-width:710px){:is(.ew-card,.we-rich-content):not([data-mobile-custom="1"]) [data-layout="area"][data-canvas-height]:not([data-canvas-locked="1"]){height:auto;min-height:var(--ew-content-min-height,0px)}}
:is(.ew-card,.we-rich-content) [data-layout="area"]>figure:is(.ew-inline-image,.ew-banner)[data-image-fill-block="1"]{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;height:100%!important;margin:0!important;float:none!important;border-radius:inherit}
:is(.ew-card,.we-rich-content) figure[data-image-fill-block="1"]>[data-image-frame],:is(.ew-card,.we-rich-content) figure[data-image-fill-block="1"]>img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border-radius:inherit}
:is(.ew-card,.we-rich-content) figure[data-image-fill-block="1"] figcaption{position:absolute;bottom:8px;left:8px;right:8px;margin:0;padding:4px 8px;background:#ffffffdb}
.we-block-appearance{display:flex;align-items:center;gap:6px}.we-block-appearance label{display:flex;align-items:center;gap:6px;white-space:nowrap;margin:0!important;font-size:11px}.we-block-appearance input[type="color"]{width:30px!important;height:28px;padding:2px!important}

/* Filled images reach the same edges as the content block selection boundary. */
:is(.ew-card,.we-rich-content)>[data-layout="area"]>figure:is(.ew-inline-image,.ew-banner)[data-image-fill-block="1"]{left:calc(-1 * var(--ew-content-inset,24px))!important;right:calc(-1 * var(--ew-content-inset,24px))!important;width:auto!important;clear:none!important}
:is(.ew-card,.we-rich-content) figure[data-image-fill-block="1"]>[data-image-frame="1"]{position:absolute;inset:0;height:100%!important;aspect-ratio:auto!important;border-radius:inherit}
.we-block-appearance{flex:0 0 auto}
.we-block-appearance label{position:relative;display:inline-flex!important;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #cbd3da;border-radius:7px;background:#fff;cursor:pointer}
.we-block-appearance label .we-rich-icon{width:19px;height:19px;pointer-events:none}
.we-block-appearance label input[type="color"]{position:absolute;inset:0;opacity:0;width:100%!important;height:100%!important;padding:0!important;cursor:pointer}
.we-block-appearance label:focus-within{outline:2px solid var(--site-theme,#856690)}
.we-block-appearance label:after{content:'';position:absolute;bottom:3px;left:7px;right:7px;height:3px;background:var(--we-block-colour,#fff);pointer-events:none}
.we-shell .we-rich-block-tools.we-selection-toolbar[role="group"]{display:flex;flex-wrap:wrap;gap:7px;min-width:0}
.we-shell .we-selection-toolbar[role="group"]>.we-content-block-tools{flex:1 1 200px;min-width:0;max-width:100%;display:flex;flex-wrap:wrap}
.we-shell .we-selection-toolbar[role="group"]>.we-rich-menu{flex:0 0 auto;margin-left:auto}
.we-shell .we-selection-toolbar.is-image-editing>.we-content-block-tools>.we-block-appearance:not([hidden]){display:flex!important}
.we-shell .we-selection-toolbar .we-delete-template-part .we-delete-template-label{display:none}
.we-shell .we-selection-toolbar .we-delete-template-part{width:34px;height:34px;padding:7px;flex:0 0 34px}
:is(.ew-card,.we-rich-content) [data-layout="area"]:has(>figure[data-image-fill-block="1"]){min-height:max(64px,var(--ew-canvas-height,240px),var(--ew-content-min-height,0px))!important}
:is(.ew-card,.we-rich-content)>[data-layout="area"]>figure:is(.ew-inline-image,.ew-banner)[data-image-fill-block="1"][data-align][data-width]{width:auto!important;margin:0!important;float:none!important}

/* Direct manipulation uses one rectangle for photos and galleries. */
:is(.ew-card,.we-rich-content) figure:is(.ew-inline-image,.ew-banner)[data-element-floating="1"][data-box-width]{width:var(--ew-box-width)!important;max-width:none!important;height:var(--ew-box-height)!important;min-height:0!important;margin:0!important;float:none!important;box-sizing:border-box}
:is(.ew-card,.we-rich-content) figure.ew-inline-image[data-element-floating="1"][data-box-height]>[data-image-frame="1"]{width:100%;height:100%;aspect-ratio:auto}
@container website-content (max-width:710px){:is(.ew-card,.we-rich-content):not([data-mobile-custom="1"]) figure:is(.ew-inline-image,.ew-banner)[data-element-floating="1"][data-box-width]{width:min(100%,var(--ew-box-width))!important;max-width:100%!important;height:auto!important;aspect-ratio:var(--ew-image-ratio,var(--ew-gallery-ratio,1.45))}}
:is(.ew-card,.we-rich-content) :is([data-layout="text-box"],[data-layout="special-text"],[data-layout="map"],hr[data-layout="divider"],a[data-website-button="1"])[data-element-floating="1"][data-box-width]{width:var(--ew-box-relative-width,var(--ew-box-width));max-width:none;box-sizing:border-box}
:is(.ew-card,.we-rich-content) :is([data-layout="map"],hr[data-layout="divider"],a[data-website-button="1"])[data-element-floating="1"][data-box-height]{height:var(--ew-box-height);min-height:0}
:is(.ew-card,.we-rich-content) [data-layout="map"][data-box-height] iframe{height:100%}
@container website-content (max-width:710px){:is(.ew-card,.we-rich-content):not([data-mobile-custom="1"]) :is([data-layout="text-box"],[data-layout="special-text"],[data-layout="map"],hr[data-layout="divider"],a[data-website-button="1"])[data-element-floating="1"][data-box-width]{max-width:100%}}
/* A dropped image/gallery owns its exact rectangle; no historical
   reference-width selector may override its stored width or height. */
:is(.ew-card,.we-rich-content) figure:is(.ew-inline-image,.ew-banner)[data-element-floating="1"]{
  translate:none!important;
  left:var(--ew-element-x,0%)!important;
  top:var(--ew-element-y,0px)!important;
}
/* Explicitly moved items keep their coordinates in the responsive canvas too. */
@container website-content (max-width:710px){
  :is(.ew-card,.we-rich-content):not([data-mobile-custom="1"]) figure:is(.ew-inline-image,.ew-banner)[data-element-floating="1"][data-element-moved="1"]{
    position:absolute!important;max-width:none!important;
    width:var(--ew-box-width)!important;height:var(--ew-box-height)!important;
    aspect-ratio:auto!important;margin:0!important;
  }
}

:is(.ew-card,.we-rich-content)>[data-layout="area"]:has(>figure[data-image-edge-width="1"]){padding-inline:0!important}
:is(.ew-card,.we-rich-content)>[data-layout="area"]>figure:is(.ew-inline-image,.ew-banner)[data-image-edge-width="1"][data-box-width]{left:calc(-1 * var(--ew-content-inset,24px))!important;width:calc(100% + 2 * var(--ew-content-inset,24px))!important;max-width:none!important;margin:0!important}
/* Page gutters belong to the visible first/last block boundaries in both views. */
:is(.ew-card,.we-rich-content):has(>[data-layout="area"]):not(.ew-footer-custom .ew-card,.we-footer-element .we-rich-content){--ew-content-inset:24px;padding:var(--ew-content-inset)}
@media(max-width:420px){.ew-card:has(>[data-layout="area"]):not(.ew-footer-custom .ew-card){--ew-content-inset:23px}}
.we-rich-editor[data-editing-mode="mobile"] .we-rich-content:has(>[data-layout="area"]){--ew-content-inset:23px}
:is(.ew-card,.we-rich-content):not(.ew-footer-custom .ew-card,.we-footer-element .we-rich-content)>[data-layout="area"]:first-child{--ew-block-start-inset:var(--ew-content-inset,24px)}
:is(.ew-card,.we-rich-content):not(.ew-footer-custom .ew-card,.we-footer-element .we-rich-content)>[data-layout="area"]:last-child,
.we-rich-content:not(.we-footer-element .we-rich-content)>[data-layout="area"]:has(+[data-area-empty="true"]:last-child){--ew-block-end-inset:var(--ew-content-inset,24px)}
/* Published blocks own their paint boundary. Negative horizontal insets retain
   edge-to-edge Fill block media, while internal top/bottom edges prevent a
   moved image or element from painting over the neighbouring content block. */
.ew-card:not(.ew-footer-custom .ew-card)>[data-layout="area"]{
  clip-path:inset(calc(-1 * var(--ew-block-start-inset,0px)) calc(-1 * var(--ew-content-inset,24px)) calc(-1 * var(--ew-block-end-inset,0px)) calc(-1 * var(--ew-content-inset,24px)));
}
.we-rich-content>[data-layout="area"]:is(.is-area-active,.is-block-selected):before{top:calc(-1 * var(--ew-block-start-inset,0px));bottom:calc(-1 * var(--ew-block-end-inset,0px))}
.we-shell .we-rich-content>[data-layout="area"]>.we-block-resize-top{top:calc(-1 * var(--ew-block-start-inset,0px))}
.we-shell .we-rich-content>[data-layout="area"]>.we-block-resize-bottom{bottom:calc(-1 * var(--ew-block-end-inset,0px))}
:is(.ew-card,.we-rich-content)>[data-layout="area"]>figure:is(.ew-inline-image,.ew-banner)[data-image-fill-block="1"]{top:calc(-1 * var(--ew-block-start-inset,0px))!important;bottom:calc(-1 * var(--ew-block-end-inset,0px))!important;height:calc(100% + var(--ew-block-start-inset,0px) + var(--ew-block-end-inset,0px))!important}
.we-rich-content>[data-layout="area"]:is(.is-area-active,.is-block-selected):first-child:before{top:calc(-1 * var(--ew-block-start-inset,0px))}
/* Edge-to-edge media follows the page card's outer corners. */
:is(.ew-card,.we-rich-content):not(.ew-footer-custom .ew-card,.we-footer-element .we-rich-content)>[data-layout="area"]:first-child{--ew-filled-top-radius:12px}
:is(.ew-card,.we-rich-content):not(.ew-footer-custom .ew-card,.we-footer-element .we-rich-content)>[data-layout="area"]:last-child,
.we-rich-content:not(.we-footer-element .we-rich-content)>[data-layout="area"]:has(+[data-area-empty="true"]:last-child){--ew-filled-bottom-radius:12px}
:is(.ew-card,.we-rich-content)>[data-layout="area"]>figure:is(.ew-inline-image,.ew-banner)[data-image-fill-block="1"]{border-radius:var(--ew-filled-top-radius,0px) var(--ew-filled-top-radius,0px) var(--ew-filled-bottom-radius,0px) var(--ew-filled-bottom-radius,0px)!important}
/* Frozen flow text keeps its original text inset when another element moves. */
/* Centre anchors follow the containing block instead of a saved left-edge percentage. */
:is(.ew-card,.we-rich-content) [data-element-anchor-x="center"][data-element-floating="1"]{left:50%!important;translate:-50% 0;margin-inline:0!important}
:is(.ew-card,.we-rich-content) [data-element-anchor-y="center"][data-element-floating="1"]{top:50%!important;translate:0 -50%!important;margin-block:0!important}
:is(.ew-card,.we-rich-content) [data-element-anchor-x="center"][data-element-anchor-y="center"][data-element-floating="1"]{translate:-50% -50%!important}
/* Filled galleries must stretch between both edges, regardless of a saved aspect ratio. */
:is(.ew-card,.we-rich-content)>[data-layout="area"]>figure:is(.ew-inline-image,.ew-banner)[data-image-fill-block="1"],
:is(.ew-card,.we-rich-content)>[data-layout="area"]>figure:is(.ew-inline-image,.ew-banner)[data-image-fill-block="1"][data-align][data-width]{width:calc(100% + 2 * var(--ew-content-inset,24px))!important;aspect-ratio:auto!important}

/* The template placeholder fills the same rectangle as its content block. */
.we-shell .we-rich-editor .we-rich-content>section[data-layout="area"][data-area-empty="true"]{display:flex;align-items:center;justify-content:center;min-height:120px;height:auto;flex-shrink:0;width:calc(100% + 2 * var(--ew-content-inset,24px));margin-inline:calc(-1 * var(--ew-content-inset,24px));margin-bottom:calc(-1 * var(--ew-content-inset,24px));padding:24px;background:#f3f4f6;border-radius:0 0 8px 8px;--ew-block-start-inset:0px;--ew-block-end-inset:0px}
.we-shell .we-rich-content>section[data-area-empty="true"]:is(.is-area-active,.is-block-selected):before{inset:0}
.we-shell .we-rich-content:has(>section[data-area-empty="true"]:only-child){display:grid;padding:0}
.we-shell .we-rich-editor .we-rich-content>section[data-layout="area"][data-area-empty="true"]:only-child{width:100%;height:100%;margin:0;border-radius:8px}
.we-shell .we-rich-content .we-select-template{margin:0;flex:0 0 auto}

/* Paint block backgrounds through the page gutters without moving their content. */
:is(.ew-card,.we-rich-content):not(.ew-footer-custom .ew-card,.we-footer-element .we-rich-content)>[data-layout="area"][data-canvas-background]{isolation:isolate}
:is(.ew-card,.we-rich-content):not(.ew-footer-custom .ew-card,.we-footer-element .we-rich-content)>[data-layout="area"][data-canvas-background]::after{content:'';display:block;position:absolute;top:calc(-1 * var(--ew-block-start-inset,0px));left:calc(-1 * var(--ew-content-inset,24px));right:calc(-1 * var(--ew-content-inset,24px));bottom:calc(-1 * var(--ew-block-end-inset,0px));background:inherit;border-radius:var(--ew-filled-top-radius,0px) var(--ew-filled-top-radius,0px) var(--ew-filled-bottom-radius,0px) var(--ew-filled-bottom-radius,0px);pointer-events:none;z-index:-1}

/* Home Gallery is a true free-positioning canvas. Its initial coordinates are
   presets, not a special layout mode. Every child belongs directly to the area. */
:is(.ew-card,.we-rich-content) section[data-layout="area"][data-home-gallery="1"]{
  position:relative;display:block;isolation:isolate;
  min-height:max(540px,var(--ew-canvas-height,540px),var(--ew-content-min-height,0px))!important;
  border-radius:12px;background:#fff;overflow:visible;
}
/* Before the first drag, the gallery covers the canvas. Once moved, the shared
   floating-figure geometry owns its exact left/top/width/height. */
:is(.ew-card,.we-rich-content) [data-home-gallery="1"]>figure.ew-banner[data-element-floating="1"]:not([data-image-fill-block="1"]):not([data-element-moved="1"]){
  position:absolute!important;left:var(--ew-element-x,0%)!important;
  top:var(--ew-element-y,0px)!important;translate:none!important;
  display:block;width:100%!important;height:100%!important;
  min-height:0!important;max-width:none!important;aspect-ratio:auto!important;
  margin:0!important;float:none!important;border-radius:inherit;
}
:is(.ew-card,.we-rich-content) [data-home-gallery="1"]>figure.ew-banner[data-element-floating="1"]:not([data-image-fill-block="1"]):not([data-element-moved="1"])>img{
  display:block;width:100%;height:100%;object-fit:cover;
}
/* The title and status are independent floating objects rather than children
   of a centred, grid-aligned home-copy wrapper. */
:is(.ew-card,.we-rich-content) [data-home-gallery="1"]>[data-layout="special-text"][data-element-floating="1"]:not([data-element-moved="1"]){
  position:absolute!important;left:var(--ew-element-x,15%)!important;
  top:var(--ew-element-y,0px)!important;translate:none!important;
  width:70%;max-width:70%;margin:0!important;text-align:center;
}
/* Text alignment is independent of drag state. Moving text must never
   silently switch it from centred to left-aligned. */
:is(.ew-card,.we-rich-content) [data-home-gallery="1"]>[data-layout="special-text"][data-element-floating="1"]{text-align:center}
:is(.ew-card,.we-rich-content) [data-home-gallery="1"]>[data-special-mode="event-name"]{
  font-family:'Trebuchet MS',Arial,sans-serif;font-size:48px;
  font-weight:700;line-height:1.15;letter-spacing:-.025em;color:#000;
}
:is(.ew-card,.we-rich-content) [data-home-gallery="1"]>[data-layout="special-text"]:not([data-special-mode="event-name"]){
  font-family:'Trebuchet MS',Arial,sans-serif;font-size:22px;
  line-height:1.5;color:#000;
}
:is(.ew-card,.we-rich-content) [data-home-gallery="1"]>a[data-website-button="1"][data-element-floating="1"]:not([data-element-moved="1"]){
  position:absolute!important;display:inline-flex!important;
  left:50%!important;top:var(--ew-element-y,365px)!important;
  translate:-50% 0!important;width:max-content!important;max-width:65%;
  margin:0!important;align-items:center;justify-content:center;
}
:is(.ew-card,.we-rich-content) [data-home-gallery="1"]>a[data-website-button="1"]{
  min-height:48px;padding:12px 24px;font-size:17px;
}
@container website-content (max-width:710px){
  :is(.ew-card,.we-rich-content) section[data-layout="area"][data-home-gallery="1"]{
    min-height:max(440px,var(--ew-canvas-height,0px),var(--ew-content-min-height,0px))!important;
  }
  :is(.ew-card,.we-rich-content) [data-home-gallery="1"]>[data-layout="special-text"][data-element-floating="1"]:not([data-element-moved="1"]){
    left:10%!important;width:80%;max-width:80%;
  }
  :is(.ew-card,.we-rich-content) [data-home-gallery="1"]>[data-special-mode="event-name"]:not([data-element-moved="1"]){font-size:34px}
  :is(.ew-card,.we-rich-content) [data-home-gallery="1"]>[data-layout="special-text"]:not([data-special-mode="event-name"]):not([data-element-moved="1"]){font-size:18px}
  :is(.ew-card,.we-rich-content) [data-home-gallery="1"]>a[data-website-button="1"][data-element-floating="1"]:not([data-element-moved="1"]){left:12%!important;max-width:76%}
}

/* The untouched Home Gallery preset has its own narrow-screen composition.
   A separately customised mobile canvas keeps the user's exact coordinates. */
@container website-content (max-width:710px){
  :is(.ew-card,.we-rich-content):not([data-mobile-custom="1"]) section[data-layout="area"][data-home-gallery="1"]{
    min-height:460px!important;display:flex!important;flex-direction:column;
    align-items:center;justify-content:center;gap:24px;
  }
  :is(.ew-card,.we-rich-content):not([data-mobile-custom="1"]) [data-home-gallery="1"]>[data-special-mode="event-name"][data-element-floating="1"]{
    width:86%;max-width:86%;font-size:32px;line-height:1.12;
  }
  :is(.ew-card,.we-rich-content):not([data-mobile-custom="1"]) [data-home-gallery="1"]>[data-layout="special-text"]:not([data-special-mode="event-name"])[data-element-floating="1"]{
    width:84%;max-width:84%;font-size:18px;
  }
  :is(.ew-card,.we-rich-content):not([data-mobile-custom="1"]) [data-home-gallery="1"]>a[data-website-button="1"][data-element-floating="1"]{
    width:max-content!important;max-width:86%;white-space:normal;text-align:center;
  }
}

/* Unified layout rules: CSS owns nested template heights; the area measurement
   service owns only floating children that belong directly to an area. */
:is(.ew-card,.we-rich-content) [data-layout="team"]{align-items:start;grid-auto-rows:auto}
:is(.ew-card,.we-rich-content) :is([data-layout="team-card"],[data-layout="column"],[data-layout="home-copy"],[data-layout="faq-answer"],[data-layout="callout"]){position:relative;min-width:0;height:auto}
:is(.ew-card,.we-rich-content) [data-layout="text-box"][data-element-flow="1"][data-box-width],
:is(.ew-card,.we-rich-content) [data-layout="special-text"][data-element-flow="1"][data-box-width]{width:min(100%,var(--ew-box-width));max-width:100%;box-sizing:border-box}
:is(.ew-card,.we-rich-content) :is([data-layout="text-box"],[data-layout="special-text"])[data-element-flow="1"][data-box-height]{height:auto;min-height:var(--ew-box-height)}

/* Directly dragged buttons stay independent of paragraph line boxes. */
:is(.ew-card,.we-rich-content) a[data-website-button="1"][data-element-floating="1"][data-element-moved="1"]{
  position:absolute!important;display:inline-flex!important;
  left:var(--ew-element-x,0%)!important;top:var(--ew-element-y,0px)!important;
  translate:none!important;margin:0!important;
  width:var(--ew-box-width,max-content)!important;
  max-width:none!important;
}
:is(.ew-card,.we-rich-content) figure:is(.ew-inline-image,.ew-banner)[data-element-floating="1"][data-element-moved="1"]{
  width:var(--ew-box-width)!important;height:var(--ew-box-height)!important;
  min-height:0!important;max-width:none!important;aspect-ratio:auto!important;
  position:absolute!important;margin:0!important;float:none!important;
}
/* Nested layout owners are also positioning containing blocks. Coordinates
   measured relative to a card/column must resolve relative to that same box. */
:is(.ew-card,.we-rich-content) :is([data-layout="team-card"],[data-layout="column"],[data-layout="home-copy"],[data-layout="callout"],[data-layout="faq-answer"]){position:relative}

/* Published free-position canvases use the exact width at which their pixel
   coordinates were authored. Without this, the larger public content card
   changes text wrapping and object dimensions, causing apparent overlaps.
   Narrow viewports can still shrink naturally. */
.ew-card>[data-layout="area"][data-design-width]{
  width:100%;max-width:var(--ew-design-width,100%);
  margin-left:auto;margin-right:auto;
}
.ew-card>[data-layout="area"][data-home-gallery="1"][data-design-width]{max-width:none}
/* Ordinary content follows its container's width. Home compositions retain
   their existing authored geometry and specialised gallery rules. */
.ew-card>[data-layout="area"][data-design-width]:not([data-home-gallery="1"]):not(:has([data-layout="home"])){max-width:none}
:is(.ew-card,.we-rich-content) [data-layout="text-box"][data-element-flow="1"]:not([data-box-width]):not([data-home-gallery="1"] *){width:100%}
:is(.ew-card,.we-rich-content) [data-layout="text-box"][data-element-flow="1"][data-box-reference-width]:not([data-home-gallery="1"] *){width:min(100%,var(--ew-box-relative-width,var(--ew-box-width)))}
/* A customised mobile Home Gallery retains its authored free positions. */
@container website-content (max-width:710px){
  :is(.ew-card,.we-rich-content)[data-mobile-custom="1"] [data-home-gallery="1"]>[data-element-floating="1"]:not([data-image-fill-block="1"]){
    position:absolute!important;top:var(--ew-element-y,0px)!important;
    margin:0!important;
  }
  :is(.ew-card,.we-rich-content)[data-mobile-custom="1"] [data-home-gallery="1"]>a[data-website-button="1"][data-element-floating="1"]:not([data-element-moved="1"]){
    left:50%!important;translate:-50% 0!important;
  }
  /* The inherited/default mobile view forms one naturally sized foreground
     group, so it remains vertically centred even when the title wraps. */
  :is(.ew-card,.we-rich-content):not([data-mobile-custom="1"]) [data-home-gallery="1"]>:is([data-layout="text-box"],[data-layout="special-text"],a[data-website-button="1"])[data-element-floating="1"]{
    position:relative!important;left:auto!important;top:auto!important;
    translate:none!important;margin:0!important;height:auto!important;
  }
}

/* Responsive rules inside a saved free-position area must measure the actual
   design canvas, not the much wider outer published card. */
:is(.ew-card,.we-rich-content)>[data-layout="area"][data-design-width]{
  container:website-content / inline-size;
}

/* Centre anchors are resolved after element-specific moved rules. */
:is(.ew-card,.we-rich-content) [data-element-anchor-x="center"][data-element-floating="1"]{left:50%!important;translate:-50% 0!important}
:is(.ew-card,.we-rich-content) [data-element-anchor-y="center"][data-element-floating="1"]{top:50%!important;translate:0 -50%!important}
:is(.ew-card,.we-rich-content) [data-element-anchor-x="center"][data-element-anchor-y="center"][data-element-floating="1"]{translate:-50% -50%!important}

/* Once a block edge has been dragged, its saved height is authoritative. Template
   defaults and measured child bounds must not stop the author making it shorter. */
:is(.ew-card,.we-rich-content) [data-layout="area"][data-canvas-locked="1"]{
  height:var(--ew-canvas-height)!important;
  min-height:var(--ew-canvas-height)!important;
}

/* Footer/template boundary: both are regular, independent document-flow blocks.
   Do not compensate for a negative template margin with another negative/positive
   margin: that allows the footer and template picker to paint over each other. */
.we-shell .we-rich-editor .we-rich-content > section[data-layout="area"][data-area-empty="true"]:has(+ [data-footer-block]) {
  position:relative;
  display:flex;
  width:calc(100% + 2 * var(--ew-content-inset,24px));
  height:auto;
  min-height:120px;
  margin:0 calc(-1 * var(--ew-content-inset,24px)) !important;
  padding:24px;
  flex-shrink:0;
  clear:both;
  isolation:isolate;
  z-index:0;
  border-radius:0;
}
.we-shell .we-rich-editor .we-rich-content > [data-footer-block].we-inline-footer {
  display:block;
  position:relative;
  width:100%;
  height:auto;
  min-height:64px;
  margin:0 !important;
  clear:both;
  float:none;
  flex-shrink:0;
  isolation:isolate;
  z-index:0;
  box-sizing:border-box;
}
.we-shell .we-rich-editor .we-rich-content > [data-footer-block] .we-select-template { position:static; }

/* Keep snap-centre relationships authoritative after all specialised element rules. */
:is(.ew-card,.we-rich-content) [data-element-anchor-x="center"][data-element-floating="1"]{left:50%!important;translate:-50% 0!important}
:is(.ew-card,.we-rich-content) [data-element-anchor-y="center"][data-element-floating="1"]{top:50%!important;translate:0 -50%!important}
:is(.ew-card,.we-rich-content) [data-element-anchor-x="center"][data-element-anchor-y="center"][data-element-floating="1"]{translate:-50% -50%!important}

/* A moved button may retain a centre anchor. Its specialised move rule has
   higher specificity than the generic centre-anchor rules, so explicitly
   restore the half-width translation for anchored buttons. */
:is(.ew-card,.we-rich-content) a[data-website-button="1"][data-element-floating="1"][data-element-moved="1"][data-element-anchor-x="center"] {
  left:50%!important;
  translate:-50% 0!important;
}
:is(.ew-card,.we-rich-content) a[data-website-button="1"][data-element-floating="1"][data-element-moved="1"][data-element-anchor-y="center"] {
  top:50%!important;
  translate:0 -50%!important;
}
:is(.ew-card,.we-rich-content) a[data-website-button="1"][data-element-floating="1"][data-element-moved="1"][data-element-anchor-x="center"][data-element-anchor-y="center"] {
  translate:-50% -50%!important;
}

/* Desktop column transfers use the destination column as the coordinate owner.
   On mobile the existing stacking and independent positioning are untouched. */
@container website-content (min-width:711px) {
  :is(.ew-card,.we-rich-content) :is([data-layout="column"],[data-layout="home-copy"],[data-layout="home"]) { position:relative; }
}
.we-rich-content [data-layout="column"].is-column-drop-target,
.we-rich-content [data-layout="home"].is-column-drop-target { outline:2px dashed var(--site-theme,#856690);outline-offset:-2px; }

/* Column coordinates must be resolved against the same containing block on
   desktop, mobile, editor and published pages. */
:is(.ew-card,.we-rich-content) :is([data-layout="column"],[data-layout="home-copy"],[data-layout="home"]){position:relative}
/* Empty columns remain valid drop targets in the mobile stacked layout. */
.we-rich-editor[data-editing-mode="mobile"] .we-rich-content [data-layout="two-columns"]>[data-layout="column"]{min-height:60px}
.we-rich-content :is([data-layout="column"],[data-layout="home"],[data-layout="home-copy"]).is-column-drop-target{outline:2px dashed var(--site-theme,#856690);outline-offset:-2px}

/* Floating images use their visual centre on centre snap lines. */
:is(.ew-card,.we-rich-content) figure:is(.ew-inline-image,.ew-banner)[data-element-floating="1"][data-element-anchor-x="center"] {
    left:50%!important;
    translate:-50% 0!important;
}
:is(.ew-card,.we-rich-content) figure:is(.ew-inline-image,.ew-banner)[data-element-floating="1"][data-element-anchor-y="center"] {
    top:50%!important;
    translate:0 -50%!important;
}
:is(.ew-card,.we-rich-content) figure:is(.ew-inline-image,.ew-banner)[data-element-floating="1"][data-element-anchor-x="center"][data-element-anchor-y="center"] {
    translate:-50% -50%!important;
}

/* Column boundaries are visual placement guides, not movement limits. */
.we-rich-content.is-element-dragging [data-layout="two-columns"] > [data-layout="column"],
.we-rich-content.is-element-dragging [data-layout="home"] > [data-layout="home-copy"] {
    outline: 1px dashed color-mix(in srgb,var(--site-theme,#856690) 45%,transparent);
    outline-offset: -1px;
}
.we-rich-content.is-element-dragging .is-column-drop-target {
    outline: 2px dashed var(--site-theme,#856690);
}

/* User-resized column heights are data-driven and identical in editor/public views.
   The measured floating extent is a minimum; a user may still explicitly crop
   by resizing the surrounding content block. */
:is(.ew-card,.we-rich-content) :is([data-layout="column"],[data-layout="home-copy"]){
  position:relative;
  min-height:max(var(--ew-column-height,0px),var(--ew-column-content-height,0px));
  box-sizing:border-box;
}
.we-rich-content :is([data-layout="column"],[data-layout="home-copy"]){
  outline-offset:-2px;
}
.we-rich-content :is([data-layout="column"],[data-layout="home-copy"]):hover{
  outline:1px dashed color-mix(in srgb,var(--site-theme,#856690) 55%,transparent);
}
.we-rich-content :is([data-layout="column"],[data-layout="home-copy"]).is-column-drop-target{
  outline:2px solid var(--site-theme,#856690)!important;
  background:color-mix(in srgb,var(--site-theme,#856690) 8%,transparent);
}
.we-rich-content button.we-column-resize-handle[data-editor-control="column-resize"]{
  position:absolute;bottom:0;left:50%;transform:translate(-50%,50%);
  width:36px;height:16px;min-width:36px;min-height:16px;
  padding:0;margin:0;border:1px solid var(--site-theme,#856690);
  border-radius:8px;background:#fff;color:var(--site-theme,#856690);
  display:flex;align-items:center;justify-content:center;z-index:60;
  cursor:ns-resize;touch-action:none;font:700 12px/1 Arial,sans-serif;
  opacity:0;
}
.we-rich-content :is([data-layout="column"],[data-layout="home-copy"]):hover > .we-column-resize-handle,
.we-rich-content .we-column-resize-handle:focus-visible,
.we-rich-content.is-resizing-column .we-column-resize-handle{opacity:1}

/* An explicitly resized column is a fixed-height canvas. Its contents may be
   freely positioned beyond the outline; its parent block controls clipping. */
:is(.ew-card,.we-rich-content) :is([data-layout="column"],[data-layout="home-copy"])[data-column-height]{
  height:var(--ew-column-height)!important;
  min-height:0!important;
  align-self:start;
}

/* Resizable desktop column split. Mobile keeps its one-column stack. */
.ew-card :is([data-layout="column"],[data-layout="home-copy"])[data-column-height]:has(>figure.ew-inline-image[data-element-floating="1"]){
  min-height:var(--ew-column-content-height,0px)!important;
}
@container website-content (min-width:711px){
  :is(.ew-card,.we-rich-content) [data-layout="two-columns"]{
    grid-template-columns:minmax(0,calc((100% - 24px) * var(--ew-column-split,.5))) minmax(0,1fr);
  }
}
:is(.ew-card,.we-rich-content) [data-layout="two-columns"]{position:relative}
.we-rich-content [data-layout="two-columns"] > .we-column-divider-handle[data-editor-control="column-divider"]{
  position:absolute;
  left:calc((100% - 24px) * var(--ew-column-split,.5) + 12px);
  top:50%;transform:translate(-50%,-50%);
  width:13px;min-width:13px;height:54px;min-height:54px;padding:0;
  border:1px solid var(--site-theme,#856690);border-radius:8px;
  background:#fff;color:var(--site-theme,#856690);
  font:700 11px/1 Arial,sans-serif;cursor:ew-resize;touch-action:none;
  z-index:60;opacity:0;
}
.we-rich-content [data-layout="two-columns"]:hover > .we-column-divider-handle,
.we-rich-content .we-column-divider-handle:focus-visible,
.we-rich-content.is-resizing-column .we-column-divider-handle{opacity:1}
@container website-content (max-width:710px){
  .we-rich-content [data-layout="two-columns"] > .we-column-divider-handle{display:none!important}
}

/* A little more breathing room above regular template content. Shared by the
   editor, preview and published page; Home/Home Gallery remain unchanged. */
:is(.ew-card,.we-rich-content) > [data-layout="area"]:not([data-area-empty="true"]):not([data-page-title="1"]):not([data-footer-block]):not([data-home-gallery="1"]):not(:has(> [data-layout="home"])):not(:has(> figure[data-image-fill-block="1"])) {
  padding-top: 24px;
}

/* Top-handle resizing adds real height and internal space to each block.
   Keep later blocks in normal document flow so they cannot overlap earlier
   blocks; this is shared by the editor and the published page. */
:is(.ew-card,.we-rich-content) > [data-layout="area"][data-canvas-top-offset]{
  /* Keep the real block in document flow. A negative top margin would
     cancel the additional saved height and paint over the previous block. */
  margin-top:0;
  padding-top:calc(24px + var(--ew-canvas-top-offset,0px))!important;
}
/* Home, Home Gallery and page title do not acquire normal template padding. */
:is(.ew-card,.we-rich-content) > [data-layout="area"][data-canvas-top-offset]:is(
  [data-home-gallery="1"],[data-page-title="1"],
  :has(> [data-layout="home"]),:has(> figure[data-image-fill-block="1"])
){
  padding-top:var(--ew-canvas-top-offset,0px)!important;
}
/* The first block has no previous content to extend into. Keep its
   top boundary inside the visible, scrollable card instead of moving the
   dotted border above the editor's scroll origin. Its added space is
   placed immediately inside the top edge. */
:is(.ew-card,.we-rich-content) > [data-layout="area"]:first-child[data-canvas-top-offset]{
  margin-top:0;
}

/* Keyboard nudges of normal-flow text boxes retain their original line
   wrapping and reserved spacing in editor, preview, and published views.
   These are offsets from normal flow, not absolute coordinates. */
:is(.ew-card,.we-rich-content) [data-layout="text-box"][data-element-flow="1"][data-element-positioned="1"]:not([data-element-floating="1"]) {
    position:relative;
    left:var(--ew-element-x,0%);
    top:var(--ew-element-y,0px);
}

/* Sponsor cards use existing selectable/copyable team-card editor blocks. */
:is(.ew-card,.we-rich-content) [data-layout="team"][data-team-style="sponsors"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch}
:is(.ew-card,.we-rich-content) [data-layout="team"][data-team-style="sponsors"]>[data-layout="team-card"]{min-width:0;box-sizing:border-box;padding:24px 18px;border:1px solid #e2e5e9;border-radius:12px;background:#fff;text-align:center}
:is(.ew-card,.we-rich-content) [data-layout="team"][data-team-style="sponsors"]>[data-layout="team-card"]>[data-layout="text-box"]{width:auto;max-width:100%;margin:10px auto;text-align:center}
:is(.ew-card,.we-rich-content) [data-layout="team"][data-team-style="sponsors"] h3{margin:8px 0;font-size:20px}
:is(.ew-card,.we-rich-content) [data-layout="team"][data-team-style="sponsors"] p{font-size:14px;line-height:1.5;margin:6px 0}
:is(.ew-card,.we-rich-content) [data-layout="team"][data-team-style="sponsors"] figure.ew-inline-image{margin:8px auto 14px}
@container website-content (max-width:710px){:is(.ew-card,.we-rich-content) [data-layout="team"][data-team-style="sponsors"]{grid-template-columns:1fr!important}}
.we-template-dialog .we-template-filters{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.we-template-dialog .we-template-filters button{border:1px solid #cdd4dd;background:#fff;color:#344154;border-radius:999px;padding:8px 12px;cursor:pointer;font:600 12px Arial,sans-serif}
.we-template-dialog .we-template-filters button[aria-selected="true"]{background:#283d58;border-color:#283d58;color:#fff}
.we-template-dialog .we-template-search{display:block;box-sizing:border-box;width:100%;padding:10px 12px;margin:8px 0 14px;border:1px solid #cdd4dd;border-radius:8px;font:14px Arial,sans-serif}
.we-template-dialog .we-template-grid>[hidden]{display:none!important}
.we-rich-block-tools .we-team-tools [hidden]{display:none!important}


/* Template chooser: stable size across categories. Only its template list
   scrolls; the heading, category tabs and search remain visible. */
.we-shell dialog.we-template-dialog[open]{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  width:min(940px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  height:min(760px,calc(100dvh - 40px));
  max-height:calc(100dvh - 40px);
  padding:22px 26px;
  overflow:hidden;
  gap:0;
}
.we-shell dialog.we-template-dialog > .we-panel-heading,
.we-shell dialog.we-template-dialog > .we-media-note,
.we-shell dialog.we-template-dialog > .we-template-filters,
.we-shell dialog.we-template-dialog > .we-template-search{flex:0 0 auto}
.we-shell dialog.we-template-dialog .we-template-filters{
  margin:14px 0 8px;
  padding:2px 0 4px;
  max-width:100%;
}
.we-shell dialog.we-template-dialog .we-template-search{
  width:100%;
  max-width:100%;
  margin:8px 0 14px;
  padding:11px 16px;
}
.we-shell dialog.we-template-dialog .we-template-grid{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding:4px 8px 16px 2px;
  align-content:start;
}
/* Sponsor action controls are icon-only, never compressed text labels. */
.we-shell .we-team-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.we-shell .we-team-tools[hidden]{display:none!important}
.we-shell .we-team-tools > button.we-rich-icon-button{
  box-sizing:border-box;flex:0 0 36px;width:36px;min-width:36px;
  height:36px;min-height:36px;padding:7px;
  display:inline-flex;align-items:center;justify-content:center;
  overflow:hidden;white-space:nowrap;
}
.we-shell .we-team-tools > button.we-rich-icon-button > svg{flex:0 0 auto;width:19px;height:19px}
@media(max-width:600px){
  .we-shell dialog.we-template-dialog[open]{
    width:calc(100vw - 20px);max-width:calc(100vw - 20px);
    height:calc(100dvh - 28px);max-height:calc(100dvh - 28px);
    padding:16px 18px;
  }
  .we-shell dialog.we-template-dialog .we-template-filters button{padding:7px 10px}
}

/* Sponsor logo shapes. The base site styles round all team-card images;
   override that for sponsors and individually selected shapes in editor and public site. */
:is(.ew-card,.we-rich-content) [data-layout="team"][data-team-style="sponsors"] [data-layout="team-card"] figure.ew-inline-image:not([data-image-shape="circle"]):not([data-image-shape="original"]) img,
:is(.ew-card,.we-rich-content) [data-layout="team-card"] figure.ew-inline-image[data-image-shape="square"] img{border-radius:0!important;aspect-ratio:1!important;object-fit:contain!important}
:is(.ew-card,.we-rich-content) [data-layout="team"][data-team-style="sponsors"] [data-layout="team-card"] figure.ew-inline-image:not([data-image-shape="circle"]):not([data-image-shape="original"]) >[data-image-frame="1"],
:is(.ew-card,.we-rich-content) [data-layout="team-card"] figure.ew-inline-image[data-image-shape="square"] >[data-image-frame="1"]{border-radius:0!important;aspect-ratio:1!important}
:is(.ew-card,.we-rich-content) [data-layout="team-card"] figure.ew-inline-image[data-image-shape="circle"] img{border-radius:50%!important;aspect-ratio:1!important;object-fit:cover!important}
:is(.ew-card,.we-rich-content) [data-layout="team-card"] figure.ew-inline-image[data-image-shape="circle"] >[data-image-frame="1"]{border-radius:50%!important;aspect-ratio:1!important}
:is(.ew-card,.we-rich-content) [data-layout="team-card"] figure.ew-inline-image[data-image-shape="original"] img{border-radius:0!important;aspect-ratio:auto!important;object-fit:contain!important}
:is(.ew-card,.we-rich-content) [data-layout="team-card"] figure.ew-inline-image[data-image-shape="original"] >[data-image-frame="1"]{border-radius:0!important;aspect-ratio:var(--ew-image-ratio,1.45)!important}
:is(.ew-card,.we-rich-content) [data-layout="team-card"] figure.ew-inline-image[data-image-shape="original"] >[data-image-frame="1"]>img{width:100%;height:100%;object-fit:contain!important}
.we-rich-image-dialog .we-image-shape-field{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-weight:600}
.we-rich-image-dialog .we-image-shape-field[hidden]{display:none}
.we-rich-image-dialog .we-image-shape-field select{padding:9px 11px;border:1px solid #cdd4dd;border-radius:7px;background:#fff;max-width:100%}


/* Footer contact row: align the action and the contact email on the same
   vertical centre-line without overriding user-saved floating coordinates. */
:is(.we-inline-footer,.ew-footer-custom) :is([data-layout="two-columns"],[data-layout="home"],[data-layout="column"]):has(a[href^="mailto:"]):has(a[data-website-button="1"]),
:is(.we-inline-footer,.ew-footer-custom) :is([data-layout="two-columns"],[data-layout="home"]):has(a[href^="mailto:"]){
  align-items:center;
}

/* Never split a footer email address across lines. Keep its text container
   measurable as one item instead of letting global overflow-wrap:anywhere win. */
:is(.we-inline-footer,.ew-footer-custom) a[href^="mailto:"],
:is(.we-inline-footer,.ew-footer-custom) [data-layout="text-box"]:has(a[href^="mailto:"]){
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none;
}
:is(.we-inline-footer,.ew-footer-custom) [data-layout="text-box"]:has(a[href^="mailto:"]){
  min-width:0;
  max-width:100%;
}

/* On small canvases, scale the email modestly instead of wrapping it.
   Container query units follow the editor's and published page's actual width. */
@container website-content (max-width:440px){
  :is(.we-inline-footer,.ew-footer-custom) a[href^="mailto:"]{
    font-size:clamp(10px,3.2cqw,15px)!important;
    white-space:nowrap!important;
  }
}

/* Ensure the mobile footer's movable elements and their outlines do not get
   clipped by the inline-footer wrapper while an element is being dragged. */
.we-rich-editor[data-editing-mode="mobile"] .we-rich-content > [data-footer-block].we-inline-footer{
  overflow:visible;
}


/* New footer: two independent elements directly inside the footer canvas.
   No nested columns, so the button and email can be dragged out freely. */
:is(.we-rich-content > .we-inline-footer, .ew-footer-custom .ew-card [data-layout="area"], .we-footer-element .we-rich-content [data-layout="area"]):has(> a[data-website-button="1"]):has(> [data-layout="text-box"] a[href^="mailto:"]) {
  display:flex;
  flex-flow:row wrap;
  align-items:center;
  justify-content:center;
  align-content:center;
  column-gap:18px;
  row-gap:9px;
  min-width:0;
  box-sizing:border-box;
}
:is(.we-rich-content > .we-inline-footer, .ew-footer-custom .ew-card [data-layout="area"], .we-footer-element .we-rich-content [data-layout="area"]):has(> a[data-website-button="1"]) > a[data-website-button="1"]:not([data-element-floating="1"]),
:is(.we-rich-content > .we-inline-footer, .ew-footer-custom .ew-card [data-layout="area"], .we-footer-element .we-rich-content [data-layout="area"]):has(> a[data-website-button="1"]) > [data-layout="text-box"]:not([data-element-floating="1"]) {
  flex:0 0 auto;
  margin:0;
  align-self:center;
}
:is(.we-rich-content > .we-inline-footer, .ew-footer-custom .ew-card [data-layout="area"], .we-footer-element .we-rich-content [data-layout="area"]):has(> a[data-website-button="1"]) > [data-layout="text-box"] a[href^="mailto:"] {
  display:inline-block;
  font-size:var(--ew-footer-email-fit,1em)!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
:is(.we-rich-content > .we-inline-footer, .ew-footer-custom .ew-card [data-layout="area"], .we-footer-element .we-rich-content [data-layout="area"]):has(> a[data-website-button="1"]) > [data-layout="text-box"] p {margin:0;}


/* Fresh footer: keep Contact us + email centred as one group.
   This rule must outrank the editor's general .we-inline-footer display:block
   declaration (which otherwise splits them into independent block rows). */
.we-shell .we-rich-editor .we-rich-content > [data-footer-block].we-inline-footer:has(> a[data-website-button="1"]):has(> [data-layout="text-box"]),
.ew-footer-custom .ew-card > [data-layout="area"]:has(> a[data-website-button="1"]):has(> [data-layout="text-box"]),
.we-footer-element .we-rich-content > [data-layout="area"]:has(> a[data-website-button="1"]):has(> [data-layout="text-box"]) {
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  align-content:center;
  gap:10px 18px;
  min-width:0;
  text-align:center;
}
/* No automatic width expansion or inherited vertical margin on either item;
   moved elements stay freely positioned via the existing floating rules. */
:is(.we-inline-footer,.ew-footer-custom .ew-card [data-layout="area"],.we-footer-element .we-rich-content [data-layout="area"]):has(> a[data-website-button="1"]) > :is(a[data-website-button="1"],[data-layout="text-box"]):not([data-element-floating="1"]) {
  flex:0 0 auto;
  width:max-content;
  max-width:100%;
  margin:0;
  align-self:center;
}
:is(.we-inline-footer,.ew-footer-custom .ew-card [data-layout="area"],.we-footer-element .we-rich-content [data-layout="area"]):has(> a[data-website-button="1"]) > [data-layout="text-box"] a {
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}


/* Compact fresh footer: centre Contact us and the email in both axes.
   Preserve user-resized footer heights and independently floated elements. */
.we-shell .we-rich-editor .we-rich-content > [data-footer-block].we-inline-footer:has(> a[data-website-button="1"]):has(> [data-layout="text-box"]),
.ew-footer-custom .ew-card > [data-layout="area"]:has(> a[data-website-button="1"]):has(> [data-layout="text-box"]),
.we-footer-element .we-rich-content > [data-layout="area"]:has(> a[data-website-button="1"]):has(> [data-layout="text-box"]) {
  box-sizing:border-box;
  min-height:84px;
  padding:12px 16px;
  align-items:center;
  align-content:center;
  justify-content:center;
  row-gap:8px;
}
/* The new footer should shrink to its contents rather than retain the
   larger general-purpose canvas height, unless manually resized. */
.we-shell .we-rich-editor .we-rich-content > [data-footer-block].we-inline-footer:not([data-canvas-locked="1"]):has(> a[data-website-button="1"]):has(> [data-layout="text-box"]),
.ew-footer-custom .ew-card > [data-layout="area"]:not([data-canvas-locked="1"]):has(> a[data-website-button="1"]):has(> [data-layout="text-box"]),
.we-footer-element .we-rich-content > [data-layout="area"]:not([data-canvas-locked="1"]):has(> a[data-website-button="1"]):has(> [data-layout="text-box"]) {
  height:auto;
}


/* Fresh footer height correction: override generic content canvas minima.
   An auto-height footer can otherwise still inherit --ew-canvas-height,
   which was calculated for an ordinary content block. */
.we-shell .we-rich-editor .we-rich-content > [data-footer-block].we-inline-footer:not([data-canvas-locked="1"]):has(> a[data-website-button="1"]):has(> [data-layout="text-box"]),
.ew-footer-custom .ew-card > [data-layout="area"]:not([data-canvas-locked="1"]):has(> a[data-website-button="1"]):has(> [data-layout="text-box"]),
.we-footer-element .we-rich-content > [data-layout="area"]:not([data-canvas-locked="1"]):has(> a[data-website-button="1"]):has(> [data-layout="text-box"]) {
  --ew-canvas-height:0px;
  --ew-content-min-height:0px;
  display:flex;
  height:auto!important;
  min-height:62px!important;
  padding:7px 14px!important;
  align-items:center!important;
  align-content:center!important;
  justify-content:center!important;
  gap:6px 16px;
  box-sizing:border-box;
}

/* Keep the button and email on the same vertical centreline. An editor text-box
   may contain its own margins, padding or minimum height. */
:is(.we-inline-footer,.ew-footer-custom .ew-card [data-layout="area"],.we-footer-element .we-rich-content [data-layout="area"]):has(> a[data-website-button="1"]) > [data-layout="text-box"]:not([data-element-floating="1"]) {
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:center;
  min-height:0!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
}
:is(.we-inline-footer,.ew-footer-custom .ew-card [data-layout="area"],.we-footer-element .we-rich-content [data-layout="area"]):has(> a[data-website-button="1"]) > [data-layout="text-box"]:not([data-element-floating="1"]) > p {
  margin:0!important;
  padding:0!important;
  line-height:1.4;
}

/* The editable template insertion slot above the footer is separate from the
   footer itself. Keep it available but don't let its 120px minimum resemble
   another large footer band. */
.we-shell .we-rich-editor .we-rich-content > section[data-layout="area"][data-area-empty="true"]:has(+ [data-footer-block]) {
  min-height:64px;
  padding:12px 24px;
}


/* Editor-only footer canvas: its selection border is its real resize boundary,
   not an inset borrowed from normal content blocks. Public layout is unchanged. */
.we-shell .we-rich-editor .we-rich-content > [data-footer-block].we-inline-footer {
  --ew-block-start-inset:0px;
  --ew-block-end-inset:0px;
  --ew-content-min-height:0px;
  box-sizing:border-box;
  align-items:center!important;
  align-content:center!important;
  justify-content:center!important;
  padding:4px 12px!important;
}
.we-shell .we-rich-editor .we-rich-content > [data-footer-block].we-inline-footer:not([data-canvas-locked="1"]):has(> a[data-website-button="1"]):has(> [data-layout="text-box"]) {
  --ew-canvas-height:0px;
  height:auto!important;
  min-height:48px!important;
}
.we-shell .we-rich-editor .we-rich-content > [data-footer-block].we-inline-footer[data-canvas-locked="1"] {
  height:var(--ew-canvas-height)!important;
  min-height:var(--ew-canvas-height)!important;
}
.we-shell .we-rich-editor .we-rich-content > [data-footer-block].we-inline-footer.is-area-active::before,
.we-shell .we-rich-editor .we-rich-content > [data-footer-block].we-inline-footer.is-block-selected::before {
  top:0;
  bottom:0;
}


/* Footer boundary parity (editor): the editor's normal 24px content gutter
   was still occupying space AFTER the last footer block. The dotted footer
   boundary and its bottom resize handle must meet the editor's bottom edge. */
.we-shell .we-rich-editor .we-rich-content:has(> [data-footer-block].we-inline-footer:last-child) {
  padding-bottom:0!important;
  margin-bottom:0!important;
}
.we-shell .we-rich-editor .we-rich-content > [data-footer-block].we-inline-footer:last-child {
  margin-bottom:0!important;
  --ew-block-end-inset:0px;
}

/* Footer boundary parity (public/preview): the published footer shell has
   its own top and bottom padding in assets/css/website/website.css. Don't add that padding on
   top of the compact, independently resizable footer canvas. */
.ew-footer-custom:has(.ew-card > [data-layout="area"]:has(> a[data-website-button="1"]):has(> [data-layout="text-box"])) {
  padding-top:0!important;
  padding-bottom:0!important;
}
.ew-footer-custom .ew-card > [data-layout="area"]:has(> a[data-website-button="1"]):has(> [data-layout="text-box"]),
.we-footer-element .we-rich-content > [data-layout="area"]:has(> a[data-website-button="1"]):has(> [data-layout="text-box"]) {
  --ew-block-start-inset:0px;
  --ew-block-end-inset:0px;
  box-sizing:border-box;
  margin-block:0!important;
}
/* A manually resized footer has an explicit height; don't let an automatic
   minimum grow it again on the public side. */
.ew-footer-custom .ew-card > [data-layout="area"][data-canvas-locked="1"]:has(> a[data-website-button="1"]):has(> [data-layout="text-box"]),
.we-footer-element .we-rich-content > [data-layout="area"][data-canvas-locked="1"]:has(> a[data-website-button="1"]):has(> [data-layout="text-box"]) {
  height:var(--ew-canvas-height)!important;
  min-height:var(--ew-canvas-height)!important;
}


/* Final compact-footer boundary: both the editor and rendered site use the
   saved content-block height, not their different outer wrapper defaults. */
.we-shell .we-rich-editor .we-rich-content > section[data-area-empty="true"]:has(+ section[data-footer-block]) {
  margin-bottom:0!important;
  transform:none!important;
}
.we-shell .we-rich-editor .we-rich-content > section[data-footer-block].we-inline-footer {
  --ew-block-start-inset:0px!important;
  --ew-block-end-inset:0px!important;
  --ew-canvas-top-offset:0px;
  margin-top:0!important;
  margin-bottom:0!important;
  top:auto!important;
  transform:none!important;
  vertical-align:middle;
}
.we-shell .we-rich-editor .we-rich-content > section[data-footer-block].we-inline-footer:is(.is-area-active,.is-block-selected)::before {
  top:0!important;
  bottom:0!important;
}
.we-shell .we-rich-editor .we-rich-content > section[data-footer-block].we-inline-footer > .we-block-resize-top {top:0!important}
.we-shell .we-rich-editor .we-rich-content > section[data-footer-block].we-inline-footer > .we-block-resize-bottom {bottom:0!important}
.we-shell .we-rich-editor .we-rich-content:has(> section[data-footer-block]:last-child) {
  padding-bottom:0!important;
  border-bottom:0!important;
}

/* The public footer wrapper and card must not add a second vertical height.
   Target fresh compact footers only; ordinary page content remains untouched. */
.ew-footer-custom:has(a[data-website-button="1"] + [data-layout="text-box"]),
.ew-footer-custom:has([data-layout="area"] > a[data-website-button="1"]),
.we-footer-element:has([data-layout="area"] > a[data-website-button="1"]) {
  padding-block:0!important;
  min-height:0!important;
  height:auto;
}
.ew-footer-custom:has([data-layout="area"] > a[data-website-button="1"]) .ew-card,
.we-footer-element:has([data-layout="area"] > a[data-website-button="1"]) .we-rich-content {
  padding-block:0!important;
  margin-block:0!important;
  min-height:0!important;
}
:is(.ew-footer-custom,.we-footer-element) [data-layout="area"]:has(> a[data-website-button="1"]):has(> [data-layout="text-box"])[data-canvas-locked="1"] {
  box-sizing:border-box;
  height:var(--ew-canvas-height)!important;
  min-height:var(--ew-canvas-height)!important;
  max-height:none;
  margin-block:0!important;
  padding:4px 12px!important;
  --ew-block-start-inset:0px;
  --ew-block-end-inset:0px;
}

/* Responsive compact footer: use the saved height as a minimum, not a hard
   ceiling, when the Contact Us button and the no-wrap email need two rows.
   When both fit, flex-wrap keeps them side by side and the footer stays thin.
   Apply in the mobile editor as well as narrow preview/published containers. */
.ew-footer-custom:has(> .ew-card > [data-layout="area"] > a[data-website-button="1"]),
.we-footer-element:has(.we-rich-content > [data-layout="area"] > a[data-website-button="1"]) {
  container-name:compact-footer;
  container-type:inline-size;
}

.we-rich-editor[data-editing-mode="mobile"] .we-rich-content > [data-footer-block].we-inline-footer:has(> a[data-website-button="1"]):has(> [data-layout="text-box"]):not(:has(> [data-element-moved="1"])) {
  height:auto!important;
  min-height:max(58px,var(--ew-canvas-height,58px))!important;
  max-height:none!important;
  padding:6px 12px!important;
  flex-wrap:wrap!important;
  align-content:center!important;
  row-gap:8px!important;
}

@container compact-footer (max-width:620px) {
  :is(.ew-card,.we-rich-content) > [data-layout="area"]:has(> a[data-website-button="1"]):has(> [data-layout="text-box"]):not(:has(> [data-element-moved="1"])) {
    height:auto!important;
    min-height:max(58px,var(--ew-canvas-height,58px))!important;
    max-height:none!important;
    padding:6px 12px!important;
    flex-wrap:wrap!important;
    align-content:center!important;
    row-gap:8px!important;
  }
}
/* Keep long email addresses intact on narrow footers without horizontal spill. */
.we-rich-editor[data-editing-mode="mobile"] .we-inline-footer > [data-layout="text-box"] a[href^="mailto:"] {
  font-size:13px!important;
  white-space:nowrap!important;
}
@container compact-footer (max-width:620px) {
  :is(.ew-card,.we-rich-content) > [data-layout="area"] > [data-layout="text-box"] a[href^="mailto:"] {
    font-size:clamp(11px,3.6cqw,16px)!important;
    white-space:nowrap!important;
  }
}


/* Opt-in contrast for NEW Home Gallery templates only. No legacy auto-treatment.
   Keeps the overlay inside the image figure; floating text and controls stay separate. */
:is(.ew-card,.we-rich-content) [data-home-gallery="1"] > figure.ew-banner[data-gallery-contrast="gradient"] {
  isolation:isolate;
}
:is(.ew-card,.we-rich-content) [data-home-gallery="1"] > figure.ew-banner[data-gallery-contrast="gradient"]::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(to bottom,rgba(0,0,0,.11) 0%,rgba(0,0,0,.32) 28%,rgba(0,0,0,.72) 51%,rgba(0,0,0,.42) 75%,rgba(0,0,0,.08) 100%);
  opacity:var(--ew-gallery-contrast-opacity,.65);
}
/* Preserve selection/resize adornments on top of the decorative gradient. */
:is(.ew-card,.we-rich-content) [data-home-gallery="1"] > figure.ew-banner[data-gallery-contrast="gradient"]::after {z-index:2;}
/* Shadow for only the opt-in gallery's direct text siblings; editable formatting remains free. */
:is(.ew-card,.we-rich-content) [data-home-gallery="1"] > [data-layout="special-text"] {
  text-shadow:0 2px 5px rgba(0,0,0,.8),0 4px 15px rgba(0,0,0,.4);
}

.we-gallery-contrast-settings{border:1px solid #c7cbd2;border-radius:8px;margin:16px 0;padding:12px;display:grid;gap:12px}
.we-gallery-contrast-settings label{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.we-gallery-contrast-settings input[type="range"]{flex:1;min-width:130px}
.we-paste-menu{position:relative;display:inline-block;vertical-align:middle}
.we-paste-menu>summary{cursor:pointer;list-style:none;padding:7px 12px;border:1px solid #bfc4cc;border-radius:5px;background:#fff;white-space:nowrap}
.we-paste-menu>summary::after{content:' ▾'}
.we-paste-menu.is-disabled>summary{opacity:.5;cursor:not-allowed}
.we-paste-menu .we-paste-options{position:absolute;top:100%;left:0;z-index:200;min-width:145px;padding:5px;display:grid;gap:3px;background:#fff;box-shadow:0 5px 20px #0003;border:1px solid #d8d8d8;border-radius:6px}
.we-paste-menu .we-paste-options button{white-space:nowrap;text-align:left}

/* Sponsor-card images that have been resized must honour their saved rectangle.
   They remain in normal card flow (not floating), so the generic floating-image
   sizing selector cannot apply. This deliberately outranks desktop/mobile
   default inline-image width rules without affecting unresized images. */
:is(.ew-card,.we-rich-content) [data-layout="team"][data-team-style="sponsors"] [data-layout="team-card"] > figure.ew-inline-image[data-image-inline-resized="1"][data-box-width] {
  width:min(100%, var(--ew-box-width)) !important;
  max-width:100% !important;
  height:var(--ew-box-height) !important;
  min-height:0 !important;
  flex:none;
  float:none !important;
  margin-inline:auto !important;
  box-sizing:border-box;
}
:is(.ew-card,.we-rich-content) [data-layout="team"][data-team-style="sponsors"] [data-layout="team-card"] > figure.ew-inline-image[data-image-inline-resized="1"][data-box-height] > [data-image-frame="1"] {
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:auto !important;
}
:is(.ew-card,.we-rich-content) [data-layout="team"][data-team-style="sponsors"] [data-layout="team-card"] > figure.ew-inline-image[data-image-inline-resized="1"][data-box-height] > [data-image-frame="1"] > img {
  width:100%;
  height:100%;
}
/* Public loading decoration leaves editor geometry and image crops intact. */
.ew-card .ew-image-placeholder:has(img.ew-image-loading){background-color:#f1f0f2}
.ew-card img{transition:opacity .16s ease-out}
.ew-card img.ew-image-loading{opacity:0}
@media(prefers-reduced-motion:reduce){.ew-card img{transition:none}}

/* Dropdown templates follow their visible content, including saved expanded editor heights. */
.ew-card [data-layout="area"]:has([data-layout="faq"]),
.ew-card [data-layout="area"][data-canvas-locked="1"]:has([data-layout="faq"]){height:auto!important;min-height:0!important}
.ew-card details[data-layout="faq-item"]:not([open]){height:auto!important;min-height:0!important}
.ew-card details[data-layout="faq-item"]:not([open]) > :not(summary){display:none!important}
/* Positioned text can extend beyond a saved desktop column rectangle.
   Keep that extent in dropdown flow so its rounded boundary cannot crop it. */
@container website-content (min-width:711px){
  .ew-card [data-layout="faq-answer"] [data-layout="column"][data-column-height]{
    height:auto!important;
    min-height:var(--ew-column-content-height,0px)!important;
  }
}

:is(.ew-card,.we-rich-content) [data-layout="two-columns"]:has(> [data-layout="column"]):not(:has(> [data-layout="column"] ~ [data-layout="column"])){grid-template-columns:minmax(0,1fr)!important}

/* Resized column images scale with their column rather than retaining editor pixels. */
:is(.ew-card,.we-rich-content) :is([data-layout="column"],[data-layout="home-copy"]) > figure.ew-inline-image[data-box-width]{
  width:min(100%,var(--ew-image-width,100%))!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:var(--ew-image-ratio,auto);
}
@container website-content (max-width:710px){
  :is(.ew-card,.we-rich-content)[data-mobile-custom="1"] :is([data-layout="column"],[data-layout="home-copy"]) > figure.ew-inline-image[data-box-width]{width:min(100%,var(--ew-image-mobile-width,var(--ew-image-width,100%)))!important}
}

/* Dropdown gaps are independent, including zero spacing. */
/* Flow-only text sections rewrap at the public width. Editor pixel heights
   must not reserve a blank tail or clip longer rules on a narrower screen. */
.ew-card>[data-layout="area"]:has(>[data-layout="text-box"][data-element-flow="1"]):not(:has(>:not([data-layout="text-box"][data-element-flow="1"]))){
  height:auto!important;min-height:0!important;
}
.ew-card>[data-layout="area"]:has(>[data-layout="text-box"][data-element-flow="1"]):not(:has(>:not([data-layout="text-box"][data-element-flow="1"])))>[data-layout="text-box"][data-element-flow="1"]{
  height:auto!important;min-height:0!important;
}
@container website-content (min-width:711px){
.ew-card [data-layout="column"]>figure.ew-inline-image[data-image-match-column]{
  height:var(--ew-image-matched-height,auto)!important;
  width:min(100%,var(--ew-image-width,100%))!important;
}
.ew-card [data-layout="column"]>figure.ew-inline-image[data-image-match-column][data-box-width]>[data-image-frame="1"],
.ew-card [data-layout="column"]>figure.ew-inline-image[data-image-match-column]>[data-image-frame="1"]{
  height:var(--ew-image-matched-height,auto)!important;
}
/* Fill the column beside the text, preserving the saved crop focus. */
.ew-card [data-layout="column"]>figure.ew-inline-image[data-image-match-column]>[data-image-frame="1"]>img{
  object-fit:cover;
  object-position:var(--ew-image-x,50%) var(--ew-image-y,50%);
}
/* The matched frame already leaves bottom clearance. Normal-flow images
   must not add their default 22px margin to the dropdown's own padding. */
.ew-card [data-layout="column"]>figure.ew-inline-image[data-image-match-column]:not([data-element-floating="1"]){margin-bottom:0}
.ew-card [data-layout="faq-answer"]:has(>[data-layout="two-columns"]:last-child>[data-layout="column"]>figure[data-image-match-column]){padding-bottom:8px}
/* Matched image/text rows follow current content, not column heights measured
   before the image was cropped or the text rewrapped. */
.ew-card [data-layout="two-columns"]:has(>[data-layout="column"]>figure[data-image-match-column])>[data-layout="column"][data-column-height]{
  height:auto!important;
  min-height:var(--ew-column-content-height,0px)!important;
}
}
/* Stacked dropdown columns no longer share a desktop row height. Keep
   explicitly authored mobile heights, but release inherited desktop space. */
@container website-content (max-width:710px){
  /* A saved mobile column height is a minimum: wrapped or freely placed text
     below an image must remain inside the dropdown's clipping boundary. */
  :is(.ew-card,.we-rich-content) [data-layout="faq-answer"] [data-layout="column"]{
    height:auto!important;
    min-height:max(var(--ew-column-height,0px),var(--ew-column-content-height,0px))!important;
  }
  :is(.ew-card,.we-rich-content):not([data-mobile-custom="1"]) [data-layout="faq-answer"] [data-layout="column"]{
    height:auto!important;
    min-height:var(--ew-column-content-height,0px)!important;
  }
}
/* Published mobile text rewraps at the reader's width. Saved editor rectangles
   must not leave blank tails; measured floating bounds still protect text. */
@container website-content (max-width:710px){
  .ew-card [data-layout="column"]:has([data-layout="text-box"]){
    height:auto!important;
    min-height:var(--ew-column-content-height,0px)!important;
  }
  .ew-card [data-layout="column"] [data-layout="text-box"]{
    height:auto!important;
    min-height:0!important;
  }
}
:is(.ew-card,.we-rich-content) [data-layout="faq"]{display:flow-root}
:is(.ew-card,.we-rich-content) details[data-layout="faq-item"]{margin-block:var(--ew-faq-space-before,12px) 0}
/* Published headings are toggle controls; repeated clicks must not select text. */
.ew-card details[data-layout="faq-item"] > summary,
.ew-card details[data-layout="faq-item"] > summary *{
  -webkit-user-select:none;
  user-select:none;
}

/* Shared text inset; structural card padding remains separate from editable text. */
:is(.ew-card,.we-rich-content){--ew-text-padding:10px}
:is(.ew-card,.we-rich-content) details[data-layout="faq-item"] > summary{
  padding-inline-start:var(--ew-text-padding);
  padding-inline-end:calc(var(--ew-text-padding) + 34px);
}
:is(.ew-card,.we-rich-content) details[data-layout="faq-item"] > summary::after{right:var(--ew-text-padding)}
:is(.ew-card,.we-rich-content) [data-layout="faq-answer"]{padding-inline:0}
:is(.ew-card,.we-rich-content) [data-layout="faq-answer"] > :is(p,h1,h2,h3,blockquote),
:is(.ew-card,.we-rich-content) figcaption{padding-inline:var(--ew-text-padding);box-sizing:border-box}
:is(.ew-card,.we-rich-content) [data-layout="faq-answer"] > :is(ul,ol){padding-inline-start:calc(var(--ew-text-padding) + 26px);padding-inline-end:var(--ew-text-padding)}

/* Active manipulation uses the drag's measured rectangle, not responsive column sizing. */
.we-rich-content.is-element-dragging :is([data-layout="column"],[data-layout="home-copy"]) > figure.ew-inline-image[data-box-width],
.we-rich-content :is([data-layout="column"],[data-layout="home-copy"]) > figure.ew-inline-image.is-resizing[data-box-width]{
  width:var(--ew-box-width)!important;max-width:none!important;
  height:var(--ew-box-height)!important;aspect-ratio:auto;
}

/* A responsive image's frame supplies its height. Percentage height on an
   auto-height figure collapses once the temporary resize height is removed. */
:is(.ew-card,.we-rich-content) :is([data-layout="column"],[data-layout="home-copy"]) > figure.ew-inline-image[data-box-width] > [data-image-frame="1"]{
  display:block;width:100%;height:auto!important;
  aspect-ratio:var(--ew-image-ratio,1.45)!important;
}
.we-rich-content[data-editing-mode="mobile"] :is([data-layout="column"],[data-layout="home-copy"]) > figure.ew-inline-image[data-box-width]{
  width:min(100%,var(--ew-image-mobile-width,var(--ew-image-width,100%)))!important;
}
.we-rich-content.is-element-dragging :is([data-layout="column"],[data-layout="home-copy"]) > figure.ew-inline-image[data-box-width] > [data-image-frame="1"],
.we-rich-content :is([data-layout="column"],[data-layout="home-copy"]) > figure.ew-inline-image.is-resizing[data-box-width] > [data-image-frame="1"]{
  height:100%!important;aspect-ratio:auto!important;
}
.we-rich-content[data-editing-mode="mobile"].is-element-dragging :is([data-layout="column"],[data-layout="home-copy"]) > figure.ew-inline-image[data-box-width],
.we-rich-content[data-editing-mode="mobile"] :is([data-layout="column"],[data-layout="home-copy"]) > figure.ew-inline-image.is-resizing[data-box-width]{width:var(--ew-box-width)!important}

/* Text-matched images retain the proportional width authored in the editor. */
.ew-card [data-layout="column"] > figure.ew-inline-image[data-image-match-column],
.ew-card[data-mobile-custom="1"] [data-layout="column"] > figure.ew-inline-image[data-image-match-column][data-box-width]{
  width:min(100%,var(--ew-image-width,100%))!important;
  max-width:100%!important;
  box-sizing:border-box;
}
@container website-content (max-width:710px){
  .ew-card[data-mobile-custom="1"] [data-layout="column"] > figure.ew-inline-image[data-image-match-column][data-box-width]{
    width:min(100%,var(--ew-image-mobile-width,var(--ew-image-width,100%)))!important;
  }
}
@container website-content (min-width:711px){
  .ew-card [data-layout="column"] > figure.ew-inline-image[data-image-match-column][data-box-width] > [data-image-frame="1"]{
    height:var(--ew-image-matched-height,auto)!important;
  }
}
