/* =====================================================================
   Help Desk - one global stylesheet for the Help pages, the "?" panel and
   the review screen (classes prefixed .help-), loaded in both hosts.
   Phone <= 767.98px per tokens.css.
   ===================================================================== */
.help-page {
    --help-green: #0b6b3a;
    --help-green-soft: #eaf5ee;
    --help-line: #e5e9ec;
    --help-text: #1f2a30;
    --help-muted: #6b7780;
    --help-amber-soft: #fff7ec;
    color: var(--help-text);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 24px;
}
.help-muted { color: var(--help-muted, #6b7780); margin: 0; }
.help-link { color: var(--help-green, #0b6b3a); text-decoration: underline; display: inline-flex; gap: 6px; align-items: center; margin-right: 16px; }

/* ---- language picker ---- */
.help-lang { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.help-lang select { border: 1px solid #d0d7dc; border-radius: 8px; padding: 6px 28px 6px 10px; background-color: #fff; font-size: 14px; }
.help-lang--compact select { padding: 4px 24px 4px 8px; font-size: 13px; }

/* ---- search ---- */
.help-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--help-line); border-radius: 10px; padding: 8px 12px; background: #fff; max-width: 560px; margin: 0; }
.help-search input { border: 0; outline: 0; flex: 1; font-size: 15px; background: transparent; }
.help-hits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.help-hits a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--help-line); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; }
.help-hits a:hover { border-color: var(--help-green); }
.help-hits span { color: var(--help-muted); font-size: 13px; }

/* ---- module cards ---- */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.help-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--help-line); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 1px 3px rgba(16, 24, 40, .04); }
.help-card:hover { border-color: var(--help-green); }
.help-card__icon { font-size: 24px; color: var(--help-green); }
.help-card__title { font-weight: 600; font-size: 16px; }
.help-card__count { color: var(--help-muted); font-size: 13px; }
.help-empty { text-align: center; padding: 40px 16px; color: var(--help-muted); }
.help-empty i { font-size: 32px; display: block; margin-bottom: 8px; }

/* ---- guide view ---- */
.help-guide { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.help-toc { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--help-line); border-radius: 12px; background: #fff; padding: 8px; position: sticky; top: 12px; }
.help-toc__item { padding: 10px 12px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 14px; }
.help-toc__item:hover { background: #f4f6f7; }
.help-toc__item.is-active { background: var(--help-green-soft); color: var(--help-green); font-weight: 600; }
.help-guide__content { border: 1px solid var(--help-line); border-radius: 12px; background: #fff; padding: 20px 24px; }

/* ---- section text ---- */
.help-section__title { font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.help-section__text { line-height: 1.6; font-size: 15px; }
.help-section__text h3 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; }
.help-section__text h4 { font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
.help-section__text ol, .help-section__text ul { padding-left: 22px; margin: 6px 0 12px; }
.help-section__text li { margin: 4px 0; }
.help-section__text p { margin: 6px 0 12px; }
/* A bold-only line above its text ("What this screen is for"): a small label, close to that text. */
.help-section__text p.help-label { margin: 6px 0 2px; font-size: 13px; color: #61716a; }
.help-section__text img { max-width: 100%; height: auto; border: 1px solid var(--help-line, #e5e9ec); border-radius: 8px; }
.help-figure { margin: 10px 0 16px; }
.help-note { background: var(--help-amber-soft, #fff7ec); border-left: 3px solid #e69500; border-radius: 6px; padding: 8px 12px; margin: 10px 0; }
.help-note p { margin: 0; }
.help-flag { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #5b6870; background: #f1f3f5; border-radius: 999px; padding: 4px 10px; margin: 0 0 10px; }
.help-flag--mt { background: var(--help-amber-soft, #fff7ec); color: #8a5a00; }

/* ---- Listen ---- */
.help-listen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.help-listen__btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #0b6b3a; color: #0b6b3a; background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.help-listen__btn:disabled { opacity: .7; }
.help-listen__audio { width: min(360px, 100%); height: 36px; }

/* ---- translation review ---- */
.help-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d0d7dc; background: #fff; color: #1f2a30; border-radius: 8px; padding: 7px 14px; font-size: 14px; }
.help-btn--primary { background: #0b6b3a; border-color: #0b6b3a; color: #fff; }
.help-btn:disabled { opacity: .6; }
.help-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.help-tab { padding: 7px 14px; border-radius: 999px; border: 1px solid #d0d7dc; background: #fff; color: inherit; text-decoration: none; font-size: 14px; }
.help-tab.is-active { background: #0b6b3a; border-color: #0b6b3a; color: #fff; }
.help-review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.help-review-progress { margin: 0; }
.help-review { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.help-review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.help-review-row { width: 100%; text-align: left; border: 1px solid #e5e9ec; background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.help-review-row.is-active { border-color: #0b6b3a; background: #f2f8f4; }
.help-review-row__title { font-weight: 600; font-size: 14px; }
.help-review-row__meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: #6b7780; }
.help-chip { border-radius: 999px; padding: 1px 8px; font-size: 12px; background: #f1f3f5; color: #5b6870; }
.help-chip--approved { background: #eaf5ee; color: #0b6b3a; }
.help-chip--needscorrection { background: #fff7ec; color: #8a5a00; }
.help-chip--low { background: #fdeeee; color: #b42318; }
.help-review-detail { border: 1px solid #e5e9ec; border-radius: 12px; background: #fff; padding: 18px; }
.help-review-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.help-review-col__label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6b7780; margin: 0 0 6px; }
.help-review-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e5e9ec; }
.help-review-saved { color: #0b6b3a; display: inline-flex; gap: 4px; align-items: center; }
.help-review-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.help-review-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.help-reviewers { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.help-reviewers li { border: 1px solid #e5e9ec; border-radius: 10px; background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.help-reviewers__langs { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---- "?" button + panel ---- */
.help-topbar-btn { display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: inherit; background: transparent; border: 0; }
/* Above the top bar's account toggle (z-index 1103) so nothing overlaps the close button. */
.help-panel-backdrop { position: fixed; inset: 0; background: rgba(16, 24, 40, .35); z-index: 1190; }
.help-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 1200; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(16, 24, 40, .12); color: #1f2a30; }
.help-panel__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #e5e9ec; }
.help-panel__head strong { display: inline-flex; gap: 6px; align-items: center; margin-right: auto; }
.help-panel__close { border: 0; background: transparent; font-size: 18px; padding: 4px 6px; }
.help-panel__body { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.help-panel__body .help-section__title { font-size: 18px; }

@media (max-width: 1023.98px) {
    .help-review { grid-template-columns: 1fr; }
    .help-review-compare { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .help-guide { grid-template-columns: 1fr; }
    .help-toc { position: static; flex-direction: row; overflow-x: auto; }
    .help-toc__item { white-space: nowrap; }
    .help-guide__content { padding: 16px; }
    .help-panel { top: auto; left: 0; right: 0; width: 100vw; max-height: 85vh; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(16, 24, 40, .12); }
}

/* ---------- Help centre v2: fields table (guides and the review Feedback tab) ---------- */
.hc-fields { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; font-size: 13px; border: 1px solid #e2eae5; border-radius: 12px; overflow: hidden; }
.hc-fields th { text-align: left; font-weight: 600; color: #61716a; background: #f6f9f7; padding: 10px 12px; }
.hc-fields td { padding: 10px 12px; border-top: 1px solid #e2eae5; vertical-align: top; }
.hc-feedback td:nth-child(3), .hc-feedback td:nth-child(4) { font-weight: 600; text-align: center; }
.hc-feedback__bad { color: #b91c1c; }
