/* ============================================================================
   Footnotes Block Styles
   ============================================================================ */

.ade-footnotes {
    margin: 4rem 0 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #6c757d;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ade-footnotes__container {
    max-width: 100%;
}

.ade-footnotes__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #dee2e6;
}

.ade-footnotes__icon {
    color: #6c757d;
    flex-shrink: 0;
}

.ade-footnotes__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
}

.ade-footnotes__content {
    margin-bottom: 1.5rem;
}

.ade-footnotes__list {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: decimal;
}

.ade-footnotes__item {
    margin-bottom: 1.25rem;
    padding-left: 0.5rem;
    line-height: 1.6;
}

.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: 1rem;
    font-weight: 600;
    color: #212529;
    display: block;
}

.ade-footnotes__source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #0d6efd;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.ade-footnotes__source-link:hover {
    color: #0a58ca;
    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-size: 0.875rem;
    font-style: italic;
    color: #6c757d;
}

/* 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;
    }
}
