/* ui-cards (2026-11-07): ستايل الكروت في كل الصفحات — بيتحمّل بعد main.css.
   (6) الصورة بتملا صندوقها دايمًا: صندوق ثابت 16:9 + object-fit:cover (الصور المرفوعة 1200×675 = نفس النسبة، فالعنوان اللي على الصورة مش بيتقص).
   (7) سطر المعلومة الصغير .jw24-info («مصر · فودافون» / «أندرويد» / «أداة + جرّب»). */

/* ── (6) صندوق الصورة ── */
.thumb{aspect-ratio:16/9;background:linear-gradient(135deg,#E9F0FD,#F4F7FC)}
.thumb>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}
/* مقال من غير صورة بارزة: الـplaceholder بيملا الصندوق كله (مش شرايط رمادي) */
.thumb>.ph{position:absolute;inset:0;width:auto;height:auto;display:grid;place-items:center;background:linear-gradient(135deg,#E3ECFF 0%,#F3F7FE 60%,#EAF6FB 100%);color:var(--jw-brand)}
.thumb>.ph img{position:static;width:30%;max-width:56px;min-width:22px;height:auto;aspect-ratio:1;object-fit:contain;opacity:.9;transform:none}
/* الصفوف الصغيرة: الصورة بعرض العمود كله و16:9 */
.li>.thumb,.tli>.thumb,.tool-row>.thumb,.hl .thumb{width:100%;align-self:start}
.li>.thumb{align-self:center}
/* الكارت الأفقي («أحدث المواضيع»): الصورة 16:9 جوه الكارت بدل ما تتمط بطول النص */
.hcard{align-items:center}
.hcard>.thumb{aspect-ratio:16/9;height:auto;min-height:0;margin-block:14px;margin-inline-start:14px;border-radius:var(--r-md)}
/* القائمة المنسدلة «شبكات» (.mcard من inc/nav.php): الصورة بتملا الكارت، ولون فاتح لحد ما تتحمّل */
.mcard .thumb{aspect-ratio:16/9;width:100%}
.mcard .thumb>img:not([src]){opacity:0}
/* إطار القوالب القديمة (jw24_frame — القوائم المرقّمة والمصغّرات) */
.jw24-frame{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:var(--r-sm);background:linear-gradient(135deg,#E9F0FD,#F4F7FC)}
.jw24-frame__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.jw24-frame__ph{position:absolute;inset:0;display:grid;place-items:center}
.jw24-frame__icon{width:30%;max-width:56px;height:auto}
.jw24-frame__letter{font-size:24px;font-weight:700;color:var(--jw-brand)}

/* ── (7) سطر المعلومة ── */
.jw24-info{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;margin:0 0 3px;font-size:12px;font-weight:600;line-height:1.6;color:var(--muted)}
.jw24-info bdi{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jw24-info--net{color:var(--jw-brand-ink)}
.jw24-info--net::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.75}
.jw24-info__tool{display:inline-block;padding:0 8px;border-radius:6px;background:#EAF2FF;color:var(--jw-brand-ink);font-size:11.5px;font-weight:700;line-height:20px}
.jw24-info__try{position:relative;z-index:1;display:inline-block;padding:0 10px;border-radius:999px;background:var(--jw-brand);color:#fff;font-size:11.5px;font-weight:700;line-height:20px;transition:background .2s}
.jw24-info__try:hover{background:var(--jw-brand-ink);color:#fff}
.card .body>.jw24-info{margin-top:2px}
.pick>.jw24-info{padding-inline:4px}
.bigc>.jw24-info{margin-top:2px}
.li .jw24-info{font-size:11.5px;margin:0}
.related-net .jw24-info{display:none}

@media (max-width:820px){
  .hcard>.thumb{margin:0;border-radius:0}
}
