/* Home LinkedIn icon (hidden site-wide) */
#comp-ld0ge7pr {
  display: none !important;
}

/* Site-wide mobile fixes for Wix 980px fixed layouts */

@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body,
  #SITE_CONTAINER,
  #site-root,
  #masterPage,
  #PAGES_CONTAINER,
  #SITE_PAGES,
  #SITE_PAGES > div,
  .i0StQr,
  .Containerxl0sr,
  [id^="Container"] {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip;
  }

  /* Wix sections default to 980px min-width */
  section.Le88gL,
  .Le88gL.wixui-section,
  [id^="comp-m22vopt"] {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Reset mesh positioning (calc centering + large left offsets) */
  [data-mesh-id$="inlineContent-gridContainer"] > *,
  [data-mesh-id$="gridContainer"] > * {
    position: relative !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    justify-self: stretch !important;
  }

  [data-mesh-id$="inlineContent-gridContainer"],
  [data-mesh-id$="gridContainer"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Hide invisible layout wedges */
  [data-mesh-id$="-wedge-3"],
  [data-mesh-id$="wedge-3"] {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }

  /* Page content components */
  #PAGES_CONTAINER [id^="comp-"] {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #PAGES_CONTAINER .N8MGzv,
  #PAGES_CONTAINER .wixui-rich-text {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  /* Images and logos */
  #PAGES_CONTAINER .W4V2qg,
  #PAGES_CONTAINER .wixui-image {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #PAGES_CONTAINER .wixui-image img,
  #PAGES_CONTAINER img.gRkIq0,
  #PAGES_CONTAINER .sFiSiq {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
  }

  /* Profile photos — keep reasonable size, centered */
  #PAGES_CONTAINER .wixui-image img[width="242"],
  #PAGES_CONTAINER .wixui-image img[width="241"] {
    max-width: min(calc(100vw - 32px), 242px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Team / multi-column rows */
  .Ak0vpt,
  .CeUMmm .Ak0vpt {
    flex-direction: column !important;
    width: 100% !important;
  }

  .Ak0vpt > * {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    left: 0 !important;
  }

  /* Typography — scale down large desktop sizes */
  #PAGES_CONTAINER .font_3 {
    font-size: clamp(28px, 8vw, 64px) !important;
    line-height: 1.25 !important;
  }

  #PAGES_CONTAINER .font_2 {
    font-size: clamp(18px, 5vw, 20px) !important;
  }

  #PAGES_CONTAINER .font_7 {
    font-size: clamp(20px, 5.5vw, 28px) !important;
    line-height: 1.5 !important;
  }

  #PAGES_CONTAINER .font_8,
  #PAGES_CONTAINER p.font_8 {
    font-size: clamp(16px, 4.2vw, 22px) !important;
    line-height: 1.5 !important;
  }

  #PAGES_CONTAINER .wixui-rich-text__text[style*="font-size:22px"],
  #PAGES_CONTAINER .wixui-rich-text__text[style*="font-size:20px"] {
    font-size: clamp(16px, 4.2vw, 22px) !important;
  }

  #comp-lr20kt9l,
  #comp-lr20a9ia,
  #comp-lr20cj84 {
    max-width: min(100%, 600px) !important;
  }

  /* Home: reduce gap between logo and headline */
  #xl0sr #comp-m22voptn2,
  #xl0sr #comp-m22voptn3 {
    min-height: 0 !important;
  }

  #xl0sr [data-mesh-id="comp-m22voptn2inlineContent-gridContainer"],
  #xl0sr [data-mesh-id="comp-m22voptn3inlineContent-gridContainer"] {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    grid-template-rows: none !important;
    gap: 0 !important;
  }

  #xl0sr [data-mesh-id="comp-m22voptn2inlineContent-wedge-3"],
  #xl0sr [data-mesh-id="comp-m22voptn3inlineContent-wedge-3"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
  }

  #xl0sr #comp-lr20kt9l {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    order: 1;
  }

  #xl0sr #comp-ja2un1ct {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    order: 1;
  }

  #xl0sr #comp-lqzgyahe {
    margin-top: 0 !important;
    order: 2;
  }

  #xl0sr [data-mesh-id="Containerxl0srinlineContent-gridContainer"] > #comp-m22voptn3 {
    margin-top: 32px !important;
  }

  /* Footer */
  #SITE_FOOTER [data-mesh-id="SITE_FOOTERinlineContent-gridContainer"] > * {
    margin: 24px 0 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px;
    box-sizing: border-box;
  }

  #comp-iv0ykw0w {
    width: 100% !important;
    height: auto !important;
  }

  /* Contact form block */
  .bm-contact-form {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bm-contact-form__intro {
    font-size: clamp(18px, 4.5vw, 22px);
  }
}

/* Slight tightening on small tablets */
@media (max-width: 980px) and (min-width: 769px) {
  [data-mesh-id$="inlineContent-gridContainer"] > * {
    margin-left: max(0px, calc((100% - 980px) * 0.5)) !important;
  }
}
