/* Shared responsive corrections for the existing Elementor layouts. */
.psychboston-contact-lines .pib-fax {color:#0b6972;font-weight:700;}
.psychboston-contact-lines {overflow-wrap:anywhere;}
.psychboston-form,.psychboston-form label,.psychboston-contact-grid > * {min-width:0;}
.psychboston-form {grid-template-columns:repeat(2,minmax(0,1fr));}
.psychboston-form input,.psychboston-form textarea {min-width:0;max-width:100%;box-sizing:border-box;font-size:16px;}
.psychboston-form .hp {display:none;}
main .elementor-widget-shortcode {max-width:100%;min-width:0;}
main .elementor-shortcode,main iframe,#colophon iframe {max-width:100%;}
@media(max-width:1024px) {
  /* Use one compact header and a single accessible bottom navigation row. */
  body {padding-bottom:calc(86px + env(safe-area-inset-bottom));}
  #masthead .elementor-90 > .elementor-element-404c7e860,
  #masthead .elementor-90 > .elementor-element-efe8835 {display:none!important;}
  #masthead .elementor-90 > .elementor-element-9bc0b79 {display:grid!important;padding:12px 20px!important;}
  #masthead .elementor-element-9bc0b79 > .e-con-inner {display:grid;grid-template-columns:1fr 1fr;align-items:center;width:100%;}
  #masthead .elementor-element-406f939 {text-align:left;}
  #masthead .elementor-element-406f939 img {width:64px;height:auto;}
  #masthead .elementor-element-bf7e523 {text-align:right;}
  #masthead .elementor-element-bf7e523 a {min-height:44px;display:inline-flex;align-items:center;justify-content:center;}
  #masthead .elementor-90 > .elementor-element-2c6a17e {display:flex!important;position:fixed!important;inset:auto 0 0!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;z-index:9999;transform:none!important;}
  #masthead .elementor-element-2c6a17e > .e-con-inner {width:100%;max-width:100%;padding:0;margin:0;}
  #masthead .elementor-element-e29dcfb {display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:auto!important;gap:0!important;width:100%!important;max-width:100%;margin:0!important;padding:10px 6px calc(10px + env(safe-area-inset-bottom))!important;border-radius:12px 12px 0 0!important;animation:none!important;transform:none!important;box-shadow:0 -3px 16px #0002;}
  #masthead .elementor-element-f3a7752 {display:none!important;}
  #masthead .elementor-element-e29dcfb > .elementor-widget {width:100%;min-width:0;margin:0!important;padding:0!important;}
  #masthead .elementor-element-e29dcfb .elementor-icon-box-wrapper {display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;}
  #masthead .elementor-element-e29dcfb .elementor-icon-box-icon {margin:0!important;}
  #masthead .elementor-element-e29dcfb .elementor-icon {font-size:23px!important;line-height:1;}
  #masthead .elementor-element-e29dcfb .elementor-icon-box-title,
  #masthead .elementor-element-e29dcfb .elementor-icon-box-title a {font-size:12px!important;line-height:1.35!important;margin:0!important;}
  #masthead .elementor-element-845eb78 .elementor-icon-box-wrapper::after {content:'Home';font:600 12px/1.35 Poppins,sans-serif;color:white;}
  #masthead .elementor-element-8ab3ed5 .hfe-nav-menu__toggle {min-height:44px;margin:0;display:flex;flex-direction:column;gap:4px;justify-content:center;padding:0;}
  #masthead .elementor-element-8ab3ed5 .hfe-nav-menu-icon svg {width:23px;height:23px;}
  #masthead .elementor-element-8ab3ed5 .hfe-nav-menu__toggle::after {content:'Menu';font:600 12px/1.35 Poppins,sans-serif;color:white;}
  #masthead .hfe-flyout-wrapper .hfe-side {width:min(320px,90vw)!important;max-width:90vw;height:100dvh;overflow-y:auto;}
  #masthead .hfe-flyout-content {padding:26px!important;padding-bottom:100px!important;}
  .pib-mobile-menu {position:static;}
  .pib-mobile-menu summary {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:46px;list-style:none;cursor:pointer;color:#fff;font:600 12px/1.35 Poppins,sans-serif;}
  .pib-mobile-menu summary::-webkit-details-marker {display:none;}
  .pib-mobile-menu summary:focus-visible {outline:2px solid #153b3f;outline-offset:2px;}
  .pib-mobile-menu[open] summary {color:#153b3f;}
  .pib-menu-panel {position:fixed;left:12px;right:12px;bottom:calc(86px + env(safe-area-inset-bottom));max-height:calc(100dvh - 110px);overflow-y:auto;background:#fff;border:1px solid #dbe8e8;border-radius:12px;padding:16px;box-shadow:0 4px 32px #0003;text-align:left;}
  #masthead .pib-menu-panel .hfe-nav-menu {display:block!important;margin:0;padding:0;list-style:none;}
  #masthead .pib-menu-panel li {display:block;width:100%;margin:0!important;list-style:none;}
  #masthead .pib-menu-panel a {display:flex;align-items:center;min-height:44px;padding:10px 12px!important;font:500 16px/1.5 Poppins,sans-serif!important;color:#153b3f!important;text-align:left;white-space:normal;}
  #masthead .pib-menu-panel .sub-menu {display:block!important;position:static!important;visibility:visible!important;opacity:1!important;transform:none!important;width:auto!important;min-width:0!important;margin:0 0 0 14px!important;padding:0!important;background:#f5f8f6;box-shadow:none;}
  #masthead .pib-menu-panel .sub-arrow {display:none;}
  /* Prevent animation transforms from pushing entire sections offscreen. */
  main .elementor-element.animated {animation:none!important;transform:none!important;}
  main .elementor-invisible {visibility:visible!important;}
  main .e-con,main .e-con-inner,main .elementor-widget {min-width:0;}
  main .elementor-widget__width-initial {max-width:100%!important;}
  main .elementor-heading-title,main .elementor-image-box-title {overflow-wrap:break-word;}
  #colophon .elementor-element-5530df4 > .e-con-inner {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;padding:24px;}
  #colophon .elementor-element-5530df4 > .e-con-inner > .e-con {width:100%!important;min-width:0;}
  #colophon .elementor-icon-box-description {overflow-wrap:anywhere;}
  #colophon iframe {width:100%;}
  .elementor-112 .e-grid > .e-con-inner {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px;}
  .elementor-112 .e-grid > .e-con-inner > .e-con {width:100%!important;min-width:0;}
}
@media(max-width:900px) {
  .psychboston-contact-grid {grid-template-columns:minmax(0,1fr)!important;gap:28px;}
  .psychboston-contact-wrap {padding:28px 20px 40px;}
}
@media(max-width:600px) {
  .psychboston-form {grid-template-columns:minmax(0,1fr)!important;padding:18px;}
  #colophon .elementor-element-5530df4 > .e-con-inner {grid-template-columns:minmax(0,1fr);gap:28px;padding:24px 20px;}
  .elementor-112 .e-grid > .e-con-inner {grid-template-columns:minmax(0,1fr)!important;}
  main h1.elementor-heading-title {font-size:clamp(28px,8vw,38px)!important;line-height:1.2!important;}
  main h2.elementor-heading-title {font-size:clamp(24px,6.5vw,30px)!important;line-height:1.3!important;}
}
