/* Shared polish after the established page styles. */
html {scroll-padding-top:100px;scrollbar-gutter:stable}
html:has(dialog[open]),html:has(dialog[open]) body{overflow:hidden}
.skip-link{position:fixed;left:16px;top:-120px;z-index:1000;padding:12px 20px;background:#fff;color:#005c2b;border:2px solid #007a39;border-radius:8px;font-weight:800}
.skip-link:focus{top:12px}
.footer-heading{font-size:1rem;letter-spacing:0;margin-bottom:16px}
[data-shared-resource-links]{display:contents}
.content-depth{padding-block:clamp(48px,6vw,88px);background:#f3f9f6}
.content-depth .container{max-width:1160px}
.content-depth-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.content-depth-card{padding:28px;background:#fff;border:1px solid #dce8e1;border-radius:18px}
.content-depth-card h3{font-size:1.22rem;margin-bottom:12px;line-height:1.3}
.content-depth-card p{color:#405a4c;line-height:1.65}
.content-depth-card a{display:inline-flex;min-height:44px;align-items:center;color:#006b32;font-weight:800;text-decoration:underline;text-underline-offset:4px}
.content-depth .section-heading{margin-bottom:32px}
.content-depth .section-heading p{max-width:70ch}
.content-depth ol,.content-depth ul{padding-left:1.25rem;line-height:1.75;color:#405a4c}
.content-depth .button-row{margin-top:24px}
.hero-photo{object-position:65% center!important}
.why-grid .check-card{align-items:flex-start}
.why-grid .check-card p{line-height:1.6}
.why-grid .check-card strong{display:block;margin-bottom:6px;color:#123126}
.page-hero h1,.mmc-profile-hero h1{text-wrap:balance}
@media(max-width:1100px){
 .header-actions .header-cta{display:inline-flex!important;min-height:44px;padding:10px 15px;font-size:.85rem;white-space:nowrap}
 .site-header .header-inner{min-height:72px!important;gap:12px;flex-wrap:nowrap!important}
 .site-header .header-actions{display:flex!important;align-items:center;gap:8px;flex-wrap:nowrap!important;width:auto!important;margin-left:auto}
 .site-header .brand{order:0!important}
 .site-header .header-actions{order:1!important}
 .site-header .mobile-nav{order:2!important}
 .header-call{display:none!important}
 .mobile-nav-panel{right:0;max-width:calc(100vw - 32px)}
}
@media(max-width:760px){
 html{scroll-padding-top:88px}
 main>.page-hero{padding-top:30px!important;padding-bottom:40px!important;min-height:0!important}
 main>.page-hero>.container{min-height:0!important;gap:16px!important;justify-content:flex-start!important}
 main>.page-hero h1{font-size:clamp(2rem,8.5vw,3rem)!important;line-height:1.08!important;margin-top:8px!important}
 main>.page-hero p:not(.eyebrow){font-size:1rem!important;line-height:1.65!important}
 main>.page-hero .button-row{margin-top:8px!important;gap:12px!important}
 .hero-copy h1{font-size:clamp(2.55rem,11vw,4rem)!important;line-height:1.03!important}
 .hero-copy .hero-text{font-size:1rem!important;line-height:1.65!important}
 main>.hero.section,main>.hero.section .hero-copy{min-height:0!important;padding-block:32px!important}
 .hero-copy .home-hero-tagline{font-size:clamp(1.3rem,5.5vw,1.7rem)!important;margin-top:24px!important}
 .content-depth-grid{grid-template-columns:1fr}
 .content-depth-card{padding:24px}
 .site-header .brand-name{font-size:10px!important}
 .site-header .brand-mark{width:36px!important;height:auto!important}
 .site-header .brand{gap:4px!important;flex-shrink:0}
 .site-header .mobile-menu-button{font-size:12px!important;min-width:44px!important;padding:10px!important}
 .site-header .mobile-menu-indicator{font-size:22px!important}
 .footer-grid>div{min-width:0}
 .doctor-flagship h2{text-wrap:balance}
}
@media(max-width:380px){.site-header .brand-name{display:none!important}}
@media(min-width:1101px){.site-header .desktop-nav{gap:clamp(10px,1.2vw,18px)!important;font-size:.88rem!important}.site-header .desktop-nav a{white-space:nowrap}.site-header .brand{flex-shrink:0}.site-header .header-inner{gap:18px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Six matching option tiles; retain the existing mobile card breakpoints. */
@media(min-width:1101px){.loan-options-section .loan-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.financing-path-card-refinance .financing-path-action{display:flex;flex-wrap:wrap;align-items:center;gap:16px}.financing-path-card-refinance .loan-program-link{color:#006b32;font-weight:800;text-underline-offset:4px}

/* Small-screen review: keep grid tracks inside the phone and the whole comparison reachable. */
@media(max-width:900px){
 .loan-comparison-dialog{overflow-y:auto;overscroll-behavior:contain}
 .loan-comparison-dialog .loan-comparison-shell{display:block;height:auto;min-height:100dvh}
 .loan-comparison-dialog#loan-comparison-dialog .loan-comparison-header{padding-right:20px}
 .loan-comparison-dialog#loan-comparison-dialog .loan-comparison-header h2{margin-top:24px;text-wrap:balance;font-size:clamp(1.5rem,5vw,1.8rem)}
 .loan-comparison-dialog#loan-comparison-dialog .loan-comparison-header .loan-comparison-close{position:fixed;top:14px;right:14px;z-index:6}
 .loan-comparison-dialog .loan-comparison-table-wrap{max-height:none;overflow:visible}
 .preapproval-page .preapproval-next-step .mmc-form-layout{grid-template-columns:minmax(0,1fr)}
 .preapproval-page .preapproval-next-step .mmc-form-layout>div,
 .preapproval-page .preapproval-next-step .preapproval-form{min-width:0}
}
@media(max-width:959px){
 body.mortgage-calc-page #calculator .mmc-calc-shell{grid-template-columns:minmax(0,1fr)}
 .mortgage-calc-page .mmc-calc-panel,.mortgage-calc-page .mmc-calc-results,
 .mortgage-calc-page .mmc-calc-fields,.mortgage-calc-page .mmc-calc-fields label{min-width:0;max-width:100%}
 .mortgage-calc-page .mmc-calc-fields input{min-width:0}
 .mortgage-calc-page .mmc-calc-fields{grid-template-columns:minmax(0,1fr)}
 .mortgage-calc-page .mmc-calc-fields>*{min-width:0}
}
@media(max-width:600px){.preapproval-page .page-hero .button,.process-section h2{text-wrap:balance}}

/* Desktop review: fit compact headers, keep trust labels readable, and compact the sitemap. */
@media(min-width:1081px) and (max-width:1239px){
 .site-header .desktop-nav{display:none!important}
 .site-header .header-actions{display:flex!important;align-items:center;gap:12px;flex-wrap:nowrap!important;width:auto!important;margin-left:auto}
 .site-header .header-actions .mobile-nav{display:block!important}
 .site-header .mobile-menu-button{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;font-size:.88rem}
}
@media(min-width:1101px){
 .doctor-flagship .doctor-flagship__trust li{align-items:flex-start}
 .doctor-flagship .doctor-flagship__trust li>span:last-child{white-space:normal;min-width:0}
 main.sitemap-page>section.sitemap-intro{min-height:0!important;padding-top:clamp(32px,4vw,56px);padding-bottom:28px}
 main.sitemap-page>section.mmc-section{min-height:0!important;padding-top:0;padding-bottom:64px}
}

/* Fill each portrait frame with the approved responsive photo, without inset bands. */
main>.team-section .team-card:is(#joseph-lawler,#jaime-addyman,#cayden-holcomb) .team-portrait img,
body.team-page .team-page-team-grid .team-card:is(#joseph-lawler,#jaime-addyman,#cayden-holcomb) .team-portrait img{top:0!important;left:0!important;width:100%!important;max-width:none!important;height:100%!important;object-fit:cover!important;object-position:50% 8%!important}
/* Monthly dues follow the other property costs in reading and keyboard order. */
.mmc-calc-breakdown>li[data-field-hoa]{display:block}
.mmc-calc-breakdown [data-field-hoa] label{display:block;font-weight:800;margin-bottom:6px}
@media(max-width:760px){.hero-copy h1{font-size:clamp(2.3rem,10vw,3.6rem)!important;line-height:1.1!important}}
