/* Full Site Polish 01. Approved scale, type tokens and breakpoints are unchanged. */
.polish-header{position:sticky;top:0;z-index:1000}
.polish-cta-ready .ref-header-cta,.polish-cta-ready .header-cta,.polish-mobile-cta{transition:opacity .18s ease,visibility .18s ease}
.polish-cta-suppressed{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
.polish-mobile-cta{display:none}
html{scroll-padding-top:calc(var(--polish-header-height,80px) + 16px)}
.polish-cta-ready main [id]{scroll-margin-top:16px}
/* Preserve the original image footprints while giving them real gallery controls. */
.ref-property-photo,.ref-feature-photo{display:block;width:100%;border:0;padding:0;background:transparent;overflow:hidden;cursor:zoom-in}
.ref-property-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 34%}
.ref-feature-photo{height:calc(141 * var(--u))}.ref-feature-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 50%}.ref-feature:nth-child(4) .ref-feature-photo img{object-position:50% 58%}
.ref-hero-photo-open{position:absolute;inset:0;z-index:1;border:0;padding:0;background:transparent;cursor:zoom-in}.ref-hero-photo:after{pointer-events:none}.ref-signature{pointer-events:none}
.ref-property-photo:focus-visible,.ref-feature-photo:focus-visible{outline:3px solid #28443b;outline-offset:4px}
.ref-lightbox{width:min(1280px,96vw);max-width:96vw;height:min(1000px,94dvh);max-height:94dvh;padding:50px 60px 90px;background:#f8f6f2}
.ref-lightbox figure img{max-height:calc(100% - 24px);user-select:none;touch-action:pan-y;cursor:grab}.ref-lightbox figure img:active{cursor:grabbing}.ref-lightbox figcaption{font-size:14px;color:#4f5f54;line-height:1.35}.ref-lightbox figure{gap:10px}
.ref-lightbox-close,.ref-lightbox-prev,.ref-lightbox-next{min-width:44px;min-height:44px;border-radius:50%;background:#f8f6f2e8;display:grid;place-items:center}.ref-lightbox-prev{left:8px}.ref-lightbox-next{right:8px}.ref-lightbox-close{right:12px;top:8px}.ref-photo-count{position:absolute;top:20px;left:24px;font:500 13px/1.2 var(--sans);color:#526358}
.ref-photo-thumbnails{position:absolute;bottom:14px;left:24px;right:24px;display:flex;justify-content:flex-start;gap:8px;overflow-x:auto;padding:4px 2px;scrollbar-width:thin}.ref-photo-thumbnails button{padding:0;border:2px solid transparent;border-radius:3px;flex:0 0 58px;height:48px;opacity:.65;background:transparent}.ref-photo-thumbnails img{width:100%;height:100%;object-fit:cover}.ref-photo-thumbnails button[aria-current="true"]{border-color:#28443b;opacity:1}.ref-photo-thumbnails button:hover{opacity:1}.ref-photo-thumbnails button:focus-visible{outline:2px solid #28443b;outline-offset:2px}
/* Put the reference list directly below its heading, without an intervening photo row. */
.h-included-grid{margin-top:calc(18 * var(--u))}.h-photo-strip{margin-bottom:0}
/* Aligned editorial review rows; the existing typography stays intact. */
.resident-grid{align-items:stretch}.resident-card{display:flex;flex-direction:column;background:#f8f9f4;border-color:#c8d1c3;box-shadow:0 2px 5px #243e3306}.resident-card figure{display:flex;flex-direction:column;flex:1}.resident-card blockquote{flex:1}.resident-card details{margin-top:auto}.resident-card figcaption{padding-top:calc(3 * var(--u))}
/* Historical map category palette, restored from the existing styles.css. */
.leaflet-sam-pin-academy{background:#17201d}.leaflet-sam-pin-essentials{background:#256aa7}.leaflet-sam-pin-food{background:#d96c2b}.leaflet-sam-pin-fitness{background:#347d59}.leaflet-sam-pin-things{background:#7654a7}.leaflet-sam-pin-travel{background:#267f8b}
@media(min-width:761px) and (max-width:1100px){.ref-feature-photo{height:210px}}
@media(max-width:760px){
 .polish-cta-ready .polish-header{position:relative}.polish-mobile-cta{display:block;position:fixed;z-index:900;left:0;right:0;bottom:0;padding:9px 20px calc(9px + env(safe-area-inset-bottom));background:#fcfaf7f5;border-top:1px solid #c4cec3;box-shadow:0 -2px 10px #28443b0b}.polish-mobile-cta .ref-button{display:flex;width:100%;min-height:46px;gap:12px;font:600 14px/1 var(--sans,Arial,sans-serif);color:white;border:1px solid #294638;border-radius:4px;background:linear-gradient(180deg,#52675e,#354f44 45%,#254337 52%,#304e41);box-shadow:inset 0 1px 0 #ffffff40}
 .polish-cta-ready main{scroll-margin-bottom:80px}.polish-cta-ready .ref-header-cta,.polish-cta-ready .header-cta{visibility:hidden}
 .ref-feature-photo{height:auto;aspect-ratio:1/1.1}.ref-property-photo img{object-position:center}
 .ref-lightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:58px 10px 86px}.ref-lightbox figure img{max-width:100%;max-height:calc(100% - 45px)}.ref-lightbox-prev,.ref-lightbox-next{top:auto;bottom:83px;background:#f8f6f2ed}.ref-lightbox-prev{left:12px}.ref-lightbox-next{right:12px}.ref-lightbox figcaption{max-width:calc(100vw - 112px);font-size:13px}.ref-photo-thumbnails{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}.ref-photo-thumbnails button{flex-basis:54px;height:46px}.ref-lightbox-close{top:max(10px,env(safe-area-inset-top));right:12px}
 .h-included-grid{margin-top:20px}.h-photo-strip{margin:24px 0 0}
}
@media(prefers-reduced-motion:reduce){.polish-cta-ready .ref-header-cta,.polish-mobile-cta{transition:none}}
/* The count is metadata, never an invisible hit target over the photograph. */
.ref-photo-count{right:auto;bottom:auto;width:auto;height:auto;pointer-events:none}
