/*
 * Fund Administration Services page layer.
 * This adapts the existing Gutenberg content to the TT5 layout while keeping
 * the page editable with normal blocks.
 */

body.trustmoore-fund-services-page {
  overflow-x: hidden;
}

body.trustmoore-service-page {
  overflow-x: hidden;
}

body.trustmoore-service-page .wp-site-blocks,
body.trustmoore-service-page .trustmoore-site-main {
  overflow-x: clip;
}

body.trustmoore-service-page .wp-block-post-content {
  max-width: none;
  width: 100%;
}

body.trustmoore-service-page .wp-block-post-content,
body.trustmoore-service-page .wp-block-post-content p,
body.trustmoore-service-page .wp-block-post-content li {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

body.trustmoore-service-page .wp-block-post-content h1,
body.trustmoore-service-page .wp-block-post-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 32px;
  text-transform: uppercase;
}

body.trustmoore-service-page .wp-block-post-content > .wp-block-columns:is(.alignwide, .alignfull).has-theme-palette-7-background-color {
  align-items: center;
  display: flex;
  height: 282px;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  max-width: none !important;
  min-height: 282px;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  width: 100vw !important;
}

body.trustmoore-service-page .trustmoore-service-nav {
  display: none !important;
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 58px !important;
  max-width: var(--wp--custom--trustmoore--content-default);
  width: min(var(--wp--custom--trustmoore--content-default), calc(100vw - 60px));
}

body.trustmoore-service-page .trustmoore-service-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.trustmoore-service-page .trustmoore-service-nav a {
  border: 1px solid var(--wp--preset--color--trustmoore-border-gray);
  color: var(--wp--preset--color--trustmoore-black);
  display: inline-flex;
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  min-height: 38px;
  padding: 6px 16px;
  text-decoration: none;
}

body.trustmoore-service-page .trustmoore-service-nav a:hover,
body.trustmoore-service-page .trustmoore-service-nav a:focus {
  background: var(--wp--preset--color--trustmoore-light-gray);
  color: var(--wp--preset--color--trustmoore-red);
}

body.trustmoore-service-page .trustmoore-service-nav a.is-current {
  background: var(--wp--preset--color--trustmoore-red);
  border-color: var(--wp--preset--color--trustmoore-red);
  color: var(--wp--preset--color--trustmoore-white);
}

body.trustmoore-service-page:not(.trustmoore-fund-services-page) .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)) {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: none !important;
  width: 100vw !important;
}

body.trustmoore-service-page:not(.trustmoore-fund-services-page) .wp-block-post-content > .wp-block-columns:has(.bb_slider.bb-anim-slider-wrapper) {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100vw !important;
}

body.trustmoore-service-page:not(.trustmoore-fund-services-page) .wp-block-post-content > .wp-block-columns:has(.bb_slider.bb-anim-slider-wrapper) > .wp-block-column {
  flex-basis: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

body.trustmoore-fund-services-page .wp-site-blocks,
body.trustmoore-fund-services-page .trustmoore-site-main {
  overflow-x: clip;
}

body.trustmoore-fund-services-page .wp-block-post-content,
body.trustmoore-fund-services-page .wp-block-post-content p,
body.trustmoore-fund-services-page .wp-block-post-content li {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

body.trustmoore-fund-services-page .wp-block-post-content h1,
body.trustmoore-fund-services-page .wp-block-post-content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 32px;
  text-transform: uppercase;
}

body.trustmoore-fund-services-page .trustmoore-service-nav {
  display: none !important;
}

body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:is(.alignwide, .alignfull).has-theme-palette-7-background-color {
  height: 282px;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  max-width: none !important;
  min-height: 282px;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  width: 100vw !important;
}

body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:is(.alignwide, .alignfull).has-theme-palette-7-background-color > .wp-block-column[style*="flex-basis:75%"] {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 44px !important;
  padding-top: 30px !important;
}

body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:is(.alignwide, .alignfull).has-theme-palette-7-background-color > .wp-block-column[style*="flex-basis:75%"] > .wp-block-spacer {
  display: none !important;
}

body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:is(.alignwide, .alignfull).has-theme-palette-7-background-color .wp-block-image {
  line-height: 0;
}

body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:is(.alignwide, .alignfull).has-theme-palette-7-background-color .wp-block-image img {
  display: block;
}

body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:is(.alignwide, .alignfull).has-theme-palette-7-background-color > .wp-block-column[style*="flex-basis:50%"] {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:is(.alignwide, .alignfull).has-theme-palette-7-background-color + .wp-block-columns {
  margin-top: 32px !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-container {
  background: var(--wp--preset--color--trustmoore-yellow) !important;
  box-sizing: border-box;
  margin-top: -80px !important;
  padding: 80px 40px 40px !important;
  position: relative !important;
  z-index: 1;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-int-map-container {
  position: relative !important;
  z-index: 2;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .locations {
  height: auto !important;
  min-height: 200px;
  opacity: 1;
  overflow: visible !important;
  transition: opacity 140ms ease;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .locations.is-transitioning {
  opacity: 0;
}

.trustmoore-jurisdictions-map__nav {
  display: none;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location {
  box-sizing: content-box !important;
  display: flex !important;
  height: auto !important;
  line-height: 28px !important;
  min-height: 200px !important;
  position: relative !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location__content {
  box-sizing: border-box !important;
  padding-right: 230px !important;
  width: 384px !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-image {
  height: 200px !important;
  left: 240px !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  width: 200px !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-image img {
  display: block !important;
  height: 200px !important;
  object-fit: cover !important;
  width: 200px !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location h3,
body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location h4 {
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 27.6px !important;
  margin: 0 0 15px !important;
  text-transform: none !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location p {
  font-size: 15px !important;
  line-height: 18px !important;
  margin: 0 !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location p a {
  font-size: inherit !important;
  line-height: inherit !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .trustmoore-jurisdictions-map__svg .st1 {
  fill: none !important;
  stroke: #000 !important;
  stroke-width: 0.5px !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .trustmoore-map-point,
body.trustmoore-service-page .trustmoore-jurisdictions-map .trustmoore-jurisdictions-map__svg .st2 {
  cursor: pointer;
  fill: var(--wp--preset--color--trustmoore-red) !important;
  stroke: var(--wp--preset--color--trustmoore-yellow) !important;
  stroke-width: 0 !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .trustmoore-map-point.is-active,
body.trustmoore-service-page .trustmoore-jurisdictions-map .trustmoore-map-point:focus-visible {
  stroke: var(--wp--preset--color--trustmoore-red) !important;
  stroke-width: 7px !important;
}

body.trustmoore-fund-services-page .has-nothing-you-could-do-font-family {
  color: #020202;
  display: block;
  font-family: "Nothing You Could Do", cursive !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  left: 50%;
  line-height: 30px !important;
  margin: 80px auto !important;
  max-width: 494px !important;
  position: relative;
  text-align: center;
  transform: translateX(-50%);
  width: min(494px, calc(100vw - 80px)) !important;
}

body.trustmoore-fund-services-page .has-nothing-you-could-do-font-family strong {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: inherit !important;
}

body.trustmoore-fund-services-page .mi-sticky {
  position: sticky;
  top: 96px;
}

body.trustmoore-service-page .mi-sticky .wp-block-social-links,
body.trustmoore-fund-services-page .mi-sticky .wp-block-social-links {
  display: none !important;
}

body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:has(.bb_slider.bb-anim-slider-wrapper) {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100vw !important;
}

body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:has(.bb_slider.bb-anim-slider-wrapper) > .wp-block-column {
  flex-basis: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

body.trustmoore-fund-services-page .wp-block-column:has(> .bb_slider.bb-anim-slider-wrapper) {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100vw !important;
}

body.trustmoore-fund-services-page .bb_slider.bb-anim-slider-wrapper {
  left: auto;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: var(--wp--custom--trustmoore--content-default);
  transform: none;
  width: min(var(--wp--custom--trustmoore--content-default), calc(100vw - 80px));
}

body.trustmoore-service-page .trustmoore-jurisdictions-map {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-int-map-container,
body.trustmoore-service-page .trustmoore-jurisdictions-map .trustmoore-jurisdictions-map__svg,
body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-container {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100vw !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .locations {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: calc(100vw - 80px);
  width: 440px !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location {
  margin-left: auto;
  margin-right: auto;
  width: 440px;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .trustmoore-map-more-info,
body.trustmoore-service-page .trustmoore-jurisdictions-map .trustmoore-map-more-info:visited {
  color: var(--wp--preset--color--trustmoore-white) !important;
  margin-top: 14px;
  text-decoration: none !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .trustmoore-map-more-info:hover,
body.trustmoore-service-page .trustmoore-jurisdictions-map .trustmoore-map-more-info:focus {
  background-color: #666;
  border-color: #666;
  color: var(--wp--preset--color--trustmoore-white) !important;
  text-decoration: none !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map .trustmoore-map-more-info .trustmoore-arrow-button__text,
body.trustmoore-service-page .trustmoore-jurisdictions-map .trustmoore-map-more-info .trustmoore-arrow-button__arrow {
  color: inherit !important;
}

body.trustmoore-service-page .trustmoore-jurisdictions-map + .trustmoore-jurisdictions-map {
  display: none !important;
}

@media (min-width: 768px) {
  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.accordion-shadow-hover)):not(:has(.bb_slider.bb-anim-slider-wrapper)) {
    margin-left: calc((100% - min(var(--wp--custom--trustmoore--content-default), calc(100vw - 60px))) / 2) !important;
    margin-right: calc((100% - min(var(--wp--custom--trustmoore--content-default), calc(100vw - 60px))) / 2) !important;
    max-width: min(var(--wp--custom--trustmoore--content-default), calc(100vw - 60px)) !important;
    width: min(var(--wp--custom--trustmoore--content-default), calc(100vw - 60px)) !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)) > .wp-block-column[style*="flex-basis:25%"]:empty {
    display: none !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):not(:has(> .wp-block-column[style*="flex-basis:25%"]:not(:empty))) > .wp-block-column[style*="flex-basis:50%"] {
    flex: 0 1 var(--wp--custom--trustmoore--content-narrow) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(var(--wp--custom--trustmoore--content-narrow), 100%) !important;
    width: min(var(--wp--custom--trustmoore--content-narrow), 100%) !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(> .wp-block-column[style*="flex-basis:25%"]:not(:empty)):not(:has(.mi-sticky)) > .wp-block-column[style*="flex-basis:50%"] {
    flex-basis: calc(100% - 280px - 32px) !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(> .wp-block-column[style*="flex-basis:25%"]:not(:empty)):not(:has(.mi-sticky)) > .wp-block-column[style*="flex-basis:25%"]:not(:empty) {
    flex-basis: 280px !important;
    padding-left: 32px !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:has(.accordion-shadow-hover) {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: var(--wp--custom--trustmoore--content-narrow) !important;
    width: min(var(--wp--custom--trustmoore--content-narrow), 100%) !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):has(.mi-sticky) {
    max-width: var(--wp--custom--trustmoore--content-narrow) !important;
    position: relative;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):has(.mi-sticky) > .wp-block-column[style*="flex-basis:50%"] {
    flex: 0 1 var(--wp--custom--trustmoore--content-narrow) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(var(--wp--custom--trustmoore--content-narrow), 100%) !important;
    width: min(var(--wp--custom--trustmoore--content-narrow), 100%) !important;
  }

  body.trustmoore-fund-services-page .wp-block-column:has(> .mi-sticky) {
    overflow: visible !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.trustmoore-fund-services-page .mi-sticky {
    align-items: flex-start !important;
    background: var(--wp--preset--color--trustmoore-panel-gray) !important;
    box-sizing: border-box !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    min-height: 438px !important;
    padding: 0 50px !important;
    width: 264px !important;
  }

  body.trustmoore-fund-services-page .mi-sticky > .wp-block-column {
    box-sizing: border-box !important;
    flex-basis: auto !important;
    max-width: none !important;
    padding: 0 !important;
    width: 164px !important;
  }

  body.trustmoore-fund-services-page .mi-sticky h3.wp-block-heading {
    font-size: 26px !important;
    line-height: 1.05 !important;
    margin: 50px 0 30px !important;
    width: 164px !important;
  }

  body.trustmoore-fund-services-page .mi-sticky h3.wp-block-heading strong {
    display: block;
    font-size: 25px !important;
    line-height: 26px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):has(.mi-sticky) {
    flex-wrap: wrap !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):has(.mi-sticky) > .wp-block-column:has(> .mi-sticky) {
    flex: 0 0 264px !important;
    margin: 40px auto 0 !important;
    position: static !important;
    width: 264px !important;
  }

  body.trustmoore-fund-services-page .mi-sticky {
    position: static !important;
  }
}

@media (min-width: 1024px) {
  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):has(.mi-sticky) {
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    gap: 32px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(var(--wp--custom--trustmoore--content-default), calc(100vw - 60px)) !important;
    width: min(var(--wp--custom--trustmoore--content-default), calc(100vw - 60px)) !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):has(.mi-sticky) > .wp-block-column[style*="flex-basis:50%"] {
    flex: 1 1 auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    width: auto !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):has(.mi-sticky) > .wp-block-column:has(> .mi-sticky) {
    align-self: stretch !important;
    flex: 0 0 264px !important;
    margin: 0 !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    width: 264px !important;
  }

  body.trustmoore-fund-services-page .mi-sticky {
    position: sticky !important;
    top: calc(var(--wp--custom--trustmoore--header-height-desktop, 114px) + 24px) !important;
  }
}

@media (max-width: 767px) {
  body.trustmoore-service-page:not(.trustmoore-fund-services-page) .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)) {
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    width: 100% !important;
  }

  body.trustmoore-service-page:not(.trustmoore-fund-services-page) .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)) > .wp-block-column {
    min-width: 0;
  }

  body.trustmoore-service-page .wp-block-post-content > .wp-block-columns:is(.alignwide, .alignfull).has-theme-palette-7-background-color {
    height: 150px;
    margin-top: 0 !important;
    min-height: 150px;
  }

  body.trustmoore-service-page .trustmoore-service-nav {
    display: none;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:is(.alignwide, .alignfull).has-theme-palette-7-background-color {
    height: 150px;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    min-height: 150px;
    width: 100vw !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content,
  body.trustmoore-fund-services-page .wp-block-post-content p,
  body.trustmoore-fund-services-page .wp-block-post-content li {
    font-size: 16px;
    line-height: 1.75;
  }

  body.trustmoore-fund-services-page .wp-block-post-content h1,
  body.trustmoore-fund-services-page .wp-block-post-content h2 {
    font-size: 23px !important;
    line-height: 32px !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull) {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:has(.bb_slider.bb-anim-slider-wrapper) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:has(.bb_slider.bb-anim-slider-wrapper) > .wp-block-column {
    flex-basis: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content .wp-block-columns:has(> .wp-block-column > .has-nothing-you-could-do-font-family) {
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content .wp-block-columns:has(> .wp-block-column > .has-nothing-you-could-do-font-family) > .wp-block-column {
    box-sizing: border-box !important;
    flex: 0 1 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map .locations {
    min-height: 191px;
    overflow: visible !important;
    max-width: calc(100vw - 68px) !important;
    width: calc(100vw - 68px) !important;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location {
    height: auto !important;
    min-height: 191px !important;
    width: 100% !important;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location__content {
    flex: 0 0 163px !important;
    padding-right: 0 !important;
    width: 163px !important;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location h3,
  body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location h4 {
    white-space: nowrap;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-image {
    flex: 0 0 calc(100% - 193px) !important;
    height: calc(100vw - 261px) !important;
    left: auto !important;
    max-height: 130px !important;
    max-width: 130px !important;
    min-height: 120px !important;
    position: relative !important;
    right: auto !important;
    top: 20px !important;
    width: calc(100vw - 261px) !important;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-image img {
    height: 100% !important;
    width: 100% !important;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map__nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map__nav button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #000;
    display: inline-flex;
    font-size: 22px;
    height: 42px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 42px;
  }

  body.trustmoore-fund-services-page .mi-sticky {
    position: static;
  }

  body.trustmoore-fund-services-page .has-nothing-you-could-do-font-family {
    left: auto;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 273px !important;
    position: static;
    transform: none;
    width: min(273px, 100%) !important;
  }

  body.trustmoore-fund-services-page .wp-block-column:has(> .bb_slider.bb-anim-slider-wrapper) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  body.trustmoore-fund-services-page .bb_slider.bb-anim-slider-wrapper {
    height: 560px !important;
    left: auto;
    transform: none;
    width: 100%;
  }
}

@media (min-width: 768px) {
  body.trustmoore-service-page:not(.trustmoore-fund-services-page) .wp-block-column:has(> .mi-sticky) {
    overflow: visible !important;
  }

  body.trustmoore-service-page:not(.trustmoore-fund-services-page) .mi-sticky {
    align-self: flex-start;
    position: sticky !important;
    top: calc(var(--wp--custom--trustmoore--header-height-desktop, 114px) + 24px) !important;
  }
}


/* BB-27 second pass: mobile map column balance and image-aligned navigation. */
@media (max-width: 767px) {
  body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-container {
    --trustmoore-map-mobile-copy: clamp(163px, 38vw, 220px);
    --trustmoore-map-mobile-gap: clamp(20px, 4vw, 28px);
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map .locations {
    margin-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location {
    align-items: start;
    column-gap: var(--trustmoore-map-mobile-gap);
    display: grid !important;
    grid-template-columns: var(--trustmoore-map-mobile-copy) minmax(0, 1fr);
    min-height: 0 !important;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-location__content {
    flex: none !important;
    width: auto !important;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-image {
    aspect-ratio: 1 / 1;
    flex: none !important;
    height: auto !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    top: 0 !important;
    width: 100% !important;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map .bb-image img {
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
  }

  body.trustmoore-service-page .trustmoore-jurisdictions-map__nav {
    box-sizing: border-box;
    justify-content: center;
    margin-left: calc(var(--trustmoore-map-mobile-copy) + var(--trustmoore-map-mobile-gap));
    width: calc(100% - var(--trustmoore-map-mobile-copy) - var(--trustmoore-map-mobile-gap));
  }
}
/* BB-41 follow-up: align the services accordion to the intro track while
 * keeping the existing right-hand contact card sticky only on desktop. */
@media (min-width: 782px) {
  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) {
    box-sizing: border-box !important;
    column-gap: 40px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    width: 100vw !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) > .wp-block-column[style*="flex-basis:25%"]:empty {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) > .wp-block-column[style*="flex-basis:50%"] {
    flex: none !important;
    grid-column: 2;
    grid-row: 1;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    width: auto !important;
  }
}

@media (min-width: 782px) and (max-width: 1023px) {
  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) > .wp-block-column:has(> .mi-sticky) {
    align-self: start !important;
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    margin: 40px auto 0 !important;
    position: static !important;
    width: min(264px, 100%) !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) .mi-sticky {
    position: static !important;
    width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 781px) {
  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) {
    box-sizing: border-box !important;
    display: block !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    width: 100vw !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) > .wp-block-column[style*="flex-basis:25%"]:empty {
    display: none !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) > .wp-block-column[style*="flex-basis:50%"] {
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) > .wp-block-column:has(> .mi-sticky) {
    margin: 40px auto 0 !important;
    position: static !important;
    width: min(264px, 100%) !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) .mi-sticky {
    position: static !important;
    width: 100% !important;
  }
}

@media (min-width: 1024px) {
  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) > .wp-block-column:has(> .mi-sticky) {
    align-self: stretch !important;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin: 0 !important;
    position: relative !important;
    width: min(264px, 100%) !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) .mi-sticky {
    padding-left: clamp(28px, calc(12.5vw - 99.5px), 50px) !important;
    padding-right: clamp(28px, calc(12.5vw - 99.5px), 50px) !important;
    width: 100% !important;
  }

  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) .mi-sticky > .wp-block-column,
  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) .mi-sticky h3.wp-block-heading {
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  body.trustmoore-fund-services-page .wp-block-post-content > .wp-block-columns:not(.alignwide):not(.alignfull):not(:has(.bb_slider.bb-anim-slider-wrapper)):has(.accordion-shadow-hover):has(.mi-sticky) > .wp-block-column[style*="flex-basis:50%"] {
    box-sizing: border-box !important;
    flex: 0 0 calc(100% - 16px) !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    max-width: calc(100% - 16px) !important;
    width: calc(100% - 16px) !important;
  }
}

/* BB-41: move only the two remaining inset service sidebars to the edge. */
@media (min-width: 1024px) {
  body:is(.page-id-18845, .page-id-18849) .wp-block-column:has(> .mi-sticky) {
    position: relative !important;
    left: 30px;
  }
}

/* Restore existing LinkedIn links over their photos without shifting the CTAs. */
body.trustmoore-service-page .mi-sticky .wp-block-social-links:has(.wp-social-link-linkedin) {
  align-items: flex-start;
  display: flex !important;
  height: 0;
  margin-block: 0 !important;
  position: relative;
  top: -40px;
  z-index: 1;
}

body.trustmoore-service-page .mi-sticky .wp-social-link-linkedin .wp-block-social-link-anchor {
  align-items: center;
  background: #111;
  border-radius: 2px;
  box-sizing: border-box;
  color: #fff !important;
  display: flex;
  height: 32px;
  justify-content: center;
  padding: 4px;
  width: 32px;
}

body.trustmoore-service-page .mi-sticky .wp-social-link-linkedin svg {
  height: 24px;
  width: 24px;
}
