/* Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * Parallel Heritage reports. Shared components retain their behavior; all overrides require v3.
 */
body:has(.haplogroup-v3) { background: #faf8f4; }
.haplogroup-v3.mtv {
    --mtv-paper: #faf8f4; --mtv-ink: #1f2a24; --mtv-muted: #65665e;
    --mtv-wine: #213a2f; --mtv-plum: #213a2f; --mtv-line: #ded9ce;
    --mtv-border: #ded9ce; --mtv-serif: "Cormorant Garamond", Georgia, serif;
    --mtv-sans: "Inter", sans-serif;
    display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 48px;
    width: 100%; max-width: 1600px; margin: 0 auto;
    padding: calc(var(--nav-height, 72px) + 24px) 32px 64px;
    font-family: var(--mtv-sans); font-size: 16px; line-height: 1.7;
}
.haplogroup-v3 .mtv-main { margin: 0; padding: 0; max-width: none; min-width: 0; }
.haplogroup-v3 .hgv3-navigation { position: sticky; top: calc(var(--nav-height, 72px) + 24px); bottom: auto; left: auto; width: auto; align-self: start; max-height: calc(100dvh - var(--nav-height, 72px) - 48px); padding: 0 24px 0 0; background: transparent; color: var(--mtv-ink); border-right: 1px solid var(--mtv-line); z-index: 100; }
.haplogroup-v3 .hgv3-navigation .mtv-back { color: var(--mtv-muted); padding: 8px 0 32px; text-decoration: none; }
.haplogroup-v3 .hgv3-navigation-title h2 { font-size: 30px; margin: 12px 0 8px; }
.haplogroup-v3 .hgv3-navigation-title p { font-size: 13px; }
.haplogroup-v3 .hgv3-navigation .mtv-eyebrow { color: var(--mtv-muted); font-size: 10px; letter-spacing: .12em; }
.haplogroup-v3 .hgv3-navigation nav { counter-reset: chapter; gap: 6px; margin: 24px 0; }
.haplogroup-v3 .hgv3-navigation nav a { counter-increment: chapter; gap: 12px; padding: 12px; border-radius: 4px; font-size: 14px; line-height: 1.5; color: var(--mtv-ink); }
.haplogroup-v3 .hgv3-navigation nav a::before { content: "0" counter(chapter); color: #777264; font-size: 11px; font-variant-numeric: tabular-nums; }
.haplogroup-v3 .hgv3-navigation nav a:hover { background: #efe6d6; }
.haplogroup-v3 .hgv3-navigation nav a[aria-current="page"] { background: #213a2f; color: white; }
.haplogroup-v3 .hgv3-navigation nav a[aria-current="page"]::before { color: #e3d3b6; }
.haplogroup-v3 .hgv3-navigation-note { margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--mtv-line); font-size: 12px; line-height: 1.7; }
.haplogroup-v3 .hgv3-chapter-picker { display: none; }
.haplogroup-v3 .mtv-topbar { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--mtv-line); }
.haplogroup-v3 .mtv-heading { max-width: 70ch; margin-bottom: 32px; }
.haplogroup-v3 h1 { font-size: clamp(36px, 4vw, 64px); line-height: 1.08; font-weight: 500; }
.haplogroup-v3 h2 { font-size: clamp(28px, 2.7vw, 38px); font-weight: 500; }
.haplogroup-v3 h3 { font-weight: 500; }
.haplogroup-v3 .mtv-heading > p { font-size: 18px; margin-top: 16px; }
.haplogroup-v3 .mtv-eyebrow { color: #6b614c; }
.haplogroup-v3 .mtv-result { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 32px; padding: 32px; background: #efe6d6; border: 1px solid #e3d3b6; border-radius: 8px; margin: 24px 0; }
.haplogroup-v3 .mtv-haplogroup { font-size: clamp(48px, 5vw, 80px); }
.haplogroup-v3 .mtv-result-context { padding: 8px 0 8px 32px; border-color: #d4c8b4; }
.haplogroup-v3 .mtv-result-context h2 { font-size: 32px; }
.haplogroup-v3 .mtv-status { color: #213a2f; background: #e0e9df; border-radius: 4px; }
.haplogroup-v3 .mtv-facts { margin-block: 24px; padding-block: 20px; }
.haplogroup-v3 .mtv-facts > div { align-items: flex-start; text-align: left; padding-inline: 24px; }
.haplogroup-v3 .mtv-facts > div:first-child { padding-left: 0; }
.haplogroup-v3 .mtv-facts strong { font-size: clamp(24px, 2.4vw, 32px); }
.haplogroup-v3.mtv.hgv-report .mtv-prose, .haplogroup-v3 .mtv-panel > p, .haplogroup-v3 .hgr p { max-width: 70ch; }
.haplogroup-v3 .mtv-section-heading { margin-top: 40px; }
.haplogroup-v3 .mtv-next { margin-top: 40px; padding-block: 24px; font-size: 16px; }
.haplogroup-v3 .mtv-button, .haplogroup-v3 .hg-chronology-button { border-radius: 5px; border-color: #89968b; }
.haplogroup-v3 .mtv-button:hover, .haplogroup-v3 .hg-chronology-button:hover:not(:disabled) { background: #e8ede5; }
.haplogroup-v3 .mtv-primary:hover, .haplogroup-v3 .hg-chronology-primary:hover:not(:disabled) { background: #304e3e; color: white; border-color: #304e3e; }
.haplogroup-v3 .mtv-note { background: #efe6d6; border-color: #98783f; }
.haplogroup-v3 .mtv-empty { background: #f0eee7; }
.haplogroup-v3 .hgv3-disclosure { border-block: 1px solid var(--mtv-line); margin: 24px 0; }
.haplogroup-v3 .hgv3-disclosure > summary { padding: 16px 0; min-height: 48px; cursor: pointer; font-size: 15px; font-weight: 600; }
.haplogroup-v3 .hgv3-disclosure > :not(summary) { margin: 8px 0 24px; }
.haplogroup-v3.mtv .mtv-branch strong { border-color: #c4cdbf; background: #e8ede5; }
.haplogroup-v3.mtv .mtv-branch-result strong { background: #213a2f; color: white; }
.haplogroup-v3.mtv .mtv-branch-detail { background: #f1eee6; border-color: #8c9b86; padding: 24px; }
.haplogroup-v3.mtv.hgv-report .hgv-lineage-picker { background: #f1eee6; }
.haplogroup-v3.mtv.hgv-report .hgv-lineage-picker .mtv-branch { border-color: #c4cdbf; }
.haplogroup-v3.mtv .mtv-ai { background: #edf0e8; border-color: #c4cdbf; }
.haplogroup-v3.mtv .ai-results blockquote, .haplogroup-v3 code { background: #e8ede5; }
.haplogroup-v3.mtv .dnai-marker:hover, .haplogroup-v3.mtv .dnai-marker:focus-visible { background: #304e3e; }
.haplogroup-v3 .mtv-sample-image > span { background: #213a2f; }
.haplogroup-v3 .huc { --huc-wine: #213a2f; --huc-ink: #1f2a24; --huc-muted: #65665e; --huc-border: #ded9ce; border-radius: 6px; }
.haplogroup-v3 .huc :is(.huc-privacy, .huc-report, th), .haplogroup-v3 .hg-testing-offer { background: #f1eee6; }
.haplogroup-v3 .hg-testing-button { background: #213a2f; border-color: #213a2f; color: white; }
.haplogroup-v3 .hg-testing-button:hover { background: #304e3e; }
.haplogroup-v3 .hgr { --hgr-wine: #213a2f; --hgr-ink: #1f2a24; --hgr-muted: #65665e; }
.haplogroup-v3 .hgr :is(a, summary), .haplogroup-v3 .hve-link, .haplogroup-v3 .hve-table-select { color: #213a2f; }
.haplogroup-v3 .hgr h2, .haplogroup-v3 .hgr h3 { font-family: var(--mtv-serif); }
.haplogroup-v3 .hgr .hgr-card { border-radius: 8px; }
.haplogroup-v3 .hgr-detail, .haplogroup-v3.hgv-report .hve-nearby-node--current { border-color: #213a2f; }
.haplogroup-v3 .hgr .hgr-time-group, .haplogroup-v3 .hgr th, .haplogroup-v3 .hgi-comparison-table th, .haplogroup-v3.mtv.hgv-report .hve-age-card, .haplogroup-v3.mtv.hgv-report .hve-table thead th { background: #efe6d6; color: #1f2a24; }
.haplogroup-v3 .hgr .hgr-time-row[aria-pressed="true"], .haplogroup-v3 [data-hgi-add-sample][aria-pressed="true"] { background: #e8ede5; color: #213a2f; border-color: #6e826e; box-shadow: inset 3px 0 0 #213a2f; }
.haplogroup-v3 .hgr .hgr-time-interval { background: #748a73; }
.haplogroup-v3 .hgr .hgr-time-interval::before, .haplogroup-v3 .hgr .hgr-time-interval::after { background: #213a2f; }
.haplogroup-v3 .hgr .hgr-time-point, .haplogroup-v3 .hgr .hgr-time-actions :is(button, a) { border-color: #213a2f; color: #213a2f; }
.haplogroup-v3 .hgr svg .hgr-range { stroke: #748a73; }
.haplogroup-v3 .hgr svg .hgr-node { stroke: #213a2f; }
.haplogroup-v3 .hgr svg .hgr-selected { fill: #213a2f; }
.haplogroup-v3.mtv.hgv-report :is(.hve-callout, .hve-empty) { border-color: #8c9b86; background: #f1eee6; color: #465345; }
.haplogroup-v3.mtv.hgv-report .hve-button { border-color: #213a2f; background: #213a2f; }
.haplogroup-v3.mtv.hgv-report .hve-button--quiet { background: #fffdf9; color: #213a2f; }
.haplogroup-v3.mtv.hgv-report .hve-genome-center { fill: #213a2f; }
.haplogroup-v3.mtv.hgv-report .hve-state--confirmed { fill: #213a2f; background: #213a2f; }
.haplogroup-v3.mtv.hgv-report .hve-genome-region { stroke: #748a73; }
.haplogroup-v3.mtv.hgv-report .hve-genome-region[data-genome-region="Coding region"] { stroke: #bdcbb3; }
.haplogroup-v3.mtv.hgv-report .hve-genome-table tr.is-selected { background: #e8ede5; }
.haplogroup-v3.mtv .haplo-timeline-wrapper { --htl-gold: #213a2f; --htl-bronze: #748a73; --htl-bronze-light: #65665e; --htl-ivory: #1f2a24; --htl-bg-dark: #f1eee6; --htl-border: #ded9ce; }
.haplogroup-v3.mtv .haplo-timeline-wrapper .haplo-timeline-haplogroup .haplo-timeline-card { background: #efe6d6; border-color: #cdbd9e; }
.haplogroup-v3.mtv .hg-chronology { border-radius: 8px; }
.haplogroup-v3.mtv :is(.hg-chronology-detail, .hg-chronology-footnote, .hg-chronology th) { background: #f1eee6; }
.haplogroup-v3 .mtv-dialog { width: min(720px, 90vw); border-color: #c4cdbf; border-radius: 8px 0 0 8px; }
.haplogroup-v3 .mtv-dialog::backdrop { background: #15221bc2; }
.haplogroup-v3.mtv :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #526a51; outline-offset: 4px; }
.haplogroup-v3.hgv3-simple { display: block; max-width: 1060px; padding-inline: 32px; }
body:has(.haplogroup-v3) .dnai-modal-panel { background: #faf8f4; color: #1f2a24; border-color: #ded9ce; }
body:has(.haplogroup-v3) :is(.dnai-modal-title-badge, .dnai-modal-close) { background: #e8ede5; color: #213a2f; }
@media (max-width: 1199px) {
    .haplogroup-v3.mtv { display: block; padding-inline: 28px; padding-top: calc(var(--nav-height, 72px) + 16px); }
    .haplogroup-v3 .hgv3-navigation { display: block; position: sticky; top: var(--nav-height, 72px); max-height: none; margin: -16px -28px 24px; padding: 12px 28px; border: 0; border-bottom: 1px solid var(--mtv-line); background: #faf8f4; overflow: visible; }
    .haplogroup-v3.mtv-enhanced .hgv3-navigation :is(nav, .hgv3-navigation-title, .hgv3-navigation-note, .mtv-back) { display: none; }
    .haplogroup-v3.mtv-enhanced .hgv3-chapter-picker { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
    .haplogroup-v3 .hgv3-chapter-picker label { margin: 0; font-size: 13px; font-weight: 600; }
    .haplogroup-v3 .hgv3-chapter-picker select { width: min(360px, 60%); }
    .haplogroup-v3:not(.mtv-enhanced) .hgv3-navigation { position: static; }
    .haplogroup-v3:not(.mtv-enhanced) .hgv3-navigation nav { display: flex; flex-direction: row; flex-wrap: wrap; }
    .haplogroup-v3 .mtv-panel { scroll-margin-top: calc(var(--nav-height, 72px) + 96px); }
    .haplogroup-v3 .mtv-skip { left: 16px; }
}
@media (max-width: 600px) {
    .haplogroup-v3.mtv { padding-inline: 16px; padding-bottom: 32px; }
    .haplogroup-v3 .hgv3-navigation { margin-inline: -16px; padding-inline: 16px; }
    .haplogroup-v3 .hgv3-chapter-picker label { max-width: 90px; line-height: 1.4; }
    .haplogroup-v3 .hgv3-chapter-picker select { width: calc(100% - 100px); font-size: 14px; }
    .haplogroup-v3 .mtv-topbar { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
    .haplogroup-v3 .mtv-topbar .mtv-button { padding: 8px 12px; font-size: 13px; }
    .haplogroup-v3 .mtv-heading > p { font-size: 16px; }
    .haplogroup-v3 .mtv-result { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 24px; }
    .haplogroup-v3 .mtv-result-context { padding: 24px 0 0; border-left: 0; border-top: 1px solid #d4c8b4; }
    .haplogroup-v3 .mtv-result-context h2 { font-size: 28px; }
    .haplogroup-v3.mtv.hgv-report .mtv-facts:not(.hgv-evidence-facts) { gap: 0; }
    .haplogroup-v3.mtv.hgv-report .mtv-facts:not(.hgv-evidence-facts) > div { padding: 16px 0; border-bottom: 1px solid var(--mtv-line); }
    .haplogroup-v3.mtv.hgv-report .mtv-facts:not(.hgv-evidence-facts) > div:last-child { border: 0; }
    .haplogroup-v3 .mtv-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .haplogroup-v3.mtv .mtv-branch-detail { padding: 20px 16px; }
    .haplogroup-v3.mtv.hgv-report .hve-panel { padding: 16px; }
    .haplogroup-v3.mtv.hgv-report .hve-age-card { padding: 16px; }
    .haplogroup-v3 .mtv-dialog, .haplogroup-v3 .hgi-comparison { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; inset: 0; padding: 20px; border-radius: 0; }
    .haplogroup-v3 .mtv-dialog::before { display: none; }
    .haplogroup-v3 .mtv-next { text-align: left; }
}
@media print {
    body:has(.haplogroup-v3), .haplogroup-v3.mtv { background: white; }
    .haplogroup-v3.mtv { display: block; max-width: none; padding: 0; margin: 0; font-size: 11pt; }
    .haplogroup-v3 .hgv3-navigation { display: none !important; }
    .haplogroup-v3 .mtv-main { margin: 0; padding: 0; }
    .haplogroup-v3 .mtv-panel, .haplogroup-v3 .mtv-panel[hidden] { display: block !important; }
    .haplogroup-v3 .hgv3-disclosure::details-content { content-visibility: visible; height: auto; }
    .haplogroup-v3 .hgv3-disclosure > :not(summary) { display: block !important; }
    .haplogroup-v3 .mtv-result { break-inside: avoid; }
}
/* Compact v3 reading rhythm. Shared v2 cards retain their original presentation. */
.haplogroup-v3 .hgv3-story { margin: 28px 0; padding-left: 22px; border-left: 3px solid #98783f; max-width: 72ch; }
.haplogroup-v3 .hgv3-story > p { font-size: 17px; line-height: 1.7; }
.haplogroup-v3 .hgv3-story .hgv3-disclosure { margin-bottom: 0; }
.haplogroup-v3 .hgv3-sample-options > summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-size: 14px; color: #213a2f; }
.haplogroup-v3 .hgv3-sample-options .mtv-actions { margin-top: 0; }
/* V3 sample cards keep the portrait and identity together, with full-width facts and actions. */
.haplogroup-v3.mtv.hgv-report .mtv-sample-rows .hgv3-sample-card { display: block; background: #fffdf9; border-color: #ded9ce; border-radius: 8px; }
.haplogroup-v3 .hgv3-sample-header { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; gap: 18px; padding: 20px 20px 16px; }
.haplogroup-v3.mtv.hgv-report .hgv3-sample-card .mtv-sample-image { width: 88px; height: 110px; min-height: 0; margin: 0; border-radius: 5px; overflow: visible; }
.haplogroup-v3 .hgv3-sample-card .mtv-sample-image img { border-radius: inherit; }
.haplogroup-v3 .hgv3-sample-context { min-width: 0; }
.haplogroup-v3 .hgv3-sample-context h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.haplogroup-v3 .hgv3-sample-date { margin: 0; color: #65665e; font-size: 14px; line-height: 1.5; }
.haplogroup-v3.mtv.hgv-report .hgv3-sample-card .mtv-sample-body { padding: 0 20px 18px; }
.haplogroup-v3 .hgv3-sample-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 12px 0; border-block: 1px solid #e6e1d7; font-size: 14px; line-height: 1.5; }
.haplogroup-v3 .hgv3-sample-facts .mtv-status { margin: 0; padding: 4px 9px; font-size: 12px; }
.haplogroup-v3 .hgv3-sample-facts strong { margin-left: 4px; font-weight: 600; }
.haplogroup-v3 .hgv3-sample-facts .dna-accession-badge { margin: 0 0 0 auto; border: 0; padding: 0; font-size: 12px; }
.haplogroup-v3 .hgv3-sample-card .hgv3-sample-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin: 16px 0 4px; }
.haplogroup-v3 .hgv3-sample-actions .mtv-button { font-size: 14px; padding: 9px 16px; }
.haplogroup-v3 .hgv3-sample-options .dna-icon { width: 14px; height: 14px; }
.haplogroup-v3 .hgv3-sample-options { margin-top: 2px; }
.haplogroup-v3 .hgv3-sample-options .mtv-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0 0 8px; }
.haplogroup-v3 .hgv3-sample-options .mtv-text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; }
.haplogroup-v3.mtv.hgv-report .hgv3-sample-card .mtv-portrait-notice { margin: 12px 0 0; color: #65665e; font-size: 12px; line-height: 1.55; }
.haplogroup-v3 .hgv3-print-notice { display: none; }
.haplogroup-v3 .hgv3-portrait-fallback { margin-top: 8px; }
.haplogroup-v3 .hgv3-portrait-fallback > summary { width: fit-content; font-size: 14px; }
.haplogroup-v3 .hgv3-portrait-fallback > p { font-size: 14px; color: var(--mtv-muted); }
@media (min-width: 1100px) {
    .haplogroup-v3.mtv.hgv-report .mtv-sample-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
}
@media (max-width: 600px) {
    .haplogroup-v3 #overview .mtv-heading { margin-bottom: 20px; }
    .haplogroup-v3 #overview .mtv-heading h1 { font-size: 36px; }
    .haplogroup-v3 #overview .mtv-result { padding: 18px; gap: 12px; }
    .haplogroup-v3 #overview .mtv-result-context { padding-top: 12px; }
    .haplogroup-v3 #overview .mtv-result-context h2 { font-size: 24px; }
    .haplogroup-v3 #overview .mtv-result-context p { margin-bottom: 6px; }
    .haplogroup-v3.mtv.hgv-report #overview .mtv-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 20px; }
    .haplogroup-v3.mtv.hgv-report #overview .mtv-facts > div { padding: 8px; border-bottom: 0; border-right: 1px solid var(--mtv-line); }
    .haplogroup-v3 #overview .mtv-facts strong { font-size: 19px; }
    .haplogroup-v3 #overview .mtv-facts span { font-size: 12px; }
    .haplogroup-v3 #overview .mtv-section-heading { margin-top: 24px; }
    .haplogroup-v3 .hgv3-story { padding-left: 16px; margin-block: 24px; }
    .haplogroup-v3 .hgv3-sample-header { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 16px 14px; }
    .haplogroup-v3.mtv.hgv-report .hgv3-sample-card .mtv-sample-image { width: 72px; height: 90px; }
    .haplogroup-v3 .hgv3-sample-context h3 { font-size: 21px; }
    .haplogroup-v3.mtv.hgv-report .hgv3-sample-card .mtv-sample-body { padding: 0 16px 16px; }
    .haplogroup-v3 .hgv3-sample-facts { gap: 8px 12px; }
    .haplogroup-v3 .hgv3-sample-facts .dna-accession-badge { flex-basis: 100%; margin-left: 0; }

}
@media print {
    .haplogroup-v3 :is(.hgv3-sample-options, .hgv3-portrait-fallback) { display: none; }
    .haplogroup-v3 .hgv3-story { max-width: none; }
    .haplogroup-v3 .hgv3-print-notice { display: block !important; }
}
/* One control set serves compact mobile filters and the expanded desktop toolbar. */
.haplogroup-v3.mtv.hgv-report .hgv3-sample-filters { grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr); align-items: end; gap: 16px; margin: 24px 0 16px; }
.haplogroup-v3 .hgv3-filters { min-width: 0; }
.haplogroup-v3 .hgv3-filters > summary { display: none; }
.haplogroup-v3 .hgv3-filter-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.haplogroup-v3.mtv.hgv-report .hgv3-sample-filters label { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; font-size: 14px; font-weight: 600; }
.haplogroup-v3 .hgv3-filter-controls select { width: 100%; }
.haplogroup-v3 [data-hgv3-filter-count] { margin-left: 6px; color: var(--mtv-muted); font-weight: 400; font-size: 14px; }
.haplogroup-v3 [data-hgv3-match-tools][hidden] { display: none !important; }
/* Shared research components inherit the same surfaces without changing evidence colors. */
.haplogroup-v3.mtv.hgv-report :is(.hgr-card, .hve-panel, .mtv-empty, .mtv-branch-detail) { padding: 24px; border-radius: 8px; }
.haplogroup-v3.mtv.hgv-report :is(input[type="search"], input[type="text"], select, textarea) { min-height: 44px; border-color: #89968b; border-radius: 5px; background: #fffdf9; color: var(--mtv-ink); font-size: 16px; }
.haplogroup-v3.mtv.hgv-report :is(.mtv-button, .mtv-text-link, .hg-chronology-button, .hve-button, .hve-table-select) { min-height: 44px; }
.haplogroup-v3.mtv.hgv-report details > summary { min-height: 44px; box-sizing: border-box; padding-block: 10px; color: var(--mtv-wine); font-size: 15px; line-height: 1.6; cursor: pointer; }
.haplogroup-v3.mtv.hgv-report summary::marker { color: var(--mtv-wine); }
.haplogroup-v3.mtv.hgv-report .mtv-branch-detail > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--mtv-wine); border-bottom: 2px solid var(--mtv-wine); transform: rotate(45deg); margin: 0 4px 5px auto; flex-shrink: 0; }
.haplogroup-v3.mtv.hgv-report .mtv-branch-detail[open] > summary::after { transform: rotate(225deg); margin-bottom: -4px; }
.haplogroup-v3.mtv.hgv-report .hgr details { padding-block: 0; }
.haplogroup-v3.mtv.hgv-report .hgr details > :not(summary) { margin-block: 12px; }
.haplogroup-v3.mtv.hgv-report .hgr :is(th, td, details, .hgr-time-ticks, .hgr-time-row, .hgr-time-track, .hgr-time-tick-grid, .hgr-time-group) { border-color: var(--mtv-line); }
.haplogroup-v3.mtv.hgv-report .hgr .hgr-time-row:hover { background: #edf0e8; }
.haplogroup-v3.mtv.hgv-report .hgr .hgr-time-row[aria-pressed="true"] { border-color: #6e826e; background: #e8ede5; }
.haplogroup-v3.mtv.hgv-report .hgr :is(.hgr-time-ticks > span, .hgr-time-meta, .hgr-time-accession, .hgr-time-legend) { color: var(--mtv-muted); }
.haplogroup-v3.mtv.hgv-report .hgr .hgr-time-label strong { color: var(--mtv-ink); }
.haplogroup-v3.mtv.hgv-report .hgr svg { background: var(--mtv-paper); }
.haplogroup-v3.mtv.hgv-report .hgr svg text { fill: var(--mtv-ink); }
.haplogroup-v3.mtv.hgv-report .hgr svg .hgr-edge { stroke: #89968b; }
.haplogroup-v3.mtv.hgv-report :is(.report-version-stamp, .yv-reference-disclosure > summary, .hgv-marker-table thead th) { background: #f1eee6; }
.haplogroup-v3.mtv.hgv-report .hve-selection { border-color: #89968b; }
.haplogroup-v3.mtv.hgv-report :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #526a51; outline-offset: 4px; }
.haplogroup-v3.mtv.hgv-report .mtv-branch-detail .hve-ages { padding: 20px 0 0; margin: 20px 0 0; border: 0; border-top: 1px solid var(--mtv-line); border-radius: 0; background: transparent; }
.haplogroup-v3.mtv.hgv-report .mtv-branch-detail .hve-age-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
@media (max-width: 600px) {
    .haplogroup-v3.mtv.hgv-report .hgv3-sample-filters { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .haplogroup-v3.mtv.hgv-report .hgv3-filters { border-bottom: 1px solid var(--mtv-line); }
    .haplogroup-v3 .hgv3-filters > summary { display: list-item; }
    .haplogroup-v3 .hgv3-filter-controls { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
    .haplogroup-v3.mtv.hgv-report :is(.hgr-card, .hve-panel, .mtv-empty, .mtv-branch-detail) { padding: 16px; }
    .haplogroup-v3.mtv.hgv-report .mtv-branch-detail .hve-ages { padding: 16px 0 0; margin-top: 16px; }
    .haplogroup-v3 .mtv-summary { margin-top: 32px; padding-top: 24px; }
}
@media print {
    .haplogroup-v3 [data-hgv3-match-tools] { display: none !important; }
    .haplogroup-v3.mtv.hgv-report details > summary { min-height: 0; padding-block: 4px; }
}
