/* Mobile reflow for the captured Wix desktop mesh. Keep desktop geometry intact.
   Shared by every ReferenceLayout route, including locale and business pages.
   Do not hide document overflow: content must fit instead of being clipped. */
@media (max-width: 1000px) {
  body:not(.responsive) #site-root,
  #SITE_CONTAINER, #main_MF, #site-root, #masterPage,
  #PAGES_CONTAINER, #SITE_PAGES, #SITE_PAGES_TRANSITION_GROUP {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
  }
  #PAGES_CONTAINER.gt-reference-page,
  #PAGES_CONTAINER.gt-reference-page :is(.wixui-section, .wixui-column-strip, .wixui-column-strip__column),
  #PAGES_CONTAINER.gt-reference-page [data-testid="inline-content"],
  #PAGES_CONTAINER.gt-reference-page [data-testid="mesh-container-content"] {
    box-sizing: border-box;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  #PAGES_CONTAINER.gt-reference-page :is(.wixui-section, .wixui-column-strip, .wixui-column-strip__column) {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    flex: none !important;
    --column-width: 100%;
  }
  #PAGES_CONTAINER.gt-reference-page [data-testid="columns"] {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    min-width: 0;
    gap: 0;
  }
  #PAGES_CONTAINER.gt-reference-page [data-mesh-id$="inlineContent-gridContainer"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0;
  }
  #PAGES_CONTAINER.gt-reference-page [data-mesh-id$="inlineContent-gridContainer"] > :is([id], interact-element),
  #PAGES_CONTAINER.gt-reference-page [data-mesh-id$="inlineContent-gridContainer"] > interact-element > [id] {
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    grid-area: auto !important;
    align-self: auto !important;
    justify-self: auto !important;
    box-sizing: border-box;
  }
  /* Padding belongs to content grids, never each nested wrapper. */
  #PAGES_CONTAINER.gt-reference-page :is(.wixui-section, .wixui-column-strip__column)
    > [data-testid="inline-content"] > [data-mesh-id$="inlineContent-gridContainer"] {
    padding: clamp(32px, 6vw, 56px) clamp(16px, 4vw, 32px);
  }
  #PAGES_CONTAINER.gt-reference-page .wixui-section > [data-testid="inline-content"]
    > [data-mesh-id$="inlineContent-gridContainer"]:has(> .wixui-column-strip),
  #PAGES_CONTAINER.gt-reference-page [data-mesh-id^="Container"][data-mesh-id$="inlineContent-gridContainer"] {
    padding: 0;
    gap: 0;
  }
  /* Wix inserts empty grid spacers to maintain desktop rows. */
  #PAGES_CONTAINER.gt-reference-page [data-mesh-id$="inlineContent-gridContainer"] > [data-mesh-id$="-rotated-wrapper"],
  #PAGES_CONTAINER.gt-reference-page [data-mesh-id$="inlineContent-gridContainer"] > [data-mesh-id*="__spacer"],
  #PAGES_CONTAINER.gt-reference-page [data-gt-timeline-line] {
    display: none !important;
  }
  #PAGES_CONTAINER.gt-reference-page .wixui-rich-text {
    height: auto !important;
    min-height: 0 !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  #PAGES_CONTAINER.gt-reference-page .wixui-rich-text :is(p, li) {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  #PAGES_CONTAINER.gt-reference-page .wixui-rich-text :is(h1, h2) {
    font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
    line-height: 1.2 !important;
  }
  #PAGES_CONTAINER.gt-reference-page .wixui-rich-text :is(h3, h4, h5, h6) {
    font-size: clamp(1.25rem, 4vw, 1.625rem) !important;
    line-height: 1.3 !important;
  }
  #PAGES_CONTAINER.gt-reference-page .wixui-rich-text :is(p, li, h1, h2, h3, h4, h5, h6) :is(span, a, strong, em) {
    font-size: inherit !important;
    line-height: inherit !important;
  }
  /* Captured Wix headings are sometimes paragraphs with an inline font size. */
  #PAGES_CONTAINER.gt-reference-page .wixui-rich-text p:is(
    [style*="font-size:26px"], [style*="font-size:30px"],
    [style*="font-size:32px"], [style*="font-size:35px"],
    [style*="font-size:40px"], [style*="font-size:46px"],
    [style*="font-size:56px"]
  ) {
    font-size: clamp(1.5rem, 5vw, 2.25rem) !important;
    line-height: 1.25 !important;
  }
  #PAGES_CONTAINER.gt-reference-page [id].gt-image-component {
    width: min(100%, var(--gt-component-width, 100%)) !important;
    height: auto !important;
    aspect-ratio: var(--gt-aspect, auto);
    align-self: center !important;
  }
  #PAGES_CONTAINER.gt-reference-page [id].gt-image-component :is(a, wix-image, wow-image) {
    display: block;
    width: 100% !important;
    height: 100% !important;
  }
  #PAGES_CONTAINER.gt-reference-page [id].gt-image-component img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  #PAGES_CONTAINER.gt-reference-page [id].gt-native-video,
  #PAGES_CONTAINER.gt-reference-page [id].gt-restored-player {
    height: auto !important;
    width: 100% !important;
    aspect-ratio: var(--gt-aspect, 16 / 9);
  }
  /* The existing same-origin size messages provide intrinsic iframe height.
     This is essential when headings wrap or cards stack on a narrow screen. */
  #PAGES_CONTAINER.gt-reference-page [id].gt-embed-component:not(.gt-tiny-embed) {
    width: 100% !important;
    height: var(--gt-embed-height, var(--gt-component-height, 300px)) !important;
    min-height: 0 !important;
    aspect-ratio: auto;
  }
  #PAGES_CONTAINER.gt-reference-page [id].gt-embed-component :is(wix-iframe, .vWU4ML, iframe) {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    border: 0;
  }
  #PAGES_CONTAINER.gt-reference-page [id].gt-embed-component:has(iframe[src*="/_meetings/"]) {
    height: max(680px, 85svh) !important;
  }
  #PAGES_CONTAINER.gt-reference-page :is(.wixui-repeater, .wixui-repeater > div) {
    min-width: 0 !important;
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    flex-direction: column !important;
    gap: 24px;
  }
  #PAGES_CONTAINER.gt-reference-page .wixui-repeater__item {
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  #PAGES_CONTAINER.gt-reference-page :is(.wixui-button, [class*="StylableButton"][class$="__root"]) {
    box-sizing: border-box;
    height: auto !important;
    min-height: 48px !important;
    max-width: 100%;
    padding: 12px 16px !important;
  }
  #PAGES_CONTAINER.gt-reference-page [class*="StylableButton"][class$="__label"] {
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }
  #PAGES_CONTAINER.gt-reference-page [class*="StylableButton"][class$="__container"] { min-width: 0; }
  #PAGES_CONTAINER.gt-reference-page .gt-form-mount { min-width: 0 !important; width: 100% !important; max-width: 100% !important; }
  .gt-connected-form, .wl-form { min-width: 0; }
  .gt-business-content { width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
  .gt-business-content :is(section, article, form, fieldset, .flex > *, .grid > *) { min-width: 0; }
  .gt-business-content :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
  #PAGES_CONTAINER.gt-reference-page :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
  .wl-page :is(input, select, textarea) {
    min-width: 0;
    max-width: 100%;
    font-size: 16px !important;
    min-height: 48px;
    box-sizing: border-box;
  }
  .gt-business-content :is(button, [role="button"]) { min-height: 44px; white-space: normal; }
  .gt-business-content :is(iframe, video) { max-width: 100%; }
  .gt-business-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .gt-business-content table { display: block; max-width: 100%; overflow-x: auto; }

  /* Keynote proof points stay as icon/text pairs instead of oversized icons. */
  #PAGES_CONTAINER.gt-reference-page :is([data-mesh-id="comp-mphj8vmvinlineContent-gridContainer"],
    [data-mesh-id="comp-mphj8rkfinlineContent-gridContainer"],
    [data-mesh-id="comp-mphj8pvsinlineContent-gridContainer"]) {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
  }
  #PAGES_CONTAINER.gt-reference-page #comp-mpgzo1cf .gt-image-component { flex: 0 0 24px; }
  #PAGES_CONTAINER.gt-reference-page #comp-mpgzo1cf .wixui-rich-text { flex: 1; }
  /* Biography hero image and heading form a readable vertical composition. */
  #PAGES_CONTAINER.gt-reference-page #comp-mojq0k8p { order: -1; }
  #PAGES_CONTAINER.gt-reference-page [data-gt-timeline-photo] { opacity: 1 !important; translate: none !important; }
  #PAGES_CONTAINER.gt-reference-page #comp-mojq7n5j .gt-image-component { margin-top: 20px !important; }
  /* Keep the takeaways heading before its list after the two columns stack. */
  #PAGES_CONTAINER.gt-reference-page #comp-mphu8gwu { order: -4; }
  #PAGES_CONTAINER.gt-reference-page #comp-mphu7qhp { order: -3; }
  #PAGES_CONTAINER.gt-reference-page #comp-mpgix8n3 { order: -2; }
  #PAGES_CONTAINER.gt-reference-page #comp-mpi15u85 { order: -1; padding: 24px; }
  #PAGES_CONTAINER.gt-reference-page #comp-mpi15u85 [data-testid="mesh-container-content"]:has(> .gt-image-component) {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px;
  }
  #PAGES_CONTAINER.gt-reference-page #comp-mpi15u85 .gt-image-component { flex: 0 0 22px; }
  #PAGES_CONTAINER.gt-reference-page #comp-mpi15u85 .wixui-rich-text { flex: 1; }
  #PAGES_CONTAINER.gt-reference-page #bgLayers_comp-mojobarz1::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0a1322d9, #0a132270);
    pointer-events: none;
  }
}

@media (max-width: 800px) {
  #SITE_HEADER.gt-header {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  #SITE_HEADER .gt-brand { align-self: center; padding: 4px; }
  #SITE_HEADER nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    font-size: 14px;
    position: relative;
  }
  #SITE_HEADER nav > a, #SITE_HEADER .gt-dropdown-trigger {
    display: flex;
    justify-content: center;
    min-height: 48px;
    padding: 8px 4px;
    gap: 4px;
    letter-spacing: normal;
    white-space: normal;
  }
  #SITE_HEADER nav > a:last-of-type { padding: 8px 4px; letter-spacing: normal; }
  #SITE_HEADER details { position: static; min-width: 0; }
  #SITE_HEADER details > .gt-dropdown-panel {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 65svh;
    overflow-y: auto;
  }
  #SITE_FOOTER .gt-footer-inner { display: flex; flex-wrap: wrap; gap: 16px 24px; }
  #SITE_FOOTER .gt-footer-inner > a { display: inline-flex; align-items: center; min-height: 44px; }
  #SITE_FOOTER .gt-footer-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  #SITE_FOOTER p { flex-basis: 100%; color: #a6a8ab; }
  .gt-hero-signup .gt-connected-form,
  .gt-contact-card .gt-connected-form,
  .gt-newsletter-card .gt-connected-form { grid-template-columns: minmax(0, 1fr) !important; }
  .gt-hero-signup .gt-form-privacy { position: static; font-size: 12px; line-height: 1.5; margin-top: 4px; }
  .gt-hero-signup .gt-connected-form { padding: 16px; border-radius: 20px; }
  .gt-hero-signup .gt-connected-form button { min-height: 48px; white-space: normal; }
  .gt-hero-signup .gt-connected-field input:not([type="checkbox"]) { height: 48px; }
  .gt-newsletter-card .gt-connected-form > button { margin-top: 0; }
  .gt-form-privacy, .wl-privacy { overflow-wrap: anywhere; }
  .gt-keynote-dialog { width: calc(100% - 24px); max-height: 90svh; border-radius: 12px; }
}

@media (max-width: 600px) {
  .gt-connected-form { padding: 20px; }
  .gt-connected-form button, .wl-submit { width: 100% !important; min-height: 48px; }
  .gt-business-content { padding: 32px 16px 64px; }
  .gt-legal-content { padding: 32px 16px 48px; box-sizing: border-box; }
  .gt-business-content :is(.flex.gap-4, .flex.gap-6):has(> input, > select) { flex-wrap: wrap; }
  .gt-business-content :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { width: 100%; }
  .wl-story h1 { overflow-wrap: anywhere; }
  .gt-contact-copy :is(h1,h2), .gt-hero-copy h1 { overflow-wrap: anywhere; }
}

@media (max-width: 767px) {
  .gt-home-hero .gt-assess {width:100%;max-width:none;align-self:stretch}
  .gt-home-hero .gt-assess a {box-sizing:border-box;width:100%;min-height:56px;justify-content:center;text-align:center;font-size:18px;line-height:1.25;padding:14px 20px}
}

@media (max-width: 800px) {
  .gt-home-hero .gt-hero-copy { margin-bottom: 0; }
  .gt-home-hero .gt-hero-copy p { margin-top: 14px; }
  .gt-home-hero .gt-assess { margin: 16px 0 0; }
  .gt-home-hero .gt-hero-proof { margin-top: 20px; }
}

@media (min-width: 901px) {
  .gt-home-hero .gt-hero-content {
    min-height: max(clamp(620px, 50vw, 720px), calc(clamp(100px, 12.5vw, 180px) + clamp(42px, 4.1vw, 56px) * 1.12 + clamp(32px, 5vw, 64px) + 390px));
  }
}

@media (max-width: 767px) {
  #PAGES_CONTAINER #comp-moh0eqzw {
    box-sizing: border-box;
    min-height: 88vh !important;
    min-height: 88svh !important;
    display: grid !important;
    align-content: center;
  }
}
