/* ===========================================================
   Help centre / FAQ - BDStall (redesign, 2026-11-11)
   Same design language as the contact & support centre (pages/contact-support.css):
   centred hero with an orange accent and a green rule, white cards, green icon circles,
   orange call to action. Mobile-first; kebab-case; system fonts; weights <= 700.
   =========================================================== */
.help-page {
    --help-green: var(--green, #149A49);
    --help-green-dark: var(--green-dark, #0E7A38);
    --help-green-soft: #e3f4e9;
    --help-orange: var(--orange, #F58320);
    --help-text: var(--color-text-primary, #1C1C1A);
    --help-muted: #6b6558;
    --help-border: #eee6da;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px 40px;
    color: var(--help-text);
}
/* Bangla uses the site's default font (SolaimanLipi first, frontend_layout.php :lang(bn)); only the sizes go up here,
   since Bangla script reads smaller than Latin at the same size. */
.help-page.is-bn .help-question summary { font-size: 18px; line-height: 1.55; }
.help-page.is-bn .help-answer { font-size: 17.5px; line-height: 1.85; }
.help-page.is-bn .help-topic-name { font-size: 15px; }
.help-page.is-bn .help-group-title { font-size: 19px; }
@media (min-width: 768px) {
    .help-page.is-bn .help-question summary { font-size: 19px; }
    .help-page.is-bn .help-answer { font-size: 18px; }
    .help-page.is-bn .help-topic-name { font-size: 16px; }
}

.help-page .breadcrumb { padding: 0 0 8px; }
.help-page :focus-visible { outline: 2px solid var(--help-green); outline-offset: 2px; }
.help-page [hidden] { display: none !important; }
.help-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- hero ---- */
.help-hero { position: relative; text-align: center; margin: 4px 0 20px; }
.help-lang-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--help-green-dark);
    text-decoration: none;
}
.help-lang-link:hover { color: var(--help-green); text-decoration: none; }
.help-hero-title { font-size: 28px; font-weight: 700; line-height: 1.3; margin: 0; }
.help-hero-title .is-accent { color: var(--help-orange); }
.help-title-rule {
    display: block;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: var(--help-green);
    margin: 10px auto 16px;
}

.help-audience-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.help-chip {
    appearance: none;
    font: inherit;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid var(--help-border);
    border-radius: 999px;
    background: #fff;
    color: var(--help-text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.help-chip:hover { border-color: var(--help-green); }
.help-chip.is-active { border-color: var(--help-green); background: var(--help-green); color: #fff; }

/* ---- cards ---- */
.help-card {
    background: #fff;
    border: 1px solid var(--help-border);
    border-radius: 16px;
    padding: 18px 14px;
    margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(60, 40, 10, 0.04);
    scroll-margin-top: 90px;
}
.help-card-title { font-size: 22px; font-weight: 700; margin: 0 0 14px; }

/* ---- most asked ---- */
.help-most-asked { margin: 0 0 16px; }
.help-most-asked-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--help-green-dark);
}
.help-most-asked-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.help-most-asked-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--help-border);
    border-radius: 999px;
    background: #fff;
    color: var(--help-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(60, 40, 10, 0.04);
}
.help-most-asked-list a:hover { border-color: var(--help-green); color: var(--help-green-dark); text-decoration: none; }

/* ---- topic tiles (as the contact page's help topics) ---- */
/* Phone: icon beside the words, so twelve topics do not fill the first screen; stacked tiles from tablet up. */
.help-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.help-topic {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 8px;
    align-items: center;
    min-height: 60px;
    padding: 10px 8px;
    border: 1px solid var(--help-border);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-align: left;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.help-topic .help-topic-icon { grid-row: span 2; width: 36px; height: 36px; }
.help-topic:hover { border-color: var(--help-green); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06); color: inherit; text-decoration: none; }
.help-topic-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--help-green-soft);
    color: var(--help-green);
    transition: background 0.15s, color 0.15s;
}
.help-topic:hover .help-topic-icon { background: var(--help-green); color: #fff; }
.help-topic-name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.help-topic-count { font-size: 13px; color: var(--help-muted); }

/* ---- questions: each one its own card on the page background ---- */
.help-audience { margin: 28px 0 8px; scroll-margin-top: 90px; }
.help-audience-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
}
.help-audience-title::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--help-border); }
.help-group { margin-top: 18px; scroll-margin-top: 90px; }
.help-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--help-green-dark);
}
.help-group-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--help-green-soft);
    color: var(--help-green);
    flex-shrink: 0;
}
.help-questions { display: flex; flex-direction: column; gap: 10px; }
.help-question {
    background: #fff;
    border: 1px solid var(--help-border);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(60, 40, 10, 0.05);
    scroll-margin-top: 90px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.help-question:hover { border-color: #e2d6c3; }
.help-question[open] { border-color: #e2d6c3; box-shadow: 0 8px 24px rgba(60, 40, 10, 0.08); }
.help-question summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}
.help-question summary::-webkit-details-marker { display: none; }
.help-question-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--help-green-soft);
    color: var(--help-green);
    transition: background 0.15s, color 0.15s;
}
.help-question[open] .help-question-mark,
.help-question summary:hover .help-question-mark { background: var(--help-green); color: #fff; }
.help-question-text { flex: 1; min-width: 0; }
.help-question-toggle {
    display: flex;
    flex-shrink: 0;
    color: var(--help-muted);
    transition: transform 0.2s;
}
.help-question[open] .help-question-toggle { transform: rotate(180deg); color: var(--help-text); }

.help-answer { margin: 0 16px; padding: 14px 0 16px; border-top: 1px dashed var(--help-border); font-size: 16.5px; line-height: 1.75; color: #3d3a33; }
.help-answer p { margin: 0 0 10px; }
.help-answer ul { list-style: none; padding-left: 0; }
.help-answer ul li { position: relative; padding-left: 18px; }
.help-answer ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--help-orange);
}
/* A suggestion ("টিপস:"), as the blog's tips: a green bar on the left, an icon, the label in bold. White ground (no tinted fill). */
.help-answer-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 14px 0 6px;
    padding: 14px 16px;
    border: 1px solid var(--help-border);
    border-left: 4px solid var(--help-green);
    border-radius: 0 12px 12px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(60, 40, 10, 0.05);
}
.help-answer-tip p { margin: 0; color: var(--help-text); }
.help-answer a:not(.help-next-step) { color: var(--help-green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.help-answer a:not(.help-next-step):hover { color: var(--help-green); }
.help-answer-tip strong { color: var(--help-green-dark); }
.help-answer-tip-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--help-green);
    color: #fff;
}
.help-answer-panels { display: grid; gap: 12px; margin: 12px 0 6px; }
.help-answer-panel {
    padding: 14px 16px 6px;
    border: 1px solid var(--help-border);
    border-radius: 12px;
    background: #fff;
}
.help-answer-panel ul,
.help-answer-panel ol { margin: 0 0 6px; }
.help-answer .help-answer-heading {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--help-border);
    font-weight: 700;
    color: var(--help-text);
}
.help-answer ul { margin: 4px 0 10px; }
.help-answer ol { margin: 4px 0 10px; padding-left: 22px; }
.help-answer li { margin-bottom: 6px; }
.help-page.is-bn .help-answer ol { list-style-type: bengali; }
.help-answer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 6px; }
.help-next-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 18px;
    border: 1.5px solid var(--help-green);
    border-radius: 10px;
    background: #fff;
    color: var(--help-green-dark);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
.help-next-step:hover { background: var(--help-green); color: #fff; text-decoration: none; }
.help-permalink {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--help-muted);
    text-decoration: none;
}
.help-question[open] .help-permalink { display: inline-flex; }
.help-permalink-done {
    position: absolute;
    right: 100%;
    margin-right: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--help-text);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.help-permalink:hover { color: var(--help-green-dark); background: var(--help-green-soft); text-decoration: none; }

/* ---- orange call to action (as .support-cta) ---- */
.help-cta {
    appearance: none;
    border: none;
    font: inherit;
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--help-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(245, 131, 32, 0.28);
}
.help-cta:hover { filter: brightness(0.95); }

.help-no-results { text-align: center; }
.help-no-results p { margin: 0 0 12px; color: var(--help-muted); font-size: 16px; }
.help-no-results .help-cta { max-width: 360px; margin: 0 auto; }

/* ---- did not find it ---- */
.help-still-need { text-align: center; padding: 24px 16px; }
.help-still-need-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--help-green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(20, 154, 73, 0.22);
}
.help-still-need .help-card-title { margin-bottom: 6px; }
.help-still-need-lead { font-size: 16px; line-height: 1.7; color: var(--help-muted); margin: 0 auto 16px; max-width: 520px; }
.help-still-need .help-cta { max-width: 360px; margin: 0 auto 6px; }
.help-still-need-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.help-still-need-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 700;
    color: var(--help-green);
    text-decoration: none;
}
.help-still-need-links a:hover { color: var(--help-green-dark); text-decoration: none; }

@media (min-width: 768px) {
    .help-page { padding: 12px 24px 48px; }
    .help-hero { margin: 8px 0 26px; }
    .help-hero-title { font-size: 36px; }
    .help-card { padding: 22px 24px; }
    .help-topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    .help-topic {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        min-height: 116px;
        padding: 14px 8px 12px;
        text-align: center;
    }
    .help-topic .help-topic-icon { width: 44px; height: 44px; }
    .help-topic-name { font-size: 15px; line-height: 1.35; }
    .help-question summary { font-size: 18px; }
    .help-answer { font-size: 17px; padding-left: 44px; }
    .help-answer-panels { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (min-width: 1024px) {
    .help-topic-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---- topic menu: a drawer from the left on phones and tablets, a menu that stays in view on desktop (owner, 2026-11-11) ---- */
.help-topics-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.help-sidebar .help-topic-grid { grid-template-columns: 1fr; gap: 2px; }
.help-sidebar .help-topic {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 10px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0 10px 10px 0;
    text-align: left;
    box-shadow: none;
}
.help-sidebar .help-topic .help-topic-icon { width: 32px; height: 32px; grid-row: auto; }
.help-sidebar .help-topic-name { font-size: 15px; }
.help-sidebar .help-topic-count { font-size: 12px; white-space: nowrap; }
.help-sidebar .help-topic:hover { box-shadow: none; color: var(--help-green-dark); }
.help-sidebar .help-topic.is-current { border-left-color: var(--help-green); color: var(--help-green-dark); }
.help-sidebar .help-topic.is-current .help-topic-icon { background: var(--help-green); color: #fff; }

@media (max-width: 1023px) {
    .help-topics-fab {
        position: fixed;
        left: max(16px, env(safe-area-inset-left, 0px));
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        z-index: 900;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        padding: 10px 18px;
        border: 0;
        border-radius: 999px;
        background: var(--help-green-dark);
        color: #fff;
        font: inherit;
        font-size: 15px;
        font-weight: 700;
        box-shadow: 0 8px 22px rgba(14, 122, 56, 0.35);
        cursor: pointer;
    }
    .help-drawer-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(28, 26, 22, 0.45); }
    .help-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1001;
        width: min(86vw, 340px);
        overflow-y: auto;
        background: #fff;
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        padding-top: env(safe-area-inset-top, 0px);
    }
    .help-sidebar.is-open { transform: translateX(0); }
    .help-sidebar .help-topics { border: 0; border-radius: 0; box-shadow: none; margin: 0; padding: 16px 12px 24px; }
    .help-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 50%;
        background: #fff;
        color: var(--help-text);
        cursor: pointer;
    }
    .help-drawer-close:hover { background: var(--help-green-soft); }
    body.help-drawer-locked { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .help-sidebar { transition: none; } }

/* ---- desktop: topics as a left menu that stays in view, questions on the right (owner, 2026-11-11) ---- */
@media (min-width: 1024px) {
    .help-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
    .help-sidebar { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
    .help-sidebar .help-topics { padding: 16px 12px; margin-bottom: 0; }
    .help-sidebar .help-card-title { font-size: 18px; margin: 0 4px 10px; }
    .help-topics-fab, .help-drawer-backdrop, .help-drawer-close { display: none !important; }
    .help-main .help-audience:first-child { margin-top: 0; }
}
