/* Copyright (c) 2026 DNA Genics, S.L. All rights reserved. */
/* Static external-testing recommendation, scoped to modern haplogroup reports. */
.haplogroup-v2 .hg-testing {
    --hg-testing-accent: var(--mtv-wine, #641339);
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr);
    gap: 32px;
    margin: 32px 0;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--mtv-line, #ded7cf);
    border-top: 3px solid var(--mtv-wine, #641339);
    border-radius: 12px;
    background: #fffdfa;
    scroll-margin-top: calc(var(--nav-height, 72px) + 24px);
}
.haplogroup-v2 .hg-testing-content,
.haplogroup-v2 .hg-testing-offer { min-width: 0; }
.haplogroup-v2 .hg-testing-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--mtv-wine, #641339);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.haplogroup-v2 .hg-testing h2 { margin: 0 0 16px; font-size: clamp(27px, 3vw, 34px); }
.haplogroup-v2 .hg-testing p { max-width: 66ch; font-size: 15px; line-height: 1.65; }
.haplogroup-v2 .hg-testing p:last-child { margin-bottom: 0; }
.haplogroup-v2 .hg-testing .hg-testing-limit { color: var(--mtv-muted, #51474d); }
.haplogroup-v2 .hg-testing .hg-testing-support { padding-top: 8px; }
.haplogroup-v2 .hg-testing a:not(.hg-testing-button) { text-decoration: underline; text-underline-offset: 3px; }
.haplogroup-v2 .hg-testing-offer { padding: 24px; border: 1px solid #ded7cf; border-radius: 8px; background: #f5efe9; align-self: start; }
.haplogroup-v2 .hg-testing-product { display: block; margin-bottom: 14px; font-weight: 700; color: var(--mtv-ink, #34212b); }
.haplogroup-v2 .hg-testing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--hg-testing-accent);
    border-radius: 7px;
    background: var(--hg-testing-accent);
    color: #fffdfa;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.haplogroup-v2 .hg-testing-button:hover { background: var(--mtv-plum, #4c102c); color: #fffdfa; text-decoration: none; }
.haplogroup-v2 .hg-testing a:focus-visible { outline: 3px solid #a67532; outline-offset: 4px; }
.haplogroup-v2 .hg-testing .hg-testing-disclosure { margin: 18px 0 14px; color: var(--mtv-muted, #493d44); }
.haplogroup-v2 .hg-testing .hg-testing-provider { font-size: 14px; color: var(--mtv-muted, #5b5358); }
.haplogroup-v2 .hg-testing-shortcut { margin: 20px 0; }
.haplogroup-v2 .hg-testing-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.haplogroup-v2 .hg-testing-compact { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); align-items: center; gap: 24px; padding: 20px 24px; margin-block: 24px; border-top-width: 1px; border-left: 3px solid var(--hg-testing-accent); border-radius: 8px; }
.haplogroup-v2 .hg-testing-compact .hg-testing-eyebrow { margin-bottom: 8px; }
.haplogroup-v2 .hg-testing-compact h2 { margin-bottom: 8px; font-size: clamp(24px, 2.3vw, 28px); }
.haplogroup-v2 .hg-testing-compact .hg-testing-offer { padding: 0; border: 0; background: transparent; }
.haplogroup-v2 .hg-testing-compact .hg-testing-disclosure { margin: 10px 0 0; font-size: 13px; line-height: 1.55; }
.haplogroup-v3 .hg-testing-compact .hg-testing-offer { background: transparent; }
/* Legacy (dark) no-data pages: the card keeps its own light surface and ink colors. */
.haplogroup-v2.hg-testing-legacy { padding-block: 24px; }
.haplogroup-v2.hg-testing-legacy .hg-testing { color: #34212b; }
.haplogroup-v2.hg-testing-legacy .hg-testing h2 { color: #34212b; }
@media (max-width: 900px) {
    .haplogroup-v2 .hg-testing { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .haplogroup-v2 .hg-testing-offer { padding: 20px; }
    .haplogroup-v2 .hg-testing-compact { gap: 16px; padding: 20px; }
    .haplogroup-v2 .hg-testing-compact .hg-testing-offer { padding: 0; }
}
@media print {
    .haplogroup-v2 .hg-testing,
    .haplogroup-v2 .hg-testing-shortcut { display: none !important; }
}
