/* /Pages/B2b/Help.razor.rz.scp.css */
/* ───────────────────────────────────────────────────────────────────────────
   B2B "Help & guides" reader. Two panes at lg and up — a category rail listing
   every published guide, and the numbered walkthrough for the selected one.
   Below lg the rail stacks above the reader. Colours come from the .b2b-root
   custom properties defined in wwwroot/css/b2b.css, so this page follows the
   Horizon B2B palette without redefining it. Logical properties throughout so
   the layout mirrors correctly under RTL.
   ─────────────────────────────────────────────────────────────────────────── */

.hlp[b-1qoexkzdd7] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Header + search ─────────────────────────────────────────────────────── */

.hlp__head[b-1qoexkzdd7] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hlp__search[b-1qoexkzdd7] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-block-start: 0.75rem;
    padding: 0.625rem 0.875rem;
    max-inline-size: 34rem;
    background: var(--b2b-card, #fff);
    border: 1px solid var(--b2b-border, #e3e5ee);
    border-radius: 999px;
}

.hlp__search:focus-within[b-1qoexkzdd7] {
    border-color: var(--b2b-primary, #003d9b);
    box-shadow: 0 0 0 3px rgba(0, 61, 155, 0.12);
}

.hlp__search > .material-symbols-outlined[b-1qoexkzdd7] {
    font-size: 20px;
    color: var(--b2b-on-surface-variant, #56607a);
}

.hlp__search input[b-1qoexkzdd7] {
    flex: 1;
    min-inline-size: 0;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--b2b-on-surface, #191c1e);
}

.hlp__search-clear[b-1qoexkzdd7] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--b2b-on-surface-variant, #56607a);
}

.hlp__search-clear:hover[b-1qoexkzdd7] {
    color: var(--b2b-on-surface, #191c1e);
}

/* ── Empty / error notice ────────────────────────────────────────────────── */

.hlp__notice[b-1qoexkzdd7] {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--b2b-card, #fff);
    border: 1px solid var(--b2b-border, #e3e5ee);
    border-radius: 14px;
}

.hlp__notice > .material-symbols-outlined[b-1qoexkzdd7] {
    flex: none;
    font-size: 28px;
    color: var(--b2b-primary, #003d9b);
}

.hlp__notice p[b-1qoexkzdd7] {
    margin: 0.25rem 0 0.875rem;
    color: var(--b2b-on-surface-variant, #56607a);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.hlp__notice--error > .material-symbols-outlined[b-1qoexkzdd7] {
    color: var(--b2b-err-fg, #b91c1c);
}

/* ── Two-pane body ───────────────────────────────────────────────────────── */

.hlp__body[b-1qoexkzdd7] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .hlp__body[b-1qoexkzdd7] {
        grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    }

    /* The rail scrolls independently so a long walkthrough never pushes the
       guide list out of reach. */
    .hlp__rail[b-1qoexkzdd7] {
        position: sticky;
        inset-block-start: 1rem;
        max-block-size: calc(100vh - 6rem);
        overflow-y: auto;
    }
}

/* ── Category rail ───────────────────────────────────────────────────────── */

.hlp__rail[b-1qoexkzdd7] {
    padding: 0.75rem;
}

.hlp__norail[b-1qoexkzdd7] {
    margin: 0;
    padding: 1rem;
    color: var(--b2b-on-surface-variant, #56607a);
    font-size: 0.9375rem;
}

.hlp__group + .hlp__group[b-1qoexkzdd7] {
    margin-block-start: 1rem;
}

.hlp__group-title[b-1qoexkzdd7] {
    margin: 0 0 0.375rem;
    padding-inline: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--b2b-on-surface-variant, #56607a);
}

.hlp__item[b-1qoexkzdd7] {
    inline-size: 100%;
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    padding: 0.625rem 0.5rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: start;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.hlp__item:hover[b-1qoexkzdd7] {
    background: var(--b2b-container-low, #f3f4f6);
}

.hlp__item.is-active[b-1qoexkzdd7] {
    background: var(--b2b-tertiary-fixed, #d9e2ff);
}

.hlp__item.is-active .hlp__item-title[b-1qoexkzdd7],
.hlp__item.is-active .hlp__item-ico[b-1qoexkzdd7] {
    color: var(--b2b-on-tertiary-fixed, #00419d);
}

.hlp__item-ico[b-1qoexkzdd7] {
    flex: none;
    font-size: 20px;
    margin-block-start: 1px;
    color: var(--b2b-on-surface-variant, #56607a);
}

.hlp__item-text[b-1qoexkzdd7] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-inline-size: 0;
}

.hlp__item-title[b-1qoexkzdd7] {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--b2b-on-surface, #191c1e);
}

.hlp__item-sub[b-1qoexkzdd7],
.hlp__item-meta[b-1qoexkzdd7] {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--b2b-on-surface-variant, #56607a);
}

.hlp__item-meta[b-1qoexkzdd7] {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* ── Reader ──────────────────────────────────────────────────────────────── */

.hlp__reader[b-1qoexkzdd7] {
    padding: 1.5rem;
}

.hlp__reader-head[b-1qoexkzdd7] {
    padding-block-end: 1.25rem;
    border-block-end: 1px solid var(--b2b-border, #e3e5ee);
}

.hlp__reader-title[b-1qoexkzdd7] {
    margin: 0.5rem 0 0;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--b2b-on-surface, #191c1e);
}

.hlp__reader-sub[b-1qoexkzdd7] {
    margin: 0.375rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--b2b-on-surface-variant, #56607a);
}

.hlp__reader-meta[b-1qoexkzdd7] {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--b2b-on-surface-variant, #56607a);
}

/* ── Numbered steps ──────────────────────────────────────────────────────── */

.hlp__steps[b-1qoexkzdd7] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hlp__step[b-1qoexkzdd7] {
    position: relative;
    display: flex;
    gap: 1rem;
    padding-block: 1.5rem;
}

.hlp__step + .hlp__step[b-1qoexkzdd7] {
    border-block-start: 1px solid var(--b2b-border, #e3e5ee);
}

.hlp__step-num[b-1qoexkzdd7] {
    flex: none;
    inline-size: 2rem;
    block-size: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--b2b-primary, #003d9b);
    color: var(--b2b-on-primary, #fff);
    font-size: 0.875rem;
    font-weight: 700;
}

.hlp__step-body[b-1qoexkzdd7] {
    flex: 1;
    min-inline-size: 0;
}

.hlp__step-title[b-1qoexkzdd7] {
    margin: 0.25rem 0 0.75rem;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--b2b-on-surface, #191c1e);
}

/* Screenshot */
.hlp__figure[b-1qoexkzdd7] {
    margin: 0 0 1rem;
}

.hlp__figure img[b-1qoexkzdd7] {
    inline-size: 100%;
    block-size: auto;
    display: block;
    border: 1px solid var(--b2b-border, #e3e5ee);
    border-radius: 10px;
}

.hlp__figure figcaption[b-1qoexkzdd7] {
    margin-block-start: 0.5rem;
    font-size: 0.8125rem;
    color: var(--b2b-on-surface-variant, #56607a);
}

/* Authored rich text. Deep selectors: the body is injected as a MarkupString,
   so its elements carry no scope attribute of their own. */
.hlp__step-html[b-1qoexkzdd7] {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--b2b-on-surface, #191c1e);
}

.hlp__step-html[b-1qoexkzdd7]  p {
    margin: 0 0 0.75rem;
}

.hlp__step-html[b-1qoexkzdd7]  p:last-child {
    margin-block-end: 0;
}

.hlp__step-html[b-1qoexkzdd7]  h2,
.hlp__step-html[b-1qoexkzdd7]  h3,
.hlp__step-html[b-1qoexkzdd7]  h4 {
    margin: 1.25rem 0 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.hlp__step-html[b-1qoexkzdd7]  h2 { font-size: 1.125rem; }
.hlp__step-html[b-1qoexkzdd7]  h3 { font-size: 1rem; }
.hlp__step-html[b-1qoexkzdd7]  h4 { font-size: 0.9375rem; }

/* Markers are declared explicitly: MudBlazor's bundled reset strips them, and
   an authored bullet list that renders as flat indented text loses the
   structure the author wrote. */
.hlp__step-html[b-1qoexkzdd7]  ul,
.hlp__step-html[b-1qoexkzdd7]  ol {
    margin: 0 0 0.75rem;
    padding-inline-start: 1.375rem;
    list-style-position: outside;
}

.hlp__step-html[b-1qoexkzdd7]  ul {
    list-style-type: disc;
}

.hlp__step-html[b-1qoexkzdd7]  ol {
    list-style-type: decimal;
}

.hlp__step-html[b-1qoexkzdd7]  ul ul {
    list-style-type: circle;
}

.hlp__step-html[b-1qoexkzdd7]  li {
    margin-block-end: 0.375rem;
}

.hlp__step-html[b-1qoexkzdd7]  a {
    color: var(--b2b-primary, #003d9b);
    text-decoration: underline;
}

.hlp__step-html[b-1qoexkzdd7]  strong {
    font-weight: 700;
}

.hlp__step-html[b-1qoexkzdd7]  img {
    max-inline-size: 100%;
    block-size: auto;
    border-radius: 8px;
}

.hlp__step-html[b-1qoexkzdd7]  blockquote {
    margin: 0 0 0.75rem;
    padding: 0.625rem 0.875rem;
    border-inline-start: 3px solid var(--b2b-primary, #003d9b);
    background: var(--b2b-container-low, #f3f4f6);
    border-radius: 0 8px 8px 0;
    color: var(--b2b-on-surface-variant, #56607a);
}

.hlp__step-html[b-1qoexkzdd7]  pre,
.hlp__step-html[b-1qoexkzdd7]  code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.875rem;
}

.hlp__step-html[b-1qoexkzdd7]  pre {
    margin: 0 0 0.75rem;
    padding: 0.75rem 0.875rem;
    overflow-x: auto;
    background: var(--b2b-container, #edeef0);
    border-radius: 8px;
}

/* Tables in authored content scroll rather than blowing out the layout. */
.hlp__step-html[b-1qoexkzdd7]  table {
    inline-size: 100%;
    margin: 0 0 0.75rem;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.hlp__step-html[b-1qoexkzdd7]  th,
.hlp__step-html[b-1qoexkzdd7]  td {
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--b2b-border, #e3e5ee);
    text-align: start;
    vertical-align: top;
}

.hlp__step-html[b-1qoexkzdd7]  th {
    background: var(--b2b-container-low, #f3f4f6);
    font-weight: 700;
}

/* Tip callout */
.hlp__tip[b-1qoexkzdd7] {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    margin-block-start: 0.875rem;
    padding: 0.75rem 0.875rem;
    background: var(--b2b-warn-bg, #fef9c3);
    border-radius: 10px;
}

.hlp__tip > .material-symbols-outlined[b-1qoexkzdd7] {
    flex: none;
    font-size: 20px;
    color: var(--b2b-warn-fg, #a16207);
}

.hlp__tip p[b-1qoexkzdd7] {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--b2b-warn-fg, #a16207);
}

.hlp__cta[b-1qoexkzdd7] {
    margin-block-start: 0.875rem;
}

.hlp__cta .material-symbols-outlined[b-1qoexkzdd7] {
    font-size: 18px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.hlp__foot[b-1qoexkzdd7] {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-block-start: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--b2b-container-low, #f3f4f6);
    border-radius: 12px;
}

.hlp__foot > .material-symbols-outlined[b-1qoexkzdd7] {
    font-size: 26px;
    color: var(--b2b-primary, #003d9b);
}

.hlp__foot > div[b-1qoexkzdd7] {
    flex: 1;
    min-inline-size: 12rem;
}

.hlp__foot p[b-1qoexkzdd7] {
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    color: var(--b2b-on-surface-variant, #56607a);
}
