/* 0.8.1 – stable layout defaults for the existing landing page.
 * Limit the repair to tagged Beauty sections. Opt out of a geometry rule by
 * adding bsv-layout-free to that specific Elementor container or widget.
 * Never override display/visibility, content, order, or widget typography. */
.bsv-page {
  --bsv-wide-content: var(--beauty-content-wide,80rem);
  --bsv-narrow-content: 72rem;
  --bsv-header-content: 48rem;
  --bsv-section-gutter: 32px;
}
@media(max-width:1024px){.bsv-page{--bsv-section-gutter:24px;}}
@media(max-width:767px){.bsv-page{--bsv-section-gutter:16px;}}
/* The theme's max-w wrappers include the horizontal gutter. The Elementor
 * section owns that gutter, so subtract it from the inner content width.
 * Set both Elementor's variables and the actual properties: generated page
 * CSS can set --width/max-width independently. */
.bsv-page .elementor .bsv7-section .bsv7-inner:not(.bsv-layout-free){
  --bsv-inner-limit:calc(var(--bsv-wide-content) - 2 * var(--bsv-section-gutter));
  --width:100%;--max-width:var(--bsv-inner-limit);
  width:100%!important;max-width:var(--bsv-inner-limit)!important;
  min-width:0;box-sizing:border-box;align-self:center;
  margin-inline:auto!important;flex-shrink:1;
}
.bsv-page .elementor .bsv7-section .bsv7-inner.bsv8-narrow:not(.bsv-layout-free){
  --bsv-inner-limit:calc(var(--bsv-narrow-content) - 2 * var(--bsv-section-gutter));
}
.bsv-page .elementor .bsv7-section .bsv7-inner:not(.bsv-layout-free) > .e-con-inner{
  width:100%;max-width:100%;min-width:0;
}
.bsv-page .elementor .bsv7-section .bsv7-section-head:not(.bsv-layout-free){
  --width:100%;--max-width:var(--bsv-header-content);
  width:100%!important;max-width:var(--bsv-header-content)!important;
  margin-inline:auto!important;align-self:center;min-width:0;
}
/* Badges must hug their text, not stretch with a column's children. */
.bsv-page .elementor .bsv7-section .elementor-widget-heading.bsv-preset-card-badge:not(.bsv-layout-free){
  --width:auto;--container-widget-width:fit-content;
  width:fit-content!important;max-width:100%;min-width:0;
  align-self:flex-start;flex:0 0 auto;
}
.bsv-page .elementor .bsv7-section .bsv7-card-top .bsv-preset-card-badge:not(.bsv-layout-free){align-self:center;margin-inline-start:auto;}
.bsv-page .elementor .bsv7-section .bsv-preset-card-badge:not(.bsv-layout-free) .elementor-widget-container{width:auto;max-width:100%;}
/* List decoration derives from the explicitly tagged list, even if Elementor
 * does not emit a preset class. Position a single dot relative to the text. */
.bsv-page .elementor .bsv7-section .bsv7-list > .elementor-widget-text-editor:not(.bsv-layout-free) > .elementor-widget-container,
.bsv-page .elementor .bsv7-section .bsv7-list > .e-con-inner > .elementor-widget-text-editor:not(.bsv-layout-free) > .elementor-widget-container{
  position:relative;padding-inline-start:16px;
}
.bsv-page .elementor .bsv7-section .bsv7-list > .elementor-widget-text-editor:not(.bsv-layout-free) > .elementor-widget-container::before,
.bsv-page .elementor .bsv7-section .bsv7-list > .e-con-inner > .elementor-widget-text-editor:not(.bsv-layout-free) > .elementor-widget-container::before{
  content:"";position:absolute;inset-inline-start:0;top:calc(.85em - var(--bsv-dot-size,5.5px)/2);
  width:var(--bsv-dot-size,5.5px);height:var(--bsv-dot-size,5.5px);border-radius:50%;background:rgb(var(--beauty-primary,130 115 93));
}
/* Flex children share space after accounting for the gap. The original
 * widths are still editable; only the automatic minimum width is reset. */
.bsv-page .elementor .bsv7-section .bsv7-row:not(.bsv-layout-free) > .e-con,
.bsv-page .elementor .bsv7-section .bsv7-row:not(.bsv-layout-free) > .e-con-inner > .e-con{min-width:0;flex-shrink:1;}
/* The ENDOSROLLER price is one readable unit where it fits. On smaller
 * screens keep the native stacked layout and permit wrapping. */
@media(min-width:1025px){
 .bsv-page .elementor .bsv7-section .bsv7-endo-row:not(.bsv-layout-free) > .e-con,
 .bsv-page .elementor .bsv7-section .bsv7-endo-row:not(.bsv-layout-free) > .e-con-inner > .e-con{flex:1 1 0;min-width:0;width:auto;}
 .bsv-page .elementor .bsv7-section .bsv7-endo-row:not(.bsv-layout-free) > .elementor-widget-text-editor,
 .bsv-page .elementor .bsv7-section .bsv7-endo-row:not(.bsv-layout-free) > .e-con-inner > .elementor-widget-text-editor{width:auto;flex:0 1 auto;min-width:0;max-width:100%;text-align:right;}
 .bsv-page .elementor .bsv7-section .bsv7-endo-row:not(.bsv-layout-free) > .elementor-widget-text-editor p,
 .bsv-page .elementor .bsv7-section .bsv7-endo-row:not(.bsv-layout-free) > .e-con-inner > .elementor-widget-text-editor p{overflow-wrap:normal;word-break:normal;}
}
/* Team cards retain their equal-height layout; initials are never squeezed. */
.bsv-page .elementor .bsv8-section .bsv8-initials:not(.bsv-layout-free){--width:56px;width:56px!important;min-width:56px!important;max-width:56px;flex:0 0 56px;}
.bsv-page .elementor .bsv8-section .bsv8-member-name:not(.bsv-layout-free){width:auto;flex:1 1 0;min-width:0;}
/* Keep links and native controls usable without changing their colours. */
.bsv-page .elementor .bsv7-section .elementor-button{max-width:100%;white-space:normal;}
/* Elementor can insert an intermediate boxed wrapper; it must not shrink
 * the shared section to the min-content width of its children. */
.bsv-page .elementor .bsv7-section:not(.bsv-layout-free) > .e-con-inner{
  width:100%;max-width:100%;min-width:0;align-self:stretch;
}

/* 0.8.2 – center the original 56px team initials with both Elementor DOM
 * variants (with a widget-container and optimized, without that wrapper).
 * Keep the heading native/editable. Only tagged monograms are affected. */
.bsv-page .elementor .bsv8-section .bsv8-initials:not(.bsv-layout-free){
  --width:56px;--height:56px;--min-height:56px;
  width:56px!important;height:56px!important;
  min-width:56px!important;min-height:56px!important;
  max-width:56px!important;max-height:56px!important;
  flex:0 0 56px!important;box-sizing:border-box;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:0!important;gap:0;
  text-align:center;
}
.bsv-page .elementor .bsv8-section .bsv8-initials:not(.bsv-layout-free) > .elementor-widget-container{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:100%!important;height:100%!important;min-height:0!important;
  padding:0!important;margin:0!important;box-sizing:border-box;
}
.bsv-page .elementor .bsv8-section .bsv8-initials:not(.bsv-layout-free) .elementor-heading-title{
  display:block;flex:0 0 auto;width:auto!important;
  margin:0!important;padding:0!important;line-height:1!important;
  text-align:center;position:relative;top:var(--bsv-monogram-optical-offset,0em);
}
/* Align the top edges across cards, regardless of the number of role lines. */
.bsv-page .elementor .bsv8-section .bsv8-member-top:not(.bsv-layout-free),
.bsv-page .elementor .bsv8-section .bsv8-member-top:not(.bsv-layout-free) > .e-con-inner{
  --align-items:flex-start;align-items:flex-start;
}
.bsv-page .elementor .bsv8-section .bsv8-member-top:not(.bsv-layout-free) > .bsv8-initials:not(.bsv-layout-free),
.bsv-page .elementor .bsv8-section .bsv8-member-top:not(.bsv-layout-free) > .e-con-inner > .bsv8-initials:not(.bsv-layout-free){align-self:flex-start;}
