/* ── مركز المساعدة (١٧ تشرين الأول ٢٠٢٦) ─────────────────────────────
   يُحمَّل بعد /site.css و/assets/blog-ni.css: المقال نفسه بعمود قراءة المدونة،
   وهنا البحث والفهرس وحده. لونٌ واحد للفعل (الختم الأخضر)، والأقسام بنقطة لون. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── خانة البحث ─────────────────────────────────────────────── */
.hsearch { position: relative; width: 100%; max-width: 820px; }
.hsearch > svg { position: absolute; inset-inline-start: 18px; top: 50%; width: 22px; height: 22px;
  transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.hsearch input { width: 100%; height: 54px; padding-inline: 52px 48px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; border-radius: 0;
  -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.hsearch input::placeholder { color: var(--ink-faint); }
.hsearch input::-webkit-search-cancel-button { display: none; }
.hsearch input:focus { outline: none; border-color: var(--seal); box-shadow: 0 0 0 3px rgba(23,160,95,.18); }
.hsearch kbd { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%);
  min-width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft); background: var(--paper); }
.hsearch input:focus ~ kbd, .hsearch input:not(:placeholder-shown) ~ kbd { display: none; }
@media (hover: none) { .hsearch kbd { display: none; } }

.hsearch.big > svg { inset-inline-start: 22px; width: 26px; height: 26px; }
.hsearch.big input { height: clamp(60px, 6vw, 72px); padding-inline: 62px 56px;
  font-size: clamp(17px, 1.5vw, 20px); border-color: transparent; }

/* النتائج: قائمة منسدلة بخطوط رفيعة، لا بطاقات */
.hres { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 45; background: #fff;
  border: 1px solid var(--ink); max-height: min(68vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 18px 40px -18px rgba(12,14,17,.28); text-align: start; }
.hr-item { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
  color: var(--ink); text-decoration: none !important; }
.hr-item:last-child { border-bottom: 0; }
.hr-item .c { font-size: 12.5px; color: var(--ink-soft); }
.hr-item b { font-weight: 500; font-size: 16px; line-height: 1.5; }
.hr-item .s { font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.hr-item:hover, .hr-item[aria-selected="true"] { background: var(--leaf-mist); }
.hr-item:hover b, .hr-item[aria-selected="true"] b { color: var(--seal-deep); }
.hres mark { background: var(--leaf-wash); color: inherit; padding: 0 1px; }
.hr-empty { padding: 18px; font-size: 15px; color: var(--ink-2); }
.hr-empty p { margin-bottom: 10px; }
.hr-empty .ulink { color: var(--seal); font-size: 15px; }

/* ── رأس الفهرس ─────────────────────────────────────────────── */
.hhead h1 { max-width: none; }
.hhead .row { border-top: 0; padding-top: 0; margin-top: clamp(28px, 4vw, 44px); }
.hpop { margin-top: 26px; font-size: 13.5px; color: var(--ink-soft); }
.hpop-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; font-size: 15px; }
.hpop-list a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .45s var(--ease), color .2s; }
.hpop-list a:hover { color: var(--seal); background-size: 0 1px; background-position: 100% 100%; }

/* ── الأقسام ─────────────────────────────────────────────────── */
.hgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 80px) clamp(24px, 3vw, 56px);
  padding-block: clamp(64px, 8vw, 112px) clamp(48px, 6vw, 88px); }
.hcat { border-top: 1px solid var(--ink); padding-top: 20px; scroll-margin-top: 88px; }
.hcat h2 { display: flex; align-items: center; gap: 10px; }
.hcat h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--dot, var(--leaf)); flex: none; }
.hcat h2 .num { margin-inline-start: auto; direction: rtl; font-size: 12.5px; color: var(--ink-faint); }
.hcat > p { margin-top: 6px; font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); }
.hcat ul { list-style: none; margin-top: 14px; }
.hcat li { border-bottom: 1px solid var(--line); }
.hcat li a { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 12px; align-items: center;
  padding-block: 12px; font-size: 15.5px; line-height: 1.6; transition: color .2s; }
.hcat li a::after { content: ""; width: 14px; height: 14px; background: currentColor; opacity: .35;
  transition: transform .4s var(--ease), opacity .2s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M13 8H3M7 4 3 8l4 4'/%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 16 16' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M13 8H3M7 4 3 8l4 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.hcat li a:hover { color: var(--seal); }
.hcat li a:hover::after { opacity: 1; transform: translateX(-4px); }
.hcat:target h2 { color: var(--seal); }
@media (max-width: 1080px) { .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .hgrid { grid-template-columns: minmax(0, 1fr); } }

/* ── شريط البحث فوق المقال ───────────────────────────────────── */
.hbar { background: var(--leaf-mist); padding-block: 14px; }
.hbar .hsearch { max-width: 560px; }
.hbar .hsearch input { height: 48px; border-color: transparent; font-size: 15px; }

/* ── داخل المقال ─────────────────────────────────────────────── */
.help .article h1 { max-width: 26ch; font-size: clamp(32px, 4.2vw, 60px); }
.help .crumbs { padding-top: clamp(32px, 5vw, 64px); }
.prose .ui { display: inline; padding: 1px 7px; background: var(--tile); color: var(--ink); font-size: .93em;
  font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.prose code { font-family: var(--mono); font-size: .9em; padding: 0 5px; background: var(--tile); direction: ltr; unicode-bidi: isolate; }
.prose ol.hsteps { list-style: none; padding: 0; counter-reset: st; }
.prose ol.hsteps > li { counter-increment: st; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px;
  padding: 0; margin-bottom: 14px; }
.prose ol.hsteps > li::before { content: counter(st); display: grid; place-items: center; width: 28px; height: 28px;
  margin-top: 3px; border-radius: 50%; background: var(--leaf-wash); color: var(--seal-deep);
  font-family: var(--mono); font-size: 13px; font-weight: 500; }
.prose h2:target { color: var(--seal); }
.prose .tbl td:first-child { white-space: normal; }

/* ── «ما وجدت جوابك؟» ─────────────────────────────────────────── */
.hcontact { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px 40px;
  margin-block: clamp(56px, 7vw, 96px) clamp(72px, 9vw, 128px); padding: clamp(24px, 3vw, 40px); background: var(--rose); }
.hcontact .p { margin-top: 8px; max-width: 58ch; }
main.article .hcontact { margin-bottom: 0; }
@media (max-width: 620px) { .hcontact .pill { width: 100%; justify-content: center; } }

/* ── التواريخ: «الجديد في ربط» وسجل كل ميزة ───────────────────── */
.hstamp { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--ink-soft); }
/* الشهر عربي: خط Plex Mono بلا حروف عربية فيتباعد — الخط الأساسي بأرقام جدولية */
.hstamp time, .hnews-list time, .hlog time { font-variant-numeric: tabular-nums; }
.hnews { padding-top: clamp(56px, 7vw, 96px); }
.hnews-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--ink); padding-top: 20px; }
.hnews-head .ulink { font-size: 14.5px; color: var(--seal); }
.hnews-list { list-style: none; margin-top: 6px; }
.hnews-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 6px clamp(16px, 3vw, 40px);
  align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--line); }
.hnews-list time { font-size: 13px; color: var(--ink-soft); }
.hnews-list b { font-weight: 500; font-size: 17px; line-height: 1.5; }
.hnews-list p { margin-top: 2px; font-size: 15px; line-height: 1.8; color: var(--ink-2); max-width: 70ch; }
.hnews-list .ulink { font-size: 14px; color: var(--seal); white-space: nowrap; }
.hmonths { margin-top: clamp(40px, 5vw, 72px); }
.hmonth + .hmonth { margin-top: clamp(40px, 5vw, 64px); }
.hmonth > h2 { border-top: 1px solid var(--ink); padding-top: 18px; }
@media (max-width: 680px) {
  .hnews-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hnews-list .ulink { justify-self: start; }
}
.prose .hlog { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.prose .hlog li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 2px 20px; padding: 12px 0;
  margin: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.prose .hlog time { grid-row: span 2; font-size: 13px; color: var(--ink-soft); padding-top: 3px; }
.prose .hlog b { font-weight: 500; color: var(--ink); }
.prose .hlog span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 620px) { .prose .hlog li { grid-template-columns: minmax(0, 1fr); } .prose .hlog time { grid-row: auto; } }
