
.roof-thermal .rt-intro{max-width:900px;margin-bottom:32px}
.roof-thermal .rt-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.roof-thermal .rt-figure{margin:0;padding:28px;border-radius:30px;background:#f1f7fa}
.roof-thermal .rt-diagram{display:block;width:100%;height:auto;overflow:visible}
.roof-thermal figcaption{display:grid;gap:8px;text-align:center;font:400 12px/1.6 Montserrat,sans-serif;color:#718490}
.roof-thermal .rt-hint{color:#287fa9;font-weight:500}
.roof-thermal .rt-items{display:grid;gap:16px}
.roof-thermal .rt-item{appearance:none;display:flex;align-items:flex-start;gap:18px;width:100%;padding:26px;border:1px solid #e3ebf0;border-radius:24px;background:#fff;text-align:left;cursor:pointer;box-shadow:0 10px 30px #183b5008;transition:border-color .25s,background .25s,box-shadow .25s}
.roof-thermal .rt-item:hover,.roof-thermal .rt-item:focus-visible,.roof-thermal .rt-item[aria-pressed="true"]{background:#f0f8fc;border-color:#339ace;box-shadow:0 12px 32px #339ace15;outline:none}
.roof-thermal .rt-number{display:flex;align-items:center;justify-content:center;flex:0 0 42px;height:42px;border-radius:14px;background:#edf6fc;color:#339ace;font:700 18px/1 Montserrat,sans-serif}
.roof-thermal .rt-number-insulation{background:#faf1db;color:#9f782a}.roof-thermal .rt-number-vapor{background:#f1ecf8;color:#8b73af}
.roof-thermal .rt-copy{display:grid;gap:10px}
.roof-thermal .rt-copy strong{color:#20333e;font:700 20px/1.3 Montserrat,sans-serif}
.roof-thermal .rt-copy>span{color:rgba(39,35,30,.61);font:500 14px/1.6 Montserrat,sans-serif}
.roof-thermal .rt-arrow{color:#339ace;font:400 20px/1 Montserrat,sans-serif;margin-left:auto}
.roof-thermal .rt-layer{transition:opacity .3s ease,filter .3s ease}
.roof-thermal[data-active] .rt-layer{opacity:.2}
.roof-thermal[data-active="insulation"] .rt-insulation,.roof-thermal[data-active="vapor"] .rt-vapor,.roof-thermal[data-active="hydro"] .rt-hydro,.roof-thermal[data-active="hydro"] .rt-vent{opacity:1;filter:drop-shadow(0 5px 6px #244c7040)}
.roof-thermal .rt-note{padding:22px 28px;margin-top:28px;border-left:4px solid #339ace;border-radius:0 18px 18px 0;background:#f1f7fa;color:#375767;font:500 14px/1.6 Montserrat,sans-serif}
@media(max-width:1024px){.roof-thermal .rt-layout{gap:24px}.roof-thermal .rt-item{padding:22px;gap:14px}.roof-thermal .rt-copy strong{font-size:18px}.roof-thermal .rt-number{flex-basis:36px;height:36px}}
@media(max-width:767px){.roof-thermal .rt-layout{grid-template-columns:1fr}.roof-thermal .rt-figure{padding:20px;border-radius:24px}.roof-thermal .rt-note{padding:20px}.roof-thermal .rt-hint{font-size:11px}}

@media(min-width:768px){.roof-thermal .rt-layout{align-items:stretch}.roof-thermal .rt-items{grid-template-rows:repeat(3,minmax(0,1fr))}.roof-thermal .rt-item{height:100%;align-items:center}}

/* Wide blue backdrop, aligned with the site's FAQ panel. */
main#panel .servicepage-90 .roof-thermal{position:relative;isolation:isolate;padding:48px 0}
main#panel .servicepage-90 .roof-thermal::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;transform:translateX(-50%);width:min(1600px,calc(100vw - 40px));border-radius:40px;background:#f1f7fa;pointer-events:none}
.roof-thermal .rt-figure{background:transparent}
.roof-thermal .rt-note{background:#fff}
@media(max-width:1319px){main#panel .servicepage-90 .roof-thermal{padding:40px 24px}main#panel .servicepage-90 .roof-thermal::before{width:100%;border-radius:30px}}
@media(max-width:767px){main#panel .servicepage-90 .roof-thermal{padding:28px 20px}main#panel .servicepage-90 .roof-thermal::before{border-radius:24px}.roof-thermal .rt-figure{padding:0}}

main#panel .servicepage-90 .roof-thermal::before{border-radius:60px}
main#panel .servicepage-90 .roof-thermal .rt-intro{max-width:none;width:100%}
@media(max-width:1024px){main#panel .servicepage-90 .roof-thermal::before{border-radius:40px}}
@media(max-width:768px){main#panel .servicepage-90 .roof-thermal::before{border-radius:28px}}

/* Put the tabs before the roof diagram. */
.roof-thermal .rt-items{order:-1}
