/* EMDAD SOLAR V3 — reference-aligned information architecture, independent implementation */
:root{--v3dark:#063f34;--v3text:#193c35;--v3gold:#efc768;--v3border:#e2eae5}
.reference-layout{display:grid;grid-template-columns:minmax(210px,242px) minmax(0,1fr);align-items:start;gap:0;max-width:1600px;margin:0 auto;direction:rtl}
.reference-content{min-width:0;max-width:100%;overflow:hidden}
.reference-content>.section .container,.reference-content>.hero .container,.reference-content>.trust .container,.reference-content>.cta-section .container,.reference-content>.page-main{max-width:1220px;width:calc(100% - 44px);margin-left:auto;margin-right:auto}
.reference-sidebar{background:#fff;border-left:1px solid var(--v3border);min-height:900px;box-shadow:0 2px 8px #163e3210}
.reference-sidebar-inner{position:sticky;top:0;padding:22px 12px;max-height:100vh;overflow-y:auto;scrollbar-width:thin}
.reference-sidebar h3{font-size:16px;margin:0 10px 17px;color:var(--v3text)}
.ref-categories{display:flex;flex-direction:column;gap:2px}
.ref-categories a{display:flex;align-items:center;justify-content:space-between;text-decoration:none;color:#354740;font-size:13px;padding:9px 10px;border-radius:8px;gap:6px;line-height:1.35}
.ref-categories a:hover,.ref-categories a:focus-visible{background:#e8f3ec;color:#0d684f}
.ref-categories small{color:#5a8172;background:#f2f7f4;padding:2px 7px;border-radius:6px}
.ref-side-links{border-top:1px solid var(--v3border);margin-top:18px;padding-top:18px;display:grid;gap:5px}
.ref-side-links a{padding:8px 10px;font-size:13px;text-decoration:none;color:#426056;border-radius:7px}
.ref-side-links a:hover{background:#eff6f1}
.reference-content .hero-grid{gap:28px;grid-template-columns:1fr 1fr}
.reference-content .hero-art-v2{min-height:420px}
.reference-content .hero{overflow:hidden}
.reference-content .category-grid{grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:14px}
.category-tile{min-height:130px}
.category-tile small{display:block}
.subcategory-chips{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:13px 0 20px}
.subcategory-chips a{font-size:12.5px;display:inline-flex;align-items:center;text-decoration:none;padding:7px 12px;background:#eef5f0;color:#29604d;border:1px solid #d6e6dc;border-radius:999px;line-height:1.4}
.subcategory-chips a:hover,.subcategory-chips a.active{background:#0f604d;color:#fff;border-color:#0f604d}
.category-products-head{margin-bottom:5px!important}
.reference-content .category-products .products-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.reference-content .products-grid{gap:14px}
.reference-projects>a,.reference-projects .project-item{min-height:280px!important;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;overflow:hidden;isolation:isolate;padding:18px!important;background:#0a3d32!important}
.reference-projects img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;filter:saturate(.87)}
.reference-projects>a::before,.reference-projects .project-item::before{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,27,21,.96),rgba(4,38,30,.18));z-index:-1}
.reference-projects h3{font-size:17px!important;margin:12px 0 3px!important;color:#fff}
.reference-projects em{font-size:12px;color:var(--v3gold);font-style:normal;margin-top:6px}
.v3-note{border:1px dashed #b9cdc2;border-radius:12px;color:#586e63;padding:18px;background:#f5faf6}
.testimonials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;width:calc(100% - 44px);max-width:1220px;margin:0 auto 30px}
.testimonials blockquote{background:white;border:1px solid #e1e8e3;border-radius:14px;margin:0;padding:28px;display:flex;flex-direction:column;gap:7px}
.testimonials blockquote:before{content:'★★★★★';color:#f0bf59;letter-spacing:2px}
.testimonials p{line-height:1.85;color:#3e5950;flex:1;margin:12px 0}
.testimonials b{color:#123d31}.testimonials small{color:#778b82}
.location-section{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}
.location-section h2{font-size:1.9rem}.location-section p{line-height:1.9;color:#40554c}
.location-map{border-radius:16px;overflow:hidden;min-height:340px;background:#ebf1ed}
.location-map iframe{width:100%;height:360px;border:0}
.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:22px}
.article-card{background:#fff;border:1px solid #e2eae5;border-radius:14px;overflow:hidden;color:inherit;text-decoration:none;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
.article-card:hover{transform:translateY(-4px);box-shadow:0 12px 25px #1a4f3220}
.article-card>img{width:100%;height:210px;object-fit:cover;background:#eff3f0}
.article-card>div{padding:20px;display:flex;flex-direction:column;gap:11px;flex:1}
.article-card h3{font-size:18px;line-height:1.65;margin:0;color:#154a3b}
.article-card p{font-size:14px;line-height:1.7;color:#65786e;flex:1;margin:0}
.article-card small{color:#32785b}.article-card b{color:#107452;font-size:13px}
.blog-search{display:flex;gap:8px;max-width:600px;margin:14px 0 20px}
.blog-search input{flex:1;min-width:0;padding:11px;border-radius:8px;border:1px solid #ccdcd2}
.article-hero{width:100%;max-height:430px;object-fit:cover;border-radius:16px;margin:16px auto 30px}
.article-prose{max-width:880px;margin:auto;color:#273f35;font-size:16px;line-height:2;word-break:break-word}
.article-prose h2{font-size:25px;margin:34px 0 12px;color:#095642;scroll-margin-top:30px}
.article-prose h3{font-size:21px;margin:28px 0 8px;color:#145640}
.article-prose p{margin:15px 0}.article-prose li{margin-bottom:8px}.article-prose img{width:auto;max-width:100%;height:auto;border-radius:10px}.article-prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
.article-prose td,.article-prose th{border:1px solid #dee6e1;padding:9px}
.article-bottom{display:flex;gap:12px;max-width:880px;margin:30px auto;flex-wrap:wrap}
.related-products{margin-top:50px;border-top:1px solid var(--v3border);padding-top:28px}
.related-products h2{font-size:24px;margin-bottom:20px;color:#0d4334}
.calc-recommendations{margin:20px 0 8px;padding-top:18px;border-top:1px solid #e1e9e5}
.calc-recommendations>h3{font-size:18px}
.calc-product-list{display:grid;gap:10px}
.calc-product-row{display:flex;gap:14px;align-items:center;background:#f7faf8;border:1px solid #e2ede6;border-radius:11px;padding:10px}
.calc-product-row img{width:75px;height:75px;object-fit:contain;background:white;border-radius:8px}
.calc-product-row>div{flex:1;min-width:0}
.calc-product-row h4{font-size:14px;margin:4px 0;line-height:1.5}
.calc-product-row small{color:#627d70}
.calc-product-row button{border:1px solid #0d7255;background:#fff;color:#0d7255;padding:9px;border-radius:8px;cursor:pointer}
#calc-add-all{margin-top:14px}
.import-panel{background:#fff;border:1px solid #d9e6dc;border-radius:14px;padding:25px;margin:22px 0}
.import-panel h2{color:#0c483a}
.import-actions{display:flex;flex-wrap:wrap;gap:12px;margin:15px 0}
.content-admin{background:#f3f8f5}
@media(max-width:1250px){.reference-layout{grid-template-columns:200px minmax(0,1fr)}.reference-content .category-products .products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-content .hero-grid{grid-template-columns:1fr 1fr}}
@media(max-width:1050px){.reference-layout{display:block}.reference-sidebar{display:none}.reference-content .hero-grid{grid-template-columns:1fr 1fr}.reference-content .category-products .products-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.reference-content .hero-grid{grid-template-columns:1fr}.reference-content .hero-art-v2{min-height:260px}.reference-content .category-products .products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-grid,.testimonials,.location-section{grid-template-columns:1fr 1fr}.reference-content .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.reference-content>.section .container,.reference-content>.hero .container,.reference-content>.trust .container,.reference-content>.cta-section .container,.reference-content>.page-main{width:calc(100% - 28px)}.reference-content .hero-art-v2{min-height:225px}.reference-content .category-products .products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-grid,.testimonials,.location-section{grid-template-columns:1fr}.reference-projects>a,.reference-projects .project-item{min-height:240px!important}.reference-content .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.location-map iframe{height:260px}.blog-search{flex-direction:column}}
