/* Home Block-Based CMS — كتل الصفحة الرئيسية */

body.page-home-default,
body.page-type-report,
body.page-type-objection {
  scroll-padding-top: 80px;
  background: var(--clr-bg);
}

body.page-home-default > footer.site-footer-bar,
body.page-type-report > footer.site-footer-bar,
body.page-type-objection > footer.site-footer-bar {
  margin-top: 0 !important;
}

/* ── خلفية واحدة متدرجة (ألوان الشركات: أحمر → أزرق → أصفر → بنفسجي) ── */
.home-page-canvas {
  --hb-pad-y: clamp(1.75rem, 3.5vw, 3.25rem);
  --hb-gap: clamp(0.875rem, 1.4vw, 1.15rem);
  --hb-read-max: 52rem; /* مقياس قراءة مريح ومتناسق */
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  max-width: 100%;
  background-color: var(--clr-bg);
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--clr-bg) 84%, var(--carrier-ym) 16%) 0%,
    color-mix(in srgb, var(--clr-bg) 88%, var(--carrier-sf) 12%) 28%,
    color-mix(in srgb, var(--clr-bg) 90%, var(--carrier-mtn) 10%) 58%,
    color-mix(in srgb, var(--clr-bg) 88%, var(--carrier-you) 12%) 82%,
    var(--clr-bg) 100%
  );
}

/* صفحة البلاغات: canvas بهوية دافئة (علم/بلاغ) — لا تغيّر لون الناقل العام */
body.page-type-report {
  --report-accent: #f07167;
}
body.page-type-report .tool-page-canvas.home-page-canvas {
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--clr-bg) 82%, #f07167 18%) 0%,
    color-mix(in srgb, var(--clr-bg) 88%, #f59e0b 12%) 32%,
    color-mix(in srgb, var(--clr-bg) 90%, var(--carrier-sf) 10%) 62%,
    color-mix(in srgb, var(--clr-bg) 92%, #f07167 8%) 88%,
    var(--clr-bg) 100%
  );
}
html[data-bs-theme="light"] body.page-type-report .tool-page-canvas.home-page-canvas {
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--clr-bg) 88%, #f07167 12%) 0%,
    color-mix(in srgb, var(--clr-bg) 90%, #f59e0b 10%) 32%,
    color-mix(in srgb, var(--clr-bg) 92%, var(--carrier-sf) 8%) 62%,
    color-mix(in srgb, var(--clr-bg) 94%, #f07167 6%) 88%,
    var(--clr-bg) 100%
  );
}
body.page-type-report .hb-hero .section-badge {
  color: var(--report-accent);
  border-color: color-mix(in srgb, var(--report-accent) 35%, transparent);
  background: color-mix(in srgb, var(--report-accent) 10%, transparent);
}
body.page-type-report .hb-hero .text-grad {
  color: var(--report-accent);
  -webkit-text-fill-color: unset;
}
body.page-type-report .hb-hero .content-hero-dot {
  background: var(--report-accent);
}

html[data-bs-theme="light"] .home-page-canvas {
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--clr-bg) 88%, var(--carrier-ym) 12%) 0%,
    color-mix(in srgb, var(--clr-bg) 90%, var(--carrier-sf) 10%) 28%,
    color-mix(in srgb, var(--clr-bg) 92%, var(--carrier-mtn) 8%) 58%,
    color-mix(in srgb, var(--clr-bg) 90%, var(--carrier-you) 10%) 82%,
    var(--clr-bg) 100%
  );
}

/* إخفاء طبقات tech-skin المنفصلة — الخلفية موحّدة للصفحة */
.home-page-canvas .tech-skin::before,
.home-page-canvas .tech-skin::after {
  display: none !important;
}

.home-page-canvas .tech-skin {
  background: transparent !important;
  border-radius: 0 !important;
}

/* ── شبكة تخطيط موحّدة: كل الأقسام تشارك نفس حواف الـ container ── */
.home-page-canvas > .hb-chapter-wrap > .hb-block > .container,
.home-page-canvas .hb-chapter-head {
  box-sizing: border-box;
}

.home-page-canvas .hb-bento-grid,
.home-page-canvas .hb-ency-list,
.home-page-canvas .hb-timeline-list,
.home-page-canvas .hb-rich-grid,
.home-page-canvas .hb-legal-nav,
.home-page-canvas .ls-grid,
.home-page-canvas .hb-faq-panel {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}

/* نص طويل (فصول الدليل): عرض الحاوية كاملاً — بدون عمود ضيق يترك فراغاً بجانبه */
.home-page-canvas .hb-prose-wrap {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}

/* الخلاصة/الجداول: عرض كامل الحاوية */
.home-page-canvas .hb-text-wrap,
.home-page-canvas .hb-text-body {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}

/* أداة البحث: في المنتصف — عنصر تفاعلي رئيسي */
.home-page-canvas .kashef-tool-wrap {
  width: 100%;
  max-width: min(40rem, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

.home-page-canvas .kashef-results-panel {
  width: 100%;
  max-width: min(40rem, 100%);
  margin: 24px auto 0;
}

.home-page-canvas .kashef-tool-head {
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.home-page-canvas .kashef-tool-title,
.home-page-canvas .kashef-tool-desc {
  text-align: center;
}

/* الهيرو: وصف أوسع وأوضح قليلاً */
.home-page-canvas .hb-hero .section-header {
  max-width: min(56rem, 100%);
  margin-inline: auto;
}

.home-page-canvas .hb-hero .section-desc {
  max-width: min(48rem, 100%);
  margin-inline: auto;
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  line-height: 1.8;
}

.home-page-canvas .hb-hero .section-title {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
}

/* ── فصول مرقّمة (طبقة سردية خفيفة) ── */
.hb-chapter-wrap {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
}

.hb-chapter-wrap--chapter-block {
  margin: 0;
}
.hb-chapter-wrap--chapter-block .hb-chapter-block {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.hb-chapter-wrap--chapter-block .hb-chapter-head {
  padding-top: 36px;
}

.hb-chapter-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 44px 0 6px;
  margin: 0;
}

.hb-chapter-wrap--hero + .hb-chapter-wrap .hb-chapter-head,
.hb-chapter-wrap--kashef .hb-chapter-head,
.hb-chapter-wrap--report_form .hb-chapter-head,
.hb-chapter-wrap--objection_form .hb-chapter-head {
  padding-top: 28px;
}

.hb-chapter__num {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: var(--app-accent);
  opacity: 0.95;
}

.hb-chapter__title {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--clr-txt3);
  overflow-wrap: anywhere;
}

.hb-chapter__rule {
  flex: 1 1 auto;
  min-width: 1.5rem;
  height: 1px;
  background: linear-gradient(
    to left,
    transparent 0%,
    var(--clr-border) 35%,
    color-mix(in srgb, var(--app-accent) 22%, var(--clr-border)) 100%
  );
}

html[dir="ltr"] .hb-chapter__rule {
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--clr-border) 35%,
    color-mix(in srgb, var(--app-accent) 22%, var(--clr-border)) 100%
  );
}

/* أقسام تابعة (مثلاً مقال مُفصّل ثاني) — بدون تكرار الرقم */
.hb-chapter-wrap--continued .hb-block.tech-skin {
  margin-top: -24px;
  padding-top: 48px;
}

.hb-chapter-wrap--hero .hb-block.tech-skin {
  margin-top: 0;
}

.hb-block {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: clip;
}

body.page-home-default .hb-hero,
body.page-type-report .hb-hero,
body.page-type-objection .hb-hero { padding-bottom: 32px; }
body.page-home-default .hb-block + .hb-block,
body.page-type-report .hb-block + .hb-block,
body.page-type-objection .hb-block + .hb-block { margin-top: 0; }

/* ── Home: أقسام متداخلة ناعماً على الخلفية الموحّدة ── */
.home-page-canvas .hb-block.tech-skin {
  margin-top: -20px;
  padding-top: 64px;
}
.home-page-canvas .hb-hero.tech-skin {
  margin-top: 0;
  padding-top: 80px;
  border-radius: 0;
}

/* Alert banner */
.hb-alert-banner { padding: 24px 0 0; }
.hb-alert-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.hb-alert--warning .hb-alert-inner {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.35);
}
.hb-alert--danger .hb-alert-inner {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}
.hb-alert--info .hb-alert-inner {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
}
.hb-alert-icon { font-size: 1.25rem; margin-top: 2px; flex-shrink: 0; }
.hb-alert-text { line-height: 1.65; font-size: 0.95rem; }

/* Bento grid — كمبيوتر/تابلت: عمودان · هاتف: عمود واحد */
.hb-bento { padding: var(--hb-pad-y, clamp(36px, 5vw, 56px)) 0; }
.hb-bento-grid {
  display: grid;
  gap: var(--hb-gap, 14px);
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
}
.hb-bento-grid.bento-2,
.hb-bento-grid.bento-3,
.hb-bento-grid.bento-stack {
  grid-template-columns: 1fr;
}
@media (min-width: 576px) {
  .hb-bento-grid,
  .hb-bento-grid.bento-2,
  .hb-bento-grid.bento-3,
  .hb-bento-grid.bento-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hb-gap, 16px);
  }
  /* في شبكة العمودين لا نسمح للبطاقة العريضة بكسر الصف */
  .hb-bento-grid.bento-2 .hb-bento-card--wide,
  .hb-bento-grid.bento-stack .hb-bento-card--wide {
    grid-column: span 1;
  }
  .hb-bento-grid.bento-3 .hb-bento-card--wide {
    grid-column: span 2;
  }
}
@media (min-width: 1200px) {
  .hb-bento-grid.bento-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .hb-bento-grid.bento-3 .hb-bento-card--wide {
    grid-column: span 2;
  }
  /* 3 بطاقات فقط: تجنّب صف ناقص يترك فراغاً كبيراً */
  .hb-bento-grid.bento-3:has(> .hb-bento-card:nth-child(3):last-child) .hb-bento-card--wide {
    grid-column: span 1;
  }
}
.hb-bento-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: clamp(16px, 2.5vw, 22px);
  min-height: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-theme);
}
.hb-bento-card:hover {
  border-color: var(--clr-border-hi);
  transform: translateY(-2px);
}
.hb-bento-card--wide { grid-column: span 1; }
.hb-bento-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  min-width: 0;
}
.hb-bento-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  color: var(--app-accent);
  margin-bottom: 0;
  font-size: 1.05rem;
}
.hb-bento-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  min-width: 0;
}
.hb-bento-text { margin: 0; color: var(--clr-txt2); line-height: 1.65; font-size: 0.92rem; }
.hb-bento-text p:last-child { margin-bottom: 0; }

/* Tabs / موسوعة الاحتيال — أكورديون بعرض الـ container كاملاً */
.hb-tabs,
.hb-ency { padding: var(--hb-pad-y, clamp(36px, 5vw, 56px)) 0; }
.hb-tabs .section-header,
.hb-bento .section-header,
.hb-timeline .section-header,
.hb-rich .section-header,
.hb-faq .section-header,
.hb-stats .section-header,
.hb-prose-sections .section-header { margin-bottom: 1.5rem; }

.hb-ency-list {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hb-gap, 10px);
}

.hb-ency-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  background: var(--clr-surface);
  box-shadow: var(--shadow-theme);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hb-ency-item[open] {
  border-color: color-mix(in srgb, var(--app-accent) 40%, var(--clr-border));
  box-shadow: 0 12px 32px color-mix(in srgb, var(--app-accent) 12%, transparent);
}

.hb-ency-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  color: var(--clr-txt);
  font-weight: 700;
}
.hb-ency-summary::-webkit-details-marker { display: none; }
.hb-ency-summary::marker { content: ''; }
.hb-ency-summary:hover { background: color-mix(in srgb, var(--app-accent) 6%, transparent); }

.hb-ency-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--app-accent);
  background: color-mix(in srgb, var(--app-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--app-accent) 28%, transparent);
}
.hb-ency-item[open] .hb-ency-num {
  color: #fff;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-2));
  border-color: transparent;
}
.hb-ency-title {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.4;
}
.hb-ency-chevron {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-txt3);
  background: color-mix(in srgb, var(--clr-txt) 6%, transparent);
  transition: transform .2s ease, color .2s ease;
}
.hb-ency-item[open] .hb-ency-chevron {
  transform: rotate(180deg);
  color: var(--app-accent);
}

.hb-ency-body {
  padding: 0 16px 18px;
  margin: 0 12px 12px;
  border-top: 1px solid var(--clr-border);
  padding-top: 14px;
  color: var(--clr-txt2);
  line-height: 1.85;
  font-size: clamp(0.94rem, 2.2vw, 1rem);
}
.hb-ency-body p:last-child { margin-bottom: 0; }
.hb-ency-body strong { color: var(--clr-txt); }

@media (max-width: 575.98px) {
  .hb-ency-summary { padding: 12px 12px; gap: 10px; }
  .hb-ency-body { margin: 0 8px 10px; padding: 12px 10px 14px; }
}

/* Timeline — رقم + عنوان في صف واحد، ثم النص */
.hb-timeline { padding: var(--hb-pad-y, 56px) 0; }
.hb-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hb-gap, 12px);
  width: 100%;
  max-width: 100%;
}
.hb-timeline-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  padding: 18px 16px;
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg, 12px);
  background: var(--clr-surface);
  box-shadow: var(--shadow-theme);
  min-width: 0;
}
.hb-timeline-step:last-child { border-bottom: 1px solid var(--clr-border); }
@media (min-width: 768px) {
  .hb-timeline-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--hb-gap, 16px);
  }
  .hb-timeline-step {
    height: 100%;
  }
}
.hb-timeline-step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hb-timeline-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--app-accent), var(--app-accent-2));
  color: #fff;
  font-size: 1rem;
}
.hb-timeline-step-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  min-width: 0;
}
.hb-timeline-step-text { margin: 0; color: var(--clr-txt2); line-height: 1.65; max-width: 100%; min-width: 0; }
.hb-timeline-step-text p:last-child { margin-bottom: 0; }

/* Legal footer strip */
.hb-legal-footer { padding: 28px 0; }
.hb-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.hb-legal-link {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--clr-border);
  background: var(--clr-glass, transparent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.hb-legal-link:hover {
  border-color: var(--clr-border-hi);
  background: rgba(59, 130, 246, 0.08);
}

.hb-text { padding: var(--hb-pad-y, 40px) 0; }
.hb-text-wrap {
  max-width: 100%;
  width: 100%;
  margin-inline: 0;
}
.hb-text-body {
  line-height: 1.75;
  max-width: 100%;
  width: 100%;
  margin-inline: 0;
  color: var(--clr-txt2);
}

/* Rich section */
.hb-rich { padding: var(--hb-pad-y, 56px) 0; }
.hb-rich-grid { display: grid; gap: var(--hb-gap, 24px); align-items: start; max-width: 100%; width: 100%; }
/* التنسيق split على السكشن، وـhas-image على الشبكة — لا يجب أن يكونا على نفس العنصر */
.hb-rich--split-left .hb-rich-grid--has-image,
.hb-rich--split-right .hb-rich-grid--has-image {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.hb-rich--full .hb-rich-grid { grid-template-columns: 1fr; }
.hb-rich-media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--clr-border); min-width: 0; }
.hb-rich-img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 420px; }
.hb-rich-body {
  line-height: 1.75;
  font-size: 1rem;
  color: var(--clr-txt2);
  max-width: 100%;
  min-width: 0;
  width: 100%;
}
.hb-rich-cta-wrap { margin-top: 20px; margin-bottom: 0; }
.hb-rich-cta { border-radius: 999px; padding: 10px 22px; font-weight: 600; }

/* ── Prose / dense guide — بعرض الحاوية كاملاً ── */
.hb-prose-sections { padding: var(--hb-pad-y, 48px) 0; }
.hb-prose-wrap {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}

.hb-prose-stream {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 100%;
}
.hb-prose-chapter {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--clr-border);
  max-width: 100%;
  min-width: 0;
}
.hb-prose-chapter:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.hb-prose-h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 0.85rem;
  overflow-wrap: anywhere;
}
.hb-prose-lead {
  font-size: clamp(0.95rem, 2.5vw, 1.02rem);
  line-height: 1.85;
  margin: 0 0 1rem;
  color: var(--clr-txt);
  overflow-wrap: anywhere;
}
.hb-prose-body,
.hb-prose-item-text {
  font-size: clamp(0.92rem, 2.4vw, 0.98rem);
  line-height: 1.88;
  color: var(--clr-txt2);
  max-width: 100%;
  min-width: 0;
}
.hb-prose-body p,
.hb-prose-item-text p { margin-bottom: 0.9rem; }
.hb-prose-body p:last-child,
.hb-prose-item-text p:last-child { margin-bottom: 0; }
.hb-prose-items {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  max-width: 100%;
}
.hb-prose-item {
  max-width: 100%;
  min-width: 0;
}
.hb-prose-h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  overflow-wrap: anywhere;
}

/* محتوى HTML داخل الكتل — لا يخرج عن العرض */
.home-rich-content {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.home-rich-content img,
.home-rich-content video,
.home-rich-content iframe {
  max-width: 100% !important;
  height: auto;
}
.home-rich-content pre,
.home-rich-content code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.home-rich-content pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--clr-surface2) 80%, transparent);
}
.home-rich-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.home-rich-content .table-responsive,
.hb-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  box-shadow: var(--shadow-theme);
}
.hb-table-scroll + .hb-table-scroll { margin-top: 0; }

/* جدول مقارنة — أعمدة كاملة (لا display:block الذي يكسر التخطيط) */
.home-rich-content table,
.hb-compare-table {
  display: table;
  width: 100%;
  max-width: none;
  min-width: 520px;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: fixed;
}
.home-rich-content table th,
.home-rich-content table td,
.hb-compare-table th,
.hb-compare-table td {
  padding: 0.85rem 1rem;
  vertical-align: top;
  border-color: var(--clr-border) !important;
  color: var(--clr-txt2);
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}
.home-rich-content table thead th,
.hb-compare-table thead th {
  background: color-mix(in srgb, var(--app-accent) 14%, transparent);
  color: var(--clr-txt);
  font-weight: 800;
  font-size: 0.9rem;
}
.home-rich-content table tbody tr:nth-child(even),
.hb-compare-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--clr-txt) 3%, transparent);
}
.home-rich-content table tbody td:first-child,
.hb-compare-table tbody td:first-child {
  color: var(--clr-txt);
  font-weight: 700;
}

@media (min-width: 768px) {
  .home-rich-content table,
  .hb-compare-table {
    min-width: 0;
    table-layout: auto;
  }
  .hb-text-body:has(.hb-table-scroll),
  .hb-text-body:has(table) {
    max-width: 100%;
    margin-inline: 0;
  }
}

@media (max-width: 575.98px) {
  .home-rich-content table th,
  .home-rich-content table td,
  .hb-compare-table th,
  .hb-compare-table td {
    padding: 0.65rem 0.7rem;
    font-size: 0.85rem;
  }
}

.kashef-tool-desc p:last-child,
.section-desc p:last-child { margin-bottom: 0; }

/* Density */
.hb-density-dense.hb-block { padding: var(--hb-pad-y, 40px) 0; }
.hb-density-dense .section-header { margin-bottom: 1.25rem; }
.hb-density-dense .section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.5rem;
}
.hb-density-dense .hb-bento-text,
.hb-density-dense .hb-ency-body,
.hb-density-dense .hb-timeline-step-text,
.hb-density-dense .hb-text-body,
.hb-density-dense .section-desc {
  font-size: 0.98rem;
  line-height: 1.88;
}
.hb-density-dense.hb-tabs,
.hb-density-dense.hb-bento,
.hb-density-dense.hb-timeline,
.hb-density-dense.hb-text,
.hb-density-dense.hb-rich,
.hb-density-dense.hb-prose-sections,
.hb-density-dense.hb-faq { padding: var(--hb-pad-y, 40px) 0; }

@media (max-width: 991px) {
  .hb-rich--split-left .hb-rich-grid--has-image,
  .hb-rich--split-right .hb-rich-grid--has-image { grid-template-columns: 1fr; }
  .hb-chapter-head { padding-top: 28px; gap: 10px; }
  .hb-chapter__title { letter-spacing: 0.04em; }
  .hb-prose-sections,
  .hb-density-dense.hb-prose-sections { padding: var(--hb-pad-y, 36px) 0; }
}

@media (max-width: 575.98px) {
  .hb-chapter-head { padding-top: 22px; }
  .hb-tabs,
  .hb-ency,
  .hb-timeline,
  .hb-rich,
  .hb-text,
  .hb-prose-sections,
  .hb-faq { padding: 32px 0; }
  .hb-density-dense.hb-tabs,
  .hb-density-dense.hb-ency,
  .hb-density-dense.hb-bento,
  .hb-density-dense.hb-timeline,
  .hb-density-dense.hb-text,
  .hb-density-dense.hb-rich,
  .hb-density-dense.hb-prose-sections,
  .hb-density-dense.hb-faq,
  .hb-density-dense.hb-block { padding: 28px 0; }
  .hb-prose-h2 { font-size: 1.1rem; }
  .hb-timeline-list { grid-template-columns: 1fr; }
}


/* أدوات البلاغ/الاعتراض داخل canvas الكتل — محاذاة مع بقية الأقسام */
.home-page-canvas .hb-tool-section {
  padding: var(--hb-pad-y, clamp(1.75rem, 3.5vw, 3.25rem)) 0;
}
.home-page-canvas .hb-tool-head,
.home-page-canvas .report-tool-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.15rem;
}
.home-page-canvas .hb-tool-head .tool-section-label,
.home-page-canvas .report-tool-head .tool-section-label {
  /* إلغاء left/transform من style.css — يكسر التوسيط في RTL */
  position: static;
  left: auto;
  right: auto;
  transform: none;
  justify-content: center;
  margin: 0 auto 0.65rem;
  width: fit-content;
  max-width: 100%;
}
.home-page-canvas .hb-tool-form-wrap,
.home-page-canvas .report-tool-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: min(46rem, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}
