/* Main-site content layouts. Shared form styles and location detail layout remain independent. */
.clinic-directory-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.clinic-directory-row > div { min-width: 0; width: 100%; max-width: none; margin: 0; }
.clinic-directory-photo > a { display: block; }
.clinic-directory-photo img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.clinic-directory-actions a { min-height: 48px; margin: 0; }
@media (min-width: 768px) {
 .clinic-directory-row { grid-template-columns: clamp(15rem, 28vw, 25rem) minmax(0, 1fr); gap: 1.5rem 2rem; }
 .clinic-directory-photo { grid-column: 1; grid-row: 1 / span 2; }
 .clinic-directory-info { grid-column: 2; }
 .clinic-directory-actions { grid-column: 2; align-self: end; }
}
@media (min-width: 1200px) {
 .clinic-directory-row { grid-template-columns: clamp(15rem, 22vw, 30rem) minmax(0, 1fr) clamp(12rem, 16vw, 18rem); gap: clamp(1.5rem, 2.5vw, 3rem); }
 .clinic-directory-photo { grid-row: 1; }
 .clinic-directory-actions { grid-column: 3; align-self: center; }
}
/* Give navigation a bounded rail and allow article media to use the remaining space. */
.article-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 0; }
.article-reading-layout > .article-reading-nav, .article-reading-layout > .article-reading-body { grid-column: 1 / -1; min-width: 0; width: 100%; max-width: none; justify-self: stretch; }
.article-reading-body > :where(p, ul, ol, blockquote) { max-width: 85ch; }
.article-reading-body > :where(h2, h3, h4) { max-width: 40ch; }
.article-reading-body > figure, .article-reading-body > .commons-video-shell { width: 100%; max-width: none; }
.article-reading-body > .wp-block-image img { width: 100%; height: auto; }
.single-post #content article > .article-heading-layout, .single-post #content article > header > .article-heading-layout { display: block; }
.article-heading-layout > .article-heading-content { width: 100%; min-width: 0; max-width: none; grid-column: auto; }
.single-post #content article > header h1 { max-width: 32ch; }
@media (min-width: 1024px) {
 .article-reading-layout { grid-template-columns: clamp(15rem, 19vw, 24rem) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 6rem); }
 .article-reading-layout > .article-reading-nav { grid-column: 1; }
 .article-reading-layout > .article-reading-body { grid-column: 2; }
 .single-post #content article > .article-heading-layout, .single-post #content article > header > .article-heading-layout { display: grid; grid-template-columns: clamp(15rem, 19vw, 24rem) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 6rem); }
 .article-heading-layout > .article-heading-content { grid-column: 2; }
}
/* Main profile sections expand while contact cards keep a practical width. */
.physician-content-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.physician-content-layout > .physician-overview { min-width: 0; grid-column: auto; }
.physician-content-layout > .physician-profile-sidebar { min-width: 0; grid-column: auto; }
.physician-overview .page-section > :where(p, ul:not(.grid), ol) { max-width: 85ch; }
.physician-overview #insurance > ul.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .75rem 2rem; }
.physician-profile-sidebar .physician-detail > img { width: clamp(8rem, 12vw, 12rem); height: auto; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 1200px) {
 .physician-content-layout { grid-template-columns: minmax(0, 1fr) clamp(19rem, 24vw, 26rem); gap: clamp(2rem, 4vw, 6rem); }
}
@media (min-width: 768px) and (max-width: 1199px) {
 .physician-content-layout > .physician-profile-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; }
}
.blog #content article > img, .archive #content article > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* Raw comparison tables need their own scroll area on narrow screens. */
.article-table-scroll { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; margin-block: 1.5rem; }
.article-table-scroll:focus-visible { outline: 3px solid #fe7e62; outline-offset: 3px; }
.article-table-scroll > table { margin-block: 0; }
/* The legacy four-step section used a fixed 1512px nested container. */
#content .group__how-it-works > .wp-block-group { width: 100%; max-width: var(--site-width) !important; padding-inline: var(--site-gutter); }
#content .group__how-it-works .wp-block-columns { width: 100%; max-width: none !important; }
#content .group__how-it-works .wp-block-column { min-width: 0; }
/* Fixed mega-menu panels need their own gutters despite being nested in the header container. */
#masthead .care-menu.container { padding-inline: var(--site-gutter) !important; column-gap: clamp(1.5rem, 3vw, 4rem); row-gap: 2rem; }
#masthead .care-menu > div:first-child { padding-inline-end: clamp(1rem, 2vw, 3rem); }
#masthead .care-menu > div { min-width: 0; }
#masthead .care-menu > div:first-child > p { max-width: 42ch; }
/* Preserve the sticky location card's inset against the shared nested-container reset. */
.single-location .location-sidebar .location-detail.container { padding: clamp(1.25rem, 2vw, 2rem) !important; }
.single-location .location-sidebar .location-detail > img { display: block; margin: 0 0 1rem; }
.single-location .location-sidebar .location-detail > h2 { margin-inline: 0; }
.single-location .location-sidebar .location-detail .location-address > p,
.single-location .location-sidebar .location-detail .carriers-link,
.single-location .location-sidebar .location-detail > .button { font-size: calc(1rem + 1pt); }
.single-location .location-sidebar .location-detail > .button { line-height: 1.35; }
