/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * Shared distant-match banner styling for specialized ancestry reports.
 * Provides a calm, low-friction informational banner shown when the user's closest
 * reference match is genetically distant, replacing the previous high-friction "no results" page.
 * Inherits text color via currentColor so it adapts to dark/light report themes.
 */

.adx-distant-banner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 760px;
    margin: 1.5rem auto 2rem auto;
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: left;
}

.adx-distant-banner-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(201, 164, 48, 0.18);
    color: #c9a430;
}

.adx-distant-banner-body {
    flex: 1 1 auto;
    min-width: 0;
}

.adx-distant-banner-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.65rem 0;
    line-height: 1.3;
}

.adx-distant-banner-lead,
.adx-distant-banner-reason,
.adx-distant-banner-note {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    opacity: 0.92;
}

.adx-distant-banner-reason {
    opacity: 0.8;
    font-style: italic;
}

.adx-distant-banner-note {
    opacity: 0.78;
    font-size: 0.9rem;
}

.adx-distant-banner-suggestion {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
}

.adx-distant-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #c9a430;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.adx-distant-banner-link:hover,
.adx-distant-banner-link:focus {
    color: #e0bd55;
    text-decoration: underline;
}

@media (max-width: 576px) {
    .adx-distant-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }

    .adx-distant-banner-suggestion {
        justify-content: center;
    }
}

@media print {
    .adx-distant-banner {
        border: 1px solid #ccc;
        background-color: #f8f8f8;
        color: #000;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .adx-distant-banner-link {
        display: none;
    }
}
