/*
 * قالب توووفه — الأنماط الأساسية.
 * القيم المتغيّرة تأتي من لوحة التحكم عبر متغيّرات CSS تُحقن في الرأس،
 * فتغيير لون أو خطّ من اللوحة لا يحتاج إعادة بناء أي ملف.
 */

:root{
	--tf-primary:#19a84c; --tf-dark:#0d1b14; --tf-link:#0f7a38; --tf-bg:#f4f6f5;
	--tf-font:system-ui,sans-serif; --tf-font-head:var(--tf-font);
	--tf-size:16px; --tf-width:1280px; --tf-logo-h:60px;
	--tf-card:#fff; --tf-line:#c0cac5; --tf-muted:#6b7280; --tf-radius:10px;
}

*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--tf-bg);color:#16221b;font-family:var(--tf-font);font-size:var(--tf-size);line-height:1.7}
h1,h2,h3,h4{font-family:var(--tf-font-head);line-height:1.35;margin:0 0 .5em}
a{color:var(--tf-link);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}

.tf-container{max-width:var(--tf-width);margin:0 auto;padding:0 16px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tf-skip{position:absolute;inset-inline-start:-9999px}
.tf-skip:focus{inset-inline-start:8px;top:8px;background:#fff;padding:8px 14px;z-index:999}

/* الشريط العلوي */
.tf-topbar{background:var(--tf-dark);color:#cfe6d8;font-size:13px}
.tf-topbar .tf-container{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;flex-wrap:wrap}
.tf-topbar-side{display:flex;align-items:center;gap:14px;color:#9fb8a9}
/* التاريخ والمدينة يمينًا وأيقونات التواصل يسارًا كما في المرجع.
   بالترتيب لا بتبديل الوسوم، فيبقى موضعها في الشيفرة كما هو لقارئ الشاشة. */
.tf-socials{display:flex;gap:8px;order:2}
.tf-topbar-side{order:1}
/* أيقونة صغيرة قبل كل عنصر في الشريط العلوي، كما في المرجع */
.tf-date,.tf-city,.tf-weather{display:inline-flex;align-items:center;gap:6px}
.tf-date::before,.tf-city::before,.tf-weather::before{content:"";width:14px;height:14px;flex:none;background:currentColor;opacity:.8;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.tf-date::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E")}
.tf-city::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.6 7-11a7 7 0 10-14 0c0 5.4 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.6 7-11a7 7 0 10-14 0c0 5.4 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E")}
.tf-weather::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2.5M12 19.5V22M2 12h2.5M19.5 12H22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M19.1 4.9l-1.8 1.8M6.7 17.3l-1.8 1.8'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2.5M12 19.5V22M2 12h2.5M19.5 12H22M4.9 4.9l1.8 1.8M17.3 17.3l1.8 1.8M19.1 4.9l-1.8 1.8M6.7 17.3l-1.8 1.8'/%3E%3C/svg%3E")}

.tf-social{width:28px;height:28px;display:grid;place-items:center;border-radius:6px;background:rgba(255,255,255,.08);color:#cfe6d8;font-size:11px}
.tf-social span{display:none}
/* شعار كل منصّة قناعًا بلون النصّ: المربّع الفارغ يُقرأ كأيقونة لم تُحمَّل */
.tf-social::before{content:"";width:15px;height:15px;background:currentColor;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.tf-x::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M18.9%202H22l-7.3%208.3L23.2%2022h-6.6l-5.2-6.8L5.5%2022H2.4l7.8-8.9L1.2%202h6.8l4.7%206.2L18.9%202z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M18.9%202H22l-7.3%208.3L23.2%2022h-6.6l-5.2-6.8L5.5%2022H2.4l7.8-8.9L1.2%202h6.8l4.7%206.2L18.9%202z'/%3E%3C/svg%3E")}
.tf-facebook::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M13.5%2022v-8h2.7l.4-3.1h-3.1V8.9c0-.9.25-1.5%201.55-1.5h1.65V4.6c-.3%200-1.3-.1-2.4-.1-2.4%200-4%201.45-4%204.1v2.3H7.6V14h2.7v8z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M13.5%2022v-8h2.7l.4-3.1h-3.1V8.9c0-.9.25-1.5%201.55-1.5h1.65V4.6c-.3%200-1.3-.1-2.4-.1-2.4%200-4%201.45-4%204.1v2.3H7.6V14h2.7v8z'/%3E%3C/svg%3E")}
.tf-youtube::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M22%2012s0-3.3-.4-4.9a2.5%202.5%200%200%200-1.8-1.8C18.2%204.9%2012%204.9%2012%204.9s-6.2%200-7.8.4A2.5%202.5%200%200%200%202.4%207.1C2%208.7%202%2012%202%2012s0%203.3.4%204.9a2.5%202.5%200%200%200%201.8%201.8c1.6.4%207.8.4%207.8.4s6.2%200%207.8-.4a2.5%202.5%200%200%200%201.8-1.8c.4-1.6.4-4.9.4-4.9zM10%2015.2V8.8l5.2%203.2z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M22%2012s0-3.3-.4-4.9a2.5%202.5%200%200%200-1.8-1.8C18.2%204.9%2012%204.9%2012%204.9s-6.2%200-7.8.4A2.5%202.5%200%200%200%202.4%207.1C2%208.7%202%2012%202%2012s0%203.3.4%204.9a2.5%202.5%200%200%200%201.8%201.8c1.6.4%207.8.4%207.8.4s6.2%200%207.8-.4a2.5%202.5%200%200%200%201.8-1.8c.4-1.6.4-4.9.4-4.9zM10%2015.2V8.8l5.2%203.2z'/%3E%3C/svg%3E")}
.tf-telegram::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M21.9%204.3%202.9%2011.6c-1%20.4-1%201%20.2%201.4l4.8%201.5%201.8%205.6c.2.6.1.8.7.8.5%200%20.7-.2%201-.5l2.4-2.3%205%203.7c.9.5%201.6.2%201.8-.9l3.3-15.4c.3-1.3-.5-1.9-1.4-1.5z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M21.9%204.3%202.9%2011.6c-1%20.4-1%201%20.2%201.4l4.8%201.5%201.8%205.6c.2.6.1.8.7.8.5%200%20.7-.2%201-.5l2.4-2.3%205%203.7c.9.5%201.6.2%201.8-.9l3.3-15.4c.3-1.3-.5-1.9-1.4-1.5z'/%3E%3C/svg%3E")}
.tf-whatsapp::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12%202a10%2010%200%200%200-8.6%2015L2%2022l5.2-1.4A10%2010%200%201%200%2012%202zm5.6%2014.2c-.2.7-1.4%201.3-2%201.4-.5.1-1.1.1-1.8-.1-.4-.1-1-.3-1.7-.6-3-1.3-4.9-4.3-5-4.5-.2-.2-1.2-1.6-1.2-3s.7-2.1%201-2.4c.2-.2.5-.3.7-.3h.5c.2%200%20.4%200%20.6.5l.8%202c.1.2.1.4%200%20.6l-.4.5c-.1.1-.3.3-.1.6.2.3.8%201.3%201.7%202.1%201.2%201%202.1%201.4%202.4%201.5.2.1.4.1.6-.1l.8-.9c.2-.2.4-.2.6-.1l2%20.9c.2.1.4.2.4.3.1.2.1.8-.1%201.5z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12%202a10%2010%200%200%200-8.6%2015L2%2022l5.2-1.4A10%2010%200%201%200%2012%202zm5.6%2014.2c-.2.7-1.4%201.3-2%201.4-.5.1-1.1.1-1.8-.1-.4-.1-1-.3-1.7-.6-3-1.3-4.9-4.3-5-4.5-.2-.2-1.2-1.6-1.2-3s.7-2.1%201-2.4c.2-.2.5-.3.7-.3h.5c.2%200%20.4%200%20.6.5l.8%202c.1.2.1.4%200%20.6l-.4.5c-.1.1-.3.3-.1.6.2.3.8%201.3%201.7%202.1%201.2%201%202.1%201.4%202.4%201.5.2.1.4.1.6-.1l.8-.9c.2-.2.4-.2.6-.1l2%20.9c.2.1.4.2.4.3.1.2.1.8-.1%201.5z'/%3E%3C/svg%3E")}
.tf-instagram::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9'%3E%3Crect x='3' y='3' width='18' height='18' rx='5.2'/%3E%3Ccircle cx='12' cy='12' r='4.1'/%3E%3Ccircle cx='17.3' cy='6.7' r='1.15' fill='%23000' stroke='none'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9'%3E%3Crect x='3' y='3' width='18' height='18' rx='5.2'/%3E%3Ccircle cx='12' cy='12' r='4.1'/%3E%3Ccircle cx='17.3' cy='6.7' r='1.15' fill='%23000' stroke='none'/%3E%3C/svg%3E")}

.tf-social:hover{background:var(--tf-primary);color:#fff;text-decoration:none}

/* الهيدر والشعار */
/* بلا صورة خلفية يبقى الهيدر مستطيلًا مسطّحًا؛ التدرّج القُطري يعطيه عمقًا
   ويقترب من المرجع، وصورة الملعب حين تُرفع من اللوحة تحلّ محلّه */
.tf-header{color:#fff;padding:0;min-height:148px;display:flex;align-items:center;background:radial-gradient(120% 150% at 88% 50%,rgba(34,197,94,.30),transparent 58%),linear-gradient(255deg,#12301f 0%,var(--tf-dark) 55%,#060d09 100%);background-size:cover;background-position:center}
.tf-header.has-bg{background-image:none}
.tf-header>.tf-container{width:100%}
/* الشعار يمينًا والمساحة الإعلانية يسارًا في صفّ واحد، فلا يبقى الهيدر شريطًا فارغًا */
.tf-header-row{display:flex;align-items:center;justify-content:space-between;gap:28px}
.tf-header-row .tf-ad{flex:1;display:flex;justify-content:flex-start;max-width:728px;overflow:hidden}
.tf-header.has-bg{position:relative}
/* قوّة الطبقة من اللوحة: 1 = ما كانت عليه (.92 و.55)، و0 = الصورة صافية.
   الفرق بين الطرفين محفوظ نسبيًّا، فلا ينقلب الطرف الفاتح على الشعار. */
.tf-header.has-bg::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,
	rgba(13,27,20,calc(.92 * var(--tf-header-overlay,1))),
	rgba(13,27,20,calc(.55 * var(--tf-header-overlay,1))))}
.tf-header .tf-container{position:relative}
.tf-logo{display:inline-flex;flex-direction:column;gap:4px;color:#fff}
.tf-logo:hover{text-decoration:none}
.tf-logo img{height:var(--tf-logo-h);width:auto;object-fit:contain}
.tf-logo-text{font-size:32px;font-weight:800;font-family:var(--tf-font-head)}
.tf-tagline{font-size:13px;opacity:.75}

/* القائمة */
.tf-nav{background:#111f18;position:relative;z-index:30}
.tf-sticky-nav .tf-nav{position:sticky;top:0}
.tf-nav .tf-container{display:flex;align-items:center;gap:12px}
.tf-menu{display:flex;list-style:none;margin:0;padding:0;flex:1;flex-wrap:wrap}
.tf-menu a{display:block;padding:14px 14px;color:#dfeee6;font-weight:600;font-size:15px}
.tf-menu a:hover,.tf-menu .current-menu-item>a{background:var(--tf-primary);color:#fff;text-decoration:none}
/* أيقونة بيت على أول عنصر: هو «الرئيسية» دائمًا لأن القائمة تُبنى بهذا
   الترتيب، وهكذا لا نحتاج صفًّا خاصًّا في قاعدة البيانات */
.tf-menu>li:first-child>a{display:flex;align-items:center;gap:7px}
.tf-menu>li:first-child>a::before{content:"";width:16px;height:16px;background:currentColor;
	-webkit-mask:var(--tf-i-home) center/contain no-repeat;mask:var(--tf-i-home) center/contain no-repeat}
/* زرّ القائمة الكاملة: القائمة العلوية سبعة أقسام مختصرة، وهذا يفتح البقية */
.tf-nav-toggle{display:grid;place-items:center;background:none;border:0;padding:10px 12px;cursor:pointer;order:0}
.tf-menu{order:1}
.tf-search{order:2}
.tf-nav-toggle:hover .tf-burger,.tf-nav-toggle:hover .tf-burger::before,.tf-nav-toggle:hover .tf-burger::after{background:var(--tf-primary)}
.tf-burger,.tf-burger::before,.tf-burger::after{display:block;width:22px;height:2px;background:#fff;content:"";position:relative}
.tf-burger::before{top:-7px}
.tf-burger::after{top:5px}
.tf-search{display:flex;align-items:center;background:rgba(255,255,255,.1);border-radius:999px;padding:4px 6px}
.tf-search input{background:none;border:0;color:#fff;padding:6px 10px;min-width:220px;font-family:inherit}
.tf-search input::placeholder{color:#9fb8a9}
.tf-search button{background:var(--tf-primary);border:0;width:30px;height:30px;border-radius:50%;cursor:pointer;display:grid;place-items:center}
.tf-search button::before{content:"";width:15px;height:15px;background:#fff;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") center/contain no-repeat}

/* لوحة «كل الأقسام» التي يفتحها زرّ ☰.
   على سطح المكتب تنسدل من تحت الشريط في عمودين أو أكثر، وعلى الجوّال
   تصير قائمة واحدة ممتدّة. الزرّ يظهر في الحالتين فلزِمها تنسيق في الحالتين. */
.tf-mobile-panel{background:#111f18;padding:14px 18px 16px;border-top:1px solid rgba(255,255,255,.07)}
.tf-mobile-panel[hidden]{display:none}
.tf-mobile-menu{list-style:none;margin:0 auto;padding:0;max-width:var(--tf-w,1480px);
	display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:2px 20px}
.tf-mobile-menu a{display:block;padding:11px 6px;color:#dfeee6;font-weight:600;font-size:14px;
	border-bottom:1px solid rgba(255,255,255,.07)}
.tf-mobile-menu a:hover{color:#fff;background:rgba(255,255,255,.06);text-decoration:none}
.tf-mobile-menu .sub-menu{list-style:none;margin:0;padding:0 12px 6px}
.tf-mobile-menu .sub-menu a{font-weight:500;font-size:13px;color:#b9d2c5;border-bottom:0;padding:7px 6px}
/* التخطيط */
.tf-main{padding:24px 0 40px}
.tf-layout{display:grid;grid-template-columns:1fr 320px;gap:24px;align-items:start}
.tf-sidebar-left .tf-layout{grid-template-columns:320px 1fr}
.tf-sidebar-left .tf-content{order:2}
.tf-sidebar-none .tf-layout{grid-template-columns:1fr}
.tf-page-title{font-size:26px;margin-bottom:18px;border-inline-start:4px solid var(--tf-primary);padding-inline-start:12px}

/* الشبكة والبطاقات */
.tf-grid{display:grid;gap:18px}
.tf-grid-grid,.tf-grid-mixed{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.tf-grid-list{grid-template-columns:1fr}
.tf-grid-mixed>.tf-card:first-child{grid-column:1/-1}
/* ظلّ خفيف مع الإطار: عند هذه النسب المنخفضة يُقرأ الظلُّ عمقًا أوضح ممّا
   يُقرأ إطارٌ باهت. وقِيس قبل التغيير: البطاقة مقابل الصفحة 1.09 — أي لونٌ
   واحد عمليًّا — والإطار مقابل البطاقة 1.26، وبلا أي ظلّ. */
.tf-card{background:var(--tf-card);border:1px solid var(--tf-line);border-radius:var(--tf-radius);overflow:hidden;display:flex;flex-direction:column;
	box-shadow:0 1px 3px rgba(16,32,24,.10)}
.tf-grid-list .tf-card{flex-direction:row}
.tf-grid-list .tf-card-thumb{flex:0 0 240px}
.tf-card-thumb{position:relative;display:block;background:#eef1ef}
.tf-card-thumb img{display:block;width:100%;height:auto;aspect-ratio:39/22;object-fit:cover}
.tf-grid-mixed>.tf-card:first-child .tf-card-thumb img{aspect-ratio:1100/620}
.tf-card-noimg{display:block;aspect-ratio:39/22;background:repeating-linear-gradient(45deg,#eef1ef,#eef1ef 10px,#e6eae8 10px,#e6eae8 20px)}
/* الشارة داخل عمود النصّ: مخفيّة إلا في وضع الصفوف الأفقية على الجوّال */
.tf-card-cat-inline{display:none;align-self:flex-start;background:var(--tf-cat,var(--tf-primary));color:#fff;font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:4px}
.tf-card-cat{position:absolute;inset-block-end:10px;inset-inline-start:10px;background:var(--tf-cat,var(--tf-primary));color:#fff;font-size:12px;font-weight:700;padding:3px 10px;border-radius:4px}
/* البطاقة تمتدّ لارتفاع الصفّ ويُدفع سطر الكاتب والتاريخ إلى أسفلها،
   فتستوي حواف الصفّ مهما اختلف طول العناوين */
.tf-card-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.tf-card-body .tf-meta{margin-top:auto;padding-top:4px}
.tf-card-title{font-size:17px;margin:0}
.tf-card-title a{color:#16221b}
.tf-card-excerpt{margin:0;color:var(--tf-muted);font-size:14px}
.tf-meta{display:flex;align-items:center;gap:10px;color:var(--tf-muted);font-size:12.5px;margin-top:auto}
.tf-meta-date{display:inline-flex;align-items:center;gap:5px}
.tf-meta-date::before{content:"";width:13px;height:13px;flex:none;background:currentColor;
	-webkit-mask:var(--tf-i-clock) center/contain no-repeat;mask:var(--tf-i-clock) center/contain no-repeat}

/* المقال */
.tf-single{background:var(--tf-card);border:1px solid var(--tf-line);border-radius:var(--tf-radius);padding:22px}
.tf-single-cat{display:inline-block;background:var(--tf-primary);color:#fff;font-size:12px;font-weight:700;padding:3px 10px;border-radius:4px;margin-bottom:10px}
.tf-single-title{font-size:30px}
.tf-single-thumb{margin:18px 0}
.tf-single-thumb img{width:100%;border-radius:8px;aspect-ratio:1100/620;object-fit:cover}
.tf-single-body{font-size:calc(var(--tf-size) + 1px);line-height:1.95}
.tf-single-body img{border-radius:8px}
.tf-tags{margin-top:20px;display:flex;gap:8px;flex-wrap:wrap}
.tf-tags a{background:#eef3f0;padding:4px 12px;border-radius:999px;font-size:13px}
/* الشريط الأخضر ثم خطّ رفيع يمتدّ إلى آخر العرض: يربط العنوان بالشبكة
   تحته بدل أن يطفو وحده في فراغ */
.tf-section-title{font-size:20px;margin:0 0 14px;display:flex;align-items:center;gap:12px;
	border-inline-start:4px solid var(--tf-primary);padding-inline-start:12px}
.tf-section-title::after{content:"";flex:1;height:1px;background:var(--tf-line)}

/* الشريط الجانبي والودجات */
.tf-sidebar .widget{background:var(--tf-card);border:1px solid var(--tf-line);border-radius:var(--tf-radius);padding:16px;margin-bottom:18px}
.widget-title{font-size:17px;margin:0 0 12px;border-bottom:2px solid var(--tf-primary);padding-bottom:8px}
.tf-sidebar ul{list-style:none;margin:0;padding:0}
.tf-sidebar li{padding:7px 0;border-bottom:1px solid #f0f2f1}

/* الفوتر */
.tf-footer{background:var(--tf-dark);color:#c9ddd2;margin-top:40px;padding:34px 0 0}
.tf-footer-top{display:grid;grid-template-columns:320px 1fr;gap:28px}
.tf-footer .widget-title{color:#fff;border-color:var(--tf-primary)}
.tf-footer-widgets{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:22px}
.tf-footer a{color:#c9ddd2}
.tf-footer-bottom{margin-top:26px;border-top:1px solid rgba(255,255,255,.1);padding:14px 0;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:13.5px}
.tf-footer-menu{display:flex;gap:16px;list-style:none;margin:0;padding:0}
.tf-copy{margin:0}

/* الإعلانات والأزرار */
.tf-ad{margin:16px 0;text-align:center}
.tf-btn{display:inline-block;background:var(--tf-primary);color:#fff;padding:10px 22px;border-radius:8px;font-weight:700}
.tf-btn:hover{text-decoration:none;filter:brightness(1.08)}
.tf-empty{background:var(--tf-card);border:1px solid var(--tf-line);border-radius:var(--tf-radius);padding:40px;text-align:center}

/* الترقيم */
.pagination{margin:26px 0;display:flex;justify-content:center;gap:6px;flex-wrap:wrap}
.pagination .page-numbers{display:inline-block;padding:8px 14px;background:#fff;border:1px solid var(--tf-line);border-radius:8px}
.pagination .current{background:var(--tf-primary);border-color:var(--tf-primary);color:#fff}

.tf-bottombar{display:none}

@media(max-width:1024px){
	.tf-layout{grid-template-columns:1fr}
	.tf-sidebar-left .tf-content{order:0}
	.tf-footer-top{grid-template-columns:1fr}
}

/* ===== مشاركة الخبر =====
   كانت <div> فارغة تملؤها الجافاسكربت بزرّ واحد بشرط navigator.share — وهي
   غائبة على سطح المكتب، فلم يكن هناك زرّ أصلًا. صارت روابط من الخادم، ولكل
   تطبيق لونه وأيقونته فيُعرف بلمحة بلا قراءة.

   الأيقونات أقنعة SVG مضمّنة لا خطّ أيقونات ولا سكربت شبكة: الأزرار الجاهزة
   تتعقّب القارئ في كل صفحة، والرابط العادي يؤدّي الغرض. */
.tf-share{margin-top:22px;padding-top:18px;border-top:1px solid var(--tf-line);
	display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.tf-share-label{font-weight:700;font-size:14.5px;color:var(--tf-ink,#13201a)}
.tf-share-list{display:flex;gap:9px;flex-wrap:wrap;flex:1}

/* أيقونات فقط: الأسماء كانت تُطيل الأزرار فتلتفّ في عمود على الجوّال،
   واللون والأيقونة يعرّفان التطبيق بلا قراءة. الاسم باقٍ في الوسم مخفيًّا
   بصريًّا لا بـ display:none — قارئ الشاشة يقرؤه، و title يُظهره للفأرة. */
.tf-sh{position:relative;display:inline-flex;align-items:center;justify-content:center;
	width:40px;height:40px;padding:0;border:0;border-radius:50%;
	background:var(--tf-sh,#4b5a52);color:#fff;font:inherit;
	cursor:pointer;line-height:1;transition:filter .15s,transform .15s}
.tf-sh:hover{color:#fff;text-decoration:none;filter:brightness(1.1)}
.tf-sh:active{transform:translateY(1px)}
.tf-sh:focus-visible{outline:2px solid var(--tf-link);outline-offset:2px}
.tf-sh-n{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
	clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.tf-sh-i{width:19px;height:19px;flex:none;background:currentColor;
	-webkit-mask:var(--tf-sh-ico) center/contain no-repeat;mask:var(--tf-sh-ico) center/contain no-repeat}
/* الهدف على الجوّال 44 بكسل: الإصبع لا تصيب 40. و«شارك الخبر» تنزل سطرًا
   وحدها: تركها في صفّ الأزرار يقتطع منه ~100 بكسل فينكسر إلى صفّين — وعلى
   الجهاز الحقيقي ستة أزرار لا خمسة، إذ تُضاف مشاركة النظام. */
@media(max-width:782px){
	.tf-sh-i{width:20px;height:20px}
	.tf-share{gap:10px}
	.tf-share-label{flex:0 0 100%}
	.tf-share-list{justify-content:space-between;gap:8px}
	/* عرض مرن لا ثابت: العدد يتغيّر (خمسة أزرار، وستّة حيث تتوفّر مشاركة
	   النظام) وعمود المقال أضيق من عرض الشاشة. فلو ثبّتُّ 44 بكسل انكسر
	   الصفّ إلى صفّين على 375. هنا يكبر الزرّ إلى 44 إن اتّسع المكان
	   ويصغر إلى 34 عند الضيق، والصفّ يبقى واحدًا. */
	.tf-sh{flex:1 1 0;width:auto;height:auto;min-width:34px;max-width:44px;aspect-ratio:1}
}
/* الشاشات الضيّقة جدًّا (320): ستّة أزرار في 242 بكسل لا تتّسع بفجوة 8 */
@media(max-width:360px){
	.tf-share-list{gap:5px}
	.tf-sh{min-width:32px}
	.tf-sh-i{width:18px;height:18px}
}

.tf-sh-whatsapp{--tf-sh:#25d366;--tf-sh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38a9.9 9.9 0 0 0 4.79 1.22h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2zm0 1.67c2.2 0 4.27.86 5.83 2.42a8.2 8.2 0 0 1 2.41 5.82c0 4.54-3.7 8.24-8.25 8.24a8.23 8.23 0 0 1-4.2-1.15l-.3-.18-3.12.82.83-3.04-.2-.31a8.2 8.2 0 0 1-1.26-4.38c0-4.54 3.7-8.24 8.26-8.24zm-2.3 4.4c-.16 0-.42.06-.64.3-.22.24-.85.83-.85 2.02s.87 2.34.99 2.5c.12.16 1.7 2.6 4.12 3.55 2.01.79 2.42.63 2.86.59.44-.04 1.42-.58 1.62-1.14.2-.56.2-1.04.14-1.14-.06-.1-.22-.16-.46-.28-.24-.12-1.42-.7-1.64-.78-.22-.08-.38-.12-.54.12-.16.24-.62.78-.76.94-.14.16-.28.18-.52.06-.24-.12-1.01-.37-1.93-1.19-.71-.63-1.19-1.42-1.33-1.66-.14-.24-.02-.37.1-.49.11-.11.24-.28.36-.42.12-.14.16-.24.24-.4.08-.16.04-.3-.02-.42-.06-.12-.54-1.3-.74-1.78-.19-.46-.39-.4-.54-.41h-.46z'/%3E%3C/svg%3E")}
.tf-sh-x{--tf-sh:#111;--tf-sh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.53 3h3.07l-6.71 7.67L21.78 21h-6.18l-4.84-6.33L5.22 21H2.14l7.18-8.2L2.22 3h6.34l4.37 5.78L17.53 3zm-1.08 16.17h1.7L7.63 4.73H5.8l10.65 14.44z'/%3E%3C/svg%3E")}
.tf-sh-facebook{--tf-sh:#1877f2;--tf-sh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 12.06C22 6.5 17.52 2 12 2S2 6.5 2 12.06c0 5.02 3.66 9.18 8.44 9.94v-7.03H7.9v-2.9h2.54V9.85c0-2.52 1.49-3.91 3.78-3.91 1.09 0 2.24.2 2.24.2v2.46h-1.26c-1.24 0-1.63.78-1.63 1.57v1.89h2.78l-.45 2.9h-2.33V22c4.78-.76 8.43-4.92 8.43-9.94z'/%3E%3C/svg%3E")}
.tf-sh-telegram{--tf-sh:#2aabee;--tf-sh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.94 4.3 18.6 19.4c-.25 1.1-.9 1.37-1.83.85l-5.05-3.72-2.44 2.35c-.27.27-.5.5-1.02.5l.36-5.14 9.36-8.46c.4-.36-.09-.56-.63-.2L5.78 12.86.8 11.3c-1.08-.34-1.1-1.08.23-1.6L20.54 2.6c.9-.33 1.69.21 1.4 1.7z'/%3E%3C/svg%3E")}
.tf-sh-copy{--tf-sh:#4b5a52;--tf-sh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h9a2 2 0 0 1 2 2v12h-2V4H9V2zM6 6h9a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zm0 2v12h9V8H6z'/%3E%3C/svg%3E")}
/* بعد النسخ: الأيقونة تصير علامة صحّ — كانت الكلمة «نُسخ» هي الدليل،
   وقد خُفيت مع بقيّة الأسماء فلزم دليل مرئي بديل */
.tf-sh-copy.is-done{--tf-sh:var(--tf-primary);--tf-sh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.55 17.6 4.4 12.45l1.4-1.4 3.75 3.75 8.65-8.65 1.4 1.4z'/%3E%3C/svg%3E")}
.tf-sh-system{--tf-sh:var(--tf-dark);--tf-sh-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16.08a2.9 2.9 0 0 0-1.96.77L8.9 12.7c.05-.23.08-.46.08-.7s-.03-.47-.08-.7l7.06-4.11a2.98 2.98 0 1 0-.96-2.19l-7.05 4.1a3 3 0 1 0 0 4.4l7.12 4.16c-.5.2-.8.42-.8.64A2.92 2.92 0 1 0 18 16.08z'/%3E%3C/svg%3E")}
/* ===== التعليقات =====
   كان القالب بلا comments.php فيطبع ووردبريس نموذجه الخام: حقول عارية
   بعرض عشوائي وزرّ رمادي صغير. هنا تأخذ الصندوقَ نفسه الذي تأخذه بقيّة
   المنصّة — خلفية البطاقة وحدودها ونصف قطرها وظلّها. */
.tf-comments{margin-top:26px;background:var(--tf-card);border:1px solid var(--tf-line);
	border-radius:var(--tf-radius);padding:22px;box-shadow:0 1px 3px rgba(16,32,24,.10)}
.tf-comments .tf-section-title{margin-bottom:16px}

.tf-comment-list{list-style:none;margin:0 0 22px;padding:0}
.tf-comment-list .children{list-style:none;margin:12px 0 0;padding-inline-start:22px;
	border-inline-start:2px solid var(--tf-line)}
.tf-comments .comment-body{padding:14px 0;border-bottom:1px solid var(--tf-line)}
.tf-comment-list>li:last-child>.comment-body{border-bottom:0}
.tf-comments .comment-author{display:flex;align-items:center;gap:10px;font-weight:700;font-size:14px}
.tf-comments .comment-author img{border-radius:50%;flex:none}
.tf-comments .comment-author .says{display:none}
.tf-comments .comment-metadata{font-size:12px;color:var(--tf-muted);margin:4px 0 8px}
.tf-comments .comment-metadata a{color:inherit}
.tf-comments .comment-content p{margin:0 0 8px;line-height:1.9}
.tf-comments .reply{font-size:13px;font-weight:600}
.tf-comments .comment-awaiting-moderation{display:inline-block;background:#fff6e5;color:#8a5a00;
	border-radius:6px;padding:4px 10px;font-size:12.5px;margin-bottom:8px}

/* النموذج */
.tf-comment-form{display:grid;gap:14px}
.tf-field{margin:0;display:grid;gap:6px}
/* الاسم والبريد والموقع ثلاثة في صفّ واحد: ثلاثة صفوف كانت تُطيل النموذج
   بلا داعٍ، وحقولها قصيرة */
@media(min-width:720px){
	.tf-comment-form .tf-field:not(.tf-field-text):not(.tf-field-check){display:inline-grid}
	.tf-comment-form{grid-template-columns:repeat(3,minmax(0,1fr))}
	.tf-comment-form>.tf-field-text,
	.tf-comment-form>.tf-field-check,
	.tf-comment-form>.form-submit,
	.tf-comment-form>.tf-comment-note{grid-column:1/-1}
}
.tf-field label{font-weight:600;font-size:13.5px;color:var(--tf-ink,#13201a)}
.tf-req{color:#c0392b}
.tf-opt{font-weight:400;color:var(--tf-muted);font-size:12.5px}
.tf-comment-form input[type=text],
.tf-comment-form input[type=email],
.tf-comment-form input[type=url],
.tf-comment-form textarea{width:100%;background:#fff;border:1px solid var(--tf-line);
	border-radius:9px;padding:11px 13px;font:inherit;font-size:15px;color:var(--tf-ink,#13201a);
	transition:border-color .15s,box-shadow .15s}
.tf-comment-form textarea{resize:vertical;min-height:120px;line-height:1.8}
.tf-comment-form input:focus,.tf-comment-form textarea:focus{outline:0;border-color:var(--tf-primary);
	box-shadow:0 0 0 3px rgba(34,197,94,.18)}
.tf-comment-form input::placeholder,.tf-comment-form textarea::placeholder{color:#9aa8a1}
.tf-field-check label{display:flex;align-items:flex-start;gap:8px;font-weight:400;
	font-size:13px;color:var(--tf-muted);line-height:1.6;cursor:pointer}
.tf-field-check input{margin-top:2px;flex:none}
.tf-comment-note{margin:0;font-size:12.5px;color:var(--tf-muted)}
.tf-comments .form-submit{margin:0}
.tf-comment-submit{border:0;cursor:pointer;font-size:15px;padding:12px 28px}
.tf-comments .comment-reply-title small{font-size:13px;font-weight:400;margin-inline-start:10px}
.tf-comments-closed{color:var(--tf-muted);font-size:13.5px}
.tf-comment-nav{display:flex;justify-content:space-between;gap:12px;margin-bottom:18px;font-size:13.5px}
@media(max-width:782px){
	.tf-nav-toggle{display:block}
	.tf-nav .tf-menu{display:none}
	/* --- البحث: أيقونة تتمدّد ---
	   كان الحقل يأخذ 253 من 375 بكسل = 67٪ من الشريط، والبحث مكرَّر أصلًا
	   بزرّ في الشريط السفلي. فيُطوى إلى زرّه وحده، ويتمدّد عند لمسه.
	   والطيّ بالعرض لا بـdisplay:none: الحقل يبقى في الوسم وفي شجرة الوصول،
	   فيصله قارئ الشاشة ويُرسل النموذج بمفتاح الإدخال. */
	.tf-search{padding:0;background:none;gap:0;transition:background .18s}
	.tf-search input{min-width:0;width:0;padding:0;opacity:0;pointer-events:none;
		transition:width .18s ease,opacity .18s ease,padding .18s ease}
	.tf-search.is-open{flex:1;background:rgba(255,255,255,.1);padding:4px 6px}
	.tf-search.is-open input{width:100%;padding:6px 10px;opacity:1;pointer-events:auto}
	@media (prefers-reduced-motion:reduce){.tf-search,.tf-search input{transition:none}}
	.tf-mobile-panel{padding:6px 16px 12px}
	.tf-mobile-menu{grid-template-columns:1fr}
	.tf-mobile-menu a{padding:12px 4px}
	/* لافتة الصفحة كانت 26px بلا تخصيص للجوّال — أكبر من عنوان المقال (23)
	   ومن الخبر الرئيسي (21)، أي أن اللافتة تغلب كل خبر تحتها */
	.tf-page-title{font-size:19px;margin-bottom:14px}
	.tf-single-title{font-size:23px}
	/* عنوان صفحةٍ لا عنوان خبر: «جميع المباريات» لافتةٌ تسمّي الصفحة، و23px
	   مقاسُ عنوان مقال. الصنف واحد في single.php وpage.php، والصنف page الذي
	   يضعه ووردبريس في body هو ما يفرّق بينهما. */
	body.page .tf-single-title{font-size:20px}
	.tf-mobile-no-sidebar .tf-sidebar{display:none}
	.tf-mobile-no-excerpt .tf-card-excerpt{display:none}
	/* ===== تخطيط بطاقات الجوّال =====
	   كان tf-grid-4 (شبكة أقسام الرئيسية) خارج كل قواعد tf-mobile-cols-*، فيقع
	   على repeat(2) مهما كان الإعداد — فالأرشيف يعطي عمودًا والرئيسية عمودين
	   على الجهاز نفسه. وكانت قاعدة تصغير العنوان معلّقة على tf-mobile-cols-2
	   فلا تنطبق حين يكون الإعداد «عمود واحد»: بقي العنوان 17px في بطاقة عرضها
	   163px، فأخذ أربعة أسطر — أطول من الصورة نفسها (91px). */
	.tf-mobile-cols-1 .tf-grid-grid,.tf-mobile-cols-1 .tf-grid-mixed,.tf-mobile-cols-1 .tf-grid-4{grid-template-columns:1fr}
	.tf-mobile-cols-2 .tf-grid-grid,.tf-mobile-cols-2 .tf-grid-mixed,.tf-mobile-cols-2 .tf-grid-4{grid-template-columns:1fr 1fr}

	/* قصّ عند ثلاثة أسطر: تفاوت العناوين بين سطرين وستّة هو ما يُهرِّئ الشبكة،
	   والقصّ يجعل الارتفاع شبه ثابت. والعنوان يُقصّ بثلاث نقاط لا يُبتر. */
	.tf-card-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
	/* المقاس يتبع التخطيط الفعلي لا صنفًا بعينه */
	.tf-mobile-cols-1 .tf-card-title{font-size:16px}
	.tf-mobile-cols-2 .tf-card-title{font-size:13.5px;line-height:1.45}
	.tf-mobile-cols-2 .tf-card-body{padding:10px 11px;gap:5px}
	/* الشارة لا تبتلع الصورة: «أهم الموضوعات» كان عرضه 84 بكسل فوق صورة
	   عرضها 133–153، أي 55–63٪ منها. فيُقصّ الاسم الطويل بثلاث نقاط. */
	.tf-mobile-cols-2 .tf-card-cat{font-size:10.5px;padding:2px 7px;inset-block-end:7px;inset-inline-start:7px;
		max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
	.tf-mobile-cols-2 .tf-meta{font-size:11px}

	.tf-grid-list .tf-card{flex-direction:column}
	.tf-grid-list .tf-card-thumb{flex:auto}

	/* ===== صفوف أفقية: صورة جانبية والعنوان بجوارها =====
	   قِيس على 375×812: ارتفاع البطاقة 101–115 بدل 242–287، ونحو 7.1 خبرًا في
	   الشاشة بدل 2.8، والعنوان يعود إلى 15px مقروء بدل 13.5px مضغوط.
	   وتأتي بعد قواعد tf-grid-list عمدًا: نمط «قائمة» يجعل البطاقة عمودًا،
	   وهذا الوضع يريدها صفًّا، فالأخيرة تغلب عند تساوي الأولوية. */
	.tf-mobile-cols-rows .tf-grid{grid-template-columns:1fr;gap:10px}
	.tf-mobile-cols-rows .tf-card{flex-direction:row}
	.tf-mobile-cols-rows .tf-card-thumb{flex:0 0 132px}
	.tf-mobile-cols-rows .tf-card-thumb img,
	.tf-mobile-cols-rows .tf-card-noimg{width:132px;height:99px;aspect-ratio:auto;object-fit:cover}
	/* أولى بطاقات نمط «مختلط» لها نسبة عريضة بأولوية أعلى، فتُنقض صراحةً */
	.tf-mobile-cols-rows .tf-grid-mixed>.tf-card:first-child .tf-card-thumb img{aspect-ratio:auto;height:99px}
	.tf-mobile-cols-rows .tf-grid-mixed>.tf-card:first-child{grid-column:auto}
	.tf-mobile-cols-rows .tf-card-body{padding:9px 12px;gap:4px;min-width:0}
	.tf-mobile-cols-rows .tf-card-title{font-size:15px;line-height:1.45}
	.tf-mobile-cols-rows .tf-meta{font-size:11.5px;padding-top:2px}
	/* الشارة تترك الصورة إلى عمود النصّ — انظر tooofa_card */
	.tf-mobile-cols-rows .tf-card-cat{display:none}
	.tf-mobile-cols-rows .tf-card-cat-inline{display:inline-block}

	/* هاتف ضيّق جدًّا: الصورة الثابتة 132 تترك للعنوان 130 بكسل، وهي تسعة
	   أحرف عربية في السطر. فتصغر الصورة ليتنفّس العنوان. */
	@media(max-width:360px){
		/* عمودان على هاتف ضيّق: عمود النصّ 111–131 بكسل. لا نُصغّر الخطّ أكثر —
		   13.5px هو حدّ القراءة المريحة — بل نضيّق الحشو ونسمح بسطر رابع،
		   فيُقصّ من العنوان أقلّ. والارتفاع يبقى متساويًا لأن القصّ موحّد. */
		.tf-mobile-cols-2 .tf-card-body{padding:8px 9px;gap:4px}
		.tf-mobile-cols-2 .tf-card-title{-webkit-line-clamp:4}
		.tf-mobile-cols-2 .tf-card-cat{font-size:9.5px;padding:2px 6px;inset-block-end:5px;inset-inline-start:5px}
		.tf-mobile-cols-2 .tf-meta{font-size:10.5px}

		.tf-mobile-cols-rows .tf-card-thumb{flex:0 0 104px}
		.tf-mobile-cols-rows .tf-card-thumb img,
		.tf-mobile-cols-rows .tf-card-noimg{width:104px;height:78px}
		.tf-mobile-cols-rows .tf-card-body{padding:8px 10px}
		.tf-mobile-cols-rows .tf-card-title{font-size:14px}
	}

	.tf-has-bottombar .tf-footer{padding-bottom:64px}
	.tf-has-bottombar .tf-bottombar{display:flex;position:fixed;inset-inline:0;bottom:0;z-index:60;background:var(--tf-dark);border-top:1px solid rgba(255,255,255,.08)}
	.tf-bottombar a,.tf-bottombar button{flex:1;background:none;border:0;color:#cfe6d8;font:inherit;font-size:11.5px;padding:8px 2px;display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer}
	/* أيقونة الشريط السفلي: svg داخل الوسم لا قناعٌ في CSS. كانت كل أيقونة
	   صنفًا هنا يشير إلى متغيّر، فلا يملك المحرّر تبديلها. وصارت تُطبع مع
	   زرّها (inc/bottom-bar.php) فتتبعه أينما نُقل. */
	.tf-bi{width:21px;height:21px;opacity:.9;flex:none}

	/* ======================================================================
	   تحسينات الجوّال — قِيست على 375×812 قبل كتابتها
	   ====================================================================== */

	/* --- 1) سُلّم خطوط: لا يتجاوز الزخرفُ المحتوى ---
	   كان نصّ الفوتر 16px، أي أكبر من عنوان الخبر نفسه (13.5px) — فأقلّ ما في
	   الصفحة أهميةً أكبرها خطًّا. */
	.tf-footer-about p{font-size:13px;line-height:1.75}
	.tf-copy,.tf-footer-menu a{font-size:12px}
	.tf-topbar,.tf-tagline{font-size:12px}
	/* 16px حدٌّ لا تفضيل: سفاري على آيفون يُكبّر الصفحة تلقائيًّا عند التركيز
	   في حقل خطّه أصغر، ولا يعيدها. كان 13.3px (افتراض المتصفّح، بلا تصريح). */
	.tf-search input{font-size:16px}

	/* --- 2) تقليص اللافتة: 248 بكسل (31٪ من الشاشة) قبل أول خبر ---
	   الشعار كان 76px ارتفاعًا و343 عرضًا = عرض الهاتف كاملًا، وobject-fit
	   يحشر الرسم داخل الصندوق فيضيع جزء من الارتفاع فراغًا. */
	.tf-logo img{height:44px}
	.tf-footer-about .tf-logo img{height:38px}
	.tf-header{min-height:0;padding:10px 0}
	/* أيقونات التواصل مكرّرة في الفوتر، فإخفاؤها هنا يعيد الشريط سطرًا واحدًا */
	.tf-topbar .tf-socials{display:none}

	/* --- 5) أهداف اللمس 44×44 ---
	   تُوسَّع منطقة اللمس لا الشكل: النقطة تبقى 9 بكسل مرئية و44 ملموسة. */
	/* min لا padding: محتوى الزرّ خطّان بسُمك 2 بكسل، فالحشو وحده بلغ 24 */
	.tf-nav-toggle{min-width:44px;min-height:44px;padding:0 12px}
	.tf-hero-dot{position:relative}
	.tf-hero-dot::after{content:"";position:absolute;inset:-17px -8px}
	/* بأولوية أعلى: قاعدة 860px تأتي بعد هذه الكتلة في الملف فتغلبها بالتساوي */
	.tf-hero .tf-hero-arrow{width:40px;height:40px}
	.tf-footer .tf-social{width:36px;height:36px}
	.tf-footer-menu a{padding:9px 0;display:inline-block}
	.tf-search button{min-width:40px;min-height:40px}

	/* --- 4) أربعة عروض للقائمة، يقودها خيار «نوع القائمة» ---
	   كانت أصناف tf-mobile-menu-* تُطبع في body بلا قاعدة واحدة تقابلها، فكان
	   الخيار يَعِد بثلاثة عروض ولا يُحدث فرقًا — واللوحة تُفتح حيثما هي في
	   المستند: قِيس أن من ضغط «الأقسام» وهو في أسفل الصفحة رآها تظهر 2184
	   بكسل فوق الشاشة، أي لم يرَ شيئًا.

	   فالمشترك بين العروض الأربعة أنها position:fixed — وهذا وحده يُصلح العطل.
	   والفرق بينها موضعها ومقاسها لا أكثر. */

	/* ارتفاع الشريط السفلي في متغيّر: اللوحة السفلية تستند إليه، ولو تغيّر في
	   مكان واحد انزلقت تحته أو طفت فوقه */
	:root{--tf-bottombar-h:60px}
	.tf-menu-open{overflow:hidden}
	.tf-sheet-backdrop{position:fixed;inset:0;z-index:70;background:rgba(6,13,9,.55)}
	.tf-sheet-backdrop[hidden]{display:none}

	/* المشترك */
	.tf-mobile-panel{position:fixed;z-index:80;overflow-y:auto;-webkit-overflow-scrolling:touch;
		box-shadow:0 0 34px rgba(0,0,0,.4);padding:6px 16px 14px}
	.tf-sheet-close{position:absolute;inset-block-start:8px;inset-inline-end:10px;
		width:40px;height:40px;background:none;border:0;cursor:pointer;color:#cfe6d8;padding:0}
	.tf-sheet-close::before,.tf-sheet-close::after{content:"";position:absolute;inset-block-start:19px;
		inset-inline-start:10px;width:20px;height:2px;background:currentColor}
	.tf-sheet-close::before{transform:rotate(45deg)}
	.tf-sheet-close::after{transform:rotate(-45deg)}
	.tf-sheet-close:hover{color:#fff}
	/* المقبض بديل الزرّ حيث تكفي الإيماءة، والزرّ بديله حيث لا ستارة ظاهرة */
	.tf-mobile-panel::before{content:"";display:block;width:38px;height:4px;border-radius:99px;
		background:rgba(255,255,255,.28);margin:6px auto 10px}

	/* 1) لوحة سفلية — أقرب إلى الإبهام، ويبقى الشريط السفلي ظاهرًا تحتها */
	.tf-mobile-menu-sheet .tf-mobile-panel{inset-inline:0;
		bottom:calc(var(--tf-bottombar-h,60px) + env(safe-area-inset-bottom,0px));
		max-height:62vh;border-top:1px solid rgba(255,255,255,.12);border-radius:14px 14px 0 0}
	body:not(.tf-has-bottombar).tf-mobile-menu-sheet .tf-mobile-panel{bottom:env(safe-area-inset-bottom,0px)}
	.tf-mobile-menu-sheet .tf-sheet-close{display:none}

	/* 2) منزلقة من الجانب — من جهة زرّ القائمة.
	   inset-inline-start لا end: في RTL تعني اليمين، وهناك الزرّ. وكتبتها end
	   أولًا فدخلت اللوحة من اليسار بعيدًا عن الإصبع الذي فتحها. */
	.tf-mobile-menu-slide .tf-mobile-panel{inset-block:0;inset-inline-start:0;inset-inline-end:auto;
		width:min(82vw,330px);border-radius:0;padding-block-start:52px;
		border-inline-end:1px solid rgba(255,255,255,.12)}
	.tf-mobile-menu-slide .tf-mobile-panel::before{display:none}

	/* 3) ملء الشاشة — لا ستارة تُرى، فالزرّ هو المخرج الوحيد */
	.tf-mobile-menu-full .tf-mobile-panel{inset:0;border-radius:0;padding-block-start:56px;
		padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
	.tf-mobile-menu-full .tf-mobile-panel::before{display:none}
	.tf-mobile-menu-full .tf-mobile-menu a{font-size:16px;padding:14px 4px}

	/* 4) منسدلة من الأعلى — من أعلى الشاشة لا أعلى المستند، وإلا عاد العطل */
	.tf-mobile-menu-dropdown .tf-mobile-panel{inset-block-start:0;inset-inline:0;bottom:auto;
		max-height:76vh;border-radius:0 0 14px 14px;padding-block-start:52px;
		border-bottom:1px solid rgba(255,255,255,.12)}
	.tf-mobile-menu-dropdown .tf-mobile-panel::before{display:none}

	/* --- 3) الشريط السفلي: الزرّ النشط --- */
	.tf-bottombar a.is-current{color:#fff}
	.tf-bottombar a.is-current .tf-bi{opacity:1;stroke:var(--tf-primary)}
	.tf-bottombar-menu[aria-expanded="true"]{color:#fff}
	.tf-bottombar-menu[aria-expanded="true"] .tf-bi{stroke:var(--tf-primary);opacity:1}

	/* --- 6) حافّة آيفون السفلية --- */
	.tf-has-bottombar .tf-bottombar{padding-bottom:env(safe-area-inset-bottom,0px)}
	.tf-has-bottombar .tf-footer{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
}

:root{
	--tf-i-home:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5L12 3l9 7.5'/%3E%3Cpath d='M5 9.8V20h14V9.8'/%3E%3Cpath d='M9.5 20v-5.5h5V20'/%3E%3C/svg%3E");
	--tf-i-news:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='2'/%3E%3Cpath d='M7 9h6M7 13h10M7 16h10'/%3E%3C/svg%3E");
	--tf-i-menu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
	--tf-i-clock:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5.5l3.5 2'/%3E%3C/svg%3E");
	--tf-ico-search:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E");
}

/* ترقيم سابق/تالي — بديل الأرقام التي تتطلّب عدّ الأرشيف كلّه */
.tf-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0}
.tf-pager a{display:inline-block;background:#fff;border:1px solid var(--tf-line);border-radius:8px;padding:9px 18px;font-weight:600}
.tf-pager a:hover{background:var(--tf-primary);border-color:var(--tf-primary);color:#fff;text-decoration:none}
.tf-pager-page{color:var(--tf-muted);font-size:14px}

/* ===========================================================
   الرئيسية بمقاسات التصميم المرجعي
   العرض 1480 · الهيدر 150 · القائمة 56 · العمود الجانبي 340
   =========================================================== */
.tf-home{display:flex;flex-direction:column;gap:26px}

/* الصفّ العلوي: بطاقتان · الخبر الرئيسي · عمود البيانات */
/* في RTL العمود 1 هو الأيمن: [يمين: بطاقتان] [وسط: الخبر الرئيسي] [يسار: البيانات]
   وتثبيت grid-row لكل عنصر يمنع نزول أحدها إلى صفّ جديد */
/* الرئيسية: عمود بيانات ثابت على اليمين لكامل الصفحة، والباقي إلى يساره */
.tf-home{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;align-items:start}
/* ترتيب صريح: عمود البيانات يسارًا والمحتوى يمينًا كما في المرجع.
   بلا تصريح يأخذ كلٌّ مكانه بترتيب HTML، وعمود البيانات يسبق المحتوى
   في الشيفرة ليصل إليه قارئ الشاشة مبكرًا، فينقلب العمودان. */
.tf-home-main{display:grid;gap:26px;min-width:0;grid-column:1;grid-row:1}
.tf-live{grid-column:2;grid-row:1}

/* صفّ الخبر الرئيسي: الخبر ثم بطاقتان بارتفاعه نفسه.
   الارتفاع ثابت مرن لا مشتقّ من النسبة: لو اشتُقّ لحسب المتصفّح العرض من
   الارتفاع والارتفاع من العرض معًا فطفح العمود. الصور تُقصّ بـ object-fit. */
.tf-hero-row{display:grid;grid-template-columns:380px minmax(0,1fr);gap:12px;align-items:stretch;
	--tf-hero-h:clamp(320px,27vw,420px)}
.tf-hero,.tf-hero-side{height:var(--tf-hero-h)}
.tf-hero{grid-column:2;grid-row:1;border-radius:12px;overflow:hidden;position:relative;background:#0b1510}
/* ===== سلايدر الخبر الرئيسي ===== */
/* الشرائح متراكبة والانتقال تلاشٍ لا إزاحة: الإزاحة تحتاج عكس إشارتها في
   RTL وتنكسر عند تغيير اتجاه الصفحة، والتلاشي لا اتجاه له. */
.tf-slides{position:relative;height:100%}
.tf-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .45s ease}
.tf-slide.is-active{opacity:1;visibility:visible}
@media (prefers-reduced-motion:reduce){.tf-slide{transition:none}}

/* أزرار التنقّل تظهر فقط بعد أن تُشغّل الجافاسكربت السلايدر؛
   بغير ذلك تبقى أزرارًا لا تفعل شيئًا */
.tf-hero-nav{display:none}
.tf-hero.is-ready .tf-hero-nav{display:flex;align-items:center;gap:10px;
	position:absolute;inset-block-end:18px;inset-inline-end:22px;z-index:3}

.tf-hero-arrow{width:34px;height:34px;border-radius:50%;border:0;cursor:pointer;flex:none;
	display:grid;place-items:center;background:rgba(255,255,255,.22);backdrop-filter:blur(3px);
	transition:background .2s ease}
.tf-hero-arrow:hover{background:var(--tf-primary)}
.tf-hero-arrow:focus-visible{outline:2px solid #fff;outline-offset:2px}
.tf-hero-arrow::before{content:"";width:17px;height:17px;background:#fff;
	-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center/contain no-repeat}
/* الشيفرون يشير إلى اليسار افتراضًا: «التالي» في صفحة تسير يمينًا→يسارًا،
   و«السابق» يُقلب أفقيًا ليشير إلى اليمين */
.tf-hero-prev::before{transform:scaleX(-1)}

.tf-hero-dots{display:flex;align-items:center;gap:7px}
.tf-hero-dot{width:9px;height:9px;padding:0;border:0;border-radius:50%;cursor:pointer;
	background:rgba(255,255,255,.45);transition:background .2s ease,width .2s ease}
.tf-hero-dot:hover{background:rgba(255,255,255,.75)}
.tf-hero-dot.is-active{background:var(--tf-primary);width:22px;border-radius:999px}
.tf-hero-dot:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* النصّ ينحسر عن مساحة الأزرار حتى لا يمرّ سطرٌ تحتها فيختفي نصفه */
.tf-hero.is-ready .tf-hero-excerpt,
.tf-hero.is-ready .tf-hero-title{padding-inline-end:160px}
.tf-hero-link{display:block;position:relative;color:#fff;height:100%}
.tf-hero img{display:block;width:100%;height:100%;object-fit:cover}
/* النصّ فوق الصورة: يُقصّ إلى سطرين حتى لا يتجاوز ارتفاع الصورة فيطفح فوقها */
.tf-hero-body{position:absolute;inset-inline:0;bottom:0;padding:22px;background:linear-gradient(transparent,rgba(5,12,8,.5) 38%,rgba(5,12,8,.94))}
.tf-hero-title{font-size:27px;line-height:1.32;margin:9px 0 7px;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.5);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tf-hero-excerpt{margin:0;font-size:14.5px;line-height:1.7;color:#d7e4dc;max-width:70ch;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* البطاقتان الجانبيتان تملآن ارتفاع الخبر الرئيسي نفسه فيستوي الصفّ */
.tf-hero-side{grid-column:1;grid-row:1;display:grid;grid-template-rows:1fr 1fr;gap:14px}
.tf-hero-mini{position:relative;border-radius:12px;overflow:hidden;background:#0b1510;min-height:0}
.tf-hero-mini a{display:block;height:100%}
.tf-hero-mini img{display:block;width:100%;height:100%;object-fit:cover}
.tf-hero-mini-body{position:absolute;inset-inline:0;bottom:0;padding:12px 14px;background:linear-gradient(transparent,rgba(5,12,8,.55) 40%,rgba(5,12,8,.94))}
.tf-hero-mini h3{font-size:15.5px;line-height:1.45;margin:6px 0 0;color:#fff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.tf-badge{display:inline-block;background:var(--tf-cat,var(--tf-primary));color:#fff;font-size:12px;font-weight:700;padding:4px 12px;border-radius:5px}
.tf-badge-sm{font-size:11px;padding:2px 9px}

/* عمود البيانات الرياضية */
/* عمود البيانات: ارتفاعه من محتواه، فلا قصّ ولا تمرير داخلي.
   ويُلصق أثناء التمرير فيبقى ظاهرًا بدل أن يترك عمودًا أبيض تحته في
   الأيام قليلة المباريات. الشرط على ارتفاع النافذة مقصود: لو كان
   العمود أطول منها لتعذّر الوصول إلى أسفله وهو ملصوق. */
@media (min-height:960px){
	.tf-live{position:sticky;top:calc(var(--tf-nav-h,54px) + 12px);align-self:start}
}
/* عمود البيانات: ارتفاعه من محتواه، فلا قصّ ولا تمرير داخلي */
.tf-live{display:grid;gap:16px;align-content:start}
.tf-panel{background:#fff;border:1px solid var(--tf-line);border-radius:12px;overflow:hidden;box-shadow:0 1px 3px rgba(16,32,24,.10)}
.tf-panel-title{background:var(--tf-dark);color:#fff;margin:0;padding:13px 16px;font-size:16px}
.tf-panel-empty{margin:0;padding:18px 16px;color:var(--tf-muted);font-size:13.5px;line-height:1.8}

/* صفحة أقسام بلا عمود بيانات: المحتوى يأخذ العرض كاملًا */
.tf-home-wide{grid-template-columns:minmax(0,1fr)}
.tf-page-title{font-size:26px}
.tf-page-intro{margin:0 0 20px}
.tf-page-intro>*:first-child{margin-top:0}
.tf-page-intro>*:last-child{margin-bottom:0}

/* غلاف الأقسام. كانت الأقسام أبناءً مباشرين لشبكة tf-home-main فتأخذ
   فراغها، وصارت كلّها ابنًا واحدًا — فلولا هذا السطر لالتصق قسم بقسم. */
.tf-sections{display:grid;gap:26px;min-width:0}

/* شبكة أحدث الأخبار — أربعة أعمدة كما في المرجع */
.tf-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}

.tf-more{text-align:center;margin:22px 0 0}
/* أثناء الجلب: الزرّ يبقى بمقاسه فلا تقفز الصفحة تحت المؤشّر عند تغيّر نصّه */
.tf-btn.is-loading{opacity:.65;cursor:progress;pointer-events:none}
.tf-more-done{color:var(--tf-muted);font-size:13.5px}
/* البطاقة الملحقة تأخذ التركيز برمجيًّا، ولا داعي لإطار تركيز حولها */
.tf-grid>.tf-card[tabindex="-1"]:focus{outline:none}

/* ---------- تخطيطات أقسام الرئيسية الإضافية ---------- */

/* شريط أفقي يُمرَّر: البطاقة نفسها بعرض ثابت، والتمرير على الغلاف.
   grid-auto-flow:column بدل flex كي ترث البطاقات تمدّد الارتفاع نفسه،
   فلا يقصُر صندوق عنوانه سطر واحد عن جاره ذي السطرين. */
/* min-width:0 على القسم نفسه لا على الشريط وحده: الأقسام أبناء شبكة
   (tf-sections)، وابن الشبكة أقلّ عرضه محتواه، فكان الشريط يتمدّد بعرض
   بطاقاته كلّها ويدفع الصفحة إلى تمرير أفقي بدل أن يُمرَّر هو. */
.tf-sections>.tf-section{min-width:0}
.tf-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(230px,260px);gap:18px;min-width:0;
	overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;
	padding-bottom:8px;scrollbar-width:thin}
.tf-strip>.tf-card{scroll-snap-align:start}

/* قائمة مرقّمة: الرقم عدّاد CSS لا نصّ مطبوع — الدفعة التي يُلحقها زرّ
   «المزيد» لا تعرف كم سبقها، والعدّاد يعيد الحساب وحده بعد كل إضافة. */
.tf-rank{counter-reset:tfrank;display:grid;gap:10px}
.tf-rank-item{background:var(--tf-card);border:1px solid var(--tf-line);border-radius:var(--tf-radius);overflow:hidden}
.tf-rank-link{display:flex;align-items:center;gap:12px;padding:8px 10px;color:inherit}
.tf-rank-link:hover{text-decoration:none;background:#f0f7f3}
.tf-rank-num{counter-increment:tfrank;flex:none;min-width:30px;text-align:center;
	font-size:21px;font-weight:800;color:var(--tf-line);font-variant-numeric:tabular-nums;line-height:1}
.tf-rank-num::before{content:counter(tfrank)}
/* الثلاثة الأولى بلون القالب: الترتيب هو المقصود من هذا التخطيط */
.tf-rank-item:nth-child(-n+3) .tf-rank-num{color:var(--tf-primary)}
.tf-rank-thumb{flex:none;width:88px;height:58px;object-fit:cover;border-radius:6px;display:block}
.tf-rank-body{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.tf-rank-title{font-size:15px;font-weight:700;line-height:1.6;color:#16221b;
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tf-rank-link:hover .tf-rank-title{color:var(--tf-link)}

/* قسم محتوى مكتوب: إعلان أو HTML. الوسوم من طرف ثالث فلا نفترض مقاسها —
   نمنع الخروج عن عرض العمود وحده، ولا نفرض عليها شكلًا. */
.tf-section-content{min-width:0}
.tf-section-html{max-width:100%;overflow-x:auto}
.tf-section-html img,.tf-section-html iframe{max-width:100%}
.tf-section-html>*:first-child{margin-top:0}
.tf-section-html>*:last-child{margin-bottom:0}

@media(max-width:782px){
	/* الشريط يضيق فتظهر بطاقتان ونصف، وهو ما يُفهم منه أن وراءه مزيدًا */
	.tf-strip{grid-auto-columns:minmax(200px,220px);gap:12px}
	.tf-rank-thumb{width:74px;height:50px}
	.tf-rank-title{font-size:14px}
	.tf-rank-num{font-size:18px;min-width:24px}
}

/* شريط الرياضات */
.tf-sports{display:grid;grid-template-columns:repeat(var(--tf-sports-cols,8),minmax(0,1fr));gap:10px;background:#fff;border:1px solid var(--tf-line);border-radius:12px;padding:14px;box-shadow:0 1px 3px rgba(16,32,24,.10)}
.tf-sport{display:flex;flex-direction:column;align-items:center;gap:9px;padding:12px 4px;border-radius:10px;color:#16221b;font-size:13.5px;font-weight:600;text-align:center}
.tf-sport:hover{background:#f0f7f3;text-decoration:none;color:var(--tf-link)}
/* المرجع يضع الأيقونة مصمتة على خلفية البطاقة بلا قرص خلفها، وبحجم
   يقارب ضعف النصّ. القرص الفاتح كان يصغّرها ويُضعف تباينها. */
.tf-sport-icon{width:30px;height:30px;display:grid;place-items:center;flex:none}
/* الأيقونة وسمٌ داخل الرابط لا قناع في CSS: تتبع عنصرها عند إعادة الترتيب،
   ويرث لونها currentColor فيكفي تلوين الرابط. */
.tf-sport-icon svg{width:30px;height:30px;display:block}
.tf-sport:hover .tf-sport-icon{color:var(--tf-primary)}


@media(max-width:1200px){
	.tf-home{grid-template-columns:minmax(0,1fr) 300px;gap:16px}
	.tf-hero-row{grid-template-columns:300px minmax(0,1fr)}
	.tf-grid-4{grid-template-columns:repeat(3,minmax(0,1fr))}
	.tf-sports{grid-template-columns:repeat(var(--tf-sports-cols-md,5),minmax(0,1fr))}
}
@media(max-width:1000px){
	/* عمود البيانات ينزل تحت المحتوى في صفّ من صندوقين */
	.tf-home{grid-template-columns:1fr}
	.tf-home-main{grid-column:1;grid-row:1}
	.tf-live{grid-column:1;grid-row:2;grid-template-columns:1fr 1fr}
}
@media(max-width:860px){
	.tf-hero-row{grid-template-columns:1fr}
	.tf-hero,.tf-hero-side{grid-column:1;grid-row:auto}
	/* كلٌّ بارتفاع محتواه، بلا تمرير داخلي ولا قصّ */
	.tf-hero-side{height:auto;grid-template-rows:auto}
	.tf-hero{height:auto;aspect-ratio:16/10}
	/* على الجوّال لا متّسع لنصّ بجانب الأزرار: نُنزل الأزرار تحت النصّ
	   بدل أن نحشر العنوان في عمود ضيّق */
	.tf-hero.is-ready .tf-hero-excerpt,
	.tf-hero.is-ready .tf-hero-title{padding-inline-end:0}
	.tf-hero.is-ready .tf-hero-body{padding-block-end:50px}
	.tf-hero-arrow{width:30px;height:30px}
	.tf-hero-mini{min-height:170px}
	.tf-live{grid-template-columns:1fr}

	/* ===== الجوّال: المباريات فوق الأخبار، والترتيب يبقى مكانه =====
	   كان عمود البيانات كلّه ينزل أسفل الصفحة، فلا يرى قارئ الجوّال مباريات
	   اليوم إلا بعد تمرير كل الأخبار — وهي أسرع ما يتقادم في صحيفة رياضية.

	   اللوحتان داخل aside واحد، ولا يستطيع CSS إخراج ابنٍ من أبيه. فيُلغى
	   صندوق الأب بـdisplay:contents، فتصير اللوحتان ابنتين مباشرتين لشبكة
	   الصفحة ويعمل عليهما order. ولا تكرار في الوسم: لوحة واحدة تُطبع مرّة
	   وتُنقل بالعرض لا بالنسخ — فلا بيانات تُجلب مرّتين ولا عنوان يُقرأ مرّتين.

	   والترتيب معلّق على صنف لكل لوحة لا على nth-child: ترتيب الطباعة في
	   البلجن قد يتبدّل، والنيّة هنا «المباريات» لا «الأولى». */
	/* align-items:stretch صريحًا: قاعدة الشبكة أعلاه تضع start، وهي في عمود
	   مرن تعني «بعرض المحتوى» لا «بعرض الصفحة» — فانكمشت اللوحة إلى 184 بكسل
	   حين صار محتواها شبكةً مرنة بدل جدول يملأ العرض. */
	.tf-home{display:flex;flex-direction:column;gap:22px;align-items:stretch}
	.tf-live{display:contents}
	.tf-live>.tf-sp-matches{order:-1}
	.tf-home-main{order:0}
	.tf-live>.tf-sp-standings{order:1}

	.tf-hero-title{font-size:21px}
	.tf-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
	.tf-sports{grid-template-columns:repeat(var(--tf-sports-cols-sm,4),minmax(0,1fr));gap:4px}
	.tf-sport{font-size:11.5px}
}

/* المساحات الإعلانية: مركزة وبهوامش ثابتة، ولا شيء إطلاقًا حين تكون فارغة */
.tf-ad{display:flex;justify-content:center;align-items:center;margin:18px 0}
.tf-ad:empty{display:none;margin:0}
.tf-ad img{max-width:100%;height:auto}
.tf-ad-above_header,.tf-ad-below_nav{margin:0;padding:12px 16px;background:#eef1ef}
.tf-ad-in-article{margin:22px 0;clear:both}
.tf-ad-grid{min-height:160px;background:#eef1ef;border-radius:var(--tf-radius);overflow:hidden}
.tf-ad-mobile{display:none}
@media(max-width:860px){
	.tf-has-bottombar .tf-ad-mobile{display:flex;position:fixed;inset-inline:0;bottom:56px;z-index:55;
		background:#fff;border-top:1px solid var(--tf-line);margin:0;padding:4px}
}
