/* Formatação de respostas Markdown da IA */
.tb-ai-md {
    white-space: normal;
}

.tb-ai-md p {
    margin: 0 0 0.55em;
}

.tb-ai-md p:last-child {
    margin-bottom: 0;
}

.tb-ai-md ul,
.tb-ai-md ol {
    margin: 0.25em 0 0.6em;
    padding-left: 1.2em;
}

.tb-ai-md li {
    margin-bottom: 0.4em;
}

.tb-ai-md li:last-child {
    margin-bottom: 0;
}

.tb-ai-md strong {
    font-weight: 700;
}

.tb-ai-md em {
    font-style: italic;
}

.tb-ai-md code {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.88em;
    background: rgba(0, 0, 0, .06);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.tb-ai-msg.user .tb-ai-md code,
.tb-ai-widget-msg.user .tb-ai-md code {
    background: rgba(255, 255, 255, .18);
}

.tb-ai-md h1,
.tb-ai-md h2,
.tb-ai-md h3,
.tb-ai-md h4 {
    font-size: 1em;
    font-weight: 700;
    margin: 0.65em 0 0.35em;
    line-height: 1.35;
}

.tb-ai-md h1:first-child,
.tb-ai-md h2:first-child,
.tb-ai-md h3:first-child,
.tb-ai-md h4:first-child {
    margin-top: 0;
}

.tb-ai-md a {
    color: var(--tb-blue);
    text-decoration: underline;
}

.tb-ai-md-hr {
    border: none;
    border-top: 1px solid var(--tb-border);
    margin: 0.75em 0;
}

.tb-ai-md-table-wrap {
    overflow-x: auto;
    margin: 0.5em 0 0.75em;
    -webkit-overflow-scrolling: touch;
}

.tb-ai-md-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
    background: #fff;
}

.tb-ai-md-table th,
.tb-ai-md-table td {
    border: 1px solid var(--tb-border);
    padding: 0.45em 0.65em;
    text-align: left;
    vertical-align: top;
}

.tb-ai-md-table th {
    background: var(--tb-light);
    font-weight: 700;
    color: var(--tb-navy);
}

.tb-ai-md-table tbody tr:nth-child(even) {
    background: rgba(240, 245, 251, 0.6);
}

.tb-ai-md-table tbody tr:hover {
    background: rgba(244, 121, 32, 0.06);
}

.tb-ai-msg.user .tb-ai-md a,
.tb-ai-widget-msg.user .tb-ai-md a {
    color: #fff;
}

.tb-ai-result.tb-ai-md {
    white-space: normal;
}

/* Descrição pública da vaga — subtítulos um pouco mais visíveis */
.tb-vaga-descricao.tb-ai-md h1,
.tb-vaga-descricao.tb-ai-md h2 {
    font-size: 1.15em;
    color: var(--tb-navy);
    border-bottom: 1px solid var(--tb-border);
    padding-bottom: 0.25em;
}

.tb-vaga-descricao.tb-ai-md h3,
.tb-vaga-descricao.tb-ai-md h4 {
    font-size: 1.05em;
    color: var(--tb-navy);
}
