/**
 * Conteúdo de ajuda (Markdown → HTML): tabelas e listas no visual Bootstrap,
 * sem depender de classes já presentes no HTML salvo no banco.
 */
.help-article {
    font-size: 14px;
    line-height: 1.6;
}

.help-article>*:first-child {
    margin-top: 0;
}

.help-article h1,
.help-article h2,
.help-article h3,
.help-article h4,
.help-article h5,
.help-article h6 {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.help-article h1 {
    font-size: 1.75rem;
}

.help-article h2 {
    font-size: 1.5rem;
}

.help-article h3 {
    font-size: 1.25rem;
}

.help-article h4 {
    font-size: 1.1rem;
}

.help-article p {
    margin: 0 0 0.75rem;
}

.help-article ul,
.help-article ol {
    margin: 0 0 1rem;
    padding-left: 2rem;
}

.help-article li {
    margin-bottom: 0.35rem;
}

.help-article ul ul,
.help-article ul ol,
.help-article ol ul,
.help-article ol ol {
    margin-bottom: 0.35rem;
    margin-top: 0.35rem;
}

/* Bloco responsivo do CommonMark (já vem com .table-responsive) */
.help-article .table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

/* Tabela “estilo Bootstrap” mesmo sem classes no HTML */
.help-article table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    background-color: transparent;
    border: 1px solid #ddd;
}

.help-article table caption {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: #777;
    text-align: left;
    caption-side: bottom;
    font-size: 0.9em;
}

.help-article table thead th,
.help-article table thead td {
    vertical-align: bottom;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
}

.help-article table th,
.help-article table td {
    padding: 8px 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.help-article table tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

.help-article table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Se o HTML já tiver classes Bootstrap de tabela, não duplicar bordas pesadas */
.help-article table.table {
    border: 1px solid #ddd;
}

.help-article blockquote {
    padding: 0.5rem 1rem;
    margin: 0 0 1rem;
    border-left: 4px solid #ddd;
    font-size: 0.95em;
    color: #555;
    background: #fafafa;
}

.help-article pre,
.help-article code {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 0.9em;
}

.help-article pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 1rem;
    line-height: 1.45;
    color: #333;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre;
    word-break: normal;
    word-wrap: normal;
}

.help-article code {
    padding: 2px 4px;
    color: #c7254e;
    background-color: #f9f2f4;
    border-radius: 3px;
}

.help-article pre code {
    padding: 0;
    color: inherit;
    background-color: transparent;
    border-radius: 0;
    font-size: inherit;
}

.help-article hr {
    margin: 1.25rem 0;
    border: 0;
    border-top: 1px solid #ddd;
}

.help-article img {
    max-width: 100%;
    height: auto;
}

.help-article a {
    text-decoration: underline;
}