/* رف الأخبار: كل خبر غلاف مجلة. الترويسة في شريط علوي، الصورة في الوسط، والعنوان في شريط سفلي كحلي — لا كلام فوق الوجوه */
.shelfpg{--gold:#C08537;--gold2:#E3B66B;--gold-d:#9A6A26;--navy:#322781}
.shelfpg .page-top{background:none;border:0;padding-bottom:6px}
.shelfpg .page-top h1{color:#fff;line-height:1.45;text-shadow:0 4px 22px rgba(0,0,0,.55)}
.sh-kick{display:block;margin-top:6px;font-size:13.5px;font-weight:800;letter-spacing:.14em;color:var(--gold2);text-shadow:0 2px 8px rgba(0,0,0,.5)}
.sh-rule{display:flex;align-items:center;justify-content:center;gap:10px;margin:6px 0 8px}
.sh-rule i{width:70px;height:1px;background:linear-gradient(90deg,transparent,var(--gold2))}
.sh-rule i:last-child{transform:scaleX(-1)}
.sh-rule b{width:8px;height:8px;transform:rotate(45deg);background:var(--gold2)}
.shelfpg .page-top p{font-family:Amiri,serif;font-size:19px;font-weight:700;line-height:1.7}
.sh-main{padding:22px 0 70px}

/* أدوات التصفية: كبسولة زجاجية */
.sh-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;width:max-content;max-width:100%;margin:0 auto;padding:6px;border-radius:999px;
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(251,250,247,.72));backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);
  border:1px solid rgba(255,255,255,.6);box-shadow:0 12px 30px -12px rgba(40,14,4,.55)}
.sh-tabs{display:flex;gap:2px;padding:3px;border-radius:999px;background:rgba(50,39,129,.07)}
.sh-tabs button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 15px;border:0;border-radius:999px;background:none;cursor:pointer;font:700 14.5px Cairo,sans-serif;line-height:1.6;color:var(--navy);transition:background .2s,color .2s}
.sh-tabs button small{font-size:12px;color:var(--gold-d)}
.sh-tabs button:hover{background:rgba(255,255,255,.85)}
.sh-tabs button[aria-selected=true]{background:var(--navy);color:#fff;box-shadow:0 4px 12px rgba(50,39,129,.3)}
.sh-tabs button[aria-selected=true] small{color:var(--gold2)}
.sh-sel select{appearance:none;-webkit-appearance:none;height:40px;padding:0 16px 0 34px;border-radius:999px;font:700 14.5px Cairo,sans-serif;color:var(--navy);cursor:pointer;
  background:rgba(255,255,255,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C08537' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat 13px 50%;border:1px solid rgba(192,133,55,.5)}
.sh-q{display:flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.8);border:1px solid rgba(50,39,129,.14);color:var(--gold-d)}
.sh-q input{width:220px;border:0;background:none;outline:none;font:600 14.5px Cairo,sans-serif;color:#1B1640}
.sh-sub{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:18px 0 0;color:#fff;font-size:14px;font-weight:700;text-shadow:0 2px 8px rgba(0,0,0,.6)}
.sh-alt{display:flex;gap:8px}
.sh-alt a{padding:5px 14px 6px;border-radius:99px;font-size:13px;font-weight:800;color:#fff;border:1px solid rgba(255,255,255,.45);background:rgba(20,12,40,.25);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);text-shadow:none}
.sh-alt a:hover{background:rgba(255,255,255,.2)}

/* السنة */
.sh-year{display:flex;align-items:center;gap:16px;margin:38px 0 20px;font-size:24px;font-weight:800;color:#fff;line-height:1.5;text-shadow:0 2px 10px rgba(0,0,0,.45)}
.sh-year small{font-size:14px;font-weight:700;color:var(--gold2)}
.sh-year i{flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(227,182,107,.8))}
#list>.shelf+.shelf{margin-top:34px}

/* الرف */
.shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:36px 26px;padding:26px 26px 0;border-radius:24px;
  background:linear-gradient(180deg,rgba(251,250,247,.16),rgba(251,250,247,.06));border:1px solid rgba(255,255,255,.2);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:inset 0 -18px 0 -8px rgba(120,70,30,.45)}
.mz{display:block;text-decoration:none;color:#fff;padding-bottom:22px}
.mz-cv{position:relative;display:block;aspect-ratio:1/1.414;border-radius:3px 7px 7px 3px;overflow:hidden;container-type:inline-size;
  background:radial-gradient(ellipse 100% 60% at 50% 100%,var(--mzA,#2B2178),var(--mzB,#17114A) 70%);
  box-shadow:-5px 0 0 -2px #EAE0CB,-8px 1px 0 -3px #D5C7AB,0 18px 28px -10px rgba(10,4,20,.7);transition:transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .45s}
.mz:hover .mz-cv{transform:translateY(-8px) rotate(-1.2deg);box-shadow:-5px 0 0 -2px #EAE0CB,-8px 1px 0 -3px #D5C7AB,0 30px 40px -14px rgba(10,4,20,.75)}
.mz-cv::after{content:"";position:absolute;inset:3cqw;z-index:4;border:1px solid rgba(227,182,107,.4);pointer-events:none}
/* الصورة: بين الترويسة والشريط السفلي فقط */
.mz-ph{position:absolute;left:0;right:0;top:17cqw;height:76cqw;overflow:hidden;background:#221A62}
.mz-ph>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 20%;opacity:0;transition:opacity .5s}
.mz-ph>img.in{opacity:1}
.mz-ph::after{content:"";position:absolute;left:0;right:0;bottom:0;height:16%;z-index:2;background:linear-gradient(180deg,transparent,var(--mzE,#1B1450));pointer-events:none}
.mz-no{position:absolute;inset:0;background:url(img/logo-mark.png) center/30% no-repeat,radial-gradient(circle,#3A2E95,#1A1450)}
.mz-m{position:absolute;z-index:3;top:5cqw;left:6cqw;right:6cqw;display:flex;align-items:center;justify-content:center;gap:2cqw;padding-bottom:2.2cqw;border-bottom:1px solid rgba(227,182,107,.5);
  font-size:7.4cqw;font-weight:900;line-height:1.5;white-space:nowrap}
.mz-m img{width:8.6cqw;height:auto;border-radius:1.6cqw}
.mz-m em{font-style:normal;color:var(--gold2)}
.mz-t{position:absolute;z-index:3;left:6cqw;right:6cqw;top:91cqw;bottom:6cqw;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center}
.mz-k{display:inline-block;padding:.4cqw 3.4cqw 1cqw;font-size:4.8cqw;font-weight:800;line-height:1.6;color:#1B1640;background:linear-gradient(180deg,#F1CF8C,#D29B4C);border-radius:1cqw}
.mz-t em{margin-top:1.6cqw;font-family:Amiri,serif;font-style:normal;font-weight:700;font-size:6.4cqw;line-height:1.3;color:var(--gold2)}
.mz-t b{margin-top:.8cqw;font-size:7.4cqw;font-weight:900;line-height:1.45;text-wrap:balance;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding-bottom:.1em}
.mz-t b.sm{font-size:6.4cqw}
.mz-t b.xs{font-size:5.6cqw;-webkit-line-clamp:3}
.mz-t i{display:block;width:20cqw;height:1px;margin:auto auto 2cqw;background:linear-gradient(90deg,transparent,var(--gold2),transparent)}
.mz-t small{font-size:4.4cqw;font-weight:700;line-height:1.5;color:rgba(255,255,255,.85)}
/* عدد الصور: في الزاوية العليا اليسرى من الصورة بعيداً عن الوجوه */
.mz-n{position:absolute;z-index:3;left:5cqw;top:20cqw;display:flex;flex-direction:column;align-items:center;justify-content:center;width:15cqw;height:15cqw;border-radius:50%;line-height:1.1;
  background:rgba(30,22,80,.88);border:.5cqw solid var(--gold2);font-size:5cqw;font-weight:900;transform:rotate(-8deg)}
.mz-n small{font-size:3.2cqw;color:var(--gold2)}
/* لون الغلاف حسب النوع، نفس ألوان لوحة التحكم: المناسبة كحلي، والخبر بيج، والدعوة أخضر، والوفاة أسود */
.mz.t-news{--mzA:#F6ECD6;--mzB:#E4D3AE;--mzE:#E9DABA}
.mz.t-inv{--mzA:#1F7A63;--mzB:#0D4436;--mzE:#125343}
.mz.t-death{--mzA:#2E2E31;--mzB:#0A0A0C;--mzE:#111113}
.mz.t-news .mz-cv::after{border-color:rgba(106,77,28,.45)}
.mz.t-news .mz-m{color:#2A2110;border-bottom-color:rgba(106,77,28,.45)}
.mz.t-news .mz-m em{color:#8A5A16}
.mz.t-news .mz-t b{color:#2A2110}
.mz.t-news .mz-t em{color:#8A5A16}
.mz.t-news .mz-t small{color:#5A4A2A}
.mz.t-news .mz-t i{background:linear-gradient(90deg,transparent,#A67C34,transparent)}
.mz.t-news .mz-k,[data-sky=night] .mz.t-news .mz-k{color:#fff;background:#6A4D1C}
.mz.t-inv .mz-k,[data-sky=night] .mz.t-inv .mz-k{color:#0D3B30;background:linear-gradient(180deg,#F1CF8C,#D29B4C)}
.mz.t-death .mz-k,[data-sky=night] .mz.t-death .mz-k{color:#111;background:#D9D9DC}
.mz.t-death .mz-cv::after{border-color:rgba(255,255,255,.28)}
.mz.t-death .mz-t i{background:linear-gradient(90deg,transparent,#BDBDC2,transparent)}
.mz-cap{display:block;margin-top:12px;font-size:13px;font-weight:800;color:#fff;text-align:center;text-shadow:0 1px 6px rgba(0,0,0,.6);opacity:.85}
.mz:hover .mz-cap{color:var(--gold2);opacity:1}

.sh-more{display:flex;justify-content:center;margin-top:34px}
.sh-more button{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 26px;border:0;border-radius:99px;cursor:pointer;font:800 15.5px Cairo,sans-serif;color:#fff;background:var(--navy);box-shadow:0 12px 26px rgba(20,10,60,.4)}
.sh-more button small{font-weight:700;color:var(--gold2)}

@media (max-width:899px){.sh-bar{border-radius:22px;width:auto}.sh-tabs{width:100%;justify-content:space-between}.sh-tabs button{flex:1;justify-content:center;padding:0 6px}.sh-sel,.sh-q{flex:1}.sh-sel select{width:100%}.sh-q input{width:100%;min-width:0}}
@media (max-width:640px){
  .shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px;padding:16px 12px 0;border-radius:18px}
  .sh-tabs button{font-size:13px;height:34px}
  .sh-year{font-size:20px;margin:28px 0 14px}
  .mz{padding-bottom:16px}.mz-cap{font-size:11.5px;margin-top:8px}
  .sh-sub{font-size:13px}.sh-alt a{font-size:12px;padding:4px 10px 5px}
}
.shelfpg .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
