html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; color: var(--soma-ink); font-family: "DM Sans", sans-serif; }
body.soma-menu-open { overflow: hidden; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(var(--soma-container), calc(100% - (2 * var(--soma-gutter)))); margin-inline: auto; }
.soma-skip-link { position: fixed; left: 12px; top: -80px; z-index: 10000; padding: 12px 16px; border-radius: 8px; background: #fff; color: var(--soma-plum); box-shadow: var(--soma-shadow-sm); }
.soma-skip-link:focus { top: 12px; }
.soma-site-header { --soma-header-bg: rgba(255,255,255,.97); --soma-header-border: var(--soma-line); --soma-header-text: var(--soma-plum); --soma-header-hover: var(--soma-purple); --soma-header-shadow: 0 18px 48px rgba(42,13,63,.1); position: sticky; top: 0; z-index: 1000; min-height: 110px; display: grid; align-items: center; padding-block: 15px; background: transparent; }
body.home-medicy-page .soma-site-header,
body.single-post .soma-site-header { position: absolute; top: 0; right: 0; left: 0; }
.soma-site-header.theme-dark { --soma-header-bg: var(--soma-plum); --soma-header-border: rgba(255,255,255,.26); --soma-header-text: #fff; --soma-header-hover: #f5a07e; --soma-header-shadow: 0 16px 45px rgba(22,5,31,.24); }
.soma-site-header .nav { min-height: 78px; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 28px; padding: 0 28px; border: 1px solid var(--soma-header-border); border-radius: 24px; background: var(--soma-header-bg); box-shadow: var(--soma-header-shadow); }
.soma-site-header .logo img { width: 172px; height: auto; }
.soma-site-header .links { display: flex; justify-content: center; align-items: center; gap: 27px; font-weight: 700; font-size: 14px; }
.soma-site-header a { text-decoration: none; }
.soma-site-header .links > a, .soma-site-header .nav-group > button { color: var(--soma-header-text); }
.soma-site-header .links > a:hover, .soma-site-header .links > a.active, .soma-site-header .nav-group > button:hover { color: var(--soma-header-hover); }
.soma-site-header .nav-actions .btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 19px; border-radius: 999px; color: #fff !important; font-weight: 700; line-height: 1.2; text-decoration: none !important; }
.soma-site-header .nav-group > button { display: inline-flex; align-items: center; gap: 5px; padding: 20px 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.soma-site-header .nav-group { position: relative; }
.soma-site-header .mega-menu { position: absolute; top: calc(100% + 5px); left: 50%; width: min(820px, calc(100vw - 40px)); transform: translate(-50%, 10px); display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 24px; padding: 28px; border: 1px solid var(--soma-line); border-radius: 20px; background: #fff; box-shadow: var(--soma-shadow-lg); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s var(--soma-ease); }
.soma-site-header .nav-group.open .mega-menu, .soma-site-header .nav-group:focus-within .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.soma-site-header .mega-intro { padding: 20px; border-radius: 16px; background: var(--soma-pale); }
.soma-site-header .mega-intro p { color: var(--soma-muted); font-weight: 400; }
.soma-site-header .mega-col { display: grid; align-content: start; gap: 10px; }
.soma-site-header .mega-col a, .soma-site-header .specialty-menu-link { font-weight: 600; }
.soma-site-header .specialty-tabs-menu { grid-template-columns: 1fr; width: min(960px, calc(100vw - 40px)); }
.soma-site-header .specialty-tab-panel { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 4px 16px; }
.soma-site-header .specialty-tab-panel.active,
.soma-site-header .specialty-tab-panel.is-active { display: grid; }
.soma-site-header .specialty-menu-link { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 10px; }
.soma-site-header .specialty-menu-link:hover { background: var(--soma-pale); }
.soma-site-header .specialty-menu-link img { display: block; width: 36px; height: 36px; flex: 0 0 36px; padding: 4px; border: 1px solid rgba(42,13,63,.09); border-radius: 50%; background: #fff; box-sizing: border-box; object-fit: contain; object-position: center; }
@media (min-width: 1025px) {
  .soma-site-header .specialty-tabs-menu { max-height: min(720px, calc(100vh - 130px)); overflow-y: auto; overscroll-behavior: contain; }
}
.soma-site-header span.specialty-menu-link { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px solid #f3e4ee; color: #6f6176; font-size: 13px; line-height: 1.3; }
.soma-site-header .is-coming-soon { opacity: 1; cursor: default; }
.soma-site-header .is-coming-soon > span { opacity: .66; }
.hamb { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.hamb span { display: block; height: 2px; margin: 5px 0; background: var(--soma-plum); }
.hamb svg { display: block; width: 24px; height: 24px; fill: none; stroke: var(--soma-plum); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soma-main, .soma-entry-content { width: 100%; max-width: none; margin: 0; padding: 0; }
.soma-entry-header { padding-block: 72px 28px; }
.soma-site-footer { position: relative; z-index: 2; }
.soma-site-footer .p3-footer-brand > a { display: block; margin-bottom: 15px; }
.soma-site-footer .p3-footer-brand > a img { width: 190px; height: auto; filter: brightness(0) invert(1); }
.soma-site-footer .p3-footer-brand > p:first-of-type { margin-top: 0; }
.soma-site-footer .p3-ai { position: relative; }
.soma-site-footer .p3-ai span { display: inline-grid; place-items: center; }
.soma-site-footer .p3-ai .soma-ai-link { display: inline-grid; place-items: center; border-radius: 50%; transition: transform 180ms ease, box-shadow 180ms ease; }
.soma-site-footer .p3-ai .soma-ai-link:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(20,4,40,.24); }
.soma-site-footer .p3-ai .soma-ai-link:focus-visible { outline: 3px solid var(--soma-orange); outline-offset: 4px; }
.soma-site-footer .p3-ai .soma-ai-status { position: absolute; z-index: 4; top: 100%; left: 0; max-width: 280px; margin-top: 8px; padding: 9px 12px; border-radius: 8px; background: #fff; color: var(--soma-plum); font-size: 12px; font-weight: 700; line-height: 1.4; box-shadow: var(--soma-shadow-sm); }
.soma-site-footer .p3-ai .soma-ai-status[hidden] { display: none; }
.soma-site-footer .p3-footer-links a, .soma-site-footer .p3-footer-row a { display: block; }
.soma-site-footer a { text-decoration: none !important; }
.soma-site-footer .p3-footer-links > div > span, .soma-site-footer .p3-footer-row > div > span { display: block; color: inherit; opacity: .66; }
.soma-site-footer .p3-footer-row > div { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.soma-site-footer .p3-footer-row > div a { display: inline; }
.soma-site-footer .p3-footer-row small { color: #fff; background: var(--soma-orange); border-radius: 999px; padding: 2px 6px; }
.soma-cf7-shell form.wpcf7-form { display: block !important; }
.soma-cf7-shell .soma-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.soma-cf7-shell .soma-form-grid > p { margin: 0; }
.soma-cf7-shell .wpcf7-form > p { margin: 16px 0 0; }
.soma-cf7-shell label { display: grid; gap: 7px; color: var(--soma-plum); font-weight: 700; }
.soma-cf7-shell input:not([type=checkbox]), .soma-cf7-shell select, .soma-cf7-shell textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #decfe0; border-radius: 10px; background: #fff; color: var(--soma-ink); }
.soma-cf7-shell textarea { min-height: 130px; resize: vertical; }
.soma-cf7-shell input[type=submit] { border: 0; border-radius: 12px; padding: 15px 24px; background: var(--soma-gradient); color: #fff; font-weight: 800; cursor: pointer; }
.soma-cf7-shell .soma-consent { margin-top: 18px; }
.soma-cf7-shell .soma-consent .wpcf7-list-item { margin: 0; }
.soma-cf7-shell .soma-consent label { display: flex; align-items: flex-start; gap: 11px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.soma-cf7-shell .soma-consent input[type=checkbox] { appearance: auto; width: 20px !important; min-width: 20px !important; height: 20px !important; min-height: 0 !important; margin: 1px 0 0 !important; padding: 0 !important; border: 1px solid #cdb8cf; border-radius: 4px; accent-color: var(--soma-purple); box-shadow: none !important; }
.soma-cf7-shell input[type=submit] { width: auto; min-height: 52px; padding-inline: 28px; border-radius: 999px; background: linear-gradient(135deg,#9b2fd0 0%,#d94e6e 58%,#ed7541 100%) !important; color: #fff !important; opacity: 1; box-shadow: 0 12px 28px rgba(196,55,112,.2); }
.soma-cf7-shell input[type=submit]:hover { filter: saturate(1.08) brightness(.98); transform: translateY(-1px); }
.soma-cf7-shell .soma-other-service[hidden] { display: none !important; }
.soma-cf7-shell .soma-other-field[hidden] { display: none !important; }
.soma-job-application .soma-cf7-shell .wpcf7-form { grid-template-columns: 1fr; }
.soma-job-application .soma-cf7-shell .wpcf7-form > p { grid-column: 1 / -1; }
.soma-job-application .soma-cf7-shell label { gap: 7px; font-size: .8rem; }
.soma-job-application .soma-cf7-shell input[type="submit"] { width: 100%; min-height: 52px; border-radius: 999px; }
.soma-form-unavailable { padding: 22px; border: 1px solid #e6ccdc; border-radius: 14px; background: #fff8fb; }
body.blog .soma-blog-page { margin-top: -112px; }
.soma-blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.soma-blog-filters a { padding: 9px 14px; border: 1px solid var(--soma-line); border-radius: 999px; background: #fff; color: var(--soma-plum); }
.soma-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.soma-blog-card { overflow: hidden; border: 1px solid var(--soma-line); border-radius: 18px; background: #fff; box-shadow: var(--soma-shadow-sm); }
.soma-blog-card__image { display: block; aspect-ratio: 1.45; overflow: hidden; background: var(--soma-pale); }
.soma-blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.soma-blog-card__body { padding: 24px; }
.soma-blog-card__meta { font-size: 13px; color: var(--soma-purple); }
.soma-pagination { margin-top: 36px; text-align: center; }
.soma-load-more a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 24px; border-radius: 12px; background: var(--soma-gradient); color: #fff; font-weight: 800; }
.soma-pagination .nav-links { margin-top: 20px; }
.soma-article-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: center; gap: 60px; padding-block: 64px 110px; }
.soma-article-toc { position: sticky; top: 120px; align-self: start; padding: 20px; border: 1px solid var(--soma-line); border-radius: 14px; }
.soma-article-toc ol { padding-left: 20px; }
.soma-article-content { min-width: 0; }
.soma-article-content img, .soma-article-content table { max-width: 100%; }
.soma-error-card { max-width: 760px; padding: 78px 0; }
.soma-error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
body.admin-bar .soma-site-header { top: 32px; }
@media (max-width: 1024px) {
  .soma-site-header .nav { grid-template-columns: 1fr auto; }
  .soma-site-header .links, .soma-site-header .nav-actions { display: none; }
  .hamb { display: grid; place-items: center; border-radius: 12px; background: var(--soma-pale); }
  .soma-site-header .links.open { position: fixed; inset: 92px 0 0; z-index: 1001; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 24px var(--soma-gutter) 120px; overflow-y: auto; background: #fff; }
  .soma-site-header .links.open > a, .soma-site-header .nav-group > button { width: 100%; padding: 16px 0; text-align: left; }
  .soma-site-header .links.open .nav-group { width: 100%; }
  .soma-site-header .mega-menu { position: static; width: 100%; transform: none; display: none; grid-template-columns: 1fr; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; }
  .soma-site-header .nav-group.open .mega-menu { display: grid; transform: none; }
  .soma-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soma-article-layout { grid-template-columns: 1fr; }
  .soma-article-toc { position: static; }
}
@media (max-width: 782px) { body.admin-bar .soma-site-header { top: 46px; } }
@media (max-width: 640px) {
  .soma-site-header { min-height: 70px; }
  .soma-site-header .nav { min-height: 70px; }
  .soma-site-header .logo img { width: 146px; }
  .soma-site-header .links.open { inset-block-start: 70px; }
  .soma-site-header .specialty-tab-panel { grid-template-columns: 1fr; }
  .soma-cf7-shell .soma-form-grid, .soma-blog-grid { grid-template-columns: 1fr; }
  body.blog .soma-blog-page { margin-top: -92px; }
}

/* Locked design-system controls and final consistency pass. */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline: 3px solid color-mix(in srgb,var(--soma-purple) 68%,#fff); outline-offset: 3px; }
:where(button,.btn,input[type="button"],input[type="submit"],select) { min-height: 44px; }
:where(.soma-main,.soma-entry-content) h1 { font-size: var(--soma-type-display); }
:where(.soma-main,.soma-entry-content) h2 { font-size: var(--soma-type-h2); }
:where(.soma-main,.soma-entry-content) h3 { font-size: var(--soma-type-h3); }
:where(.soma-main,.soma-entry-content) h4 { font-size: var(--soma-type-h4); }
:where(.soma-main,.soma-entry-content) h5 { font-size: var(--soma-type-h5); }
:where(.soma-main,.soma-entry-content) h1,
:where(.soma-main,.soma-entry-content) h2,
:where(.soma-main,.soma-entry-content) h3,
:where(.soma-main,.soma-entry-content) h4,
:where(.soma-main,.soma-entry-content) h5,
:where(.soma-main,.soma-entry-content) h6 { font-family: "DM Sans",sans-serif; }

.soma-site-header.theme-light .mega-intro { background: linear-gradient(145deg,#fbf3f8,#fff5ed); }
.soma-site-header.theme-dark .logo img { filter: brightness(0) invert(1); }
.soma-site-header.theme-dark .hamb { background: rgba(255,255,255,.12); }
.soma-site-header.theme-dark .hamb svg { stroke: #fff; }
.soma-site-header.theme-dark .mega-menu { border-color: rgba(255,255,255,.2); color: #fff; background: #351348; }
.soma-site-header.theme-dark .mega-intro { color: #fff; background: #4a1b60; }
.soma-site-header.theme-dark .mega-intro p { color: rgba(255,255,255,.78); }
.soma-site-header.theme-dark .mega-intro > a { color: #f5a07e; }
.soma-site-header.theme-dark .mega-col > strong { color: rgba(255,255,255,.68); }
.soma-site-header.theme-dark .mega-col > a,
.soma-site-header.theme-dark .mega-col > span { color: rgba(255,255,255,.9); }
.soma-site-header.theme-dark .mega-col > a:hover,
.soma-site-header.theme-dark .mega-col > a:focus-visible { color: #fff; }
.soma-site-header.theme-dark .specialty-tabs { border-color: rgba(255,255,255,.2); }
.soma-site-header.theme-dark .specialty-tab { color: rgba(255,255,255,.68); }
.soma-site-header.theme-dark .specialty-tab.active,
.soma-site-header.theme-dark .specialty-tab[aria-selected="true"] { color: #f5a07e; border-color: #ed7541; }
.soma-site-header.theme-dark .specialty-menu-link,
.soma-site-header.theme-dark span.specialty-menu-link { border-color: rgba(255,255,255,.13); color: rgba(255,255,255,.9); }
.soma-site-header.theme-dark .specialty-menu-link:hover,
.soma-site-header.theme-dark .specialty-menu-link:focus-visible { color: #fff; background: rgba(255,255,255,.08); }

.soma-site-header .specialty-tab-panel { grid-template-columns: repeat(4,minmax(0,1fr)); }
.soma-site-footer a,
.soma-site-footer a:hover,
.soma-site-footer a:focus { text-decoration: none !important; }

body.home .home-contact-section .sm-contact-layout > aside { background: var(--soma-plum,#2a0d3f) !important; color: #fff !important; }
body.home .home-contact-section .sm-contact-layout > aside :where(h2,h3,strong,a,p,address) { color: inherit !important; opacity: 1; }
body.home .home-contact-section .sm-contact-layout > aside a { text-decoration-color: rgba(255,255,255,.45); }

.soma-faq-section .accordion { max-width: 900px; margin-inline: auto; }
.soma-faq-section .faq { overflow: hidden; border: 0; border-bottom: 1px solid var(--soma-line); border-radius: 0; background: transparent; box-shadow: none; }
.soma-faq-section .faq > button { display: flex; width: 100%; min-height: 72px; align-items: center; justify-content: space-between; gap: var(--soma-space-24); padding: 20px 4px; border: 0; color: var(--soma-plum); background: transparent; font: 800 16px/1.45 "DM Sans",sans-serif; text-align: left; cursor: pointer; }
.soma-faq-section .faq > button i { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; color: var(--soma-purple); background: transparent; font-style: normal; font-size: 22px; }
.soma-faq-section .faq .answer { display: none; padding: 0 4px var(--soma-space-24); color: var(--soma-muted); }
.soma-faq-section .faq .answer p { margin: 0; }
.soma-faq-section .faq.open .answer,
.soma-faq-section .faq.is-open .answer { display: block; }

.mobile-cta > button { border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.map-pin { width: 44px !important; min-width: 44px; height: 44px !important; min-height: 44px; }

@media (max-width: 1024px) {
  .soma-site-header .specialty-tab-panel { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .soma-site-header.theme-dark .links.open { background: var(--soma-plum); }
}
@media (max-width: 768px) {
  .soma-site-header .specialty-tab-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 430px) {
  .soma-site-header .specialty-tab-panel { grid-template-columns: 1fr; }
  .soma-faq-section .faq > button { padding-inline: 4px; }
  .soma-faq-section .faq .answer { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Final shared-component corrections. */
.soma-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a.btn, button.btn, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none !important; }
.outcomes-band .btn-white { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.34); color: var(--p3-plum) !important; background: #fff !important; box-shadow: 0 12px 28px rgba(12,3,22,.18); }
.outcomes-band .btn-white:hover { color: var(--p3-purple) !important; transform: translateY(-1px); }

/* The desktop hero artwork is exactly 860px tall. Keep its iframe on the same
   contract so stale inline sizing cannot leave empty canvas above Home stats. */
@media (min-width: 901px) {
  body.home.home-medicy-page .medicy-frame {
    height: 860px !important;
    min-height: 860px !important;
    max-height: 860px !important;
  }
}

body.home #about .split { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(38px,5vw,72px); align-items: center; }
body.home #about .p3-image-card { min-height: 520px; }
body.home #about .p3-image-card img { min-height: 520px; object-position: center; }
body.home #about .check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 28px; }
body.home #about .check { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 13px; padding: 18px; border: 1px solid var(--p3-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(42,13,63,.05); }
body.home #about .check i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg,var(--p3-purple),var(--p3-magenta),var(--p3-orange)); font-style: normal; }
body.home #about .check .icon { width: 22px; height: 22px; }
body.home #about .check strong { display: block; color: var(--p3-plum); line-height: 1.25; }
body.home #about .check p { margin: 5px 0 0; color: var(--p3-muted); font-size: 12px; line-height: 1.5; }

.credentialing-actions .btn { min-width: 176px; }
.credentialing-actions .btn-primary { color: #fff !important; box-shadow: 0 12px 28px rgba(196,55,112,.2); }
.credentialing-actions .btn-outline { border: 1px solid rgba(142,47,199,.28); color: var(--p3-purple) !important; background: #fff; }
.credentialing-grid article { grid-template-columns: 52px minmax(0,1fr); column-gap: 17px; row-gap: 12px; }
.credentialing-grid article > .icon { display: block; width: 30px; height: 30px; margin: 0; padding: 9px; border-radius: 13px; color: #fff; background: linear-gradient(135deg,var(--p3-purple),var(--p3-magenta),var(--p3-orange)); box-sizing: content-box; }
.credentialing-grid article > div { min-width: 0; padding-top: 2px; }
.credentialing-grid article > div h3 { margin: 0; line-height: 1.25; }
.credentialing-grid article > a { grid-column: 2; margin-top: 1px; }
.credentialing-grid a { text-decoration: none !important; }

.home-contact-section { background: var(--p3-soft); }
.home-contact-section .sm-contact-layout { align-items: start; }

.soma-article-body .rank-math-faq-item > .rank-math-question,
.soma-article-content .rank-math-faq-item > .rank-math-question { margin: 0; }
.soma-article-content .rank-math-faq-item > .soma-article-faq__question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; border: 0; color: var(--blog-plum); background: #fff; text-align: left; font: 800 1rem/1.45 "DM Sans",sans-serif; cursor: pointer; }
.soma-article-content .rank-math-faq-item > .soma-article-faq__question i { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,var(--blog-purple),var(--blog-pink)); font-style: normal; }
.soma-article-content .rank-math-faq-item > .soma-article-faq__answer { display: none; padding: 0 22px 22px; }
.soma-article-content .rank-math-faq-item.is-open > .soma-article-faq__answer { display: block; }

@media (max-width: 1024px) {
  .soma-site-header .specialty-tab-panel { grid-template-columns: repeat(4,minmax(0,1fr)); }
  body.home #about .split { grid-template-columns: 1fr; }
  body.home #about .p3-image-card, body.home #about .p3-image-card img { min-height: 420px; }
}
@media (max-width: 640px) {
  .soma-site-header .specialty-tab-panel { grid-template-columns: 1fr; }
  body.home #about .check-grid { grid-template-columns: 1fr; }
  body.home #about .p3-image-card, body.home #about .p3-image-card img { min-height: 310px; }
  .credentialing-actions .btn, .soma-cf7-shell input[type=submit] { width: 100%; }
}
@media (min-width: 641px) and (max-width: 768px) {
  .soma-site-header .specialty-tab-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Header capsule, responsive navigation and support-chat polish. */
.soma-desktop-chat { position: fixed; right: 24px; bottom: 24px; z-index: 1100; display: inline-flex; min-height: 52px; align-items: center; gap: 10px; padding: 8px 17px 8px 10px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: #fff; background: linear-gradient(135deg,var(--soma-purple),#d94e6e 58%,#e87040); box-shadow: 0 16px 36px rgba(42,13,63,.24); font: 800 13px/1.2 "DM Sans",sans-serif; cursor: pointer; }
.soma-desktop-chat img { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: #fff; object-fit: contain; }
.mobile-cta .soma-chat-icon { width: 20px; height: 20px; flex: 0 0 auto; object-fit: contain; }
.soma-native-chat-active .soma-desktop-chat,
.soma-native-chat-active .mobile-cta > [data-soma-chat-trigger] { display: none !important; }

@media (max-width: 1024px) {
  .soma-site-header { min-height: 92px; padding-block: 9px; }
  .soma-site-header .nav { min-height: 72px; padding-inline: 18px; border-radius: 22px; }
  .soma-site-header .specialty-tab-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .soma-site-header .links.open { inset: 92px 16px calc(78px + env(safe-area-inset-bottom)); padding: 14px 18px 28px; border: 1px solid var(--soma-line); border-radius: 24px; box-shadow: 0 24px 56px rgba(42,13,63,.2); }
  .soma-site-header .links.open > a,
  .soma-site-header .links.open > .nav-group > button { min-height: 50px; padding: 13px 4px; border-bottom: 1px solid #eadfea; font-size: 16px; line-height: 1.25; }
  .soma-site-header .links.open > .nav-group > button { justify-content: space-between; }
  .soma-site-header .links.open .mega-menu { gap: 16px; margin: 4px 0 12px; padding: 16px; border: 1px solid #eadfea; border-radius: 18px; background: #fff8fb; }
  .soma-site-header .links.open .mega-intro { padding: 16px; }
  .soma-site-header .links.open .mega-col { gap: 4px; }
  .soma-site-header .links.open .mega-col a,
  .soma-site-header .links.open .specialty-menu-link { min-height: 42px; padding: 9px 8px; font-size: 14px; line-height: 1.3; }
  .soma-site-header .links.open .specialty-tabs { gap: 8px; }
  .soma-site-header .links.open .specialty-tab { min-height: 42px; padding: 8px 10px; font-size: 14px; }
  .soma-site-header.theme-dark .links.open { border-color: rgba(255,255,255,.24); background: var(--soma-plum); }
  .soma-site-header.theme-dark .links.open > a,
  .soma-site-header.theme-dark .links.open > .nav-group > button { border-color: rgba(255,255,255,.18); color: #fff; }
  .soma-site-header.theme-dark .links.open .mega-menu { border-color: rgba(255,255,255,.2); color: #fff; background: #351348; }
  .soma-site-header.theme-dark .links.open .mega-intro { color: #fff; background: #4a1b60; }
  .soma-site-header.theme-dark .links.open .mega-menu :where(a,strong,p,span,button) { color: inherit; }
  .soma-site-header.theme-dark .links.open .specialty-menu-link { border-color: rgba(255,255,255,.13); }
  .soma-desktop-chat { display: none; }
}

@media (max-width: 640px) {
  body,
  body.home-medicy-page { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .soma-site-header { min-height: 84px; padding-block: 7px; }
  .soma-site-header .nav { min-height: 68px; padding-inline: 14px; border-radius: 20px; }
  .soma-site-header .logo img { width: 142px; }
  .soma-site-header .links.open { inset-block-start: 84px; }
  .soma-site-header .specialty-tab-panel { grid-template-columns: 1fr; }
  .soma-native-chat-active .mobile-cta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .soma-native-chat-active #tidio-chat,
  .soma-native-chat-active #tidio-chat-iframe,
  .soma-native-chat-active #hubspot-messages-iframe-container { bottom: calc(88px + env(safe-area-inset-bottom)) !important; }
}

/* Search-focused specialty and Company FAQ layouts use the shared site shell. */
.soma-seo-overview .section-head,
.soma-seo-process .section-head,
.soma-company-faq-hero .section-head { max-width: 820px; margin-inline: auto; text-align: center; }
.soma-seo-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-top: 34px; }
.soma-seo-grid article { min-width: 0; padding: 24px; border: 1px solid var(--soma-line); border-radius: var(--soma-card-radius); background: #fff; box-shadow: var(--soma-shadow-sm); }
.soma-seo-grid h3 { margin: 0 0 10px; color: var(--soma-plum); font-size: clamp(18px,2vw,22px); line-height: 1.25; }
.soma-seo-grid p { margin: 0; color: var(--soma-muted); line-height: 1.65; }
.soma-seo-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: soma-step; }
.soma-seo-steps li { position: relative; min-width: 0; padding: 26px 24px 24px 72px; border: 1px solid var(--soma-line); border-radius: var(--soma-card-radius); background: #fff; box-shadow: var(--soma-shadow-sm); counter-increment: soma-step; }
.soma-seo-steps li::before { position: absolute; top: 22px; left: 22px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fff; background: var(--soma-gradient); content: counter(soma-step); font-weight: 800; }
.soma-seo-steps strong { display: block; margin-bottom: 7px; color: var(--soma-plum); font-size: 18px; }
.soma-seo-steps span { display: block; color: var(--soma-muted); line-height: 1.6; }
.soma-company-faq-hero { background: var(--soma-soft); }
.soma-company-faq-hero .sm-hero-actions { justify-content: center; }
.soma-company-faq-intro .soma-content { max-width: 860px; }
.soma-company-faq-intro .soma-content a { color: var(--soma-purple); font-weight: 800; }

@media (max-width: 1024px) {
  .soma-seo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .soma-seo-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .soma-seo-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .soma-seo-grid article { padding: 20px; }
  .soma-seo-steps { gap: 14px; margin-top: 26px; }
  .soma-seo-steps li { padding: 22px 20px 22px 68px; }
  .soma-seo-steps li::before { top: 18px; left: 18px; }
}
