/* Shared navigation for the archived platform and WordPress pages. */
body.sm-restored {
  margin: 0;
}

body.sm-restored > .sm-site-header,
body.sm-restored > .sm-site-footer {
  position: relative;
  inset: auto;
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  font: 500 1rem/1.45 system-ui, sans-serif;
  text-align: start;
}

.sm-restored .main-header-wrapper,
.sm-restored .fixed-header-wrapper,
.sm-restored .mobile-header-overlay,
.sm-restored .mobile-menu,
.sm-restored .page-footer,
.sm-restored #header-space,
.sm-restored #header-outer,
.sm-restored #footer-outer,
.sm-restored #footer,
.sm-restored #slide-out-widget-area,
.sm-restored #slide-out-widget-area-bg {
  display: none !important;
}

body.sm-restored > .sm-site-header {
  z-index: 20;
  color: #23153e;
  background: #fff;
  border-bottom: 1px solid #e8def8;
}

.sm-site-header .sm-shell,
.sm-site-footer .sm-shell {
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 72rem);
  margin-inline: auto;
}

.sm-site-header .sm-header-row {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}

.sm-site-header .sm-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .625rem;
  font-size: 1.125rem;
  font-weight: 800;
}

.sm-site-header .sm-brand img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: .45rem;
}

.sm-site-header .sm-desktop-nav,
.sm-site-footer .sm-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1rem;
}

.sm-site-header a,
.sm-site-footer a {
  color: inherit;
  text-decoration: none;
}

.sm-site-header .sm-nav-link,
.sm-site-footer .sm-footer-nav a,
.sm-site-header .sm-menu-toggle {
  display: inline-flex;
  box-sizing: border-box;
  min-height: 44px;
  align-items: center;
}

.sm-site-header .sm-nav-link:hover,
.sm-site-header .sm-nav-link[aria-current="page"],
.sm-site-footer .sm-footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.sm-site-header .sm-app-link {
  padding: .4rem .875rem;
  border-radius: .5rem;
  color: #fff;
  background: #4e316e;
  font-weight: 700;
}

.sm-site-header .sm-mobile-menu {
  display: none;
}

.sm-site-header .sm-menu-toggle {
  gap: .5rem;
  padding: .45rem .75rem;
  border: 1px solid #cfc2e2;
  border-radius: .5rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.sm-site-header .sm-menu-toggle::-webkit-details-marker {
  display: none;
}

.sm-site-header .sm-menu-icon {
  width: 1rem;
  height: .75rem;
  border-block: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

body.sm-restored > .sm-site-footer {
  color: #fff;
  background: #23153e;
}

.sm-site-footer .sm-shell {
  display: grid;
  gap: .6rem;
  padding-block: 1.375rem;
}

.sm-site-footer .sm-footer-brand {
  font-weight: 800;
}

.sm-site-footer .sm-copyright {
  color: #e8def8;
  font-size: .875rem;
}

.sm-home-newsletter {
  box-sizing: border-box;
  margin: 1.5rem auto;
  width: min(calc(100% - 2rem), 48rem);
  padding: clamp(1rem, 4vw, 2rem);
  color: #fff;
  background: #23153e;
  border-radius: .75rem;
}

.sm-home-newsletter h2,
.sm-home-newsletter p {
  color: inherit;
}

@media (max-width: 960px) {
  .sm-site-header .sm-header-row {
    position: relative;
    display: block;
    min-height: 64px;
    padding-block: .625rem;
  }

  .sm-site-header .sm-desktop-nav {
    display: none;
  }

  .sm-site-header .sm-mobile-menu {
    display: block;
  }

  .sm-site-header .sm-menu-toggle {
    display: flex;
    width: max-content;
    margin-inline-start: auto;
  }

  .sm-site-header .sm-brand {
    position: absolute;
    inset-block-start: .625rem;
    inset-inline-start: 0;
    min-height: 44px;
    max-width: calc(100% - 7rem);
    font-size: 1rem;
  }

  .sm-site-header .sm-mobile-nav {
    display: grid;
    gap: .125rem;
    padding-block: .5rem .25rem;
  }

  .sm-site-header .sm-mobile-menu:not([open]) .sm-mobile-nav {
    display: none;
  }

  .sm-site-header .sm-mobile-nav .sm-nav-link {
    padding-inline: .75rem;
  }

  .sm-site-footer .sm-footer-nav {
    column-gap: .875rem;
  }
}

@media (max-width: 768px) {
  /* The archived website builder uses inline desktop widths on its columns. */
  .sm-restored.theme .content .grid-row > .grid-content:has(> .grid-column) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(calc(100% - 2rem), 42rem);
    gap: clamp(.75rem, 3vw, 1.5rem);
  }

  .sm-restored.theme .content .grid-content > .grid-column {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100% !important;
    min-width: 0;
    margin-inline: 0 !important;
  }

  .sm-restored.theme .content .grid-column-no-widgets:not(.grid-column-with-bg):not(.has-bg-color) {
    display: none;
  }

  .sm-restored.theme .content .grid-column .widget-row > .widget {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-inline: 0 !important;
  }

  .sm-restored.theme .content .posts-list-wrapper {
    float: none;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  /* WPBakery rows can remain flex containers even after floats reset. */
  .sm-restored.restore-wordpress .container-wrap .vc_row-flex > .row_col_wrap_12,
  .sm-restored.restore-wordpress .container-wrap .vc_row-flex > .span_12 {
    flex-direction: column;
    align-items: stretch;
  }

  .sm-restored.restore-wordpress .container-wrap .wpb_row .wpb_column {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    margin-inline: 0 !important;
  }

  .sm-restored.theme .content :is(h1, h2, h3, h4),
  .sm-restored.restore-wordpress :is(.container-wrap, #page-header-bg) :is(h1, h2, h3, h4) {
    overflow-wrap: anywhere;
    line-height: 1.2 !important;
    font-size: var(--sm-mobile-heading-size) !important;
  }

  .sm-restored.theme .content :is(h1, h2, h3, h4) span[style*="font-size"],
  .sm-restored.restore-wordpress .container-wrap :is(h1, h2, h3, h4) span[style*="font-size"] {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  .sm-restored h1 {
    --sm-mobile-heading-size: clamp(1.65rem, 5.5vw, 2.25rem);
  }

  .sm-restored h2 {
    --sm-mobile-heading-size: clamp(1.4rem, 4.7vw, 1.875rem);
  }

  .sm-restored h3 {
    --sm-mobile-heading-size: clamp(1.2rem, 4vw, 1.55rem);
  }

  .sm-restored h4 {
    --sm-mobile-heading-size: clamp(1.075rem, 3.4vw, 1.25rem);
  }

  .sm-restored.theme .content .text-widget-content,
  .sm-restored.restore-wordpress .container-wrap .wpb_text_column {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .sm-restored.theme .content .text-widget-content img,
  .sm-restored.theme .content .imageWidget img {
    max-width: 100%;
    height: auto;
  }

  .sm-restored #heading-widget-1646140010568 {
    margin-top: clamp(1.25rem, 6vw, 3rem) !important;
  }

  .sm-restored #heading-widget-1646140010568 h2 {
    --sm-mobile-heading-size: clamp(1.75rem, 5.8vw, 2.5rem);
    line-height: 1.15 !important;
  }
}
