/* Fix Prompt 43 — the customer help page (/help): design-reference/help/help-mobile-mock.html with the app's own
   components (.card, icon_tile, .cta) and tokens only. Mobile first; from 900px a centred ~720px column with the
   chip row as a sticky table of contents on the side. */

.hp-body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
.hp-band { height: 150px; background-size: 40px 40px; background-repeat: repeat; }
.hp-wrap { max-width: 428px; margin: 0 auto; padding: 0 var(--space-3) 28px; }

/* the logo and the title on white, never on the pattern */
.hp-head { position: relative; margin: -112px 0 0; padding: 22px 20px 20px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 6px; }
.hp-head h1 { margin: 10px 0 0; font-size: 26px; font-weight: 900; }
.hp-head p { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--text-soft); }
.hp-back { position: absolute; top: 12px; right: 14px; display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* contents: a scrollable chip row */
.hp-toc { display: flex; gap: var(--space-1); overflow-x: auto; padding: var(--space-3) 2px 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hp-toc::-webkit-scrollbar { display: none; }
.hp-chip { flex: none; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow); white-space: nowrap; }
.hp-chip.on { background: var(--ink); color: #fff; }

.hp-main { padding-top: var(--space-2); }
.hp-main .card { margin-bottom: 10px; padding: 0; }
.hp-intro.card { padding: 14px 16px; margin: 0 0 10px; font-size: 13.5px; line-height: 1.9; color: var(--text-soft); }
.hp-intro b { color: var(--text); }

/* a collapsible section card */
.hp-sec { scroll-margin-top: 12px; }
.hp-sum { display: flex; align-items: center; gap: var(--space-2); padding: 14px 16px; cursor: pointer;
  list-style: none; }
.hp-sum::-webkit-details-marker { display: none; }
.hp-title { flex: 1; font-size: 15.5px; font-weight: 800; color: var(--text); }
.hp-chev { color: var(--muted-text); transition: transform .15s; }
.hp-sec[open] .hp-chev { transform: rotate(180deg); }
.hp-body-in { padding: 0 16px 16px; border-top: 1px solid var(--border); }

.hp-p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--text-soft); }
.hp-p b, .hp-list b { color: var(--text); }
.hp-h3 { margin: 16px 0 0; font-size: 14px; font-weight: 800; }
.hp-list { margin: 10px 0 0; padding: 0 18px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--text-soft); }
.hp-list li + li { margin-top: 4px; }
.hp-ltr { unicode-bidi: isolate; }

/* numbered steps */
.hp-steps { list-style: none; margin: 0; padding: 0; }
.hp-step { display: flex; gap: 10px; align-items: flex-start; padding-top: 12px; }
.hp-num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.hp-step-t { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.7; }
.hp-step-s { font-size: 12.5px; color: var(--text-soft); line-height: 1.7; }

/* a screenshot frame */
.hp-shot { margin: 12px 0 0; border-radius: var(--radius-card); background: var(--bg); padding: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hp-shot img { display: block; width: 200px; max-width: 100%; height: auto; border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow); }
.hp-shot figcaption { font-size: 11.5px; color: var(--muted-text); text-align: center; line-height: 1.7; }

/* the «مثال» box */
.hp-example { margin-top: 12px; border-radius: var(--radius-card); background: var(--gold-tint); padding: 12px 14px; }
.hp-example-h { font-size: 12.5px; font-weight: 800; color: var(--gold-text); }
.hp-example-t { font-size: 13px; color: var(--text); line-height: 1.9; margin-top: 2px; }
.hp-example-f { font-size: 13px; color: var(--text-soft); line-height: 1.9; }
.hp-example-f b { color: var(--text); font-size: 15px; }

.hp-bank { margin-top: 12px; border-radius: var(--radius-card); background: var(--ink-tint-soft); padding: 12px 14px; }
.hp-bank-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.hp-bank-t { margin-top: 4px; font-size: 13.5px; line-height: 1.9; white-space: pre-line; color: var(--text); }

.hp-warn { margin: 12px 0 0; display: flex; gap: 8px; align-items: flex-start; border-radius: var(--radius-card);
  background: var(--gold-tint); color: var(--gold-text); padding: 10px 12px; font-size: 13px; font-weight: 700; line-height: 1.8; }
.hp-warn .icon { flex: none; margin-top: 4px; }

.hp-faq p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--text-soft); }
.hp-faq b { color: var(--text); }

/* the support card */
.hp-help-card.card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.hp-help-h { font-size: 15px; font-weight: 800; }
.hp-help-btns { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.hp-help-btns .cta { flex: 1 1 140px; width: auto; padding: 12px; font-size: 14px; text-decoration: none; }
.hp-help-btns .cta.hp-soft { background: var(--ink-tint); color: var(--ink-2); }
.hp-help-note { font-size: 12px; color: var(--muted-text); line-height: 1.8; }
.hp-foot { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--muted-text); }
.hp-foot a { color: var(--ink-2); font-weight: 700; }

/* desktop: the same cards in a centred ~720px column, the contents sticky on the side */
@media (min-width: 900px) {
  .hp-band { height: 190px; }
  .hp-wrap { max-width: 960px; }
  .hp-head { max-width: 912px; margin: -130px auto 0; }      /* the width of the contents + the cards below */
  .hp-layout { display: flex; gap: var(--space-4); align-items: flex-start; justify-content: center; }
  .hp-toc { flex: none; width: 168px; flex-direction: column; position: sticky; top: 16px; overflow: visible;
    padding: 24px 0 0; }
  .hp-chip { text-align: right; }
  .hp-main { flex: none; width: 720px; max-width: 100%; padding-top: 24px; }
  .hp-shot img { width: 240px; }
}
