/* HELP-2/3: the shared look of the help pages (the super-admin troubleshooting page, the customer guide in the
   admin panel and the public customer guide). It reads the colour variables of whichever layout hosts it
   (the admin panel names its primary colour --primary-color, the public layout --primary) and falls back to
   neutral values, so one file serves all three hosts. */
.hg-wrap { --hg-primary: var(--primary, var(--primary-color, #1f6feb)); --hg-ink: var(--ink, #1f2937); --hg-muted: var(--muted, #6b7280); --hg-border: var(--border, #e5e7eb); --hg-soft: #f3f6fb; direction: rtl; color: var(--hg-ink); line-height: 1.9; }
.hg-wrap h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; padding-right: .75rem; border-right: 4px solid var(--hg-primary); }
.hg-wrap h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.hg-intro { color: var(--hg-muted); margin-bottom: 1rem; }

.hg-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0; }
.hg-search { flex: 1 1 260px; max-width: 460px; padding: .55rem .9rem; border: 1px solid var(--hg-border); border-radius: 10px; font: inherit; }
.hg-search:focus-visible { outline: 3px solid var(--hg-primary); outline-offset: 2px; }
.hg-count { color: var(--hg-muted); font-size: .9rem; }
.hg-empty { padding: 1rem; border: 1px dashed var(--hg-border); border-radius: 10px; color: var(--hg-muted); }

.hg-toc { background: var(--hg-soft); border: 1px solid var(--hg-border); border-radius: 12px; padding: .9rem 1.2rem; margin-bottom: 1.2rem; }
.hg-toc h2 { margin: 0 0 .4rem; font-size: 1.05rem; border: 0; padding: 0; }
.hg-toc ol { margin: 0; padding-right: 1.3rem; columns: 2 280px; column-gap: 2rem; }
.hg-toc li { break-inside: avoid; margin: .15rem 0; }
.hg-toc a { color: var(--hg-primary); text-decoration: none; }
.hg-toc a:hover, .hg-toc a:focus-visible { text-decoration: underline; }

.hg-entry { scroll-margin-top: 90px; background: #fff; border: 1px solid var(--hg-border); border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 1rem; }
.hg-entry[hidden] { display: none; }
.hg-row { margin: .55rem 0; }
.hg-row > .hg-k { display: block; font-weight: 700; color: var(--hg-primary); font-size: .92rem; }
.hg-row p { margin: .15rem 0; }
.hg-row ol, .hg-row ul { margin: .25rem 0; padding-right: 1.4rem; }
.hg-row li { margin: .2rem 0; }
.hg-escalate { background: #fff7ed; border-right: 4px solid #f59e0b; border-radius: 8px; padding: .5rem .8rem; }
.hg-escalate .hg-k { color: #b45309; }

.hg-wrap .ui { font-weight: 700; background: var(--hg-soft); border: 1px solid var(--hg-border); border-radius: 6px; padding: 0 .35rem; white-space: normal; }
.hg-wrap q.ui { font-weight: 500; background: #fefce8; border-color: #fde68a; quotes: "«" "»"; }
.hg-sep { margin: 0 .3rem; color: var(--hg-muted); }
.hg-path { display: inline; }

.hg-box { background: #fff7ed; border: 1px solid #fdba74; border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.hg-box h2 { margin-top: 0; border-color: #f59e0b; }
.hg-note { color: var(--hg-muted); font-size: .92rem; }

@media (max-width: 576px) {
    .hg-entry { padding: .85rem .9rem; }
    .hg-toc ol { columns: 1; }
    .hg-search { max-width: none; }
}
