/* Help system — icons + content typography. */

/* Question-mark help icon (template tag {% help_link %}). */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    color: var(--bs-info, #0dcaf0);
    text-decoration: none;
    border-radius: 50%;
    transition: color 0.2s, transform 0.2s;
    vertical-align: middle;
}

.help-icon:hover,
.help-icon:focus {
    color: var(--bs-primary, #0d6efd);
    transform: scale(1.1);
    text-decoration: none;
}

.help-icon i {
    font-size: 1em;
    line-height: 1;
}

/* Article body — comfortable reading width inside container-fluid pages. */
.help-article-body {
    max-width: 80ch;
    line-height: 1.7;
}

.help-article-body p {
    margin-bottom: 1rem;
}

.help-article-body code {
    background: var(--bs-light, #f8f9fa);
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.9em;
}

.help-article-body pre {
    background: var(--bs-light, #f8f9fa);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
}

/* Anchor links de la heading-uri — vizibile la hover. */
.anchor-link {
    opacity: 0;
    transition: opacity 0.15s;
    font-size: 0.7em;
}

h2:hover .anchor-link,
h3:hover .anchor-link,
h4:hover .anchor-link {
    opacity: 0.6;
}

.anchor-link:hover {
    opacity: 1 !important;
}

/* Numbered steps in howto guides. */
.help-steps {
    counter-reset: help-step;
    list-style: none;
    padding-left: 0;
}

.help-steps > li {
    counter-increment: help-step;
    padding-left: 3rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.help-steps > li::before {
    content: counter(help-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* SVG diagrams — center + responsive. */
.help-diagram svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Card hover effect on help index. */
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.075);
    transform: translateY(-2px);
    transition: all 0.2s;
}

/* Border dashed for screenshot placeholders. */
.border-dashed {
    border-style: dashed !important;
}
