/* Estilos para as notas no texto */
.footnote-ref {
    font-size: 0.8em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.4em;
}

.footnote-ref a {
    color: #2271b1;
    text-decoration: none;
    font-weight: bold;
    padding: 0 2px;
}

.footnote-ref a:hover {
    text-decoration: underline;
}

/* Seção de notas no final */
.footnotes-section {
    margin-top: 3rem;
    padding-top: 2rem;
}

.footnotes-separator {
    border: none;
    border-top: 2px solid #ddd;
    margin: 2rem 0;
}

.footnotes-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.footnotes-list {
    list-style-position: outside;
    padding-left: 2em;
    font-size: 0.9em;
    line-height: 1.6;
    color: #555;
}

.footnote-item {
    margin-bottom: 0.8rem;
    padding-left: 0.5em;
}

.footnote-backref {
    text-decoration: none;
    color: #2271b1;
    margin-left: 0.3em;
    font-weight: bold;
}

.footnote-backref:hover {
    text-decoration: underline;
}

/* Scroll suave para as âncoras */
html {
    scroll-behavior: smooth;
}

/* Destaque ao clicar na nota */
.footnote-item:target,
.footnote-ref:target {
    background-color: #fff3cd;
    padding: 4px;
    margin: -4px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}