/* راهنمای کاربران «هوشاد» و ربات بله — /hooshad/help
   هم‌هویت لندینگ هوشاد (تم سبز اپ: #1d9690) و هم‌فونت سایت. ریسپانسیو کامل: فهرست ثابت کنار متن در دسکتاپ، نوار افقی چسبان در موبایل،
   جدول‌ها در موبایل به کارت تبدیل می‌شوند. هیچ overflow روی والد فهرست نیست تا position:sticky کار کند. */
.hh-page {
    --hh-primary: #1d9690;
    --hh-primary-dark: #146f6a;
    --hh-primary-light: #25b8b0;
    --hh-soft: #e5f7f6;
    --hh-ink: #0f2e2c;
    --hh-ink-soft: #2f4f4c;
    --hh-muted: #557674;
    --hh-line: #d5e6e5;
    --hh-surface: #ffffff;
    --hh-bg: #f4faf9;
    --hh-warn: #9a5a08;
    --hh-warn-soft: #fff4e0;
    --hh-danger: #b3261e;
    --hh-danger-soft: #fdeceb;
    --hh-bubble-in: #eef3f3;
    --hh-bubble-out: #d4f1ef;
    direction: rtl;
    font-family: webmehrazfont, Tahoma, sans-serif;
    color: var(--hh-ink);
    background: var(--hh-bg);
    line-height: 2;
    font-size: 16px;
    overflow-wrap: anywhere;
}
.hh-page *, .hh-page *::before, .hh-page *::after { box-sizing: border-box; }
.hh-page h1, .hh-page h2, .hh-page h3, .hh-page p, .hh-page ul, .hh-page ol { margin: 0; }
.hh-page h1, .hh-page h2, .hh-page h3 { line-height: 1.55; text-wrap: balance; }
.hh-page p { margin-bottom: 12px; }
.hh-page ul, .hh-page ol { padding-inline-start: 22px; margin-bottom: 12px; }
.hh-page li { margin-bottom: 4px; }
.hh-page b, .hh-page strong { font-weight: 700; }
.hh-page a { color: var(--hh-primary-dark); }
.hh-page :focus-visible { outline: 2px solid var(--hh-primary); outline-offset: 2px; border-radius: 6px; }
.hh-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.hh-prose { max-width: 72ch; }

/* هیرو */
.hh-hero {
    background: linear-gradient(135deg, var(--hh-primary-light) 0%, var(--hh-primary-dark) 100%);
    color: #fff;
    padding: 46px 20px 54px;
}
.hh-hero-in { max-width: 1180px; margin: 0 auto; }
.hh-crumb { font-size: 14px; opacity: .9; margin-bottom: 14px; }
.hh-crumb a { color: #fff; }
.hh-hero h1 { font-size: clamp(26px, 5vw, 40px); }
.hh-hero p.hh-lead { font-size: clamp(15.5px, 2.4vw, 18px); opacity: .95; max-width: 62ch; margin: 10px 0 0; }
.hh-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hh-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 14px;
    background: #fff; color: var(--hh-primary-dark) !important; text-decoration: none; font-weight: 700; font-size: 15px;
}
.hh-btn.ghost { background: rgba(255, 255, 255, .16); color: #fff !important; border: 1px solid rgba(255, 255, 255, .45); }
.hh-btn:hover { filter: brightness(.97); }

/* چیدمان */
.hh-wrap {
    max-width: 1180px; margin: 0 auto; padding: 0 20px 64px;
    display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px;
}
.hh-toc { position: sticky; top: 16px; align-self: start; padding-top: 28px; max-height: calc(100vh - 32px); overflow: auto; }
.hh-toc .hh-cap { font-size: 12.5px; color: var(--hh-muted); margin: 14px 10px 4px; }
.hh-toc .hh-cap:first-child { margin-top: 0; }
.hh-toc a {
    display: block; padding: 5px 12px; border-radius: 9px; color: var(--hh-ink-soft); text-decoration: none; font-size: 14.5px;
    border-inline-start: 3px solid transparent; line-height: 1.8;
}
.hh-toc a:hover { background: var(--hh-soft); }
.hh-toc a.on { background: var(--hh-soft); border-inline-start-color: var(--hh-primary); color: var(--hh-ink); font-weight: 700; }

.hh-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; padding-top: 26px; }
.hh-way { background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: 16px; padding: 14px 18px; box-shadow: 0 10px 28px rgba(20, 111, 106, .07); }
.hh-way b { display: block; font-size: 17px; }
.hh-way span { color: var(--hh-muted); font-size: 14.5px; }

.hh-sec { padding-top: 30px; scroll-margin-top: 20px; }
.hh-sec > h2 { font-size: clamp(21px, 3.6vw, 26px); font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 3px solid var(--hh-primary); display: inline-block; }
.hh-sec h3 { font-size: 18px; font-weight: 700; margin: 22px 0 8px; }
.hh-tag { display: inline-block; font-size: 12.5px; padding: 0 10px; border-radius: 999px; background: var(--hh-soft); color: var(--hh-primary-dark); margin-inline-start: 8px; vertical-align: middle; line-height: 1.9; font-weight: 400; }

.hh-steps { list-style: none; padding: 0 !important; display: grid; gap: 10px; counter-reset: s; margin-bottom: 14px; }
.hh-steps > li {
    counter-increment: s; position: relative; margin: 0; background: var(--hh-surface); border: 1px solid var(--hh-line);
    border-radius: 14px; padding: 12px 16px; padding-inline-start: 62px;
}
.hh-steps > li::before {
    content: counter(s, persian); position: absolute; inset-inline-start: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--hh-primary-light), var(--hh-primary-dark)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; line-height: 1;
}

.hh-box { border-radius: 14px; padding: 12px 16px; margin: 14px 0; }
.hh-box b { display: block; margin-bottom: 2px; }
.hh-box.note { background: var(--hh-soft); } .hh-box.note b { color: var(--hh-primary-dark); }
.hh-box.warn { background: var(--hh-warn-soft); } .hh-box.warn b { color: var(--hh-warn); }
.hh-box.danger { background: var(--hh-danger-soft); } .hh-box.danger b { color: var(--hh-danger); }

.hh-table-wrap { overflow-x: auto; border: 1px solid var(--hh-line); border-radius: 14px; background: var(--hh-surface); margin: 10px 0 16px; -webkit-overflow-scrolling: touch; }
.hh-page table { border-collapse: collapse; width: 100%; min-width: 500px; font-size: 15px; }
.hh-page th, .hh-page td { padding: 10px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--hh-line); }
.hh-page th { background: var(--hh-soft); font-weight: 700; white-space: nowrap; }
.hh-page tr:last-child td { border-bottom: 0; }
.hh-page td.k { font-weight: 700; white-space: nowrap; }

.hh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; margin: 10px 0 16px; }
.hh-cards div { background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: 14px; padding: 10px 14px; }
.hh-cards b { display: block; }
.hh-cards span { color: var(--hh-muted); font-size: 14px; line-height: 1.8; display: block; }

.hh-phone { background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: 22px; padding: 14px; max-width: 420px; display: grid; gap: 8px; margin: 12px 0 18px; box-shadow: 0 10px 28px rgba(20, 111, 106, .08); }
.hh-phone .bar { font-size: 13px; color: var(--hh-muted); border-bottom: 1px solid var(--hh-line); padding-bottom: 8px; margin-bottom: 2px; }
.hh-msg { padding: 8px 13px; border-radius: 14px; max-width: 88%; font-size: 14.5px; line-height: 1.85; white-space: pre-line; }
.hh-msg.bot { background: var(--hh-bubble-in); border-end-start-radius: 4px; justify-self: start; }
.hh-msg.me { background: var(--hh-bubble-out); border-end-end-radius: 4px; justify-self: end; }
.hh-msg.btn { justify-self: stretch; max-width: 100%; text-align: center; background: transparent; border: 1px dashed var(--hh-primary); color: var(--hh-primary-dark); font-weight: 700; }

.hh-page details { background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: 14px; margin-bottom: 8px; max-width: 780px; }
.hh-page summary { cursor: pointer; padding: 11px 16px; font-weight: 700; list-style-position: inside; }
.hh-page details > div { padding: 0 16px 10px; }
.hh-page details[open] summary { border-bottom: 1px solid var(--hh-line); margin-bottom: 10px; }

.hh-contact { margin-top: 28px; border-radius: 20px; padding: 18px 22px; color: #fff; background: linear-gradient(135deg, var(--hh-primary-light), var(--hh-primary-dark)); display: grid; gap: 2px; max-width: 780px; }
.hh-contact b { font-size: 22px; letter-spacing: .03em; }
.hh-foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--hh-line); color: var(--hh-muted); font-size: 13.5px; }

/* تبلت و موبایل */
@media (max-width: 900px) {
    .hh-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-inline: 16px; }
    .hh-toc {
        top: 0; z-index: 30; max-height: none; padding: 8px 16px; margin-inline: -16px; background: var(--hh-bg); border-bottom: 1px solid var(--hh-line);
        display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
    }
    .hh-toc::-webkit-scrollbar { display: none; }
    .hh-toc .hh-cap { display: none; }
    .hh-toc a { flex: none; background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: 999px; padding: 3px 14px; border-inline-start-width: 1px; }
    .hh-toc a.on { border-color: var(--hh-primary); }
    .hh-sec { scroll-margin-top: 64px; }
}
/* موبایل: جدول‌ها کارت می‌شوند */
@media (max-width: 640px) {
    .hh-table-wrap { overflow: visible; border: 0; background: transparent; border-radius: 0; }
    .hh-page table, .hh-page thead, .hh-page tbody, .hh-page tr, .hh-page th, .hh-page td { display: block; min-width: 0; width: 100%; }
    .hh-page thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .hh-page tr { background: var(--hh-surface); border: 1px solid var(--hh-line); border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; }
    .hh-page td { border: 0; padding: 0; }
    .hh-page td.k { white-space: normal; color: var(--hh-primary-dark); margin-bottom: 2px; }
}
@media (max-width: 520px) {
    .hh-page { font-size: 15.5px; }
    .hh-hero { padding: 30px 16px 38px; }
    .hh-steps > li { padding-inline-start: 56px; padding-block: 11px; }
    .hh-steps > li::before { width: 32px; height: 32px; }
    .hh-btn { width: 100%; justify-content: center; }
    .hh-contact b { font-size: 19px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .hh-toc, .hh-hero-actions { display: none; } .hh-wrap { display: block; } .hh-page { background: #fff; } .hh-page details > div { display: block; } }
