/* Shared project detail foundation. Legacy class names retain the approved RYIL appearance. */
.treesy-project-page{--rp-navy:#092C43;--rp-gold:#B99560;--rp-cream:#F5F1E9;background:#fdfcf9;color:var(--rp-navy);font-family:var(--font-body);overflow-wrap:break-word}
.treesy-project-page *,.treesy-project-page *::before,.treesy-project-page *::after{box-sizing:border-box}
.treesy-project-page .ryil-container{width:calc(100% - 80px);max-width:1280px;margin-inline:auto}
.treesy-project-page h1,.treesy-project-page h2,.treesy-project-page h3{font-family:var(--font-heading);font-weight:500;letter-spacing:-.025em;color:var(--rp-navy)}
.treesy-project-page h2{font-size:clamp(30px,3vw,43px);line-height:1.17;margin:0 0 20px}
.treesy-project-page h2 em,.treesy-project-page h1 em{color:#825c30;font-weight:400}
.treesy-project-page p{font-size:15px;line-height:1.8;color:#566773;margin:0 0 20px}
.treesy-project-page figure{margin:0;min-width:0}
.treesy-project-page img{display:block;max-width:100%;height:auto}
.treesy-project-page .icon{width:20px;height:20px;flex-shrink:0}
.treesy-project-page .ryil-eyebrow{display:flex;align-items:center;gap:12px;font-size:10px;font-weight:800;line-height:1.6;letter-spacing:.12em;color:var(--rp-navy);margin:0 0 18px}
.treesy-project-page .ryil-eyebrow::before{content:"";height:2px;width:32px;flex:0 0 32px;background:var(--rp-gold)}
.treesy-project-page .treesy-project-hero{position:relative;isolation:isolate;min-height:560px;background:var(--rp-cream);display:flex;align-items:center}
.treesy-project-page .treesy-project-hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 57%;z-index:-2}
.treesy-project-page .treesy-project-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#f5f1e9 0%,rgba(245,241,233,.98) 20%,rgba(245,241,233,.9) 34%,rgba(245,241,233,.15) 64%,transparent 80%);pointer-events:none}
.treesy-project-page .treesy-project-hero-content{padding-block:64px 68px}
.treesy-project-page .treesy-project-hero h1{font-size:clamp(50px,5vw,72px);line-height:1.05;margin:0 0 22px;max-width:590px}
.treesy-project-page .treesy-project-hero h1 span{display:block;font-size:.66em;font-style:italic;line-height:1.14;margin-top:6px}
.treesy-project-page .treesy-project-hero h1 em{display:block}
.treesy-project-page .treesy-project-hero-lead{max-width:560px;margin-bottom:28px;color:#425866}
.treesy-project-page .ryil-actions{display:flex;flex-wrap:wrap;gap:12px;max-width:530px}
.treesy-project-page .ryil-button{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:46px;padding:12px 20px;border:1px solid var(--rp-gold);border-radius:3px;background:var(--rp-gold);color:var(--rp-navy);font:800 12px/1.5 var(--font-body);text-decoration:none;text-align:center;cursor:pointer;transition:background-color .18s,color .18s}
.treesy-project-page .ryil-button .icon{width:17px;height:17px}
.treesy-project-page .ryil-button:hover{background:#d2b586;border-color:#d2b586;color:var(--rp-navy)}
.treesy-project-page .ryil-button-outline{background:rgba(253,252,249,.86);border-color:var(--rp-navy)}
.treesy-project-page .ryil-button-outline:hover{background:var(--rp-navy);border-color:var(--rp-navy);color:#fff}
.treesy-project-page .ryil-button-navy{background:var(--rp-navy);border-color:var(--rp-navy);color:#fff}
.treesy-project-page a:focus-visible,.treesy-project-page button:focus-visible,.treesy-project-page summary:focus-visible,.treesy-project-page [tabindex]:focus-visible{outline:3px solid var(--rp-gold);outline-offset:4px}
.treesy-project-page .treesy-project-hero-caption{position:absolute;bottom:22px;right:40px;max-width:310px;text-align:right;color:#fff;font:italic 24px/1.25 var(--font-heading);text-shadow:0 1px 8px #092c43;margin:0}
.treesy-project-page .treesy-project-hero-caption span{font:500 11px/1.5 var(--font-body)}
.treesy-project-page .ryil-highlight-strip{background:var(--rp-cream);border-bottom:1px solid #e5dfd4}
.treesy-project-page .ryil-highlights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding-block:25px}
.treesy-project-page .ryil-highlights>div{display:flex;align-items:center;gap:18px;padding-inline:24px;border-right:1px solid #ded7cb}
.treesy-project-page .ryil-highlights>div:first-child{padding-left:0}
.treesy-project-page .ryil-highlights>div:last-child{border-right:0}
.treesy-project-page .ryil-highlights .icon{width:30px;height:30px;color:var(--rp-gold)}
.treesy-project-page .ryil-highlights p{margin:0;font-size:12px;line-height:1.5}
.treesy-project-page .ryil-highlights strong,.treesy-project-page .ryil-highlights span{display:block}
.treesy-project-page .ryil-highlights strong{color:var(--rp-navy);margin-bottom:4px}
.treesy-project-page .ryil-highlights span{font-size:11px}
.treesy-project-page section[id]{scroll-margin-top:110px}
.treesy-project-page .ryil-section{padding:66px 0}
.treesy-project-page .ryil-warm{background:#f7f4ef}
.treesy-project-page .ryil-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:52px;align-items:center}
.treesy-project-page .ryil-overview-visual img{width:100%;aspect-ratio:1.34;object-fit:cover}
.treesy-project-page figcaption,.treesy-project-page .ryil-source{font-size:11px;line-height:1.7;color:#64727b}
.treesy-project-page figure>figcaption{margin-top:10px}
.treesy-project-page .ryil-source{margin:20px 0 0}
.treesy-project-page .ryil-concepts{display:grid;grid-template-columns:1fr 1fr;gap:24px 20px;margin-top:28px}
.treesy-project-page .ryil-concepts>div{display:flex;align-items:flex-start;gap:12px;min-width:0}
.treesy-project-page .ryil-concepts .icon{color:var(--rp-gold);width:38px;height:38px;border:1px solid var(--rp-gold);border-radius:50%;padding:8px}
.treesy-project-page .ryil-concepts p{margin:0;font-size:12px;line-height:1.6}
.treesy-project-page .ryil-concepts strong,.treesy-project-page .ryil-concepts span{display:block}
.treesy-project-page .ryil-concepts strong{color:var(--rp-navy);margin-bottom:3px}
.treesy-project-page .ryil-concepts span{font-size:11px}
.treesy-project-page .ryil-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:36px;margin-bottom:28px}
.treesy-project-page .ryil-section-heading h2{margin-bottom:0}
.treesy-project-page .ryil-section-heading>p{flex:0 0 300px;font-size:13px;line-height:1.75;margin:0}
.treesy-project-page .ryil-section-heading>.ryil-button{flex-shrink:0}
.treesy-project-page .treesy-project-unit-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.treesy-project-page .treesy-project-unit-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #e8e2d9;border-radius:4px;overflow:hidden;box-shadow:0 6px 18px #092c4309}
.treesy-project-page .treesy-project-unit-card-media{overflow:hidden}
.treesy-project-page .treesy-project-unit-card-media>img{width:100%;aspect-ratio:1.5;object-fit:cover}
.treesy-project-page .treesy-project-unit-card-content{display:flex;flex-direction:column;padding:18px 16px;flex:1}
.treesy-project-page .treesy-project-unit-card h3{font-size:25px;line-height:1.2;margin:0 0 6px}
.treesy-project-page .treesy-project-unit-card-dimension{font-size:12px;line-height:1.5;margin:0 0 15px}
.treesy-project-page .treesy-project-unit-card .treesy-project-unit-card-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;margin:2px 0 10px}
.treesy-project-page .treesy-project-unit-card-specs>div{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:6px;row-gap:2px;align-items:center;min-width:0}
.treesy-project-page .treesy-project-unit-card-specs dt{display:contents}
.treesy-project-page .treesy-project-unit-card-specs dt span{grid-column:2;grid-row:1;font:400 10px/1.4 var(--font-body);color:#647480;white-space:normal}
.treesy-project-page .treesy-project-unit-card-specs .icon{grid-column:1;grid-row:1 / span 2;width:20px;height:20px;color:var(--rp-gold);stroke-width:1.75;align-self:center}
.treesy-project-page .treesy-project-unit-card-specs dd{grid-column:2;grid-row:2;margin:0;font:600 13px/1.4 var(--font-body);color:var(--rp-navy);white-space:nowrap}
.treesy-project-page .treesy-project-unit-card-extra{min-height:18px;margin-bottom:10px;font:400 10px/1.8 var(--font-body);color:#647480}
.treesy-project-page .treesy-project-unit-card-price{margin:auto 0 18px;padding-top:16px;border-top:1px solid #e8e2d9}
.treesy-project-page .treesy-project-unit-card-price span{display:block;font:600 9px/1.6 var(--font-body);letter-spacing:.1em;color:#647480;margin-bottom:6px}
.treesy-project-page .treesy-project-unit-card-price strong{display:block;font:700 clamp(20px,1.55vw,24px)/1.35 var(--font-body);letter-spacing:-.025em;color:#825c30;white-space:nowrap}
.treesy-project-page .treesy-project-unit-card-cta{margin-top:0;width:100%;padding:11px 8px;min-height:44px;gap:10px}

.treesy-project-page .ryil-table-hint{display:none;font-size:12px;margin:0 0 12px}
.treesy-project-page .ryil-table-scroll{overflow-x:auto;border:1px solid #e4ded3;border-radius:4px;scrollbar-width:thin;scrollbar-color:var(--rp-gold) var(--rp-cream)}
.treesy-project-page .ryil-table{border-collapse:collapse;min-width:1040px;width:100%;font-size:13px;line-height:1.6}
.treesy-project-page .ryil-table caption{caption-side:bottom;font-size:11px;color:#64727b;padding:14px;text-align:left}
.treesy-project-page .ryil-table th,.treesy-project-page .ryil-table td{padding:14px 18px;border-bottom:1px solid #e8e3d9;text-align:left;white-space:nowrap}
.treesy-project-page .ryil-table thead{background:var(--rp-navy);color:#fff}
.treesy-project-page .ryil-table thead th{font-size:12px;font-weight:600}
.treesy-project-page .ryil-table tbody tr:nth-child(odd){background:#f7f4ef}
.treesy-project-page .ryil-table .ryil-table-price{color:#825c30;font-weight:800}
.treesy-project-page .ryil-table small{display:block;font-size:10px}
.treesy-project-page .treesy-project-facility-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:16px}
.treesy-project-page .treesy-project-facility-gallery[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.treesy-project-page .treesy-project-facility-gallery figure{overflow:hidden;background:#fff;min-width:0;border:1px solid #e8e2d9;border-radius:12px;box-shadow:0 6px 18px #092c4309}
.treesy-project-page .treesy-project-facility-media{aspect-ratio:1.15;overflow:hidden}
.treesy-project-page .treesy-project-facility-media>img{width:100%;height:100%;object-fit:cover}
.treesy-project-page .treesy-project-facility-gallery figcaption{position:static;padding:20px;margin:0;background:#fff}
.treesy-project-page .treesy-project-facility-gallery h3{font-size:22px;line-height:1.25;color:var(--rp-navy);margin:0 0 8px;letter-spacing:-.015em}
.treesy-project-page .treesy-project-facility-gallery p{font-size:14px;color:#566773;line-height:1.65;margin:0}
.treesy-project-page .treesy-project-facility-card-contain{display:flex;flex-direction:column}
.treesy-project-page .treesy-project-facility-card-contain .treesy-project-facility-media{flex:none;aspect-ratio:1400/974;padding:0;background:var(--rp-cream)}
.treesy-project-page .treesy-project-facility-card-contain figcaption{flex:1}
.treesy-project-page .treesy-project-facility-card-contain .treesy-project-facility-media>img{object-fit:contain}
.treesy-project-page .ryil-access-list{list-style:none;padding:0;margin:26px 0}
.treesy-project-page .ryil-access-list li{display:flex;align-items:center;gap:16px;border-bottom:1px solid #e5dfd5;padding:13px 0;font-size:13px;font-weight:600}
.treesy-project-page .ryil-access-list .icon{color:var(--rp-gold)}
.treesy-project-page .ryil-location-map img{width:100%;max-height:470px;object-fit:contain;background:#fff}
.treesy-project-page .ryil-siteplan img{width:100%;object-fit:contain}
.treesy-project-page .ryil-siteplan figure a,.treesy-project-page .ryil-location-map a{display:block}
.treesy-project-page .ryil-faq details{border-bottom:1px solid #e2dcd0}
.treesy-project-page .ryil-faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px;font-weight:700;line-height:1.6;min-height:52px;padding:14px 0;cursor:pointer}
.treesy-project-page .ryil-faq summary::-webkit-details-marker{display:none}
.treesy-project-page .ryil-faq summary::after{content:"+";font-size:23px;line-height:1;color:var(--rp-gold);flex-shrink:0}
.treesy-project-page .ryil-faq details[open] summary::after{content:"−"}
.treesy-project-page .ryil-faq details p{font-size:14px;line-height:1.8;margin:0;padding:0 25px 20px 0}
.treesy-project-page .ryil-closing{position:relative;isolation:isolate;background:var(--rp-navy);min-height:340px}
.treesy-project-page .ryil-closing-photo{position:absolute;right:0;top:0;width:58%;height:100%;object-fit:cover;object-position:center;z-index:-2}
.treesy-project-page .ryil-closing::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#092c43 0%,#092c43 36%,rgba(9,44,67,.9) 43%,transparent 76%);pointer-events:none}
.treesy-project-page .ryil-closing-copy{max-width:510px;padding:52px 0}
.treesy-project-page .treesy-project-zoom-modal{width:min(96vw,1300px);max-width:96vw;max-height:94dvh;padding:16px;overscroll-behavior:contain}
.treesy-project-page .treesy-project-zoom-modal .treesy-project-zoom-help{font-size:12px;margin:0 0 14px}
.treesy-project-page .treesy-project-zoom-modal img{width:1100px;max-width:none;max-height:none;margin:auto}
.treesy-project-page .treesy-project-zoom-modal button{position:sticky;top:0;left:0;display:block;margin:0 0 12px auto;border:1px solid var(--rp-navy);border-radius:3px;background:var(--rp-navy);color:#fff;padding:8px 14px;z-index:1}
@media(max-width:1199.98px){
 .treesy-project-page .ryil-container{width:calc(100% - 64px)}
 .treesy-project-page .treesy-project-unit-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
 .treesy-project-page .treesy-project-unit-card-media>img{aspect-ratio:1.65}
 .treesy-project-page .ryil-split{gap:32px}
 .treesy-project-page .ryil-highlights>div{padding-inline:15px;gap:12px}
 .treesy-project-page .ryil-concepts{gap:20px 12px}
 .treesy-project-page .ryil-concepts>div{gap:8px}
 .treesy-project-page .treesy-project-facility-gallery h3{font-size:22px}
 .treesy-project-page .ryil-table-hint{display:block}
}
@media(max-width:991.98px){
 .treesy-project-page .treesy-project-hero{min-height:550px}
 .treesy-project-page .treesy-project-hero::after{background:linear-gradient(90deg,rgba(245,241,233,.99),rgba(245,241,233,.95) 35%,rgba(245,241,233,.35) 80%)}
 .treesy-project-page .treesy-project-hero-caption{font-size:20px;right:32px}
 .treesy-project-page .ryil-highlights{grid-template-columns:1fr 1fr;gap:24px 0}
 .treesy-project-page .ryil-highlights>div:nth-child(3){padding-left:0}
 .treesy-project-page .ryil-highlights>div:nth-child(even){border-right:0}
 .treesy-project-page .ryil-split{gap:30px;grid-template-columns:1fr}
 .treesy-project-page .ryil-overview .ryil-split{grid-template-columns:minmax(0,.85fr) minmax(0,1fr)}
 .treesy-project-page .ryil-overview-visual img{aspect-ratio:.7}
 .treesy-project-page .ryil-concepts{grid-template-columns:1fr}
 .treesy-project-page .treesy-project-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .treesy-project-page .ryil-section-heading{align-items:flex-start;flex-direction:column;gap:18px}
 .treesy-project-page .ryil-section-heading>p{flex:initial;max-width:530px}
 .treesy-project-page .treesy-project-facility-gallery{grid-template-columns:1fr 1fr}
 .treesy-project-page .treesy-project-facility-media{aspect-ratio:1.5}
 .treesy-project-page .treesy-project-facility-gallery h3{font-size:22px}
 .treesy-project-page .ryil-siteplan>div{order:-1}
 .treesy-project-page .ryil-closing-copy{max-width:440px}
 .treesy-project-page .ryil-closing::after{background:linear-gradient(90deg,#092c43 0%,rgba(9,44,67,.96) 43%,rgba(9,44,67,.4) 100%)}
}
@media(max-width:575.98px){
 .treesy-project-page .ryil-container{width:calc(100% - 36px)}
 .treesy-project-page .treesy-project-hero{min-height:0}
 .treesy-project-page .treesy-project-hero-photo{object-position:62% center}
 .treesy-project-page .treesy-project-hero-content{padding-block:46px 54px}
 .treesy-project-page .treesy-project-hero h1{font-size:46px}
 .treesy-project-page .treesy-project-hero h1 span{font-size:.74em}
 .treesy-project-page .treesy-project-hero .ryil-eyebrow{font-size:9px;letter-spacing:.07em}
 .treesy-project-page .treesy-project-hero-lead{font-size:14px}
 .treesy-project-page .ryil-actions{flex-direction:column}
 .treesy-project-page .ryil-actions .ryil-button{width:100%}
 .treesy-project-page .treesy-project-hero-caption{display:none}
 .treesy-project-page .ryil-highlights{gap:22px 0;padding-block:24px}
 .treesy-project-page .ryil-highlights>div{gap:9px;padding-inline:10px}
 .treesy-project-page .ryil-highlights .icon{width:23px;height:23px}
 .treesy-project-page .ryil-highlights p{font-size:11px}
 .treesy-project-page .ryil-highlights span{font-size:10px}
 .treesy-project-page .ryil-section{padding:44px 0}
 .treesy-project-page .ryil-overview .ryil-split{grid-template-columns:1fr}
 .treesy-project-page .ryil-overview-visual img{aspect-ratio:1.3}
 .treesy-project-page h2{font-size:32px}
 .treesy-project-page .ryil-eyebrow{margin-bottom:16px}
 .treesy-project-page .ryil-concepts{grid-template-columns:1fr 1fr;gap:20px 14px}
 .treesy-project-page .ryil-concepts>div{flex-direction:column;gap:9px}
 .treesy-project-page .treesy-project-unit-grid{grid-template-columns:1fr;gap:22px}
 .treesy-project-page .treesy-project-unit-card-media>img{aspect-ratio:1.65}
 .treesy-project-page .treesy-project-unit-card-content{padding:22px}
 .treesy-project-page .treesy-project-unit-card h3{font-size:30px}
 .treesy-project-page .treesy-project-unit-card-dimension{font-size:13px}
 .treesy-project-page .treesy-project-facility-gallery,.treesy-project-page .treesy-project-facility-gallery[data-count="2"]{grid-template-columns:minmax(0,1fr);gap:14px}
 .treesy-project-page .treesy-project-facility-media{aspect-ratio:1.4}
 .treesy-project-page .treesy-project-facility-gallery h3{font-size:22px}
 .treesy-project-page .treesy-project-facility-gallery p{font-size:14px}
 .treesy-project-page .ryil-closing-copy{padding-block:44px;max-width:none}
 .treesy-project-page .ryil-closing-photo{width:100%}
 .treesy-project-page .ryil-closing::after{background:rgba(9,44,67,.9)}
 .treesy-project-page .ryil-closing .ryil-button{width:100%}
 .treesy-project-page section[id]{scroll-margin-top:96px}
}
@media(prefers-reduced-motion:reduce){.treesy-project-page *{scroll-behavior:auto!important;transition:none!important}}
/* CODEX-012: responsive unit details; siteplan retains its larger, pannable image. */
.treesy-project-page .treesy-project-zoom-header{position:sticky;top:0;left:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 12px;background:#fff}
.treesy-project-page .treesy-project-zoom-header h2{font-size:22px;line-height:1.3;margin:0;min-width:0}
.treesy-project-page .treesy-project-zoom-header [data-zoom-close]{position:static;flex:0 0 auto;min-width:44px;min-height:44px;margin:0}
.treesy-project-page .treesy-project-zoom-body{min-width:0}
.treesy-project-page .treesy-project-zoom-modal.treesy-project-unit-detail img{width:1100px;max-width:100%;height:auto}
@media(max-width:767px){
 .treesy-project-page .treesy-project-zoom-modal.treesy-project-unit-detail{width:calc(100vw - 16px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));max-width:calc(100% - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:0;overflow:auto}
 .treesy-project-page .treesy-project-unit-detail .treesy-project-zoom-header{padding:12px;gap:12px}
 .treesy-project-page .treesy-project-unit-detail .treesy-project-zoom-header h2{font-size:18px}
 .treesy-project-page .treesy-project-unit-detail .treesy-project-zoom-body{padding:0 12px 16px}
 .treesy-project-page .treesy-project-zoom-modal.treesy-project-unit-detail img{width:100%;max-width:100%;height:auto}
}


/* Unit cards only: keep labels readable on the wider mobile card. */
@media(max-width:575.98px){
 .treesy-project-page .treesy-project-unit-card-specs dt span{font-size:11px}
 .treesy-project-page .treesy-project-unit-card-specs dd{font-size:14px}
 .treesy-project-page .treesy-project-unit-card-extra{font-size:11px;min-height:20px}
 .treesy-project-page .treesy-project-unit-card-price strong{font-size:24px}
}

/* CODEX-014: gallery controls live only inside the existing RYIL dialog. */
.treesy-project-page .treesy-project-unit-detail .treesy-project-zoom-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px}
.treesy-project-page .treesy-project-gallery-controls:not([hidden]){grid-column:1/-1;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;padding:8px;background:var(--rp-cream);border-radius:4px}
.treesy-project-page .treesy-project-gallery-controls button{position:static;margin:0;min-width:44px;min-height:44px;padding:10px;border:1px solid var(--rp-gold);border-radius:3px;background:transparent;color:var(--rp-navy);display:flex;align-items:center;justify-content:center}
.treesy-project-page .treesy-project-gallery-controls button:hover{background:var(--rp-gold)}
.treesy-project-page .treesy-project-gallery-controls p{display:grid;gap:3px;margin:0;text-align:center;font:600 13px/1.4 var(--font-body);color:var(--rp-navy)}
.treesy-project-page [data-gallery-count]{font-size:11px;font-weight:500;color:#647480}
.treesy-project-page .treesy-project-unit-detail .treesy-project-gallery-viewport{touch-action:pan-y pinch-zoom}
.treesy-project-page .treesy-project-unit-detail .treesy-project-gallery-viewport img{object-fit:contain}
.treesy-project-page .treesy-project-unit-detail[data-gallery-slide="facade"] img{width:auto;max-width:100%;height:auto;max-height:65vh;max-height:65dvh}
.treesy-project-page .treesy-project-unit-detail .treesy-project-zoom-help{margin-bottom:8px}


/* Optional shared variant: projects with four types and no confirmed prices. */
.treesy-project-page .treesy-project-unit-card-unpriced .treesy-project-unit-card-extra:empty{display:none}
@media(min-width:992px){
 .treesy-project-page .treesy-project-unit-grid[data-columns="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1200px){
 .treesy-project-page .treesy-project-unit-grid[data-columns="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Elegant minimal interaction: shared unit cards and image facility cards only. */
.treesy-project-page .treesy-project-unit-card:focus-within {
 border-color:var(--rp-navy);
}
.treesy-project-page .treesy-project-unit-card-cta:focus-visible {
 background:var(--rp-navy);
 border-color:var(--rp-navy);
 color:#fff;
 outline:3px solid var(--rp-gold);
 outline-offset:3px;
}
@media (hover:hover) and (pointer:fine) {
 .treesy-project-page .treesy-project-unit-card {
  transition:transform 220ms ease,border-color 220ms ease,box-shadow 220ms ease;
 }
 .treesy-project-page .treesy-project-facility-media>img {
  transition:transform 300ms ease;
 }
 .treesy-project-page .treesy-project-unit-card-cta {
  transition:background-color 200ms ease,border-color 200ms ease,color 200ms ease;
 }
 .treesy-project-page .treesy-project-unit-card:hover {
  border-color:var(--rp-navy);
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(9,44,67,.12);
 }
 .treesy-project-page .treesy-project-facility-gallery figure:hover .treesy-project-facility-media>img,
 .treesy-project-page .treesy-project-facility-gallery .treesy-project-facility-card--body:hover .treesy-project-facility-media>img {
  transform:scale(1.03);
 }
 .treesy-project-page .treesy-project-unit-card-cta:hover {
  background:var(--rp-navy);
  border-color:var(--rp-navy);
  color:#fff;
 }
}
/* Avoid retaining the older generic button hover on touch devices. */
@media (hover:none), (pointer:coarse) {
 .treesy-project-page .treesy-project-unit-card-cta:hover:not(:focus-visible) {
  background:var(--rp-gold);
  border-color:var(--rp-gold);
  color:var(--rp-navy);
 }
}
@media (prefers-reduced-motion:reduce) {
 .treesy-project-page .treesy-project-unit-card,
 .treesy-project-page .treesy-project-facility-media>img {
  transform:none!important;
  transition:none!important;
 }
 .treesy-project-page .treesy-project-unit-card-cta {
  transition:none!important;
 }
}

/* Shared single-unit layout; existing multi-type projects keep their approved grid. */
.treesy-project-page .treesy-project-unit-grid[data-columns="1"]{grid-template-columns:minmax(0,1fr);max-width:410px;margin-inline:auto}
/* Three-unit projects use the existing wide-desktop unit grid proportions. */
@media(min-width:1200px){
 .treesy-project-page .treesy-project-unit-grid[data-columns="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Wyldore facility media: match Pavilion ratio and fill the shared frame. */
.treesy-project-page[data-project-name="Cluster Wyldore"] .treesy-project-facility-card-contain .treesy-project-facility-media {
 aspect-ratio:16/9;
}
.treesy-project-page[data-project-name="Cluster Wyldore"] .treesy-project-facility-card-contain .treesy-project-facility-media>img {
 object-fit:cover;
 object-position:50% 50%;
}
/* Morelle brochure slides retain their complete 16:9 content. */
.treesy-project-page[data-project-name="Cluster Morelle at Vireya"] .treesy-project-facility-gallery {
 align-items:stretch;
}
.treesy-project-page[data-project-name="Cluster Morelle at Vireya"] .treesy-project-facility-card-contain .treesy-project-facility-media {
 aspect-ratio:16/9;
}
/* Gramercy: three family notes and complete facility media; existing pages stay unchanged. */
.treesy-project-page[data-project-name="The Gramercy"] .gramercy-variants {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:36px;
}
.treesy-project-page[data-project-name="The Gramercy"] .gramercy-variants>div {min-width:0;border-top:1px solid #e8e2d9;padding-top:20px}
.treesy-project-page[data-project-name="The Gramercy"] .gramercy-variants h3 {font-size:24px;margin:0 0 16px}
.treesy-project-page[data-project-name="The Gramercy"] .gramercy-variants p,
.treesy-project-page[data-project-name="The Gramercy"] .gramercy-unit-notes p {font-size:15px;line-height:1.7}
.treesy-project-page[data-project-name="The Gramercy"] .gramercy-unit-notes {margin-top:24px}
.treesy-project-page[data-project-name="The Gramercy"] .treesy-project-facility-gallery {grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.treesy-project-page[data-project-name="The Gramercy"] .treesy-project-facility-card-contain .treesy-project-facility-media {aspect-ratio:16/9}
@media(max-width:991.98px){
 .treesy-project-page[data-project-name="The Gramercy"] .treesy-project-facility-gallery {grid-template-columns:repeat(2,minmax(0,1fr))}
 .treesy-project-page[data-project-name="The Gramercy"] .gramercy-variants {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:767px){
 .treesy-project-page[data-project-name="The Gramercy"] .treesy-project-facility-gallery {grid-template-columns:minmax(0,1fr)}
}
/* Namee Neu: portrait facility assets fill a consistent frame; captions stretch naturally. */
.treesy-project-page[data-project-name="Namee Neu"] .treesy-project-facility-gallery{align-items:stretch}
.treesy-project-page[data-project-name="Namee Neu"] .treesy-project-facility-media{aspect-ratio:3/4}


/* EleVee apartment plans and facility artwork retain their complete content. */
.treesy-project-page[data-project-name="EleVee Residences"] .treesy-project-unit-card-media{aspect-ratio:1600/1330}
.treesy-project-page[data-project-name="EleVee Residences"] .treesy-project-unit-card-media>img{height:100%;aspect-ratio:auto;object-fit:contain}
.treesy-project-page[data-project-name="EleVee Residences"] .treesy-project-facility-card-contain .treesy-project-facility-media{aspect-ratio:1}
.treesy-project-page[data-project-name="EleVee Residences"] .ryil-table{min-width:1000px}


/* Aniva: preserve the complete source artwork in matching commercial gallery frames. */
.treesy-project-page[data-project-name="Grand Boulevard Aniva"] .treesy-project-facility-card-contain .treesy-project-facility-media{aspect-ratio:20/11}

/* Preserve icon size and wrapping inside the compact detail summary. */
.treesy-project-page .treesy-price-cta .treesy-price-whatsapp{width:17px;height:17px;fill:currentColor;stroke:none;color:inherit}
.treesy-project-page .ryil-highlights p:has(.treesy-price-cta){min-width:0;flex:1}
/* Keep secondary price and primary detail actions together at the bottom of unpriced cards. */
.treesy-project-page .treesy-project-unit-card-unpriced .treesy-project-unit-card-price{margin-top:auto;margin-bottom:12px}
.treesy-project-page .treesy-project-unit-card-unpriced .treesy-project-unit-card-cta{margin-top:0}

/* Price consultation focus must keep its navy indicator after the shared detail focus rule. */
.treesy-project-page a.treesy-price-cta:focus-visible{outline-color:#092C43}

/* RYIL V5 only: separate semantic H1/subline and intros beneath their headings. */
.treesy-project-page[data-project-name="RYIL"] .treesy-project-hero h1{margin-bottom:6px}
.treesy-project-page[data-project-name="RYIL"] .ryil-hero-subline{font-family:var(--font-heading);font-weight:500;font-size:clamp(33px,3.3vw,47.52px);font-style:italic;letter-spacing:-.025em;line-height:1.14;color:var(--rp-navy);max-width:590px;margin:0 0 22px}
.treesy-project-page[data-project-name="RYIL"] .ryil-section-heading>div{flex:1;min-width:0}
.treesy-project-page[data-project-name="RYIL"] .ryil-section-heading>div>p{font-size:13px;line-height:1.75;margin:16px 0 0}
@media(max-width:575.98px){
 .treesy-project-page[data-project-name="RYIL"] .ryil-hero-subline{font-size:34.04px}
}

/* RYIL V5 visual polish: scoped heading accents and FAQ details. */
.treesy-project-page[data-project-name="RYIL"] .ryil-heading-accent{color:#825c30;font-style:italic;font-weight:400}
.treesy-project-page[data-project-name="RYIL"] .ryil-closing .ryil-heading-accent{color:#d4ae73}
.treesy-project-page[data-project-name="RYIL"] #ryil-faq-title::after{content:"";display:block;width:48px;height:2px;margin-top:22px;background:var(--rp-gold)}
.treesy-project-page[data-project-name="RYIL"] .ryil-faq details{border-bottom:1px solid #e6ded1}
.treesy-project-page[data-project-name="RYIL"] .ryil-faq summary{min-height:56px;padding:16px 0;color:var(--rp-navy);font-weight:800}
.treesy-project-page[data-project-name="RYIL"] .ryil-faq summary::after{color:#825c30}

.treesy-project-page[data-project-name="RYIL"] .treesy-project-hero h1 em{display:inline;font-weight:inherit}

/* Opt-in two-tone frame for project detail images. */
.treesy-project-page .treesy-duotone-image-frame{box-sizing:border-box;overflow:hidden;border:3px solid #092C43;border-right-color:#B99560;border-bottom-color:#B99560;border-radius:22px}
.treesy-project-page .treesy-duotone-image-frame>img{display:block;border-radius:19px}

/* Equal-height facility pattern: opt-in by class for future details; RYIL is the initial consumer. */
.treesy-project-page .treesy-project-facility-gallery-equal-height,
.treesy-project-page[data-project-name="RYIL"] .treesy-project-facility-gallery{align-items:stretch}
.treesy-project-page .treesy-project-facility-gallery-equal-height>figure,
.treesy-project-page[data-project-name="RYIL"] .treesy-project-facility-gallery>figure{display:flex;flex-direction:column}
.treesy-project-page .treesy-project-facility-gallery-equal-height .treesy-project-facility-media,
.treesy-project-page[data-project-name="RYIL"] .treesy-project-facility-gallery .treesy-project-facility-media{flex:none}
.treesy-project-page .treesy-project-facility-gallery-equal-height figcaption,
.treesy-project-page[data-project-name="RYIL"] .treesy-project-facility-gallery figcaption{flex:1}

/* Altadena V5: opt-in heading accents and approved intro placement only. */
.treesy-project-page[data-project-name="Altadena Prime"] .treesy-project-hero h1{margin-bottom:6px}
.treesy-project-page[data-project-name="Altadena Prime"] .treesy-project-hero h1 em{display:inline;font-weight:inherit}
.treesy-project-page[data-project-name="Altadena Prime"] .altadena-hero-subline{font-family:var(--font-heading);font-weight:500;font-size:clamp(33px,3.3vw,47.52px);font-style:italic;letter-spacing:-.025em;line-height:1.14;color:var(--rp-navy);max-width:590px;margin:0 0 22px}
.treesy-project-page[data-project-name="Altadena Prime"] .altadena-heading-accent{color:#825c30;font-style:italic;font-weight:400}
.treesy-project-page[data-project-name="Altadena Prime"] .ryil-closing .altadena-heading-accent{color:#d4ae73}
.treesy-project-page[data-project-name="Altadena Prime"] .ryil-section-heading>div{flex:1;min-width:0}
.treesy-project-page[data-project-name="Altadena Prime"] .ryil-section-heading>div>p{font-size:13px;line-height:1.75;margin:16px 0 0}
.treesy-project-page[data-project-name="Altadena Prime"] .ryil-overview-visual.treesy-duotone-image-frame>a{display:block;overflow:hidden;border-radius:19px}
@media(max-width:575.98px){
 .treesy-project-page[data-project-name="Altadena Prime"] .altadena-hero-subline{font-size:34.04px}
}

/* Morelle V5 only: preserve existing media/card geometry without figcaption. */
.treesy-project-page[data-project-name="Cluster Morelle at Vireya"] .morelle-facility-copy{position:static;padding:20px;margin:0;background:#fff;font-size:11px;line-height:1.7;color:#64727b;flex:1}
.treesy-project-page[data-project-name="Cluster Morelle at Vireya"] .treesy-project-hero h1{margin-bottom:22px}
.treesy-project-page[data-project-name="Cluster Morelle at Vireya"] .treesy-project-hero h1 em{display:block;font-weight:inherit}
.treesy-project-page[data-project-name="Cluster Morelle at Vireya"] .morelle-hero-subline{font-family:var(--font-heading);font-weight:500;font-size:clamp(33px,3.3vw,47.52px);font-style:italic;letter-spacing:-.025em;line-height:1.14;color:var(--rp-navy);max-width:590px;margin:0 0 22px}
.treesy-project-page[data-project-name="Cluster Morelle at Vireya"] .morelle-heading-accent{color:#825c30;font-style:italic;font-weight:400}
.treesy-project-page[data-project-name="Cluster Morelle at Vireya"] .ryil-closing .morelle-heading-accent{color:#d4ae73}
.treesy-project-page[data-project-name="Cluster Morelle at Vireya"] .ryil-section-heading>div{flex:1;min-width:0}
.treesy-project-page[data-project-name="Cluster Morelle at Vireya"] .ryil-section-heading>div>p{font-size:13px;line-height:1.75;margin:16px 0 0}
@media(max-width:575.98px){
 .treesy-project-page[data-project-name="Cluster Morelle at Vireya"] .morelle-hero-subline{font-size:34.04px}
}

/* Wyldore V3 editorial accents; existing grids/media remain shared. */
.treesy-project-page[data-project-name="Cluster Wyldore"] .wyldore-heading-accent{color:#825c30;font-style:italic;font-weight:400}
.treesy-project-page[data-project-name="Cluster Wyldore"] .ryil-closing .wyldore-heading-accent{color:#d4ae73}
.treesy-project-page[data-project-name="Cluster Wyldore"] .ryil-section-heading>div{flex:1;min-width:0}
.treesy-project-page[data-project-name="Cluster Wyldore"] .ryil-section-heading>div>p{font-size:13px;line-height:1.75;margin:16px 0 0}

/* FAQ question semantics: opt in only on the four approved primary pages. */
.treesy-project-page:is([data-project-name="RYIL"],[data-project-name="Altadena Prime"],[data-project-name="Cluster Morelle at Vireya"],[data-project-name="Cluster Wyldore"]) .ryil-faq summary>h3{margin:0;font:inherit;color:inherit;letter-spacing:inherit;flex:1;min-width:0}

/* Gramercy V4: scoped editorial accents, FAQ semantics and long family specifications. */
.treesy-project-page[data-project-name="The Gramercy"] .gramercy-heading-accent{color:#825c30;font-style:italic;font-weight:400}
.treesy-project-page[data-project-name="The Gramercy"] .ryil-closing .gramercy-heading-accent{color:#d4ae73}
.treesy-project-page[data-project-name="The Gramercy"] .ryil-section-heading>div{flex:1;min-width:0}
.treesy-project-page[data-project-name="The Gramercy"] .ryil-section-heading>div>p{font-size:13px;line-height:1.75;margin:16px 0 0}
.treesy-project-page[data-project-name="The Gramercy"] .ryil-faq summary>h3{margin:0;font:inherit;color:inherit;letter-spacing:inherit;flex:1;min-width:0}
.treesy-project-page[data-project-name="The Gramercy"] .treesy-project-unit-card-specs dd{white-space:normal}

/* Circe final: isolated editorial headings, FAQ semantics and official facility media. */
.treesy-project-page[data-project-name="Cluster Circe"] .circe-heading-accent{color:#825c30;font-style:italic;font-weight:400}
.treesy-project-page[data-project-name="Cluster Circe"] .ryil-closing .circe-heading-accent{color:#d4ae73}
.treesy-project-page[data-project-name="Cluster Circe"] .ryil-section-heading>div{flex:1;min-width:0}
.treesy-project-page[data-project-name="Cluster Circe"] .ryil-section-heading>div>p{font-size:13px;line-height:1.75;margin:16px 0 0}
.treesy-project-page[data-project-name="Cluster Circe"] .ryil-faq summary>h3{margin:0;font:inherit;color:inherit;letter-spacing:inherit;flex:1;min-width:0}
.treesy-project-page[data-project-name="Cluster Circe"] .treesy-project-facility-gallery{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.treesy-project-page[data-project-name="Cluster Circe"] .treesy-project-facility-card-contain .treesy-project-facility-media{aspect-ratio:1920/1000}
.treesy-project-page[data-project-name="Cluster Circe"] .treesy-project-facility-card-contain .treesy-project-facility-media>img{object-fit:cover}
@media(max-width:1024px){.treesy-project-page[data-project-name="Cluster Circe"] .treesy-project-facility-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.treesy-project-page[data-project-name="Cluster Circe"] .treesy-project-facility-gallery{grid-template-columns:minmax(0,1fr)}}

/* Namee V2 only: editorial accents and required card-level price qualification. */
.treesy-project-page[data-project-name="Namee Neu"] .namee-heading-accent{color:#825c30;font-style:italic;font-weight:400}
.treesy-project-page[data-project-name="Namee Neu"] .ryil-closing .namee-heading-accent{color:#d4ae73}
.treesy-project-page[data-project-name="Namee Neu"] .ryil-section-heading>div{flex:1;min-width:0}
.treesy-project-page[data-project-name="Namee Neu"] .ryil-section-heading>div>p{font-size:13px;line-height:1.75;margin:16px 0 0}
.treesy-project-page[data-project-name="Namee Neu"] .ryil-faq summary>h3{margin:0;font:inherit;color:inherit;letter-spacing:inherit;flex:1;min-width:0}
.treesy-project-page[data-project-name="Namee Neu"] .treesy-project-unit-card-price-note{display:block;margin-top:6px;font:400 11px/1.6 var(--font-body);color:#647480;letter-spacing:normal}
.treesy-project-page[data-project-name="Namee Neu"] .treesy-project-facility-gallery>figure{display:flex;flex-direction:column}
.treesy-project-page[data-project-name="Namee Neu"] .treesy-project-facility-media{flex:none}
.treesy-project-page[data-project-name="Namee Neu"] .treesy-project-facility-gallery figcaption{flex:1}

/* EleVee V5: opt-in SGA cards, editorial headings and equal-height facilities. */
.treesy-project-page[data-project-name="EleVee Residences"] .treesy-project-hero h1 em{display:inline;font-weight:inherit}
.treesy-project-page[data-project-name="EleVee Residences"] .elevee-heading-accent{color:#825c30;font-style:italic;font-weight:400}
.treesy-project-page[data-project-name="EleVee Residences"] .ryil-closing .elevee-heading-accent{color:#d4ae73}
.treesy-project-page[data-project-name="EleVee Residences"] .ryil-section-heading>div{flex:1;min-width:0}
.treesy-project-page[data-project-name="EleVee Residences"] .ryil-section-heading>div>p{font-size:13px;line-height:1.75;margin:16px 0 0}
.treesy-project-page[data-project-name="EleVee Residences"] .ryil-faq summary>h3{margin:0;font:inherit;color:inherit;letter-spacing:inherit;flex:1;min-width:0}
.treesy-project-page[data-project-name="EleVee Residences"] .treesy-project-unit-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.treesy-project-page[data-project-name="EleVee Residences"] .treesy-project-facility-gallery{align-items:stretch}
.treesy-project-page[data-project-name="EleVee Residences"] .treesy-project-facility-gallery>figure:nth-child(n+3) .treesy-project-facility-media>img{object-fit:cover}
@media(max-width:1024px){.treesy-project-page[data-project-name="EleVee Residences"] .treesy-project-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.treesy-project-page[data-project-name="EleVee Residences"] .treesy-project-unit-grid{grid-template-columns:minmax(0,1fr)}}

/* Aniva V5: opt-in editorial headings and commercial FAQ semantics. */
.treesy-project-page[data-project-name="Grand Boulevard Aniva"] .treesy-project-hero h1 em{display:inline;font-weight:inherit}
.treesy-project-page[data-project-name="Grand Boulevard Aniva"] .aniva-heading-accent{color:#825c30;font-style:italic;font-weight:400}
.treesy-project-page[data-project-name="Grand Boulevard Aniva"] .ryil-closing .aniva-heading-accent{color:#d4ae73}
.treesy-project-page[data-project-name="Grand Boulevard Aniva"] .ryil-section-heading>div{flex:1;min-width:0}
.treesy-project-page[data-project-name="Grand Boulevard Aniva"] .ryil-section-heading>div>p{font-size:13px;line-height:1.75;margin:16px 0 0}
.treesy-project-page[data-project-name="Grand Boulevard Aniva"] .ryil-faq summary>h3{margin:0;font:inherit;color:inherit;letter-spacing:inherit;flex:1;min-width:0}

/* Shared mobile photo treatment; tablet/desktop cream and all hero geometry stay intact. */
@media(max-width:767.98px){
 .treesy-project-page .treesy-project-hero::after{background:var(--treesy-mobile-hero-overlay)}
 .treesy-project-page .treesy-project-hero h1,
 .treesy-project-page .treesy-project-hero h1 span{color:#fff}
 .treesy-project-page .treesy-project-hero h1 em,
 .treesy-project-page .treesy-project-hero h1 em span{color:#eac797}
 .treesy-project-page .treesy-project-hero .ryil-eyebrow,
 .treesy-project-page .treesy-project-hero .treesy-project-hero-lead{color:#fff}
}


/* Reusable editorial modifiers. Applied explicitly by each consumer; no project identity selectors. */
.treesy-project-page .treesy-heading-accent{color:#825c30;font-style:italic;font-weight:400}
.treesy-project-page .ryil-closing .treesy-heading-accent{color:#d4ae73}
.treesy-project-page .treesy-project-hero h1.treesy-hero-title-inline em{display:inline;font-weight:inherit}
.treesy-project-page .ryil-section-heading.treesy-section-heading-editorial>div{flex:1;min-width:0}
.treesy-project-page .ryil-section-heading.treesy-section-heading-editorial>div>p{font-size:13px;line-height:1.75;margin:16px 0 0;max-width:880px}
.treesy-project-page .ryil-split.treesy-overview-balanced{align-items:start}
.treesy-project-page .treesy-media-frame-link{display:block}
.treesy-project-page .treesy-overview-balanced .ryil-overview-visual img{aspect-ratio:1.15}
.treesy-project-page .treesy-overview-points{margin-block:32px 36px}
.treesy-project-page .treesy-overview-points strong{font-size:14px}
.treesy-project-page .treesy-overview-points span{font-size:13px;line-height:1.75}
.treesy-project-page .treesy-overview-gallery{margin-top:36px}
.treesy-project-page .treesy-facilities-editorial .treesy-project-facility-gallery{align-items:stretch}
.treesy-project-page .treesy-facilities-editorial .treesy-project-facility-card{display:flex;flex-direction:column}
.treesy-project-page .treesy-facilities-editorial .treesy-project-facility-media{flex:none}
.treesy-project-page .treesy-facilities-editorial figcaption{flex:1}
.treesy-project-page .treesy-facilities-editorial .treesy-project-facility-gallery h3{font-size:21px;line-height:1.3}
.treesy-project-page .treesy-facilities-editorial .treesy-project-facility-gallery p{font-size:13px;line-height:1.75}
.treesy-project-page .ryil-faq.treesy-faq-editorial details{border-bottom-color:#e6ded1}
.treesy-project-page .ryil-faq.treesy-faq-editorial summary{min-height:56px;padding-block:16px;color:var(--rp-navy);font-weight:800}
.treesy-project-page .ryil-faq.treesy-faq-editorial summary>h3{margin:0;font:inherit;color:inherit;letter-spacing:inherit;flex:1;min-width:0}
.treesy-project-page .ryil-faq.treesy-faq-editorial summary::after{color:#825c30}
.treesy-project-page .treesy-faq-heading::after{content:"";display:block;width:48px;height:2px;margin-top:22px;background:var(--rp-gold)}
@media(min-width:992px){
 .treesy-project-page .ryil-concepts.treesy-overview-points{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:575.98px){
 .treesy-project-page .treesy-overview-balanced .ryil-overview-visual img{aspect-ratio:1.3}
 .treesy-project-page .ryil-concepts.treesy-overview-points{grid-template-columns:1fr}
}


/* Optional normal card bodies; legacy figure/figcaption consumers retain their markup and styles. */
.treesy-project-page .treesy-project-facility-card--body{overflow:hidden;background:#fff;min-width:0;border:1px solid #e8e2d9;border-radius:12px;box-shadow:0 6px 18px #092c4309}
.treesy-project-page .treesy-project-facility-body{padding:20px;background:#fff;flex:1}
.treesy-project-page .treesy-project-facility-card--body .treesy-project-facility-media{aspect-ratio:1.15}
.treesy-project-page .treesy-project-facility-card--body .treesy-project-facility-media>img{object-fit:cover}
.treesy-project-page .treesy-project-facility-card--focus-lower .treesy-project-facility-media>img{object-position:50% 70%}


/* Opt-in readable unit cards: typography only; existing grid/media/interaction contracts remain intact. */
.treesy-project-page .treesy-unit-grid-readable .treesy-project-unit-card h3{font-size:27px}
.treesy-project-page .treesy-unit-grid-readable .treesy-project-unit-card-dimension{font-size:14px}
.treesy-project-page .treesy-unit-grid-readable .treesy-project-unit-card-specs dt span{font-size:13px}
.treesy-project-page .treesy-unit-grid-readable .treesy-project-unit-card-specs dd{font-size:16px}
.treesy-project-page .treesy-unit-grid-readable .treesy-project-unit-card-extra{font-size:13px;line-height:1.65}
.treesy-project-page .treesy-unit-grid-readable .treesy-project-unit-card-price>span{font-size:12px}
.treesy-project-page .treesy-unit-grid-readable .treesy-project-unit-card-price strong{font-size:25px}
.treesy-project-page .treesy-unit-grid-readable .treesy-project-unit-card-cta{font-size:14px}


/* Optional additional specifications reuse the existing two-column icon grid. */
.treesy-project-page .treesy-project-unit-view{font:italic 13px/1.65 var(--font-body);color:#647480;margin:0 0 14px}

/* Opt-in variant choices inside the existing detail dialog. */
.treesy-project-page .treesy-variant-panel{min-width:0;margin:0 0 20px;padding:16px;border:1px solid #e8e2d9;border-radius:4px}
.treesy-project-page .treesy-variant-panel legend{padding:0 8px;font-weight:600}
.treesy-project-page .treesy-variant-options{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.treesy-project-page .treesy-variant-panel .ryil-button{font-size:12px;min-height:40px;padding:8px 12px}
.treesy-project-page .treesy-variant-options [aria-pressed=true]{background:var(--rp-navy);color:#fff}
.treesy-project-page .treesy-variant-panel [data-active-variant]{font-weight:700;margin:0 0 8px}
.treesy-project-page .treesy-variant-panel [data-variant-price]{display:block;font-size:18px;color:#825c30;margin-bottom:8px}
.treesy-project-page .treesy-variant-panel [data-variant-specs]{font-size:13px;line-height:1.65;overflow-wrap:anywhere}
.treesy-project-page [data-unit-variants] .treesy-project-unit-card-specs dd{white-space:normal;overflow-wrap:anywhere}
.treesy-project-page .treesy-project-zoom-modal .treesy-variant-options button{position:static;inset:auto;display:inline-flex;margin:0;z-index:auto;background:#fff;color:var(--rp-navy);border-color:var(--rp-gold)}
.treesy-project-page .treesy-project-zoom-modal .treesy-variant-options button[aria-pressed=true]{background:var(--rp-navy);color:#fff;border-color:var(--rp-navy)}
.treesy-project-page .treesy-variant-panel legend{font-size:18px}

/* Opt-in compact cards and one-line slide titles. */
.treesy-project-page .treesy-project-unit-card-compact h3{font-size:22px}
.treesy-project-page .treesy-project-unit-card-compact .treesy-project-unit-card-price strong{font-size:20px}
.treesy-project-page .treesy-project-unit-card-compact .treesy-project-unit-card-specs dd{white-space:normal;overflow-wrap:anywhere}
.treesy-project-page [data-gallery-title-mode=slide] .treesy-project-zoom-header h2{font-size:clamp(12px,1.55vw,22px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.treesy-project-page [data-gallery-title-mode=slide] [data-gallery-label]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Opt-in component presentation; default project layouts remain unchanged. */
.treesy-project-page .treesy-project-unit-grid[data-empty-extras="hide"] .treesy-project-unit-card-extra:empty{display:none}
.treesy-project-page .ryil-location-map[data-media-fit="natural"] img{display:block;height:auto;max-height:none;background:transparent;border-radius:12px}

/* Five equal facility cards: centered final row, using the existing gaps. */
@media(min-width:701px){
 .treesy-project-page .treesy-project-facility-gallery[data-layout="balanced-five"][data-count="5"]{grid-template-columns:repeat(4,minmax(0,1fr))}
 .treesy-project-page .treesy-project-facility-gallery[data-layout="balanced-five"][data-count="5"]>*{grid-column:span 2}
 .treesy-project-page .treesy-project-facility-gallery[data-layout="balanced-five"][data-count="5"]>:last-child{grid-column:2/span 2}
}
@media(min-width:1024px){
 .treesy-project-page .treesy-project-facility-gallery[data-layout="balanced-five"][data-count="5"]{grid-template-columns:repeat(6,minmax(0,1fr))}
 .treesy-project-page .treesy-project-facility-gallery[data-layout="balanced-five"][data-count="5"]>:nth-child(4){grid-column:2/span 2}
 .treesy-project-page .treesy-project-facility-gallery[data-layout="balanced-five"][data-count="5"]>:nth-child(5){grid-column:4/span 2}
}

/* Opt-in location/siteplan media: preserve intrinsic ratio and full zoom assets. */
.treesy-project-page section.ryil-section[data-map-media="bounded"] figure{min-width:0;max-width:100%;background:transparent}
.treesy-project-page section.ryil-section[data-map-media="bounded"] figure>a{display:block;width:fit-content;max-width:100%;margin-inline:auto;background:transparent}
.treesy-project-page section.ryil-section[data-map-media="bounded"] figure img{display:block;width:auto;height:auto;max-width:100%;max-height:520px;margin-inline:auto;object-fit:contain;background:transparent;border-radius:12px}
@media(max-width:767.98px){
 .treesy-project-page section.ryil-section[data-map-media="bounded"] figure>a{width:100%}
 .treesy-project-page section.ryil-section[data-map-media="bounded"] figure img{width:100%;height:auto;max-height:none}
}
