/* Scoped to treatment content; keep the shared navigation and consultation bar. */
.treatment-page main [data-front-comparison]{--pair-ratio:1.5;align-items:start!important}
.treatment-page main [data-front-comparison].depth-xray{--pair-ratio:2.7}
.treatment-page main [data-front-comparison] .depth-photo{aspect-ratio:var(--pair-ratio);overflow:hidden;background:transparent!important}
.treatment-page main [data-front-comparison] .depth-photo img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;aspect-ratio:auto!important;position:static!important;left:auto!important;max-width:100%!important}
.treatment-page main [data-front-comparison].front-single{max-width:1000px!important}
.treatment-page main .depth-photo{padding:0!important}
@media(max-width:760px){
 body.treatment-page main>.treatment-hero{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;padding:54px 20px 0!important}
 body.treatment-page main>.treatment-hero .treatment-hero-copy{width:100%!important;min-width:0;padding:25px 0 24px!important}
 body.treatment-page main>.treatment-hero h1{font-size:clamp(28px,8.2vw,36px)!important;line-height:1.4!important;overflow-wrap:anywhere}
 body.treatment-page main>.treatment-hero .treatment-hero-description{font-size:16px!important;line-height:1.85!important}
 body.treatment-page main>.treatment-hero .treatment-proof{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;width:100%!important;max-width:100%!important;margin:20px auto 0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;text-align:left!important}
 body.treatment-page main>.treatment-hero .treatment-proof>div{display:block!important;min-width:0!important;width:auto!important;max-width:100%!important;padding:17px 18px!important;border-right:0!important;border-bottom:1px solid #ffffff26!important}
 body.treatment-page main>.treatment-hero .treatment-proof strong{display:block!important;font-size:17px!important;line-height:1.55!important;min-width:0!important;white-space:normal!important;word-break:keep-all;overflow-wrap:anywhere}
 body.treatment-page main>.treatment-hero .treatment-proof span{display:block!important;margin:5px 0 0!important;font-size:14px!important;line-height:1.7!important;white-space:normal!important;word-break:keep-all;overflow-wrap:anywhere}
 .treatment-page main [data-front-comparison]{gap:18px!important}
 .front-comparison-controls{gap:7px!important}
 .front-comparison-controls button{font-size:14px!important;padding:10px 13px!important}
 .treatment-page main .depth-heading h2,.treatment-page main .section-heading h2{font-size:30px!important;line-height:1.45!important;word-break:keep-all}
 .treatment-page main .depth-lead{font-size:16px!important;line-height:1.9!important}
 .next-table-wrap{overflow:visible!important;border:0!important;background:transparent!important}
 .next-table{display:block!important;min-width:0!important;width:100%!important}
 .next-table thead{display:none!important}
 .next-table tbody{display:grid!important;gap:16px!important}
 .next-table tr{display:block!important;background:white;border:1px solid #d8d1cb}
 .next-table tbody th,.next-table td{display:block!important;width:100%!important;box-sizing:border-box;padding:14px 16px!important}
 .next-table tbody th{background:var(--clinic-wash)!important;color:var(--clinic-ink)!important;font-size:17px!important}
 .next-table td{font-size:16px!important}
 .next-table td:before{content:attr(data-label);display:block;color:var(--clinic-ink);font-size:13px;font-weight:700;margin-bottom:5px}
}

/* Actual treatment process photos use full-width cards. */
.treatment-page main .case-photo-cards > .case-photo-card{display:block;min-width:0;padding:20px}
.treatment-page main .case-photo-card .depth-figure{width:100%;margin:0;min-width:0}
.treatment-page main .case-photo-card .depth-photo{aspect-ratio:16/9!important;overflow:hidden;background:#fff}
.treatment-page main .case-photo-card .depth-photo img{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:contain!important}
.treatment-page main .case-photo-card figcaption{margin:0;padding:16px 0 0;line-height:1.65;word-break:keep-all}
@media(max-width:760px){.treatment-page main .case-photo-cards > .case-photo-card{padding:16px}}

/* Keep companion process photos and their captions on the same line. */
.treatment-page main .process-photo-pair .depth-photo{aspect-ratio:var(--process-photo-ratio,1.5)!important;overflow:hidden}
.treatment-page main .process-photo-pair .depth-photo img{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:contain!important}
.treatment-page main .process-photo-pair figcaption{margin:0;padding:16px 0 0;line-height:1.65}
