/* Typografia treści Bazy wiedzy (dokumentacja, FAQ, drukarki, skanery).
   Zgodna z arkuszem help-content.css w OK-API. */

.help-content-display {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #212529;
}

.help-content-display h1 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.01em;
    margin: 0 0 0.35rem;
    padding-top: 0;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--main-color);
}

.help-content-display h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2.75rem;
    margin-bottom: 0.9rem;
    padding-top: 0;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--main-color-subtle);
}

    .help-content-display h2::before {
        content: "";
        display: inline-block;
        width: 6px;
        height: 1.05em;
        margin-right: 0.6rem;
        border-radius: 3px;
        background: var(--main-color);
        vertical-align: -0.14em;
    }

.help-content-display h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--main-color);
    margin-top: 1.9rem;
    margin-bottom: 0.6rem;
    padding-top: 0;
}

.help-content-display h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
    padding-top: 0;
}

.help-content-display h2 + hr {
    display: none;
}

.help-content-display hr {
    border: 0;
    border-top: 1px solid #e9ecef;
    margin: 1.75rem 0;
}

.help-content-display p {
    margin: 0 0 0.8rem;
}

.help-content-display .help-lead {
    font-size: 1.02rem;
    color: #4b5563;
    margin-bottom: 1.5rem !important;
}

.help-content-display ul,
.help-content-display ol {
    margin: 0 0 0.9rem;
    padding-left: 1.4rem;
}

    .help-content-display li {
        margin-bottom: 0.35rem;
    }

    .help-content-display li > ul,
    .help-content-display li > ol {
        margin-top: 0.35rem;
    }

.help-content-display strong {
    font-weight: 600;
    color: #111827;
}

.help-content-display a {
    color: var(--main-color);
    text-decoration: none;
    border-bottom: 1px solid var(--main-color-subtle);
}

    .help-content-display a:hover {
        color: var(--main-color-hover);
        border-bottom-color: var(--main-color-hover);
    }

.help-content-display img.help-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    min-width: 1em;
    margin: 0 0.4rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    vertical-align: -0.14em;
    cursor: inherit;
    flex-shrink: 0;
}

.help-content-display img:not(.help-icon) {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.1rem 0 1.35rem;
    padding: 6px;
    background: #fff;
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    cursor: zoom-in;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .help-content-display img:not(.help-icon):hover {
        border-color: var(--main-color-subtle);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    }

.help-content-display .help-table,
.help-content-display table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.9rem 0 1.4rem;
    font-size: 0.92em;
}

    .help-content-display .help-table th,
    .help-content-display .help-table td,
    .help-content-display table th,
    .help-content-display table td {
        border: 1px solid #e5e7eb;
        padding: 0.5rem 0.7rem;
        text-align: left;
        vertical-align: top;
    }

    .help-content-display .help-table thead th,
    .help-content-display table thead th {
        background: #f3f4f6;
        color: #374151;
        font-weight: 600;
        border-bottom-width: 2px;
    }

    .help-content-display .help-table tbody tr:nth-child(even),
    .help-content-display table tbody tr:nth-child(even) {
        background: #fbfbfc;
    }

    .help-content-display .help-table tbody tr:hover,
    .help-content-display table tbody tr:hover {
        background: #fff8f4;
    }

.help-content-display .help-note,
.help-content-display .help-tip,
.help-content-display .help-shot {
    margin: 1rem 0 1.2rem;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    line-height: 1.6;
}

.help-content-display .help-note {
    border-left: 4px solid #f0ad4e;
    background: #fffaf0;
}

.help-content-display .help-tip {
    border-left: 4px solid #0d6efd;
    background: #f2f7ff;
}

.help-content-display .help-shot {
    border: 1px dashed var(--main-color);
    background: #fff8f4;
    color: #8a4b1d;
}

.help-content-display kbd {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-family: inherit;
    font-size: 0.85em;
    font-weight: 600;
    color: #1f2937;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-bottom-width: 2px;
    border-radius: 4px;
}

.help-content-display > *:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .help-content-display .help-table,
    .help-content-display table {
        display: block;
        overflow-x: auto;
        white-space: normal;
    }
}

@media print {
    html, body {
        overflow: visible !important;
        height: auto !important;
    }

    .header-navbar,
    .sidebar,
    .help-toc-sidebar,
    .toc-toggle-button {
        display: none !important;
    }

    .help-content-display {
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-width: none !important;
    }

        .help-content-display h1,
        .help-content-display h2,
        .help-content-display h3,
        .help-content-display h4 {
            break-after: avoid;
            page-break-after: avoid;
            margin-top: 1.2rem;
        }

        .help-content-display p,
        .help-content-display li {
            orphans: 3;
            widows: 3;
        }

        .help-content-display table thead {
            display: table-header-group;
        }

        .help-content-display table tr,
        .help-content-display img:not(.help-icon),
        .help-content-display .help-note,
        .help-content-display .help-tip {
            break-inside: avoid;
            page-break-inside: avoid;
        }
}
