/* re-h.css: Nov 6 2026 re-audit fixes for the Brick, Jackson, Lakewood and Manchester town pages.
   Scoped to those pages only (each page is matched by a section id only it has). Loaded after every other stylesheet. */

/* 0. Stacking: sections overlap by their rounded top edge, so each one must sit above the one before it.
      Section order changed on Jackson, Lakewood and Manchester (Nov 6: no two town pages share an order). */
main:has(#split) #services{z-index:1}main:has(#split) #split{z-index:2}main:has(#split) #homes{z-index:3}main:has(#split) #travel-fee{z-index:4}main:has(#split) #recurring{z-index:5}main:has(#split) #promise{z-index:6}main:has(#split) #reviews{z-index:7}main:has(#split) #compare{z-index:8}main:has(#split) #faq{z-index:9}main:has(#split) #nearby{z-index:10}main:has(#split) #final-cta{z-index:11}
main:has(#communities):has(#neighborhoods) #services{z-index:1}
main:has(#communities):has(#neighborhoods) #neighborhoods{z-index:2}
main:has(#communities):has(#neighborhoods) #communities{z-index:3}
main:has(#communities):has(#neighborhoods) #travel-fee{z-index:4}
main:has(#communities):has(#neighborhoods) #recurring{z-index:5}
main:has(#communities):has(#neighborhoods) #reviews{z-index:6}
main:has(#communities):has(#neighborhoods) #homes{z-index:7}
main:has(#communities):has(#neighborhoods) #promise{z-index:8}
main:has(#communities):has(#neighborhoods) #compare{z-index:9}
main:has(#communities):has(#neighborhoods) #nearby{z-index:10}
main:has(#communities):has(#neighborhoods) #faq{z-index:11}
main:has(#communities):has(#neighborhoods) #final-cta{z-index:12}
main:has(#larger-homes) #larger-homes{z-index:1}
main:has(#larger-homes) #neighborhoods{z-index:2}
main:has(#larger-homes) #services{z-index:3}
main:has(#larger-homes) #compare{z-index:4}
main:has(#larger-homes) #recurring{z-index:5}
main:has(#larger-homes) #travel-fee{z-index:6}
main:has(#larger-homes) #reviews{z-index:7}
main:has(#larger-homes) #faq{z-index:8}
main:has(#larger-homes) #promise{z-index:9}
main:has(#larger-homes) #nearby{z-index:10}
main:has(#larger-homes) #final-cta{z-index:11}
main:has(#whiting) #whiting{z-index:1}
main:has(#whiting) #travel-fee{z-index:2}
main:has(#whiting) #services{z-index:3}
main:has(#whiting) #communities{z-index:4}
main:has(#whiting) #homes{z-index:5}
main:has(#whiting) #reviews{z-index:6}
main:has(#whiting) #recurring{z-index:7}
main:has(#whiting) #faq{z-index:8}
main:has(#whiting) #compare{z-index:9}
main:has(#whiting) #promise{z-index:10}
main:has(#whiting) #nearby{z-index:11}
main:has(#whiting) #final-cta{z-index:12}

/* 1. Brand: no italics anywhere on these pages */
main:is(:has(#split),:has(#whiting),:has(#larger-homes),:has(#communities)) .sz-note,
main:is(:has(#split),:has(#whiting),:has(#larger-homes),:has(#communities)) figcaption,
.b13-hrow-s,.b13-gauge figcaption,.m14-pc-sub,.l13-rings figcaption,.l13-fee-l li:last-child span,.l13-fee-l li:last-child b{font-style:normal}

/* 2. Brick */
@media (max-width:599px){
 .b13-hstat li{gap:12px}
 .b13-hrow-ph{min-height:0;height:clamp(220px,62vw,300px)}
}
@media (min-width:600px) and (max-width:999px){
 .b13-hrow-ph{min-height:0;height:clamp(300px,44vw,420px)}
 .b13-zips{grid-template-columns:repeat(2,minmax(0,1fr))}
 #nearby .tw-strip{max-width:520px;justify-self:center}
}
@media (min-width:1000px){.b13-zips{grid-template-columns:repeat(4,minmax(0,1fr))}}
.b13-hrow-ph picture{height:100%}

/* 3. Jackson */
.j14-sign-in::after{display:none}                       /* soft white sheen was a gradient */
@media (max-width:999px){.j14-sg{animation:none!important}}  /* phone/tablet: signs no longer swing off the screen edge */
@media (min-width:600px){
 .j14-cmp .j14-tb tfoot .btn-ink{background:#000;color:#fff!important;border-color:#000}
 .j14-cmp .j14-tb tfoot .btn-ink:hover{background:#fff;color:#000!important;border-color:#000}
}
.tw-jnb .tw-crop-k{top:10px;bottom:auto}               /* tag no longer sits on the place label */

/* 4. Lakewood */
@media (max-width:999px){
 .l13-fee-g .l13-fee-copy{order:1}
 .l13-fee-g .l13-rings{order:2}
}
.l13-rl,.l13-rt{paint-order:stroke;stroke:var(--bg,#fff);stroke-width:6px;stroke-linejoin:round}
.l13-fp-st{font-size:10px;padding:2px;letter-spacing:0}
@media (min-width:1000px){
 .l13-rm-db .l13-rm-p{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
}
.l13-sw-from{grid-template-columns:minmax(0,1fr);max-width:440px}
.l13-sw-from .lnk{color:#fff!important}
:root[data-theme=dark] .l13-sw-from .lnk{color:#000!important}

/* 5. Manchester */
.m14-pc-go{text-wrap:pretty}
@media (min-width:600px) and (max-width:999px){.tw-jnb .j14-nb-i:last-child .tw-c-l{display:none}}
