/* ============================================================
   ثمرات — الطبقة التحريرية
   تُحمَّل بعد styles.css و ui.css على صفحات الموقع (ما عدا الرئيسية، إيقاعها
   مضمّن في الصفحة نفسها). الهدف: نفس إيقاع الصفحة الرئيسية — عمود واحد
   بعرض 760، أشرطة عريضة تتناوب كريمي/أبيض، عناوين كبيرة، خط ذهبي رفيع،
   وبطاقات مسطّحة بخط رفيع بدون ظلال.
   كل القواعد تحت .th-root لترتفع فوق مكوّنات ui.css.
   ============================================================ */
:root {
  --rh-col: 760px;
  --rh-pad: 22px;
  --rh-page: #faf8f4;
  --rh-cream: #f8f3e7;
  --rh-dark: #082518;
  --rh-line: rgba(201, 162, 74, .26);
  --rh-line-soft: rgba(201, 162, 74, .16);
  --rh-ink: #3d5147;
  --rh-ink-soft: #51625a;
  --rh-padx: max(var(--rh-pad), calc((100vw - var(--rh-col)) / 2));
}

/* ---------- الهيكل ---------- */
body { background: var(--rh-page); }
.file-card { padding: 0; gap: 0; max-width: none; background: transparent; }
.th-root { max-width: none; padding-bottom: 0; }
.th-root > * {
  width: 100%;
  max-width: calc(var(--rh-col) + var(--rh-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--rh-pad);
  box-sizing: border-box;
}

/* ---------- الخطوط ---------- */
.th-root h1 { font-size: clamp(30px, 8.4vw, 42px); font-weight: 800; line-height: 1.18; letter-spacing: -.01em; color: var(--th-g900); }
.th-root h2 { font-size: clamp(23px, 6.4vw, 30px); font-weight: 800; line-height: 1.3; letter-spacing: -.005em; color: var(--th-g900); margin: 0 0 14px; }
.th-root h3 { font-size: 18px; font-weight: 800; line-height: 1.45; color: var(--th-g800); margin: 0 0 8px; }
.th-root p, .th-root li { font-size: 15.5px; line-height: 1.9; color: var(--rh-ink); }
.th-root small { color: var(--rh-ink-soft); }
.th-root .ui-eyebrow, .th-root .file-group-label, .th-root .ui-count {
  font-size: 11px; font-weight: 800; letter-spacing: .18em; color: #8a7433;
}
.th-root .th-programs > h2::before, .th-root .th-band > h2::before, .th-root .hb-sec > h2::before {
  content: ""; display: block; width: 34px; height: 2px; background: var(--th-gold);
  margin: 0 0 12px; border-radius: 2px;
}
.th-root .th-matched h2::before, .th-root .file-group h2::before { display: none; }

/* ---------- الأشرطة العريضة ---------- */
.th-root .th-band, .th-root .th-programs, .th-root .th-phero,
.th-root .ui-idx-hero, .th-root .hb-hero {
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--rh-padx);
  border-radius: 0;
  box-shadow: none;
}
.th-root .th-band {
  border: 0; margin: 0; padding-block: 44px; background: #fff;
}
.th-root > .th-band:nth-child(odd) { background: var(--rh-cream); }
.th-root .th-band.th-cream { background: var(--rh-cream); }
.th-root .th-band.th-dark { background: var(--rh-dark); color: #efe9d6; }
.th-root .th-band.th-green { background: #0a3a25; color: #eef4ee; }
.th-root .th-band.th-orange { background: #7a3f10; color: #f7e9d8; }
.th-root .th-band.th-dark p, .th-root .th-band.th-dark li,
.th-root .th-band.th-green p, .th-root .th-band.th-green li,
.th-root .th-band.th-orange p, .th-root .th-band.th-orange li { color: #dcd6c4; }
.th-root .th-band.th-dark h2, .th-root .th-band.th-green h2, .th-root .th-band.th-orange h2 { color: var(--th-gold); }
.th-root .th-band.th-dark h3, .th-root .th-band.th-green h3, .th-root .th-band.th-orange h3 { color: #f7f2e4; }

/* ---------- هيرو صفحات المحاصيل ---------- */
.th-root .ui-hero {
  max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none;
  min-height: min(62svh, 520px); background: var(--rh-dark);
}
.th-root .ui-hero::after { background: linear-gradient(180deg, rgba(6,22,14,.28) 0%, rgba(6,22,14,.52) 44%, rgba(6,22,14,.93) 100%); }
.th-root .ui-hero-in { padding: 30px var(--rh-padx) 36px; }
.th-root .ui-hero-in h1 { font-size: clamp(32px, 8.8vw, 44px); margin: 0 0 10px; color: #fff; }
.th-root .ui-hero-in p { font-size: 15.5px; line-height: 1.85; color: #e4ddc9; max-width: 34ch; }
.th-root .ui-hero-in .th-chip {
  background: transparent; border: 1px solid rgba(201,162,74,.55); color: var(--th-gold);
  font-size: 11px; font-weight: 800; letter-spacing: .16em;
}

/* ---------- هيرو الصفحات الداخلية ---------- */
.th-root .th-phero {
  margin: 0; border: 0; background: var(--rh-dark); color: #f1ece0; padding-block: 46px 42px;
}
.th-root .th-phero h1 { color: #fff; margin: 0 0 12px; }
.th-root .th-phero p { color: #d9d3c1; font-size: 15.5px; line-height: 1.85; max-width: 44ch; }
.th-root .th-phero .th-chip {
  background: transparent; border: 1px solid rgba(201,162,74,.55); color: var(--th-gold);
  font-size: 11px; font-weight: 800; letter-spacing: .16em;
}
.th-root .th-phero.th-news { background: #10261c; }

/* ---------- فهرس المحاصيل ---------- */
.th-root .ui-tools { margin: 26px auto 0; }
.th-root .ui-search { background: #fff; border: 1px solid var(--rh-line); border-radius: 999px; box-shadow: none; padding: 0 16px; min-height: 54px; }
.th-root .ui-search input { border: 0; border-radius: 0; background: transparent; height: auto; padding: 15px 0; font-size: 16px; }
.th-root .ui-search:focus-within { border-color: var(--th-gold); box-shadow: 0 0 0 3px var(--th-gold-soft); }
.th-root .ui-idx-hero { background: var(--rh-dark); color: #fff; padding-block: 44px 40px; border: 0; }
.th-root .ui-idx-hero .ui-eyebrow { color: var(--th-gold); }
.th-root .ui-idx-hero h1 { color: #fff; margin: 6px 0 10px; font-size: clamp(32px, 8.8vw, 44px); }
.th-root .ui-idx-hero p { color: #d9d3c1; font-size: 15.5px; line-height: 1.85; max-width: 40ch; }
​.th-root .ui-search input { height: 52px; border-radius: 999px; border: 1px solid var(--rh-line); background: #fff; font-size: 15px; }
.th-root .ui-toolbar { margin: 16px auto 14px; }
.th-root .ui-grid { gap: 16px 12px; }
.th-root .th-crop.ui-card {
  border: 1px solid var(--rh-line); border-radius: 16px; box-shadow: none; background: #fff; overflow: hidden;
}
.th-root .th-crop.ui-card:hover { box-shadow: none; border-color: var(--th-gold); }
.th-root .ui-card-img { aspect-ratio: 4 / 3; }
.th-root .ui-card-body { padding: 12px 12px 14px; gap: 6px; }
.th-root .ui-card-body b { font-size: 15.5px; font-weight: 800; color: var(--th-g900); }
.th-root .ui-card-stage { background: var(--th-gold-soft); color: #6b5209; font-size: 11px; font-weight: 800; }
.th-root .ui-card-meta { font-size: 11.5px; color: var(--rh-ink-soft); }
.th-root .ui-quick summary { border-radius: 999px; }

/* ---------- البطاقات: مسطّحة ---------- */
.th-root .th-matched, .th-root .file-group, .th-root .th-card,
.th-root .ui-empty, .th-root .file-callout {
  background: #fff; border: 1px solid var(--rh-line); border-radius: 16px; box-shadow: none;
}
.th-root .th-matched { padding: 18px 18px 20px; margin: 22px auto; }
.th-root .th-matched h2 { font-size: 17px; margin: 0 0 12px; color: var(--th-g800); }
.th-root .file-group { padding: 20px 18px 22px; margin: 22px auto; }
.th-root .file-group-heading { font-size: 19px; }

/* ---------- الشرائح والأزرار ---------- */
.th-root .th-chipl, .th-root .ui-stagechips a, .th-root .th-who a, .th-root .th-more {
  background: #fff; border: 1px solid var(--rh-line); border-radius: 999px;
  color: var(--th-g800); box-shadow: none;
}
.th-root .ui-stagechips a.is-now { background: var(--th-gold); border-color: var(--th-gold); color: #201806; }
.th-root .ui-stagechips { padding-bottom: 14px; flex-wrap: wrap; overflow-x: visible; row-gap: 8px; }
.th-root .ui-stagechips a { white-space: normal; text-align: center; line-height: 1.35; flex: 0 1 auto; max-width: calc(50% - 5px); }

/* ---------- برامج المحاصيل ---------- */
.th-root .th-programs { margin: 0; padding-block: 44px; background: #fff; }
.th-root > .th-programs:nth-child(odd) { background: var(--rh-cream); }
.th-root .th-pnote { font-size: 13.5px; line-height: 1.85; color: var(--rh-ink-soft); margin: 0 0 20px; }
.th-root .th-pd { border-top: 1px solid var(--rh-line); }
.th-root .th-pd > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px 0; font-size: 17px; font-weight: 800; color: var(--th-g900); line-height: 1.5;
}
.th-root .th-pd > summary::-webkit-details-marker { display: none; }
.th-root .th-pd > summary::after { content: "›"; color: var(--th-gold); font-weight: 800; font-size: 20px; transform: rotate(90deg); flex: none; }
.th-root .th-pd[open] > summary::after { transform: rotate(-90deg); }
.th-root .th-prog { padding: 0 0 20px; gap: 0; }
.th-root .th-prow { background: transparent; border: 0; border-top: 1px solid var(--rh-line-soft); border-radius: 0; padding: 14px 0; }
.th-root .th-prow-h { margin-bottom: 10px; }
.th-root .th-prow-h b { font-size: 15.5px; color: var(--th-g900); }
.th-root .th-prow li {
  background: #fbf8ef; border: 1px solid var(--rh-line-soft); border-radius: 12px;
  padding: 10px 12px; font-size: 14.5px; line-height: 1.8; color: var(--rh-ink);
}
.th-root .th-prow li.th-lg { border-inline-start: 3px solid var(--th-gold); }
.th-root .th-prow li.th-lt { border-inline-start: 3px solid var(--th-g800); }
.th-root .th-tag { font-size: 10.5px; font-weight: 800; color: #8a7433; letter-spacing: .08em; }


/* ---------- شريط الطقس في صفحات المحاصيل: نفس شريط الرئيسية ---------- */
.th-root .wx-strip {
  max-width: none; margin: 0; padding: 24px var(--rh-padx) 26px;
  background: var(--rh-cream); border: 0; border-bottom: 1px solid var(--rh-line-soft);
  border-radius: 0; box-shadow: none;
}
.th-root .wx-strip .wxs-title { font-size: 15px; font-weight: 800; color: var(--th-g900); }
.th-root .wx-strip .wxs-link { font-size: 12.5px; font-weight: 700; color: var(--th-g800); }

/* ---------- توحيد أكورديون النقص مع باقي الأقسام ---------- */
.th-root .th-pd { background: transparent; border: 0; border-top: 1px solid var(--rh-line); border-radius: 0; box-shadow: none; margin: 0; overflow: visible; }
.th-root .th-pd[open] > summary { background: transparent; border-bottom: 0; }
.th-root #deficiency .th-pd { border-radius: 0; box-shadow: none; margin: 0; }
.th-root #deficiency .th-pd summary { min-height: 0; padding: 17px 0; font-size: 17px; background: transparent; }
.th-root #deficiency .th-prog { padding: 0 0 20px; gap: 0; }
.th-root #deficiency .th-prow { background: transparent; border: 0; border-radius: 0; padding: 0; }
.th-root #deficiency .th-prow ul { gap: 8px; }
.th-root #deficiency .th-prow li { background: #fbf8ef; border: 1px solid var(--rh-line-soft); border-radius: 12px; padding: 10px 12px; font-size: 14.5px; }
.th-root #deficiency .th-prow li.th-lg { border-inline-start: 3px solid var(--th-gold); }
.th-root #deficiency .th-prow li.th-pphoto { display: block; }
.th-root #deficiency > h2 { font-size: clamp(23px, 6.4vw, 30px); }
.th-root #deficiency > p { font-size: 14.5px !important; }


/* ---------- منع الكارت جوه كارت: الأقسام المتداخلة تتعرّى ---------- */
.th-root .th-band .file-group, .th-root .th-band .th-matched,
.th-root .file-group .file-group, .th-root .th-programs .file-group {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  padding: 0; margin: 0 0 30px;
}
.th-root .th-band .file-group:last-child, .th-root .th-programs .file-group:last-child { margin-bottom: 0; }
.th-root .th-band .file-group-label { color: var(--th-gold); }
.th-root .th-band.th-dark .file-group-label, .th-root .th-band.th-green .file-group-label { color: #d9c58a; }
.th-root .th-band .file-group p, .th-root .th-band .file-group li { color: inherit; }

/* ---------- صفحات الأدلة (hb-*) ---------- */
.th-root .hb-hero { background: var(--rh-dark); color: #f1ece0; padding-block: 44px 40px; border: 0; border-radius: 0; }
.th-root .hb-hero h1, .th-root .hb-hero h2 { color: #fff; margin: 0 0 10px; }
.th-root .hb-hero p { color: #d9d3c1; font-size: 15.5px; line-height: 1.85; }
.th-root .hb-hero * { color: inherit; }
.th-root .hb-sec { margin: 0; padding-block: 44px; padding-inline: var(--rh-padx); background: #fff; max-width: none; }
.th-root > .hb-sec:nth-of-type(even) { background: var(--rh-cream); }
.th-root .hb-sec h2 { font-size: clamp(23px, 6.4vw, 30px); color: var(--th-g900); }
.th-root .hb-grid { padding-inline: var(--rh-padx); margin: 0 auto; max-width: calc(var(--rh-col) + var(--rh-pad) * 2); }
.th-root .hb-note { padding-inline: var(--rh-padx); }


/* ---------- صفحات الأدلة التفصيلية (wq-*) ---------- */
.th-root .wq-hero {
  background: var(--rh-dark); color: #fff; border: 0; border-radius: 0;
  margin-inline: calc(var(--rh-padx) * -1); padding: 40px var(--rh-padx) 36px;
  margin-block: 0;
}
.th-root .wq-hero h1 { color: #fff; font-size: clamp(24px, 6.6vw, 32px); margin: 10px 0 8px; }
.th-root .wq-hero p { color: #d9d3c1; font-size: 15.5px; line-height: 1.85; margin: 0; }
.th-root .wq-hero .wq-chip { color: #0a2e1d; background: var(--th-gold); font-size: 12.5px; padding: 3px 13px; }
.th-root .wq-box { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0 0 26px; }
.th-root .wq-box > h2 { font-size: clamp(20px, 5.6vw, 25px); color: var(--th-g900); margin: 0 0 10px; }
.th-root .wq-box p, .th-root .wq-box li { font-size: 15.5px; line-height: 1.9; }
.th-root .wq-calc {
  background: var(--rh-cream); border: 1px solid var(--rh-line); border-radius: 16px;
  padding: 18px 16px 20px; margin: 8px 0 26px;
}
.th-root .wq-two { gap: 10px; }
.th-root .wq-two > div { background: transparent; border: 1px solid var(--rh-line); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; line-height: 1.8; }
.th-root .wq-formula { background: transparent; border: 1px solid var(--rh-line); border-radius: 12px; padding: 12px 14px; }

/* ---------- روابط ورجوع ---------- */
.th-root .th-back {
  display: inline-block; margin: 14px auto 0; font-size: 13px; font-weight: 700;
  color: var(--th-g800); text-decoration: none;
  border-bottom: 1px solid rgba(201,162,74,.55); padding-bottom: 2px;
}
.th-root .th-actions { margin: 26px auto 30px; }

/* ---------- خاتمة ---------- */
.th-root .file-closing { font-size: 12.5px; color: #6d7d73; text-align: center; padding: 18px var(--rh-pad) 26px; }

/* ---------- full-bleed guide hero: stretch to the viewport instead of
   shifting right in RTL (the old rule only moved the box) ---------- */
.th-root .wq-hero{
  width:auto; max-width:none;
  margin-inline:-16px;
  padding-inline:var(--rh-padx);
}
@media (max-width:1312px){
  .th-root .wq-hero{ padding-inline:calc(var(--rh-pad) + 16px); }
}
