/* Residential 6.2 — independently scoped to avoid regressions in existing Academy pages */
:root{--res-navy:#173a63;--res-blue:#2563eb;--res-light:#eaf3fc;--res-border:#d9e7f5}
.res-scope,.res-article,.res-page-hero,.res-article-intro{color:var(--res-navy)}
.res-page-hero,.res-article-intro{background:linear-gradient(115deg,#f4faff,#e8f3fe);border-bottom:1px solid #dce9f6}
.res-page-hero .res-hero-layout{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,5vw,65px);align-items:center;padding-block:clamp(38px,6vw,76px)}
.res-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.84rem;color:#536f92;margin-bottom:28px}.res-breadcrumb a{color:#3269b8;text-decoration:none}.res-breadcrumb span[aria-current]{color:#244a71}
.res-kicker{display:inline-block;font-size:.75rem;letter-spacing:.13em;text-transform:uppercase;color:#246bd4;font-weight:800;margin-bottom:14px}
.res-page-hero h1,.res-article-intro h1{font-size:clamp(2.2rem,4vw,4.2rem);line-height:1.12;letter-spacing:-.04em;color:#123561;margin:0 0 20px;overflow-wrap:break-word}
.res-lead{font-size:clamp(1.05rem,1.4vw,1.28rem);line-height:1.65;color:#496583;max-width:740px;margin:0 0 22px}
.res-hero-photo{position:relative;overflow:hidden;border:8px solid white;box-shadow:0 18px 45px #1c568022;border-radius:24px;aspect-ratio:4/3}.res-hero-photo img{width:100%;height:100%;object-fit:cover}.res-hero-photo>span{position:absolute;bottom:10px;left:12px;background:#ffffffdc;border-radius:9px;padding:6px 11px;font-size:.68rem;color:#395776}
.res-hero-actions,.res-actions-bottom{display:flex;flex-wrap:wrap;gap:11px;margin:20px 0}.res-btn{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:12px;background:white;border:1px solid #c8dcf2;border-radius:12px;color:#184777;text-decoration:none;padding:12px 17px;font-size:.91rem;font-weight:750;box-shadow:0 6px 12px #2144670a;transition:transform .2s,box-shadow .2s}.res-btn:hover{transform:translateY(-2px);box-shadow:0 9px 20px #24466c22}.res-btn-primary{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:white;border-color:#2463df}.res-btn:focus-visible,.res-card a:focus-visible,.res-pin:focus-visible,.res-group:focus-visible{outline:3px solid #0f65f9;outline-offset:3px}
.res-section{padding-block:clamp(35px,5vw,66px)}.res-section-title{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:25px}.res-section-title h2,.res-feature-strip h2,.res-stats h2{font-size:clamp(1.8rem,2.5vw,2.8rem);line-height:1.2;margin:0 0 10px;letter-spacing:-.02em;color:#123461}.res-section-title p,.res-feature-strip p{color:#55718d;margin:0}.res-count{font-weight:800;color:#1e5bd4}
.res-group-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.res-group{background:white;border:1px solid var(--res-border);border-radius:19px;text-decoration:none;overflow:hidden;color:var(--res-navy);box-shadow:0 10px 26px #28527d13;transition:transform .25s,box-shadow .25s}.res-group:hover{transform:translateY(-5px);box-shadow:0 16px 35px #28527d28}.res-group img{width:100%;height:180px;object-fit:cover;display:block}.res-group>div{padding:18px}.res-group h3{font-size:1.2rem;margin:7px 0}.res-group p{color:#4a6786;font-size:.92rem;line-height:1.55;min-height:4.3em}.res-group strong{color:#1e60d0}.res-group span{font-size:.74rem;color:#4470a6;font-weight:800}
.res-filters{display:grid;grid-template-columns:minmax(170px,2fr) repeat(2,minmax(140px,1fr));gap:12px;margin-bottom:22px}.res-filters label,.res-pick label{font-size:.85rem;font-weight:800;color:#355978}.res-filters input,.res-filters select,.res-pick select{width:100%;border:1px solid #c8d8ec;border-radius:11px;background:#fff;color:#143c62;padding:12px;margin-top:6px;font:inherit;min-height:44px}
.res-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.res-card{background:white;border:1px solid #d9e7f4;border-radius:18px;overflow:hidden;box-shadow:0 10px 28px #28527d12}.res-card-image{display:block;overflow:hidden;aspect-ratio:16/9}.res-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.res-card:hover img{transform:scale(1.035)}.res-card-content{padding:19px}.res-meta{display:inline-block;font-size:.78rem;font-weight:750;color:#376da8}.res-card h3{font-size:1.2rem;line-height:1.35;margin:10px 0;min-height:3.1em}.res-card h3 a{color:#173a63;text-decoration:none}.res-card p{font-size:.91rem;color:#58718c;line-height:1.65}.res-read{font-weight:800;color:#155fd7;text-decoration:none;font-size:.89rem}.res-note{font-size:.87rem;color:#55718c;line-height:1.6}.res-feature-strip{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:34px;border-radius:22px;border:1px solid #d4e6f8;background:linear-gradient(120deg,#f2f9ff,#e8f2fc)}.res-feature-strip>div:last-child{display:flex;flex-wrap:wrap;gap:8px}.res-stats{display:grid;grid-template-columns:1fr 1fr;gap:30px;background:#f6fbff;border-radius:20px;padding-inline:30px;margin-bottom:35px}.res-stats-kpis,.res-data-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.res-stats-kpis>div,.res-number{background:#fff;border:1px solid #dbe7f6;padding:22px;border-radius:15px;display:flex;flex-direction:column;gap:10px}.res-stats-kpis strong,.res-number strong{font-size:2.5rem;color:#1b5bd7;letter-spacing:-.03em}.res-stats-kpis span,.res-number p{font-size:.88rem;color:#4d6b8a}
.res-article-intro>.container{padding-block:45px 56px;max-width:1170px}.res-article-intro h1{max-width:920px}.res-head-meta{color:#527597;font-size:.86rem;margin-top:20px}.res-article-wrap{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:45px;padding-block:42px 80px;align-items:start}.res-article-main{min-width:0}.res-article-hero{margin:0 0 28px}.res-article-hero img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:20px;display:block}.res-article-hero figcaption,.res-figure figcaption{font-size:.78rem;color:#627c9c;padding:10px 2px;line-height:1.55}.res-summary{background:#eef7ff;border-left:4px solid #2670e8;padding:24px 26px;border-radius:12px;margin:28px 0}.res-summary h2,.res-article-section h2{font-size:1.6rem;color:#173a63;line-height:1.3}.res-summary li{margin:7px 0;color:#3d5d7f}.res-article-section{border-bottom:1px solid #e0ebf6;padding:22px 0;scroll-margin-top:110px}.res-article-section p,.res-article-section li{font-size:1.01rem;line-height:1.85;color:#365575;max-width:78ch}.res-article-section p{text-align:justify;hyphens:auto}.res-figure{margin:25px 0;background:#f5faff;border-radius:17px;overflow:hidden}.res-figure img{display:block;width:100%;max-height:430px;object-fit:contain}.res-figure figcaption{padding:11px 17px}.res-faq details{border:1px solid #d7e7f6;border-radius:10px;background:white;padding:17px;margin:10px 0}.res-faq summary{cursor:pointer;font-weight:800;color:#193d65}.res-sources li{margin:11px 0}.res-sources li a{color:#175cc5;font-weight:700}.res-sources li span{font-size:.85rem;color:#7186a1;margin-left:8px}.res-toc{position:sticky;top:100px}.res-toc-inner{border:1px solid #e1eaf4;border-radius:15px;background:#fff;padding:19px;display:grid;gap:12px;box-shadow:0 9px 22px #28527d0d}.res-toc a{font-size:.83rem;line-height:1.45;color:#4b6a8c;text-decoration:none}.res-toc a:hover,.res-toc a.is-reading{color:#135dd0;font-weight:800}.res-related{padding:30px 0}.res-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.res-related-grid .res-card h3{font-size:1rem;min-height:auto}.res-related-grid .res-card-content{padding:13px}.res-related-grid .res-card p{display:none}.res-mini-sim{background:#f3f9ff;border:1px solid #d5e5f5;border-radius:18px;padding:22px;margin:25px 0}.res-step-flow{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0}.res-step-flow span{padding:10px;border-radius:9px;background:#e0ebf8;color:#315b88;font-size:.83rem;font-weight:700}.res-step-flow span.is-active{background:#2368e7;color:white}
.res-interactive-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:20px}.res-house-scene{position:relative;border-radius:23px;overflow:hidden;background:#ecf5fd;min-height:350px}.res-house-scene>img{width:100%;height:100%;aspect-ratio:16/10;object-fit:cover}.res-pin{position:absolute;transform:translate(-50%,-50%);background:#fff;border:3px solid #3b82f6;border-radius:50%;width:39px;height:39px;color:#12418c;font-size:.79rem;font-weight:900;cursor:pointer;box-shadow:0 0 0 7px #3b82f646,0 8px 18px #10439740}.res-pin[aria-pressed="true"]{background:#195dd4;color:white;box-shadow:0 0 0 11px #3b82f676}.res-zone-panel{padding:27px;border-radius:21px;border:1px solid #d6e4f3;background:white}.res-zone-panel h2{margin:0 0 13px;font-size:1.9rem}.res-zone-panel p{color:#526d89;line-height:1.65}.res-zone-panel dt{font-size:.78rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em;margin-top:15px}.res-zone-panel dd{margin:6px 0 0;color:#496789;line-height:1.58}.res-zone-buttons{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.res-zone-buttons button{border:1px solid #bad4ef;border-radius:999px;background:white;color:#26547f;padding:10px 15px;cursor:pointer;font-weight:750}.res-zone-buttons button[aria-pressed="true"]{background:#2365dc;color:white;border-color:#2365dc}
.res-pick{display:flex;flex-wrap:wrap;gap:30px;margin:0 0 22px}.res-pick label{min-width:200px}.res-compare-head{display:grid;grid-template-columns:1fr 1fr;gap:18px}.res-compare-head>div{border:1px solid #dbe9f6;border-radius:16px;overflow:hidden;background:white;padding-bottom:15px}.res-compare-head img{width:100%;height:165px;object-fit:cover}.res-compare-head h2,.res-compare-head p{margin:10px 18px}.res-compare-head p{line-height:1.6;color:#496b8b}.res-compare-scroll{overflow-x:auto}.res-compare-scroll table{width:100%;border-collapse:collapse;background:white;margin-top:18px}.res-compare-scroll th,.res-compare-scroll td{text-align:left;border:1px solid #d7e6f5;vertical-align:top;padding:17px;min-width:180px;line-height:1.6;color:#385879}.res-compare-scroll thead{background:#e9f3ff}.res-compare-scroll th{font-weight:800;color:#173a63}
.res-check-layout{display:grid;grid-template-columns:1fr minmax(280px,340px);gap:26px;align-items:start}.res-check-group{border:1px solid #d7e6f4;border-radius:16px;padding:20px;margin-bottom:15px;background:#fff}.res-check-group legend{font-size:1.08rem;font-weight:850;padding:0 7px}.res-check-group label{display:flex;align-items:start;gap:12px;padding:10px 0;color:#466584}.res-check-group input{width:19px;height:19px;accent-color:#2563eb;flex:none}.res-check-aside{position:sticky;top:100px;border-radius:18px;background:#eaf4ff;border:1px solid #bfdaf6;padding:25px}.res-check-aside .res-btn{margin:8px 0;display:flex;width:100%;font-size:.85rem}.res-check-aside strong{display:block;font-size:1.35rem;color:#1d62d7}.res-check-aside p{color:#526d89;line-height:1.6}
.res-data-grid{grid-template-columns:repeat(3,1fr);margin-bottom:23px}.res-number>span{color:#526d87;font-size:.82rem}.res-chart{background:#fff;border:1px solid #d8e6f3;border-radius:19px;padding:25px}.res-graph{display:block;width:100%;max-width:800px;margin:auto}.res-data-point{cursor:pointer;outline:none}.res-data-point:focus-visible circle,.res-data-point:hover circle{stroke-width:5;fill:#dbeafe}.res-data-selected{padding:12px 16px;background:#edf5ff;border-radius:9px;color:#1e5cb7;font-weight:850}.res-reference-list li{padding:7px 0}.res-reference-list a{color:#155cc8}
@media(max-width:1100px){.res-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.res-article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.res-article-wrap{grid-template-columns:1fr}.res-toc{position:static;order:-1}.res-toc-inner{display:flex;flex-wrap:wrap}.res-toc-inner a{max-width:180px}}
@media(max-width:740px){.res-page-hero .res-hero-layout{grid-template-columns:1fr}.res-hero-photo{max-height:300px}.res-article-grid,.res-group-grid,.res-stats,.res-data-grid,.res-interactive-layout,.res-check-layout,.res-compare-head{grid-template-columns:1fr}.res-filters{grid-template-columns:1fr}.res-group img{height:205px}.res-section-title{align-items:start}.res-feature-strip{display:block}.res-feature-strip>div:last-child{margin-top:18px}.res-article-intro h1{font-size:2rem}.res-article-wrap{padding-top:22px}.res-article-section p{text-align:left}.res-related-grid{grid-template-columns:1fr}.res-check-aside{position:static}.res-stats{padding-inline:18px}.res-stats-kpis{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.res-group,.res-btn,.res-card-image img{transition:none!important}.res-group:hover,.res-btn:hover,.res-card:hover img{transform:none!important}}
@media print{.sa43-header,.sa4-header,.sa4-footer,.res-btn,.res-toc,.res-pin,.res-zone-buttons,.res-hero-actions{display:none!important}.res-article-wrap,.res-check-layout{display:block}.res-page-hero{background:white}.res-check-aside{position:static}}
