/* Same section controls as posts, scoped to category pages. */

.category-template .article-section { margin:0 0 30px; }
.category-template .section-fold { border:1px solid #d9e2d5; border-radius:18px; background:#fff; box-shadow:0 8px 26px -17px #20574440; overflow:hidden; }
.category-template .section-fold>summary { position:relative; list-style:none; cursor:pointer; display:flex; align-items:center; gap:18px; padding:26px 24px; background:linear-gradient(115deg,#f1f4e9 0%,#fff 58%); border-inline-start:4px solid #b69246; }
.category-template .section-fold>summary:hover { background:linear-gradient(115deg,#e5eedf,#fff 70%); }
.category-template .section-fold>summary::-webkit-details-marker { display:none; }
.category-template .fold-copy { flex:1; min-width:0; }
.category-template .section-fold>summary h2 { margin:0!important; font-size:28.6px!important; line-height:1.6; scroll-margin-top:110px; overflow-wrap:anywhere; }
.category-template .fold-preview { display:block; font-size:15.4px; line-height:1.8; color:#738073; margin-top:9px; padding-inline-start:67px; }
.category-template .fold-action { display:flex; align-items:center; flex-shrink:0; gap:9px; background:#205744; color:#fff; border-radius:28px; padding:8px 14px 8px 8px; font-size:13.2px; font-weight:700; }
.category-template .fold-action b { display:grid; place-items:center; border:1px solid #ffffff45; border-radius:50%; background:#ffffff16; color:#f6e2ac; width:30px; height:30px; font:400 22px/1 sans-serif; }
.category-template .section-fold[open]>summary { background:#fafbf7; border-bottom:1px solid #e5e9df; }
.category-template .section-fold[open]>summary .fold-preview { display:none; }
.category-template .section-fold[open]>summary .fold-action { background:#eef2e7; color:#205744; }
.category-template .section-fold[open]>summary b { transform:rotate(45deg); background:#205744; color:#fff; }
.category-template .section-fold[open]>summary .fold-word { font-size:0; }
.category-template .section-fold[open]>summary .fold-word:after { content:'إغلاق القسم'; font-size:13.2px; }
.category-template .section-body { padding:26px 32px; overflow-wrap:anywhere; }
.category-template .section-body> :first-child { margin-top:0; }
.category-template .section-fold:focus-within { border-color:#b69246; }
.category-template .section-fold summary:focus-visible { outline:3px solid #b69246; outline-offset:-4px; }
@media(max-width:720px) {
    .category-template .section-fold>summary { display:grid; grid-template-columns:minmax(0,1fr); gap:15px; padding:20px 16px; }
    .category-template .section-fold>summary h2 { font-size:23.1px!important; }
    .category-template .fold-preview { padding-inline-start:53px; font-size:13.2px; margin-top:8px; }
    .category-template .fold-action { justify-self:end; padding:5px 12px 5px 6px; gap:10px; font-size:12.1px; }
    .category-template .fold-action b { width:26px; height:26px; font-size:22px; }
    .category-template .section-fold[open]>summary { grid-template-columns:minmax(0,1fr) auto; gap:9px; }
    .category-template .section-fold[open]>summary .fold-action { padding:0; background:none; }
    .category-template .section-fold[open]>summary .fold-word { display:none; }
    .category-template .section-body { padding:20px 16px; }
}
.category-template .article-section { padding:0; }.category-template .section-fold>summary h2{position:relative;padding:0 67px 9px 0;font-weight:800;color:#07523f}
.category-template .section-fold>summary h2:before{content:'';position:absolute;right:0;top:4px;width:55px;height:36px;background:url('../article-heading-mark.svg') center/contain no-repeat}
.category-template .section-fold>summary h2:after{content:'';position:absolute;right:25px;bottom:1px;width:125px;height:1px;background:linear-gradient(to left,#c49a41,#c49a4180,transparent)}
.category-template .section-body{font-size:17px;line-height:2.05}
.category-template .section-body p{font:inherit;color:inherit;margin:0 0 15px}
.category-template .section-body img{max-width:100%;height:auto}
.category-template .section-body iframe{max-width:100%}
.category-template .section-body table{max-width:100%;display:block;overflow-x:auto;border-collapse:collapse}
.category-template .section-body td,.category-template .section-body th{border:1px solid var(--line);padding:10px}
.category-template .section-body ul,.category-template .section-body ol{padding-inline-start:24px;list-style:revert}
.category-template .section-body li{list-style:revert}
.category-template .section-body h3{margin:18px 0 12px}
@media(max-width:640px){.category-template .section-fold>summary h2{padding-right:53px}.category-template .section-fold>summary h2:before{width:43px;height:30px;top:3px}.category-template .section-fold>summary h2:after{right:20px;width:100px}}
