/* ============================================================================
   Footnotes Block Styles
   ============================================================================ */

.ade-footnotes {
    margin: 0;
    padding: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.ade-footnotes__container {
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 3rem;
}

.ade-footnotes__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-theme, #ff631e);
}

.ade-footnotes__icon {
    color: var(--color-theme, #ff631e);
    flex-shrink: 0;
}

.ade-footnotes__title {
    margin: 0;
    font-family: var(--font-family-head, Lato);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text, #000);
}

.ade-footnotes__content {
    margin-bottom: 1.5rem;
}

.ade-footnotes__list {
    margin: 0;
    font-family: var(--font-family-body, Merriweather);
    font-size: 1.6rem;
    line-height: 1.8;
    padding-left: 2.5rem;
    list-style-type: decimal;
}

.ade-footnotes__item {
    margin-bottom: 2rem;
    padding-left: 0;
    line-height: 1.8;
    color: var(--color-text, #000);
}

.ade-footnotes__item:last-child {
    margin-bottom: 0;
}

.ade-footnotes__source {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ade-footnotes__source-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text, #000);
    display: block;
}

.ade-footnotes__source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.4rem;
    color: var(--color-theme, #ff631e);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.ade-footnotes__source-link:hover {
    color: #e55a1a;
    text-decoration: underline;
}

.ade-footnotes__external-icon {
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.ade-footnotes__footer {
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.ade-footnotes__note {
    margin: 0;
    font-family: var(--font-family-body, Merriweather);
    font-size: 1.4rem;
    font-style: italic;
    color: #666;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ade-footnotes {
        padding: 1.5rem;
        margin: 3rem 0 1.5rem;
    }

    .ade-footnotes__header {
        gap: 0.75rem;
    }

    .ade-footnotes__icon {
        width: 24px;
        height: 24px;
    }

    .ade-footnotes__title {
        font-size: 1.25rem;
    }

    .ade-footnotes__list {
        padding-left: 1.25rem;
    }
}
