/*
 * پایداری و مسئولیت اجتماعی:
 *   .su-*   گزارش‌ها و شاخص‌های عملکرد (رنگ هر دسته با متغیر --c)
 *   .csr-*  فهرست و جزئیات پروژه‌های مسئولیت اجتماعی (رنگ هر حوزه با متغیر --a)
 * اجزای مشترک (سرتیتر، تب‌ها، فیلترها، کارت آمار و صفحه‌بندی) در module.css
 */

/* ---------------------------------------------------------------- رنگ دسته‌ها و حوزه‌ها */
.su-c-environment{--c:#2f8a5a;--c-soft:#e4f3ea}
.su-c-safety{--c:#c0572b;--c-soft:#fbeae2}
.su-c-health{--c:#b23a5f;--c-soft:#f9e6ec}
.su-c-energy{--c:#b8801a;--c-soft:#fbf1dc}
.su-c-social{--c:#3f5fa6;--c-soft:#e7ecf8}
.csr-a-education{--a:#3f6fb3}
.csr-a-health{--a:#b23a5f}
.csr-a-environment{--a:#2f8a5a}
.csr-a-infrastructure{--a:#5f6b80}
.csr-a-culturesport{--a:#c0572b}
.csr-a-crisissupport{--a:#a03f4f}
.csr-a-other{--a:#7a8f8b}
.su-t-sustainability{--r:#075b69}
.su-t-hse{--r:#c0572b}
.su-t-environmental{--r:#2f8a5a}
.su-t-csr{--r:#9a7b33}
.su-t-other{--r:#5f6b80}
.su-total{margin:0 0 14px;font-size:12px;color:#6f877e}

/* ================================================================ گزارش‌ها */
.su-cover-art{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;padding:18px;overflow:hidden;background:linear-gradient(150deg,var(--r,#075b69),color-mix(in srgb,var(--r,#075b69) 55%,#022f36));color:#fff}
.su-cover-art:before{content:'';position:absolute;inset-inline-end:-40px;top:-40px;width:160px;height:160px;border-radius:50%;border:24px solid #ffffff14}
.su-cover-art:after{content:'';position:absolute;inset-inline-start:18px;top:18px;width:36px;height:4px;border-radius:2px;background:#d9c38b}
.su-cover-art b{font-size:30px;font-weight:800;line-height:1.2}
.su-cover-art small{font-size:12px;color:#ffffffcc}

/* آخرین گزارش */
.su-feature{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;align-items:center;margin-bottom:40px;padding:26px;border:1px solid #dbe6df;border-radius:24px;background:linear-gradient(120deg,#f3f8f5,#fff 55%)}
.su-feature-cover{position:relative;aspect-ratio:3/4;overflow:hidden;border-radius:14px;box-shadow:0 20px 40px #094b5526,-8px 8px 0 -2px #d9c38b55;transform:rotate(-2deg);transition:transform .4s}
[dir=ltr] .su-feature-cover{transform:rotate(2deg)}
.su-feature:hover .su-feature-cover{transform:none}
.su-feature-cover img{width:100%;height:100%;object-fit:cover}
.su-feature-cover .su-cover-art b{font-size:44px}
.su-feature-copy h2{margin:12px 0 10px;font-size:clamp(20px,2.2vw,27px);line-height:1.7;color:#164c55}
.su-feature-copy p{margin:12px 0 20px;font-size:14px;line-height:2.1;color:#5c7472}
.su-report-meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:#6f877e}
.su-report-meta span:not(:last-child):after{content:'•';margin-inline-start:16px;color:#c3d3ca}
.su-feature .md-btn small{padding-inline-start:10px;border-inline-start:1px solid #ffffff55;font-size:11px;font-weight:400;opacity:.85}

/* گزارش‌ها بر اساس سال */
.su-year{margin-bottom:36px}
.su-year-title{display:flex;align-items:center;gap:14px;margin:0 0 18px;font-size:15px;color:#7d6630}
.su-year-title span{padding:4px 16px;border-radius:999px;background:#f6efdc;font-weight:800}
.su-year-title:after{content:'';flex:1;height:1px;background:linear-gradient(90deg,#e3d5b0,transparent)}
[dir=rtl] .su-year-title:after{background:linear-gradient(270deg,#e3d5b0,transparent)}
.su-reports{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px}
.su-report{display:flex;gap:16px;padding:16px;border:1px solid #dbe6df;border-radius:18px;background:#fff;transition:transform .25s,box-shadow .25s}
.su-report:hover{transform:translateY(-3px);box-shadow:0 14px 30px #094b5512}
.su-report-cover{position:relative;flex:none;width:96px;aspect-ratio:3/4;overflow:hidden;border-radius:10px;box-shadow:0 8px 18px #094b551c}
.su-report-cover img{width:100%;height:100%;object-fit:cover}
.su-report-cover .su-cover-art{padding:10px}
.su-report-cover .su-cover-art b{font-size:18px}
.su-report-cover .su-cover-art small{font-size:9px}
.su-report-cover .su-cover-art:after{inset-inline-start:10px;top:10px;width:22px;height:3px}
.su-report-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.su-report-type{font-size:11px;font-weight:700;color:var(--r,#075b69)}
.su-report-copy h3{font-size:15px;line-height:1.8;color:#1d464d}
.su-report-copy>small{font-size:11px;color:#7f948f}
.su-report-copy p{display:-webkit-box;margin:2px 0 0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.9;color:#62797a}
.su-download{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin-top:auto;padding:7px 14px;border-radius:10px;background:#eef5f1;color:var(--brand);font-size:12px;font-weight:700;transition:background .2s}
.su-download:hover{background:var(--brand);color:#fff}
.su-download svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.su-download small{font-size:10px;font-weight:400;opacity:.8}

/* ================================================================ شاخص‌ها */
.su-highlights{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:30px}
.su-highlight{position:relative;display:flex;flex-direction:column;gap:3px;overflow:hidden;padding:20px 22px;border-radius:20px;background:linear-gradient(150deg,var(--c,#075b69),color-mix(in srgb,var(--c,#075b69) 60%,#022f36));color:#fff}
.su-highlight:after{content:'';position:absolute;inset-inline-end:-30px;bottom:-40px;width:130px;height:130px;border-radius:50%;background:radial-gradient(circle,#ffffff24,transparent 70%)}
.su-hl-cat{font-size:11px;color:#ffffffbf}
.su-hl-name{font-size:14px;font-weight:700;line-height:1.8}
.su-hl-value{margin-top:6px;font-size:clamp(28px,2.8vw,36px);font-weight:800;line-height:1.3}
.su-hl-unit{font-size:12px;color:#ffffffcc}
.su-highlight .su-change{margin-top:8px;background:#ffffff26;color:#fff}

.su-tabs{margin-bottom:22px}
.su-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:18px}
.su-card{position:relative;display:flex;flex-direction:column;gap:10px;overflow:hidden;padding:22px;border:1px solid #dbe6df;border-radius:20px;background:#fff}
.su-card:before{content:'';position:absolute;inset:0 0 auto;height:4px;background:var(--c,#075b69)}
.su-card[hidden]{display:none}
.su-card.is-in{animation:su-in .4s ease both}
.su-card header{display:flex;flex-direction:column;gap:2px}
.su-card-cat{font-size:11px;font-weight:700;color:var(--c,#075b69)}
.su-card h2{font-size:16px;line-height:1.8;color:#1d464d}
.su-card header p{margin:0;font-size:12px;line-height:1.9;color:#71878a}
.su-card-value{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.su-card-value b{font-size:30px;font-weight:800;line-height:1.3;color:var(--c,#075b69)}
.su-card-value span{font-size:13px;color:#4f6966}
.su-card-value small{margin-inline-start:auto;padding:2px 10px;border-radius:999px;background:var(--c-soft,#eef5f1);font-size:11px;color:var(--c,#075b69)}
.su-no-value{font-size:13px;color:#7f948f}
.su-change{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:4px 12px;border-radius:999px;background:#eef1f1;font-size:12px;font-weight:600;color:#5f7173}
.su-change.is-good{background:#e2f3ea;color:#16794b}
.su-change.is-bad{background:#fdecea;color:#b2392b}
.su-arrow{display:inline-block;width:0;height:0;border-inline:5px solid transparent}
.su-arrow.is-up{border-bottom:7px solid currentColor}
.su-arrow.is-down{border-top:7px solid currentColor}
.su-arrow.is-flat{width:10px;height:2px;border:0;background:currentColor}

/* نمودار ستونی سالانه */
.su-chart{margin:6px 0 0}
.su-chart svg{display:block;width:100%;height:120px;overflow:visible}
.su-axis{stroke:#dbe6df;stroke-width:1}
.su-bar{fill:color-mix(in srgb,var(--c,#075b69) 35%,#fff);transform-box:fill-box;transform-origin:bottom;animation:su-grow .7s cubic-bezier(.2,.8,.3,1) both;animation-delay:calc(var(--i) * 60ms)}
.su-bar.is-last{fill:var(--c,#075b69)}
.su-target{stroke:#b9a26c;stroke-width:2.5;stroke-dasharray:4 3;stroke-linecap:round}
.su-chart-years{display:grid;grid-template-columns:repeat(var(--n),1fr);margin-top:6px;font-size:10px;text-align:center;color:#7f948f}
[dir=rtl] .su-chart svg{transform:scaleX(-1)}
.su-legend{display:flex;align-items:center;gap:6px;margin:0;font-size:11px;color:#71878a}
.su-legend i{display:inline-block;width:12px;height:8px;border-radius:2px}
.su-legend-bar{background:var(--c,#075b69)}
.su-legend-target{height:0!important;margin-inline-start:10px;border-top:2.5px dashed #b9a26c}
.su-details{margin-top:auto;border-top:1px dashed #dbe6df;padding-top:10px}
.su-details summary{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--brand);cursor:pointer;list-style:none}
.su-details summary::-webkit-details-marker{display:none}
.su-details summary:before{content:'+';display:grid;place-items:center;width:18px;height:18px;border-radius:6px;background:#eef5f1;font-weight:800}
.su-details[open] summary:before{content:'−'}
.su-details table{width:100%;margin-top:10px;border-collapse:collapse;font-size:12px}
.su-details th,.su-details td{padding:7px 8px;border-bottom:1px solid #edf2ef;text-align:start}
.su-details thead th{color:#7f948f;font-weight:600}
.su-details tbody th{font-weight:700;color:#3b5559}

/* ================================================================ مسئولیت اجتماعی: فهرست */
.csr-share{margin:-8px 0 28px;padding:18px 20px;border:1px solid #dbe6df;border-radius:18px;background:#fff}
.csr-share h2{margin-bottom:12px;font-size:14px;color:#4a6763}
.csr-share-bar{display:flex;gap:3px;height:14px;overflow:hidden;border-radius:999px}
.csr-share-bar span{flex-basis:0;min-width:6px;background:var(--a);transform-origin:left;animation:su-grow-x .9s cubic-bezier(.2,.8,.3,1) both}
[dir=rtl] .csr-share-bar span{transform-origin:right}
.csr-share-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:14px 0 0;padding:0;list-style:none}
.csr-share-legend a{display:inline-flex;align-items:center;gap:7px;padding:3px 8px;border-radius:8px;font-size:12px;color:#3b5559;transition:background .2s}
.csr-share-legend a:hover,.csr-share-legend a[aria-current=page]{background:#eef5f1}
.csr-share-legend i{width:10px;height:10px;border-radius:3px;background:var(--a)}
.csr-share-legend small{font-size:11px;color:#7f948f}

.csr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.csr-card{border:1px solid #dbe6df;border-radius:20px;background:#fff;overflow:hidden;transition:transform .3s,box-shadow .3s}
.csr-card:hover{transform:translateY(-4px);box-shadow:0 18px 36px #094b5514}
.csr-card>a{display:flex;flex-direction:column;height:100%;color:inherit}
.csr-image{position:relative;aspect-ratio:16/10;overflow:hidden;background:linear-gradient(150deg,var(--a),color-mix(in srgb,var(--a) 50%,#022f36))}
.csr-image img{width:100%;height:100%;object-fit:cover;transition:transform .6s}
.csr-card:hover .csr-image img{transform:scale(1.05)}
.csr-placeholder{display:grid;place-items:center;width:100%;height:100%;color:#ffffff66}
.csr-placeholder svg{width:56px;height:56px;fill:none;stroke:currentColor;stroke-width:1.3}
.csr-area-tag{position:absolute;inset-inline-start:12px;top:12px;padding:4px 12px;border-radius:999px;background:var(--a);color:#fff;font-size:11px;font-weight:700;box-shadow:0 4px 12px #0003}
.csr-image .md-badge{position:absolute;inset-inline-end:12px;bottom:12px;background:#fffffff0}
.csr-copy{display:flex;flex-direction:column;gap:8px;flex:1;padding:18px 20px}
.csr-copy h2{font-size:16px;line-height:1.85;color:#1d464d}
.csr-card:hover .csr-copy h2{color:var(--brand)}
.csr-copy p{display:-webkit-box;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:2;color:#62797a}
.csr-facts{display:flex;flex-wrap:wrap;gap:6px 14px;margin:auto 0 0;padding:10px 0 0;border-top:1px dashed #dde8e2;list-style:none}
.csr-facts li{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#5f7675}
.csr-facts svg{width:14px;height:14px;fill:none;stroke:var(--a);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ================================================================ مسئولیت اجتماعی: جزئیات */
.csr-detail{padding-top:0}
.csr-hero{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:400px;margin:0;overflow:hidden;background:linear-gradient(140deg,color-mix(in srgb,var(--a) 70%,#022f36),var(--a));color:#fff}
.csr-hero.no-cover{min-height:260px}
.csr-hero>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.csr-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#022f36f0 5%,#022f3670 55%,#022f3620)}
.csr-hero-copy{padding-block:50px 70px}
.csr-hero-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.csr-hero .csr-area-tag{position:static}
.csr-hero h1{margin:14px 0 8px;font-size:clamp(26px,3vw,40px);line-height:1.6;color:#fff}
.csr-hero p{max-width:760px;margin:0;font-size:15px;line-height:2.1;color:#dcebea}
.csr-facts-bar{position:relative;z-index:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:0;margin:-40px 0 36px;overflow:hidden;border:1px solid #dbe6df;border-radius:20px;background:#fff;box-shadow:0 18px 40px #094b5514}
.csr-facts-bar div{display:flex;flex-direction:column;gap:4px;padding:18px 20px;border-inline-end:1px solid #e8efeb}
.csr-facts-bar div:last-child{border-inline-end:0}
.csr-facts-bar dt{font-size:11px;color:#7f948f}
.csr-facts-bar dd{margin:0;font-size:14px;font-weight:700;line-height:1.8;color:#2f4d52}
.csr-facts-bar .is-strong dd{font-size:17px;color:var(--a)}
.csr-facts-bar dd small{font-size:11px;font-weight:400;color:#7f948f}
.csr-body{max-width:960px}
.csr-gallery{margin-top:36px}
.csr-gallery h2 small{font-size:12px;font-weight:400;color:#8a9d97}
.csr-back{display:flex;flex-wrap:wrap;gap:10px;margin-top:40px;padding-top:24px;border-top:1px solid #e3ece7}

@keyframes su-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes su-grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes su-grow-x{from{transform:scaleX(0)}to{transform:scaleX(1)}}

@media(max-width:1000px){
  .csr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .su-feature{grid-template-columns:1fr;gap:20px;padding:18px}
  .su-feature-cover{width:62%;margin-inline:auto}
  .su-reports,.su-grid{grid-template-columns:1fr}
  .csr-grid{grid-template-columns:1fr;gap:16px}
  .csr-hero{min-height:320px}
  .csr-hero-copy{padding-block:36px 60px}
  .csr-facts-bar{grid-template-columns:repeat(2,1fr)}
  .csr-facts-bar div:nth-child(2n){border-inline-end:0}
  .csr-facts-bar div{border-bottom:1px solid #e8efeb}
}
@media(prefers-reduced-motion:reduce){
  .su-bar,.csr-share-bar span,.su-card.is-in{animation:none}
  .su-report,.csr-card,.csr-image img,.su-feature-cover{transition:none}
  .su-report:hover,.csr-card:hover,.csr-card:hover .csr-image img{transform:none}
}
