/* ═══════════════════════════════════════════════════════════════════════════
   ثيم «rent» — المحتوى والمعلومات (كل ما يقرأه الزائر).
   تحمّلها: content/blog/{index,show}.php · content/page.php · content/news.php
            info/{faq,contact,affiliate,page}.php

   قواعد الورشة المطبّقة هنا:
   • الأقسام والوسوم روابط بخطّ تحتها، لا كبسولات بإطار (رفضها المالك صراحة).
   • حالة الإعلان = نقطة لون + نصّ (‎.rt-status‎ في ‎components.css‎).
   • هرم تيبوغرافي حقيقي: العنوان ثقيل، المتن 1.75 سطراً، لا ألوان مزاجية.
   • بلا تدرّجات ولا ضباب ولا هالة؛ الفواصل خطوط شعرية ‎1px‎.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ‎.rt-page-head p‎ في ‎components.css‎ أثقل وزناً من ‎.rt-lead‎ (0,1,1 ضدّ 0,1,0):
   نعيد قياس السطر التعريفي داخل رأس الصفحة صراحةً. */
.rt-page-head .rt-lead { font-size: var(--rt-fs-l); line-height: 1.7; margin-top: var(--rt-space-2); }

/* المتن القارئ (`.rt-prose`) **كلّه في `base.css`** الآن: صار مشتركاً مع RD2/RD3
   (`wallet/pay.php` · `products/show.php` · `sitekit/popup.php`) ⇒ تعريف واحد لا نصفان. */

/* ───────── أقسام: روابط بخطّ تحتها ───────── */
.rt-cats {
    display: flex; flex-wrap: wrap;
    gap: var(--rt-space-2) var(--rt-space-5);
    margin: 0 0 var(--rt-space-6);
    padding-bottom: var(--rt-space-4);
    border-bottom: 1px solid var(--rt-line);
    font-size: var(--rt-fs-s);
}
.rt-cat {
    display: inline-flex; align-items: center; gap: var(--rt-space-1);
    padding-bottom: 2px;
    color: var(--rt-muted);
    font-weight: 700;
    border-bottom: 2px solid transparent;
}
.rt-cat:hover { color: var(--rt-text); border-bottom-color: var(--rt-line-strong); }
.rt-cat.is-on { color: var(--rt-text); border-bottom-color: var(--rt-primary); }
.rt-cat-n { color: var(--rt-muted); font-weight: 400; font-size: var(--rt-fs-xs); }
.rt-cat.is-on .rt-cat-n { color: var(--rt-primary-text); }

/* ───────── فهرس المدوّنة ───────── */
.rt-blog { padding-block: 0 var(--rt-space-8); }

.rt-posts { display: grid; gap: var(--rt-space-6); }
@media (min-width: 680px)  { .rt-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .rt-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.rt-post { display: flex; flex-direction: column; min-width: 0; }
.rt-post-media {
    display: block; overflow: hidden;
    margin-bottom: var(--rt-space-3);
    border: 1px solid var(--rt-line); border-radius: var(--rt-radius-m);
    background: var(--rt-surface-2);
    /* نسبة ثابتة ⇒ لا قفزة تخطيط قبل تحميل الصورة */
    aspect-ratio: 16 / 9;
}
.rt-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-post-ph {
    display: block; width: 100%; height: 100%;
    /* نقش خفيف جداً بدل صورة نائبة ملوّنة */
    background:
        repeating-linear-gradient(135deg, var(--rt-line) 0 1px, transparent 1px 9px);
    opacity: .7;
}
.rt-post-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.rt-post-top {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: var(--rt-space-1) var(--rt-space-3);
    margin: 0 0 var(--rt-space-2);
    font-size: var(--rt-fs-xs);
}
.rt-post-cat { color: var(--rt-primary-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rt-post-cat:hover { text-decoration-thickness: 2px; }
.rt-post-date { color: var(--rt-muted); font-variant-numeric: tabular-nums; }
.rt-post-title { margin: 0; font-size: var(--rt-fs-l); line-height: 1.4; }
.rt-post-title a:hover { color: var(--rt-primary-text); }
.rt-post-ex { margin: var(--rt-space-2) 0 0; color: var(--rt-muted); font-size: var(--rt-fs-s); line-height: 1.7; }

/* ───────── المقال ───────── */
.rt-article { padding-block: 0 var(--rt-space-8); }
.rt-article .rt-page-head h1 {
    margin: 0;
    font-size: clamp(1.6rem, 1.05rem + 1.9vw, 2.3rem);
    font-weight: 800;
    line-height: 1.22;
}
.rt-art-meta {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: var(--rt-space-1) var(--rt-space-3);
    margin: 0 0 var(--rt-space-3);
    color: var(--rt-muted);
    font-size: var(--rt-fs-xs);
}
.rt-art-meta time { font-variant-numeric: tabular-nums; }
.rt-art-cover { margin: var(--rt-space-5) 0 var(--rt-space-6); }
.rt-art-cover img {
    width: 100%; height: auto; display: block;
    border: 1px solid var(--rt-line); border-radius: var(--rt-radius-m);
}
.rt-art-alt { margin: var(--rt-space-6) 0 0; font-size: var(--rt-fs-s); }
.rt-art-alt a { color: var(--rt-primary-text); text-decoration: underline; text-underline-offset: 3px; }
.rt-related { border-top: 1px solid var(--rt-line); padding-top: var(--rt-space-6); }

/* ───────── صفحة قانونية ───────── */
.rt-legal { padding-block: 0 var(--rt-space-8); }
.rt-legal-more { margin-top: var(--rt-space-7); padding-top: var(--rt-space-5); border-top: 1px solid var(--rt-line); }
.rt-legal-more h2 { margin: 0 0 var(--rt-space-3); font-size: var(--rt-fs-m); }
.rt-legal-more ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--rt-space-2); font-size: var(--rt-fs-s); }
.rt-legal-more a { color: var(--rt-primary-text); text-decoration: underline; text-underline-offset: 3px; }

/* ───────── الإعلانات ───────── */
.rt-news { padding-block: 0 var(--rt-space-8); }
.rt-news-list { margin: var(--rt-space-6) 0 0; padding: 0; list-style: none; }
.rt-news-item { padding-block: var(--rt-space-5); border-top: 1px solid var(--rt-line); }
.rt-news-item:first-child { border-top: 0; padding-top: 0; }
.rt-news-item.is-expired { opacity: .62; }
/* «جديد» للمسجّل: خطّ عمودي على حافّة البند، لا شارة دائرية */
.rt-news-item.is-new { border-inline-start: 2px solid var(--rt-primary); padding-inline-start: var(--rt-space-4); }
.rt-news-top {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: var(--rt-space-1) var(--rt-space-4);
    margin: 0 0 var(--rt-space-2);
    font-size: var(--rt-fs-xs);
}
.rt-news-top time { color: var(--rt-muted); font-variant-numeric: tabular-nums; }
.rt-news-new { color: var(--rt-primary-text); font-weight: 700; }
.rt-news-title { margin: 0 0 var(--rt-space-2); font-size: var(--rt-fs-l); line-height: 1.4; }
.rt-news-body { max-width: none; font-size: var(--rt-fs-s); line-height: 1.8; }
.rt-news-body > :last-child { margin-bottom: 0; }

/* ───────── الأسئلة الشائعة ───────── */
.rt-faqp { padding-block: 0 var(--rt-space-8); }
.rt-faq-search { margin: 0 0 var(--rt-space-5); max-width: 420px; }
/* الأكورديون نفسه (‎.rt-faq‎ و‎.rt-faq-x‎) في ‎components.css‎ — مشترك مع الرئيسية وصفحات الهبوط.
   هنا ما يخصّ صفحة ‎/faq‎ وحدها: ‎info.js‎ يُخفي البنود غير المطابقة بـ‎hidden‎. */
.rt-faq .inf-faq-item[hidden] { display: none; }

.rt-faq-cta {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--rt-space-4);
    margin-top: var(--rt-space-7);
    padding: var(--rt-space-5);
    background: var(--rt-surface-2);
    border-radius: var(--rt-radius-m);
}
.rt-faq-cta p { margin: 0; flex: 1 1 220px; font-size: var(--rt-fs-m); font-weight: 700; }

/* ───────── اتصل بنا ───────── */
.rt-ctc { padding-block: 0 var(--rt-space-8); }

/* قناة لكل صفّ، وصفّان على الشاشة الأوسع. الفواصل خطوط على البنود نفسها لا فراغات في الشبكة:
   فراغ 1px فوق خلفية ملوّنة يترك مربّعاً مصمتاً حين يكون العدد فردياً. */
.rt-chans {
    display: grid;
    margin: var(--rt-space-5) 0 var(--rt-space-6);
    background: var(--rt-surface);
    border: 1px solid var(--rt-line);
    border-radius: var(--rt-radius-m);
    overflow: hidden;
}
.rt-chan {
    display: flex; align-items: center; gap: var(--rt-space-3);
    min-width: 0;
    padding: var(--rt-space-4);
    border-top: 1px solid var(--rt-line);
}
.rt-chan:first-child { border-top: 0; }
.rt-chan:hover { background: var(--rt-surface-2); }
.rt-chan--hours:hover { background: none; }
@media (min-width: 560px) {
    .rt-chans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* البند الأوّل في كل صفّ يخسر الخطّ العلوي فقط في الصفّ الأوّل */
    .rt-chan:nth-child(2) { border-top: 0; }
    .rt-chan:nth-child(even) { border-inline-start: 1px solid var(--rt-line); }
}
.rt-chan .sk-ico { flex: none; width: 18px; height: 18px; color: var(--rt-muted); }
.rt-chan:hover .sk-ico { color: var(--rt-primary-text); }
.rt-chan-t { display: block; min-width: 0; }
.rt-chan-t b { display: block; font-size: var(--rt-fs-s); }
.rt-chan-t small { display: block; margin-top: 2px; color: var(--rt-muted); font-size: var(--rt-fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rt-ctc-note { margin: 0 0 var(--rt-space-5); font-size: var(--rt-fs-s); }
/* النموذج أضيق من عمود القراءة: حقل بعرض 780px متعب على الحاسوب */
.rt-ctc-form { margin-top: var(--rt-space-6); max-width: 580px; }
.rt-ctc-form .rt-sec-head { margin-bottom: var(--rt-space-2); }
.rt-ctc-form .rt-sec-head h2 { font-size: var(--rt-fs-l); }
.rt-ctc-form .rt-textarea { min-height: 150px; resize: vertical; }
.rt-cap-wrap { margin-bottom: var(--rt-space-4); }
/* رسالة خطأ الحقل — نفس صنف الوحدة (`sk-ferr`) الذي يبنيه المتحكّم */
.sk-ferr { display: block; margin-top: var(--rt-space-1); color: var(--rt-danger); font-size: var(--rt-fs-xs); }

/* ───────── الإحالة ───────── */
.rt-aff { padding-block: 0 var(--rt-space-8); }
.rt-aff-head { margin-bottom: var(--rt-space-6); }
.rt-aff-head h1 { margin: 0; font-size: var(--rt-fs-xl); }
/* النسبة هي البطل: رقم كبير، والجملة تحته تشرحه */
.rt-aff-big {
    margin: var(--rt-space-2) 0 var(--rt-space-3);
    color: var(--rt-primary-text);
    font-size: clamp(2.6rem, 1.4rem + 5vw, 4.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

/* ‎.rt-steps‎ مكوّن مشترك في ‎components.css‎ (يستعمله RD2 وRD3 أيضاً) — لا نعيد تعريفه هنا:
   إعادة التعريف بترقيم مطلق كسرت شبكته (‎grid-column: 2‎) وأنزلت الرقم إلى الجهة الخاطئة في RTL.
   هنا ترويسة القائمة وحدها. */
.rt-aff .rt-steps { margin-bottom: var(--rt-space-6); }
.rt-aff .rt-steps b { display: block; font-size: var(--rt-fs-m); }
.rt-aff .rt-steps span { display: block; margin-top: var(--rt-space-1); color: var(--rt-muted); font-size: var(--rt-fs-s); line-height: 1.7; }

.rt-facts { margin: 0 0 var(--rt-space-6); padding: 0; list-style: none; display: grid; gap: var(--rt-space-3); }
.rt-facts > li {
    position: relative; padding-inline-start: var(--rt-space-4);
    color: var(--rt-muted); font-size: var(--rt-fs-s); line-height: 1.7;
}
.rt-facts > li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .62em;
    width: 5px; height: 5px; border-radius: 50%; background: var(--rt-primary);
}
.rt-aff-cta { margin: 0; }
