/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * Shared "A Glimpse Into Your Report" card grid for regional product pages.
 * Colors inherit from the host section (currentColor) so the grid adapts to
 * each page's light or dark theme. No entrance animations by design.
 */

.rrp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
    text-align: left;
}

.rrp-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, currentColor 4%, transparent);
    min-width: 0;
}

.rrp-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rrp-card__head h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    color: inherit;
}

.rrp-note {
    margin: auto 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    opacity: 0.72;
}

.rrp-label {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
}

.rrp-index {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.rrp-index__value {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.rrp-index__scale {
    opacity: 0.6;
}

.rrp-components,
.rrp-affinities,
.rrp-periods,
.rrp-haplos,
.rrp-sites {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rrp-components li,
.rrp-affinities li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.86rem;
    border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}

.rrp-components em,
.rrp-affinities em,
.rrp-periods em,
.rrp-haplos em {
    font-style: normal;
    opacity: 0.75;
    white-space: nowrap;
}

.rrp-periods {
    display: grid;
    gap: 6px;
}

.rrp-periods__item {
    display: grid;
    grid-template-columns: minmax(0, 9.5rem) 1fr 2rem;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
}

.rrp-periods__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rrp-periods__item--top .rrp-periods__name {
    font-weight: 700;
}

.rrp-track {
    height: 6px;
    border-radius: 3px;
    background: color-mix(in srgb, currentColor 12%, transparent);
    overflow: hidden;
}

.rrp-fill {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: currentColor;
    opacity: 0.45;
}

.rrp-periods__item--top .rrp-fill {
    opacity: 0.9;
}

.rrp-haplos li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: color-mix(in srgb, currentColor 6%, transparent);
    font-size: 0.86rem;
}

.rrp-haplos em {
    margin-left: auto;
}

.rrp-chip {
    padding: 2px 8px;
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    border-radius: 999px;
    font-size: 0.7rem;
}

.rrp-sites {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rrp-sites li {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    font-size: 0.8rem;
}

.rrp-vis {
    width: 100%;
    height: auto;
    fill: currentColor;
    fill-opacity: 0.45;
}

.rrp-vis__axis {
    stroke: currentColor;
    stroke-opacity: 0.3;
}

.rrp-vis__you {
    fill-opacity: 1;
}

.rrp-footnote {
    margin: 20px 0 0;
    font-size: 0.82rem;
    text-align: center;
    opacity: 0.7;
}

@media (max-width: 991.98px) {
    .rrp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .rrp-grid {
        grid-template-columns: 1fr;
    }

    .rrp-card {
        padding: 18px;
    }
}

@media print {
    .rrp-card {
        break-inside: avoid;
    }
}
