/* أنماط المحتوى الغني للدراسات والمقالات (يحمله الموقع العام ومعاينة لوحة التحكم).
   كلها داخل .rc-body حتى لا تمس بقية الصفحات. ألوان الهوية: بازلت #1C1D20، كلس #FAF6F0، نحاسي #C2703E. */
.rc-body { --rc-accent: var(--accent-2, #C2703E); --rc-text: var(--text, #141414); --rc-dim: var(--text-dim, #5C5852); --rc-line: var(--card-border, #E8DDCE); --rc-soft: var(--bg-elevated, #EDE9E4); }
.rc-body p { color: var(--rc-dim); font-size: 1rem; line-height: 1.95; margin: 0 0 18px; }
.rc-body strong { color: var(--rc-text); font-weight: 700; }
.rc-body a { color: var(--rc-accent); text-decoration: underline; text-underline-offset: 3px; }
.rc-body .rc-mark { background: rgba(194, 112, 62, 0.18); color: inherit; padding: 0 3px; border-radius: 3px; }
.rc-body .study-h { color: var(--rc-text); font-weight: 700; line-height: 1.5; margin: 38px 0 12px; }
.rc-body h2.study-h { font-size: 1.4rem; padding-bottom: 8px; border-bottom: 2px solid var(--rc-accent); display: inline-block; }
.rc-body h3.study-h { font-size: 1.12rem; }
.rc-body .study-list { color: var(--rc-dim); line-height: 2; margin: 0 0 18px; padding-inline-start: 24px; }
.rc-body .study-list li::marker { color: var(--rc-accent); font-weight: 700; }
.rc-body .rc-hr { border: 0; height: 1px; background: var(--rc-line); margin: 32px 0; }

/* صور وفيديو */
.rc-body .rc-figure { margin: 8px 0 26px; }
.rc-body .rc-figure img, .rc-body .rc-figure video { width: 100%; height: auto; display: block; border-radius: 12px; background: #fff; border: 1px solid var(--rc-line); }
.rc-body .rc-figure figcaption { font-size: 0.85rem; color: var(--text-faint, #786D62); margin-top: 8px; line-height: 1.7; }

/* جداول */
.rc-body .rc-table-wrap { overflow-x: auto; margin: 8px 0 26px; border: 1px solid var(--rc-line); border-radius: 12px; }
.rc-body .rc-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 360px; }
.rc-body .rc-table caption { caption-side: top; text-align: start; font-weight: 700; color: var(--rc-text); padding: 12px 14px 8px; }
.rc-body .rc-table th, .rc-body .rc-table td { padding: 10px 14px; border-bottom: 1px solid var(--rc-line); vertical-align: top; color: var(--rc-dim); text-align: start; }
.rc-body .rc-table th { background: var(--rc-soft); color: var(--rc-text); font-weight: 700; }
.rc-body .rc-table tbody tr:nth-child(even) td { background: rgba(0, 0, 0, 0.02); }
.rc-body .rc-table tbody tr:last-child td { border-bottom: 0; }

/* أرقام بارزة */
.rc-body .rc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 8px 0 26px; }
.rc-body .rc-stat { background: var(--rc-soft); border-radius: 12px; padding: 18px 18px 16px; border-top: 3px solid var(--rc-accent); }
.rc-body .rc-stat-num { font-size: 2rem; font-weight: 800; color: var(--rc-accent); line-height: 1.1; }
.rc-body .rc-stat-label { font-size: 0.88rem; color: var(--rc-dim); margin-top: 6px; line-height: 1.6; }

/* اقتباس وملاحظات */
.rc-body .rc-quote { margin: 8px 0 26px; padding: 6px 22px; border-inline-start: 4px solid var(--rc-accent); }
.rc-body .rc-quote p { font-size: 1.12rem; color: var(--rc-text); margin: 0 0 8px; line-height: 1.9; }
.rc-body .rc-quote cite { font-style: normal; font-size: 0.86rem; color: var(--text-faint, #786D62); }
.rc-body .rc-callout { margin: 8px 0 26px; padding: 16px 20px; border-radius: 12px; background: var(--rc-soft); border-inline-start: 4px solid var(--rc-accent); }
.rc-body .rc-callout-title { font-weight: 800; font-size: 0.9rem; color: var(--rc-accent); margin-bottom: 6px; }
.rc-body .rc-callout p:last-child, .rc-body .rc-callout .study-list:last-child { margin-bottom: 0; }
.rc-body .rc-key { background: rgba(194, 112, 62, 0.1); }
.rc-body .rc-warning { background: #F7ECE3; border-inline-start-color: #A34848; }
.rc-body .rc-warning .rc-callout-title { color: #A34848; }

/* رسوم بيانية */
.rc-body .rc-chart { padding: 18px 20px 14px; background: #fff; border: 1px solid var(--rc-line); border-radius: 12px; }
.rc-body .rc-chart-title { font-weight: 800; color: var(--rc-text); font-size: 1rem; margin-bottom: 2px; }
.rc-body .rc-chart-unit { color: var(--text-faint, #786D62); font-size: 0.8rem; margin-bottom: 14px; }
.rc-body .rc-chart figcaption { border-top: 1px solid var(--rc-line); padding-top: 8px; }
.rc-body .rc-bars { display: flex; flex-direction: column; gap: 10px; }
.rc-body .rc-bar-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 12px; align-items: center; font-size: 0.9rem; }
.rc-body .rc-bar-label { color: var(--rc-text); }
.rc-body .rc-bar-track { background: var(--rc-soft); border-radius: 6px; height: 22px; display: block; overflow: hidden; }
.rc-body .rc-bar-fill { display: block; height: 100%; background: var(--rc-accent); border-radius: 6px; }
.rc-body .rc-bar-row:first-child .rc-bar-fill { background: #1C1D20; }
.rc-body .rc-bar-val { font-weight: 700; color: var(--rc-text); min-width: 3.2em; text-align: end; font-variant-numeric: tabular-nums; }
.rc-body .rc-cols { display: flex; align-items: flex-end; gap: 14px; height: 240px; padding-top: 22px; border-bottom: 1px solid var(--rc-line); }
.rc-body .rc-col-group { flex: 1; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.rc-body .rc-col-bars { flex: 1; display: flex; align-items: flex-end; gap: 4px; justify-content: center; }
.rc-body .rc-col { flex: 1; max-width: 46px; position: relative; border-radius: 6px 6px 0 0; min-height: 2px; }
.rc-body .rc-col-val { position: absolute; top: -20px; inset-inline: -10px; text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--rc-text); white-space: nowrap; }
.rc-body .rc-col-label { text-align: center; font-size: 0.8rem; color: var(--rc-dim); margin-top: 8px; line-height: 1.4; }
.rc-body .rc-cols + .rc-legend, .rc-body .rc-line + .rc-legend { margin-top: 36px; }
.rc-body .rc-cols { margin-bottom: 40px; }
.rc-body .rc-scroll { overflow-x: auto; }
.rc-body .rc-line { width: 100%; min-width: 440px; height: auto; display: block; }
.rc-body .rc-legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.85rem; color: var(--rc-dim); }
.rc-body .rc-legend li { display: flex; align-items: center; gap: 7px; }
.rc-body .rc-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.rc-body .rc-donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.rc-body .rc-donut { width: 180px; height: 180px; border-radius: 50%; position: relative; flex: none; }
.rc-body .rc-donut-hole { position: absolute; inset: 32px; background: #fff; border-radius: 50%; }
.rc-body .rc-legend-list { flex-direction: column; margin: 0; }
@media (max-width: 560px) {
  .rc-body .rc-bar-row { grid-template-columns: 1fr auto; }
  .rc-body .rc-bar-label { grid-column: 1 / -1; }
  .rc-body .rc-cols { gap: 8px; }
  .rc-body .rc-donut { width: 150px; height: 150px; }
  .rc-body .rc-donut-hole { inset: 26px; }
}

/* تخطيط الصور: التفاف النص، ووسط، وكتلة جانبية */
.rc-body::after { content: ""; display: block; clear: both; }
.rc-body .rc-fig-left { float: left; width: 42%; margin: 4px 24px 14px 0; }
.rc-body .rc-fig-right { float: right; width: 42%; margin: 4px 0 14px 24px; }
.rc-body .rc-fig-center { width: 72%; margin-inline: auto; }
.rc-body .rc-fig-small { width: 46%; }
.rc-body .rc-fig-small:not(.rc-fig-left):not(.rc-fig-right) { margin-inline: auto; }
.rc-body .study-h, .rc-body .rc-hr, .rc-body .rc-chart, .rc-body .rc-table-wrap, .rc-body .rc-stats, .rc-body .rc-callout, .rc-body .rc-side { clear: both; }
.rc-body .rc-side { display: grid; gap: 26px; align-items: start; margin: 8px 0 28px; direction: ltr; }
.rc-body .rc-side-left { grid-template-columns: 40% 1fr; }
.rc-body .rc-side-right { grid-template-columns: 1fr 40%; }
.rc-body .rc-side-right .rc-side-media { order: 2; }
.rc-body .rc-side-media .rc-figure, .rc-body .rc-side-media .rc-stats { margin: 0; width: 100%; }
.rc-body.rc-rtl .rc-side-text { direction: rtl; text-align: right; }
.rc-body.rc-ltr .rc-side-text { direction: ltr; text-align: left; }
.rc-body .rc-side-text > :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .rc-body .rc-fig-left, .rc-body .rc-fig-right, .rc-body .rc-fig-center, .rc-body .rc-fig-small { float: none; width: 100%; margin: 8px 0 22px; }
  .rc-body .rc-side { grid-template-columns: 1fr !important; }
  .rc-body .rc-side-right .rc-side-media { order: 0; }
}
