/* Visual documentation patterns used by the InfraCue Help Centre articles. */
.hc-article-body {
    overflow-wrap: anywhere;
}

.hc-article-body .help-figure {
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid rgba(13, 51, 82, .14);
    border-radius: 16px;
    background: #f8fbfd;
    box-shadow: 0 14px 34px rgba(15, 54, 85, .08);
}

.hc-article-body .help-figure img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
}

.help-figure figcaption {
    padding: 10px 14px;
    color: var(--ic-ink-soft);
    font-size: 13px;
    line-height: 1.5;
}

.help-callout {
    position: relative;
    margin: 22px 0;
    padding: 16px 18px 16px 20px;
    border: 1px solid rgba(11, 165, 181, .22);
    border-radius: 12px;
    background: rgba(11, 165, 181, .07);
}

.help-callout::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--ic-cyan);
    content: '';
}

.help-callout strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ic-ink);
    font-size: 14px;
}

.help-callout p {
    margin: 0;
    color: #3c566a;
    font-size: 14px;
    line-height: 1.6;
}

.help-callout--important {
    border-color: rgba(37, 99, 235, .24);
    background: rgba(37, 99, 235, .07);
}

.help-callout--important::before { background: var(--ic-blue); }

.help-callout--security {
    border-color: rgba(15, 118, 110, .27);
    background: rgba(15, 118, 110, .08);
}

.help-callout--security::before { background: #0f766e; }

.help-callout--warning {
    border-color: rgba(217, 119, 6, .3);
    background: rgba(217, 119, 6, .08);
}

.help-callout--warning::before { background: #d97706; }

.help-steps {
    display: grid;
    gap: 10px;
    margin: 18px 0 24px !important;
    padding: 0 !important;
    list-style: none;
    counter-reset: help-step;
}

.help-steps li {
    position: relative;
    min-height: 54px;
    margin: 0 !important;
    padding: 14px 16px 14px 58px;
    border: 1px solid rgba(13, 51, 82, .13);
    border-radius: 12px;
    background: #fff;
    counter-increment: help-step;
}

.help-steps li::before {
    position: absolute;
    top: 14px;
    left: 15px;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(115deg, var(--ic-cyan), var(--ic-blue));
    color: #fff;
    content: counter(help-step);
    font-size: 12px;
    font-weight: 800;
}

.help-steps strong,
.help-steps span {
    display: block;
}

.help-steps strong {
    margin-bottom: 2px;
    color: var(--ic-ink);
    font-size: 14px;
}

.help-steps span {
    color: #4b6376;
    font-size: 14px;
    line-height: 1.55;
}

.help-checklist {
    margin: 22px 0;
    padding: 18px 20px;
    border: 1px solid rgba(13, 51, 82, .12);
    border-radius: 14px;
    background: #fbfdff;
}

.help-checklist h3 {
    margin: 0 0 12px !important;
    font-size: 16px !important;
}

.help-checklist ul {
    display: grid;
    gap: 9px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.help-checklist li {
    position: relative;
    margin: 0 !important;
    padding-left: 25px;
}

.help-checklist li::before {
    position: absolute;
    top: 3px;
    left: 0;
    color: #0f9d8b;
    content: '✓';
    font-weight: 800;
}

.help-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 22px 0;
}

.help-flow-step {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(11, 165, 181, .2);
    border-radius: 8px;
    background: rgba(11, 165, 181, .06);
    color: #0a6675;
    font-size: 13px;
    font-weight: 700;
}

.help-flow-step:not(:last-child)::after {
    margin-left: 12px;
    color: var(--ic-cyan);
    content: '→';
}

@media (max-width: 600px) {
    .hc-article-body .help-figure { margin: 20px 0; }
    .help-callout { padding: 14px 15px 14px 18px; }
    .help-flow { align-items: stretch; }
    .help-flow-step { width: 100%; justify-content: space-between; }
    .help-flow-step:not(:last-child)::after { content: '↓'; }
}

@media (prefers-color-scheme: dark) {
    .hc-article-body .help-figure,
    .help-steps li,
    .help-checklist {
        border-color: #1e3a52;
        background: #0b1825;
    }

    .help-figure figcaption,
    .help-steps span,
    .help-callout p { color: #a8bdcd; }

    .help-callout { border-color: rgba(34, 211, 238, .22); background: rgba(34, 211, 238, .07); }
    .help-callout--important { border-color: rgba(96, 165, 250, .28); background: rgba(96, 165, 250, .08); }
    .help-callout--security { border-color: rgba(45, 212, 191, .27); background: rgba(45, 212, 191, .08); }
    .help-callout--warning { border-color: rgba(251, 191, 36, .27); background: rgba(251, 191, 36, .08); }
    .help-callout strong,
    .help-steps strong,
    .help-checklist h3 { color: #eef6fa; }
    .help-flow-step { border-color: rgba(34, 211, 238, .25); background: rgba(34, 211, 238, .08); color: #67e8f9; }
}
