/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * Haplogroup reports v2 (mtv compatibility selectors): scoped navigation, evidence, drawers and print layouts.
 */
/* Scoped report theme. The global navbar remains the site's navigation. */
.mtv { --mtv-paper: #faf8f5; --mtv-ink: #171517; --mtv-muted: #65636b; --mtv-wine: #641339; --mtv-plum: #2c1521; --mtv-line: #ded7cf; --mtv-serif: "Cormorant Garamond", Georgia, serif; background: var(--mtv-paper); color: var(--mtv-ink); font-family: "DM Sans", "Inter", sans-serif; font-size: 15px; line-height: 1.6; padding-top: calc(var(--nav-height, 72px) + 8px); min-height: 100vh; }
.mtv *, .mtv *::before, .mtv *::after { box-sizing: border-box; }
.mtv h1, .mtv h2, .mtv h3 { font-family: var(--mtv-serif); font-weight: 600; color: var(--mtv-ink); letter-spacing: -.025em; }
.mtv h1 { font-size: clamp(38px, 4.5vw, 60px); line-height: 1.06; margin: 8px 0 12px; }
.mtv h2 { font-size: 33px; line-height: 1.15; margin: 0 0 14px; }
.mtv h3 { font-size: 26px; line-height: 1.2; margin: 8px 0 12px; }
.mtv p { color: var(--mtv-muted); margin: 0 0 16px; }
.mtv a { color: var(--mtv-wine); }
.mtv button, .mtv input, .mtv select, .mtv textarea { font: inherit; }
.mtv button { cursor: pointer; }
.mtv button:disabled { cursor: wait; opacity: .65; }
.mtv :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #a67532; outline-offset: 4px; }
.mtv [hidden] { display: none !important; }
.mtv .mtv-eyebrow { display: block; font-family: "DM Sans", "Inter", sans-serif; font-size: 11px; letter-spacing: .16em; font-weight: 600; color: var(--mtv-muted); }
.mtv-sidebar { position: fixed; top: var(--nav-height, 72px); bottom: 0; left: 0; width: 264px; background: var(--mtv-plum); color: #e6dadf; display: flex; flex-direction: column; padding: 24px 18px; overflow-y: auto; z-index: 100; }
.mtv-sidebar .mtv-back { color: #d5c3cb; font-size: 14px; padding: 0 16px 26px; }
.mtv-sidebar-title { padding: 0 16px; }
.mtv-sidebar-title h2 { color: #f3e9ec; font-size: 25px; margin: 12px 0 4px; }
.mtv-sidebar-title p, .mtv-sidebar .mtv-eyebrow { color: #c8b9c1; }
.mtv-sidebar nav { display: flex; flex-direction: column; gap: 4px; margin: 28px 0 36px; }
.mtv-sidebar nav a { display: flex; align-items: center; gap: 18px; min-height: 52px; padding: 12px 16px; border-radius: 9px; color: #e6dadf; text-decoration: none; }
.mtv-sidebar nav a:hover { background: #482332; }
.mtv-sidebar nav a[aria-current="page"] { background: #5b1c3a; color: #fff; }
.mtv-sidebar nav .dna-icon { width: 20px; height: 20px; background-color: #d9b8bf; flex-shrink: 0; }
.mtv-main { margin-left: 264px; padding: 0 42px 36px 56px; max-width: 1640px; min-width: 0; }
.mtv-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; min-height: 52px; }
.mtv-topbar .breadcrumb { margin: 0; background: transparent; padding: 0; font-size: 13px; }
.mtv .breadcrumb-item a { color: var(--mtv-wine); }
.mtv .breadcrumb-item a:hover { color: #7b224a; text-decoration: underline; }
.mtv .breadcrumb-item.active, .mtv .breadcrumb-item + .breadcrumb-item::before { color: var(--mtv-muted); opacity: 1; }
.mtv .report-version-stamp { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); background: #f0eae4; border-color: var(--mtv-line); }
.mtv .report-version-stamp__label { color: var(--mtv-muted); opacity: 1; }
.mtv .report-version-stamp__value { color: var(--mtv-ink); overflow-wrap: anywhere; }
.mtv .report-version-stamp__value .dna-icon { flex-shrink: 0; color: var(--mtv-wine); }
.mtv-heading { margin: 0 0 32px; max-width: 880px; }
.mtv-heading > p { font-size: 21px; line-height: 1.5; }
.mtv-sample-context { font-size: 13px; overflow-wrap: anywhere; }
.mtv-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; min-height: 44px; border: 1px solid #cdbdc3; border-radius: 9px; color: var(--mtv-wine); background: transparent; font-size: 14px; line-height: 1.5; text-decoration: none; }
.mtv-button:hover { background: #f0e5e9; text-decoration: none; }
.mtv .mtv-primary { background: var(--mtv-wine); color: white; border-color: var(--mtv-wine); }
.mtv .mtv-primary:hover { background: #7b224a; }
.mtv-text-link { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 8px 0; background: transparent; color: var(--mtv-wine); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.mtv-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.mtv-result { display: grid; grid-template-columns: minmax(180px, .7fr) 1.2fr; gap: 42px; align-items: center; margin: 24px 0 32px; }
.mtv-haplogroup { font-family: var(--mtv-serif); color: var(--mtv-wine); font-size: clamp(48px, 7vw, 90px); line-height: 1.05; letter-spacing: -.04em; margin: 6px 0 14px; overflow-wrap: anywhere; }
.mtv-status { display: inline-block; font-size: 12px; font-weight: 600; background: #ece2e7; border-radius: 18px; color: #641339; padding: 6px 12px; }
.mtv-result .mtv-text-link { display: block; margin-top: 8px; }
.mtv-result-context { padding: 12px 0 12px 42px; border-left: 1px solid var(--mtv-line); }
.mtv-result-context h2 { font-size: 34px; }
.mtv-result-context p:last-child { margin-bottom: 0; }
.mtv-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--mtv-line); padding: 23px 0; margin: 32px 0; }
.mtv-facts > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 16px; border-right: 1px solid var(--mtv-line); }
.mtv-facts > div:last-child { border: 0; }
.mtv-facts strong { color: var(--mtv-wine); font-family: var(--mtv-serif); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; line-height: 1.2; }
.mtv-facts span { color: var(--mtv-muted); font-size: 12px; }
.mtv-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 44px 0 24px; }
.mtv-section-heading h2 { margin: 8px 0; }
.mtv-section-heading p { margin-bottom: 0; }
.mtv-tree-preview { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; border-bottom: 1px solid var(--mtv-line); padding: 10px 0 32px; }
.mtv-branch { border: 0; background: transparent; padding: 0; position: relative; display: flex; flex: 1; min-width: 84px; align-items: center; flex-direction: column; gap: 12px; text-align: center; text-decoration: none; }
.mtv-branch strong { display: flex; align-items: center; justify-content: center; min-width: 64px; min-height: 64px; padding: 12px; border: 1px solid #cdbdc3; border-radius: 50%; font-family: var(--mtv-serif); font-size: 26px; color: var(--mtv-wine); background: #f1e9eb; }
.mtv-branch span { font-size: 11px; color: var(--mtv-muted); }
.mtv-branch-result strong { background: var(--mtv-wine); color: #fff; }
.mtv-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mtv-sample { border: 1px solid var(--mtv-line); border-radius: 12px; overflow: hidden; background: #fffdfa; }
.mtv-sample-image { position: relative; height: 190px; background: #e4dcd4; overflow: hidden; }
.mtv-sample-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.mtv-sample-image > span { position: absolute; bottom: 8px; right: 10px; background: #2c1521; color: #fff; padding: 3px 7px; border-radius: 4px; font-size: 10px; }
.mtv-sample-body { padding: 24px; }
.mtv-sample-body h3 { font-size: 29px; }
.mtv-sample-body p { font-size: 13px; margin-bottom: 10px; }
.mtv-sample-body .mtv-portrait-notice { font-size: 11px; margin-top: 14px; }
.mtv .dna-accession-badge { display: inline-block; border: 1px solid var(--mtv-line); border-radius: 4px; padding: 3px 7px; font-size: 11px; color: var(--mtv-muted); opacity: 1; overflow-wrap: anywhere; }
.mtv-summary { border-top: 1px solid var(--mtv-line); margin-top: 48px; padding: 30px 0 8px; }
.mtv-summary h2 { margin-top: 10px; }
.mtv-next { display: block; text-align: right; border-top: 1px solid var(--mtv-line); padding: 24px 0; margin-top: 42px; font-size: 15px; }
.mtv-prose { max-width: 850px; margin: 32px 0; }
.mtv-prose > h2 { margin-top: 32px; }
.mtv-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 36px 0; }
.mtv-note { padding: 16px 20px; border-left: 3px solid #a67532; background: #f2ece2; font-size: 14px; }
.mtv-lineage { margin: 28px 0; }
.mtv-branch-detail { border-left: 3px solid var(--mtv-wine); background: #f0eae4; padding: 24px 32px; margin-bottom: 16px; }
.mtv-branch-detail summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.mtv-branch-detail summary strong { font-family: var(--mtv-serif); color: var(--mtv-wine); font-size: 32px; }
.mtv-branch-detail summary span { font-size: 12px; color: var(--mtv-muted); }
.mtv-branch-detail p { margin: 12px 0; }
.mtv-map { margin: 36px 0; }
.mtv-map img { max-width: 100%; height: auto; border-radius: 8px; }
.mtv-map figcaption { font-size: 12px; color: var(--mtv-muted); margin-top: 10px; }
.mtv :is(.mtv-filters, .mtv-evidence-filters, .mtv-section-heading, .mtv-mobile-nav, .mtv-dialog) > label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; margin: 0; }
.mtv :is(input[type="search"], select, textarea) { min-height: 44px; padding: 10px 12px; border: 1px solid #cdbdc3; border-radius: 7px; background: #fffdfa; color: var(--mtv-ink); max-width: 100%; }
.mtv-filters { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 14px; margin: 30px 0 20px; }
.mtv-filters > label { min-width: 0; }
.mtv-accordion { padding: 18px 0; border-bottom: 1px solid var(--mtv-line); }
.mtv-accordion summary { cursor: pointer; font-weight: 500; color: var(--mtv-ink); }
.mtv-accordion summary > span { color: var(--mtv-muted); font-size: 12px; margin-left: 12px; }
.mtv-accordion > :not(summary) { margin-top: 16px; }
.mtv-detail-list { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr; gap: 12px 24px; margin: 24px 0; font-size: 14px; }
.mtv-detail-list dt { font-weight: 500; }
.mtv-detail-list dd { margin: 0; color: var(--mtv-muted); overflow-wrap: anywhere; }
.mtv progress { width: 100%; height: 12px; accent-color: var(--mtv-wine); }
.mtv-table-wrap { overflow-x: auto; }
.mtv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mtv-table th, .mtv-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--mtv-line); }
.mtv-table caption { color: var(--mtv-muted); font-size: 12px; }
.mtv-marker-state { font-size: 12px; border-radius: 4px; padding: 5px 8px; background: #ece7e2; color: #504a48; }
.mtv-marker-confirmed { background: #e0efdf; color: #1d633b; }
.mtv-marker-ancestral, .mtv-marker-notconfirmed { background: #f5e5d2; color: #764315; }
.mtv-mutations { display: flex; flex-wrap: wrap; gap: 8px; overflow-wrap: anywhere; }
.mtv code { color: var(--mtv-wine); background: #f0e6eb; padding: 4px 8px; border-radius: 4px; }
.mtv-publication { margin: 24px 0; padding: 24px 0; border-bottom: 1px solid var(--mtv-line); }
.mtv-empty { padding: 28px; background: #f1ece6; border: 1px solid var(--mtv-line); border-radius: 10px; margin: 24px 0; }
.mtv-empty p:last-child { margin: 0; }
.mtv .mtv-ai { background: #f2e9ed; border: 1px solid #d8c3cc; color: var(--mtv-ink); padding: clamp(20px, 3vw, 32px); margin-top: 48px; box-shadow: none; }
.mtv .mtv-ai::before, .mtv .mtv-ai::after { content: none; }
.mtv-ai h2 small { font-family: "Inter", sans-serif; font-size: 12px; }
.mtv-ai > p { margin-top: 16px; }
.mtv-ai .suggested-prompts { display: flex; gap: 10px; flex-wrap: wrap; }
.mtv .ai-results, .mtv .ai-sample-output { background: #fffdfa; border: 1px solid var(--mtv-line); color: var(--mtv-ink); padding: clamp(16px, 2vw, 24px); box-shadow: none; overflow-wrap: anywhere; }
.mtv .ai-sample-output { margin: 20px 0; }
.mtv .mtv-ai .suggested-prompts { margin: 20px 0; }
.mtv .mtv-ai h2 small { color: var(--mtv-muted); }
.mtv .mtv-ai .badge { white-space: normal; line-height: 1.5; }
.mtv .mtv-ai .badge-success { background: #e0efdf; color: #1d633b; }
.mtv .mtv-ai .badge-warning { background: #f5e5d2; color: #764315; }
.mtv .ai-result-content :is(h1, h2) { font-size: 28px; }
.mtv .ai-result-content h3 { font-size: 24px; }
.mtv .ai-result-content h4 { font-family: var(--mtv-serif); color: var(--mtv-ink); font-size: 21px; }
.mtv .ai-results pre { background: var(--mtv-paper); color: var(--mtv-ink); padding: 16px; overflow-x: auto; }
.mtv .ai-results table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.mtv .ai-results th, .mtv .ai-results td { padding: 10px 12px; border: 1px solid var(--mtv-line); }
.mtv .ai-results th { background: #f0eae4; }
/* Bootstrap status utilities use !important; retain their meaning with readable colors. */
.mtv .ai-results .text-warning { color: #764315 !important; }
.mtv .ai-results .text-danger { color: #9b2638 !important; }
.mtv .ai-legal-disclaimer { color: var(--mtv-muted); background: var(--mtv-paper); border-color: var(--mtv-line); }
.mtv .ai-legal-disclaimer--pre, .mtv .ai-legal-disclaimer--post { background: transparent; border: 0; }
.mtv .ai-legal-disclaimer :is(.ai-legal-disclaimer__scope, .ai-legal-disclaimer__legal, .ai-legal-disclaimer__summary) { color: var(--mtv-muted); opacity: 1; font-size: 14px; line-height: 1.65; margin-bottom: 8px; }
.mtv .ai-legal-disclaimer .ai-legal-disclaimer__toggle { color: var(--mtv-wine); opacity: 1; font-size: 14px; line-height: 1.6; }
.mtv .ai-legal-disclaimer .ai-legal-disclaimer__icon { color: var(--mtv-wine); opacity: 1; }
.mtv .ai-results:empty { display: none; }
.mtv .ai-results blockquote { background: #f2e9ed; border-color: var(--mtv-wine); }
.mtv .ai-suggested-prompt:hover { transform: none; box-shadow: none; }
/* The shared disclosure is mounted under body, outside the report wrapper. */
.mtv .dnai-marker { background: var(--mtv-wine); color: white; border-color: #fffdfa; font: 700 10px/1 "Inter", sans-serif; box-shadow: none; }
.mtv .dnai-marker:hover, .mtv .dnai-marker:focus-visible { background: #7b224a; border-color: white; transform: none; box-shadow: none; }
.mtv .dnai-marker:focus-visible { outline: 3px solid white; outline-offset: 3px; }
body:has(.mtv-report) .dnai-modal { padding: 0; align-items: stretch; justify-content: flex-end; }
body:has(.mtv-report) .dnai-modal-panel { width: min(480px, 100%); max-width: 100%; max-height: 100dvh; padding: 32px; border-radius: 16px 0 0 16px; border-color: #ded7cf; background: #faf8f5; color: #171517; font-family: "Inter", sans-serif; box-shadow: none; transform: translateX(24px); }
body:has(.mtv-report) .dnai-modal-open .dnai-modal-panel { transform: none; }
body:has(.mtv-report) .dnai-modal-title { padding-right: 44px; color: #171517; font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; line-height: 1.2; }
body:has(.mtv-report) .dnai-modal-title-badge { flex: 0 0 26px; height: 26px; background: #ece2e7; color: #641339; font: 700 10px/1 "Inter", sans-serif; }
body:has(.mtv-report) .dnai-modal-body { color: #65636b; font-size: 15px; line-height: 1.7; }
body:has(.mtv-report) .dnai-modal-close { width: 44px; height: 44px; background: #ece2e7; color: #641339; }
body:has(.mtv-report) .dnai-modal-close:hover { background: #e4d4dc; }
body:has(.mtv-report) .dnai-modal-close:focus-visible { outline: 3px solid #641339; outline-offset: 3px; }
.mtv.dna-content-reveal { animation: none; }
.mtv-back-top { display: block; margin: 28px 0 0; text-align: right; font-size: 13px; }
.mtv-panel { scroll-margin-top: calc(var(--nav-height, 72px) + 24px); }
.mtv-dialog { position: fixed; inset: 0 0 0 auto; width: min(680px, 60vw); height: 100dvh; max-height: 100dvh; max-width: 100%; overflow-y: auto; border: 1px solid #cdbdc3; border-radius: 16px 0 0 16px; background: var(--mtv-paper); color: var(--mtv-ink); padding: 36px; margin: 0; }
.mtv-dialog::backdrop { background: #211b20a6; }
.mtv-dialog h2 { padding-right: 30px; }
.mtv-dialog-close { position: sticky; float: right; z-index: 2; right: 12px; top: 12px; min-height: 44px; min-width: 44px; border: 0; background: var(--mtv-paper); color: var(--mtv-wine); font-size: 28px; }
.mtv-dialog textarea { width: 100%; font-size: 13px; line-height: 1.6; resize: vertical; }
.mtv-skip { position: fixed; top: -150px; left: 280px; z-index: 1100; background: #fff; padding: 12px 20px; }
.mtv-skip:focus { top: calc(var(--nav-height, 72px) + 8px); }
.mtv-mobile-nav { display: none; }
.mtv:not(.mtv-enhanced) .mtv-js { display: none; }
.mtv-nodata, .mtv-loading { padding-inline: max(24px, calc((100vw - 1060px) / 2)); padding-bottom: 60px; }
.mtv-nodata .breadcrumb { background: transparent; padding: 16px 0; }
.mtv-nodata .mtv-heading { margin-top: 24px; }
.mtv .haplo-timeline-wrapper { --htl-gold: #641339; --htl-bronze: #8b6576; --htl-bronze-light: #65636b; --htl-ivory: #211b20; --htl-ivory-dim: #68616a; --htl-bg-dark: #f2ece7; --htl-bg-card: #fffdfa; --htl-border: #ded7cf; }
.mtv .haplo-timeline-item { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
.mtv .haplo-timeline-spine { background: #cdbdc3; }
.mtv .haplo-timeline-chapter-label { display: none; }
.mtv .haplo-timeline-wrapper .haplo-timeline-connector { background: #cdbdc3 !important; }
.mtv .haplo-timeline-wrapper .haplo-timeline-haplogroup .haplo-timeline-card { background: #f2e9ed; border-color: #cdbdc3; box-shadow: none; }
.mtv .haplo-timeline-node::before, .mtv .haplo-timeline-node::after { animation: none !important; background: transparent; }
.mtv .haplo-timeline-card { background: #fffdfa; color: var(--mtv-ink); border-color: var(--mtv-line); }
.mtv .haplo-timeline-card-title { font-size: 24px; line-height: 1.3; }
.mtv .haplo-timeline-card-description, .mtv .haplo-timeline-card-meta { color: var(--mtv-muted); }
.mtv .haplo-timeline-node-glow { display: none; }
.mtv .haplo-timeline-haplogroup .haplo-timeline-node-dot { background: var(--mtv-wine); border-color: var(--mtv-paper); box-shadow: none; }
.mtv .haplo-timeline-haplogroup .haplo-timeline-node-dot .dna-icon, .mtv .haplo-timeline-haplogroup:hover .haplo-timeline-node-dot .dna-icon { color: white; }
.mtv .haplo-timeline-item:hover .haplo-timeline-card, .mtv .haplo-timeline-item:hover .haplo-timeline-node-dot { transform: none; box-shadow: none; }
.mtv .haplo-timeline-legend-haplogroup .haplo-timeline-legend-dot { box-shadow: none; border-color: var(--mtv-paper); }
.mtv .haplo-timeline-card-meta { flex-wrap: wrap; }
.mtv .haplo-timeline-card-meta span:last-child { min-width: 0; overflow-wrap: anywhere; }
.mtv .haplo-timeline-card-meta .dna-icon { flex-shrink: 0; }
.mtv .hg-chronology { --hgc-ink: var(--mtv-ink); --hgc-muted: var(--mtv-muted); --hgc-accent: var(--mtv-wine); --hgc-inset: clamp(20px, 3vw, 32px); background: #fffdfa; border-color: var(--mtv-line); }
.mtv .hg-chronology-heading { padding: var(--hgc-inset); gap: 16px; }
.mtv .hg-chronology-heading > div { min-width: 0; max-width: 76ch; }
.mtv .hg-chronology h3 { margin: 8px 0 12px; }
.mtv .hg-chronology p { font-size: 15px; line-height: 1.7; }
.mtv .hg-chronology-heading p { margin: 0; }
/* Override both the shared dark surface and the report's generic column labels. */
.mtv .hg-chronology-consent { padding: var(--hgc-inset); background: var(--mtv-paper); border-color: var(--mtv-line); }
.mtv .hg-chronology-consent > p, .mtv .hg-chronology-consent form { max-width: 76ch; }
.mtv .hg-chronology-consent > p { margin: 0 0 24px; font-size: 16px; }
.mtv .hg-chronology label.hg-chronology-checkbox { display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 20px; margin: 0 0 24px; border: 1px solid var(--mtv-line); border-radius: 10px; background: #fffdfa; color: var(--mtv-ink); font-size: 16px; font-weight: 400; line-height: 1.7; cursor: pointer; }
.mtv .hg-chronology-checkbox input { flex: 0 0 20px; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--mtv-wine); cursor: pointer; }
.mtv .hg-chronology-checkbox span { min-width: 0; overflow-wrap: anywhere; }
.mtv .hg-chronology-consent p.hg-chronology-fine { padding: 0 0 0 16px; margin: 0 0 24px; border-left: 2px solid #cdbdc3; font-size: 14px; }
.mtv .hg-chronology-detail, .mtv .hg-chronology-footnote { background: #f0eae4; }
.mtv .hg-chronology-stage, .mtv .hg-chronology-footnote, .mtv .hg-chronology-code { border-color: var(--mtv-line); }
.mtv .hg-chronology-stage { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
/* Stretch beside long observation details; retain fixed responsive heights when stacked. */
@media (min-width: 1101px) {
    .mtv .hg-chronology-map { height: auto; min-height: 460px; align-self: stretch; }
}
/* Stretch beside long observation details; retain fixed responsive heights when stacked. */
@media (min-width: 1101px) {
    .mtv .hg-chronology-map { height: auto; min-height: 460px; align-self: stretch; }
}
.mtv .hg-chronology-detail { min-width: 0; }
/* Parallel map preview: the default presentation retains its existing layout. */
.mtv .hgc-preview-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 18px var(--hgc-inset); border-top: 1px solid var(--mtv-line); }
.mtv .hgc-preview-switch span { color: var(--mtv-muted); font-size: 14px; margin-left: 8px; }
.mtv .hgc-preview-switch button[aria-pressed="true"], .mtv .hgc-preview-layers button[aria-pressed="true"] { background: var(--mtv-wine); border-color: var(--mtv-wine); color: #fff; }
.mtv .hgc-preview-switch button[aria-pressed="true"]:hover:not(:disabled), .mtv .hgc-preview-layers button[aria-pressed="true"]:hover:not(:disabled) { background: #7b224a; border-color: #7b224a; color: #fff; }
.mtv .hgc-preview-switch button[aria-pressed="true"]:hover:not(:disabled), .mtv .hgc-preview-layers button[aria-pressed="true"]:hover:not(:disabled) { background: #7b224a; border-color: #7b224a; color: #fff; }
.mtv .hgc-preview-layers { padding: 16px var(--hgc-inset) 0; }
.mtv .hgc-preview-layers > div { display: flex; flex-wrap: wrap; gap: 8px; }
.mtv .hgc-preview-layers .hg-chronology-button { border-radius: 24px; font-size: 14px; }
.mtv .hg-chronology .hgc-preview-layers p { padding: 0; margin: 14px 0; }
.mtv .hgc-preview .hg-chronology-map { min-height: 560px; }
.mtv .hgc-preview .hg-chronology-detail { background: #fffdfa; padding: 24px; }
.mtv .hgc-preview .hg-chronology-stage { grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); }
.mtv .hgc-preview[data-enhanced-navigation="true"] .hgc-v2-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 18px var(--hgc-inset); }
.mtv .hgc-preview [data-role="playback-slot"] { grid-column: 1 / -1; grid-row: 1; }
.mtv .hgc-preview .hgc-v2-toolbar .hg-chronology-controls { margin-top: 0; gap: 12px; }
.mtv .hgc-preview .hgc-v2-navigation { grid-column: 1 / -1; margin: 0; }
.mtv .hgc-preview .hgc-v2-map-actions { margin: 0; align-items: start; }
.mtv .hgc-preview .hg-chronology-mode { flex-wrap: wrap; }
.mtv .hgc-preview .hgc-v2-marker { --hgc-marker-color: #267e8a !important; }
.mtv .hgc-preview-label { background: #fffdfa; color: #301b29; border: 1px solid #cdbdc3; box-shadow: none; font: 600 13px/1.4 system-ui, sans-serif; }
.mtv .hgc-preview .hg-chronology-legend { display: none; }
@media (min-width: 1101px) {
    .mtv .hgc-preview .hg-chronology-map { height: 560px; }
    .mtv .hgc-preview .hg-chronology-detail { max-height: 560px; overflow-y: auto; }
}
@media (max-width: 1100px) {
    .mtv .hgc-preview .hg-chronology-stage { grid-template-columns: minmax(0, 1fr); }
    .mtv .hgc-preview .hg-chronology-map { height: 440px; min-height: 440px; }
}
@media (max-width: 600px) {
    .mtv .hgc-preview-switch > button { flex: 1 1 auto; }
    .mtv .hgc-preview-switch span { margin: 4px 0 0; }
    .mtv .hgc-preview .hg-chronology-map { height: 360px; min-height: 360px; }
    .mtv .hgc-preview[data-enhanced-navigation="true"] .hgc-v2-toolbar { display: flex; flex-direction: column; }
    .mtv .hgc-preview [data-role="playback-slot"] { order: -1; }
    .mtv .hgc-preview .hg-chronology-scrubber { flex-basis: 100%; order: 1; }
    .mtv .hgc-preview-layers button { flex: 1 1 auto; }
}
@media print {
    .mtv .hgc-preview-switch, .mtv .hgc-preview-layers > div { display: none !important; }
    .mtv .hgc-preview .hg-chronology-detail { max-height: none; overflow: visible; }
    .mtv [data-map-preview-enabled="true"] .hg-chronology-table::details-content { content-visibility: visible; height: auto; }
    .mtv [data-map-preview-enabled="true"] .hg-chronology-table > div { display: block !important; overflow: visible; }
}
/* Enhanced exploration is explicitly enabled by the two v2 report views. */
.mtv [data-enhanced-navigation="true"] .hgc-v2-toolbar { padding: 24px var(--hgc-inset); border-top: 1px solid var(--mtv-line); background: var(--mtv-paper); }
.mtv .hgc-v2-toolbar .hg-chronology-mode, .mtv .hgc-v2-toolbar .hg-chronology-controls { padding: 0; }
.mtv .hgc-v2-toolbar .hg-chronology-controls { margin-top: 18px; }
.mtv .hgc-v2-navigation { display: flex; align-items: end; gap: 12px; margin-top: 20px; }
.mtv .hgc-v2-selection { flex: 1; min-width: 0; }
.mtv .hgc-v2-selection label { display: block; margin: 0 0 7px; font-size: 14px; color: var(--mtv-muted); }
.mtv .hgc-v2-selection select { width: 100%; min-height: 44px; padding: 9px 30px 9px 12px; border: 1px solid #cdbdc3; border-radius: 7px; background: #fffdfa; color: var(--mtv-ink); font: inherit; font-size: 15px; }
.mtv .hgc-v2-map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mtv [data-enhanced-navigation="true"] .hgc-v2-sample-detail { margin-top: 22px; padding-top: 22px; border-top: 1px solid #d6cbc1; }
.mtv .hg-chronology h4.hgc-v2-detail-heading { font: 700 12px/1.5 var(--mtv-sans, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--mtv-wine); margin: 0 0 12px; }
.mtv .hgc-v2-date-label { display: block; color: var(--mtv-muted); font-size: 13px; margin-top: 14px; }
.mtv [data-enhanced-navigation="true"] .hg-chronology-date { margin-top: 4px; }
.mtv .hgc-v2-marker-container { background: transparent; border: 0; }
.mtv .hgc-v2-marker { --hgc-marker-color: #267e8a; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--hgc-marker-color); box-shadow: 0 1px 5px #0005; color: white; font: 700 13px/1 system-ui, sans-serif; cursor: pointer; }
.mtv .hgc-v2-marker.hgc-v2-cluster.is-current { background: var(--mtv-wine); }
.mtv .hgc-v2-marker:not(.hgc-v2-cluster)::after { content: ''; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; }
.mtv .hgc-v2-marker.is-earlier { background: #fffdfa; border: 4px solid var(--hgc-marker-color); color: var(--mtv-ink); }
.mtv .hgc-v2-marker.is-earlier::after { border-color: var(--hgc-marker-color); }
.mtv .hgc-v2-marker.is-selected { outline: 3px solid var(--mtv-wine); outline-offset: 3px; }
.mtv .hgc-v2-marker:focus-visible { outline: 3px solid #111; outline-offset: 5px; }
.mtv .hgc-v2-marker-key { line-height: 2; }
.mtv .hgc-v2-key-current, .mtv .hgc-v2-key-earlier { display: inline-block; width: 12px; height: 12px; border: 2px solid #267e8a; border-radius: 50%; margin-left: 8px; vertical-align: middle; }
.mtv .hgc-v2-key-current { background: #267e8a; }
.mtv .hgc-v2-chooser { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 24px; border: 1px solid var(--mtv-line); border-radius: 14px; background: #fffdfa; color: var(--mtv-ink); overflow: auto; }
.mtv .hgc-v2-chooser::backdrop { background: #20182188; }
.mtv .hgc-v2-chooser-heading { display: flex; gap: 16px; align-items: start; justify-content: space-between; }
.mtv .hgc-v2-chooser-heading h3 { margin: 0; }
.mtv .hgc-v2-chooser ul { padding: 0; list-style: none; margin: 18px 0 0; }
.mtv .hgc-v2-choice { display: flex; flex-direction: column; align-items: start; gap: 7px; text-align: left; width: 100%; min-height: 44px; margin-top: 10px; padding: 14px; border: 1px solid var(--mtv-line); border-radius: 8px; background: var(--mtv-paper); color: var(--mtv-ink); font: inherit; overflow-wrap: anywhere; cursor: pointer; }
.mtv .hgc-v2-choice:hover { border-color: var(--mtv-wine); }
@media (max-width: 540px) {
    .mtv .hgc-v2-navigation { flex-wrap: wrap; }
    .mtv .hgc-v2-selection { order: -1; flex-basis: 100%; }
    .mtv .hgc-v2-navigation > button { flex: 1; }
    .mtv .hgc-v2-toolbar .hg-chronology-scrubber { min-width: 0; }
    .mtv .hgc-v2-chooser { padding: 18px; }
}
@media print {
    .mtv .hgc-v2-toolbar, .mtv .hgc-v2-chooser, .mtv .hgc-v2-marker-key { display: none !important; }
}
.mtv .hg-chronology-detail dl { font-size: 14px; }
.mtv .hg-chronology-detail p.hg-chronology-source, .mtv .hg-chronology-detail p.hg-chronology-transition { font-size: 14px; }
.mtv .hg-chronology-footnote { padding: 20px var(--hgc-inset); }
.mtv .hg-chronology-footnote p, .mtv .hg-chronology p.hg-chronology-fine { font-size: 14px; }
.mtv .hg-chronology-footnote p { margin: 0; max-width: 100ch; }
.mtv .hg-chronology-footnote p.hg-chronology-fine { padding: 12px 0 0; }
.mtv .hg-chronology-date, .mtv .hg-chronology-branch { color: var(--mtv-ink); }
.mtv .hg-chronology-detail p.hg-chronology-transition, .mtv .hg-chronology p.hg-chronology-uncertainty { color: var(--mtv-muted); }
.mtv .hg-chronology a { color: var(--mtv-wine); }
.mtv .hg-chronology-button { min-height: 44px; padding: 10px 18px; font-size: 15px; line-height: 1.5; font-weight: 600; background: var(--mtv-paper); border-color: #cdbdc3; color: var(--mtv-wine); }
.mtv .hg-chronology-button:hover:not(:disabled) { background: #f0e5e9; filter: none; }
.mtv .hg-chronology-primary { background: var(--mtv-wine); color: white; border-color: var(--mtv-wine); }
.mtv .hg-chronology-primary:hover:not(:disabled) { background: #7b224a; border-color: #7b224a; }
.mtv .hg-chronology :focus-visible { outline: 3px solid var(--mtv-wine); outline-offset: 3px; }
.mtv .hg-chronology-status { margin: 0; padding: 24px var(--hgc-inset); background: var(--mtv-paper); border-top: 1px solid var(--mtv-line); overflow-wrap: anywhere; }
.mtv .hg-chronology > .hg-chronology-button { margin: 16px var(--hgc-inset) 24px; }
.mtv .hg-chronology-mode { padding: 24px var(--hgc-inset) 0; }
.mtv .hg-chronology-controls { padding: 16px var(--hgc-inset); }
.mtv .hg-chronology-scrubber label { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 400; }
.mtv .hg-chronology-scrubber input { accent-color: var(--mtv-wine); }
.mtv .hg-chronology-legend { padding: 8px var(--hgc-inset) 16px; font-size: 13px; }
.mtv .hg-chronology p.hg-chronology-fine { padding-left: var(--hgc-inset); padding-right: var(--hgc-inset); }
.mtv .hg-chronology-consent p.hg-chronology-fine { padding-left: 16px; padding-right: 0; }
.mtv [data-enhanced-navigation="true"] > .hg-chronology-consent { padding: 0 var(--hgc-inset) 16px; border: 0; background: transparent; }
.mtv [data-enhanced-navigation="true"] > .hg-chronology-consent p.hg-chronology-fine { padding: 0; margin: 0; border: 0; }
.mtv .hg-chronology-footnote p.hg-chronology-fine { padding-left: 0; padding-right: 0; }
.mtv .hg-chronology-withdraw { color: var(--mtv-wine); font-size: 14px; margin-top: 12px; text-underline-offset: 3px; }
.mtv .hg-chronology-table { padding: 0 var(--hgc-inset) 24px; font-size: 14px; }
.mtv .hg-chronology-table summary { color: var(--mtv-wine); font-weight: 600; }
.mtv .hg-chronology caption { color: var(--mtv-muted); font-size: 14px; }
.mtv .hg-chronology th, .mtv .hg-chronology td { padding: 12px; border-color: var(--mtv-line); }
.mtv .hg-chronology th { background: #f0eae4; }
.mtv .hg-chronology tbody tr:nth-child(even) { background: var(--mtv-paper); }
@media (max-width: 1100px) {
    .mtv .hg-chronology-stage { grid-template-columns: minmax(0, 1fr); }
    .mtv .haplo-timeline-vertical { padding: 24px 0; }
    .mtv .haplo-timeline-spine { left: 22px; transform: none; }
    .mtv .haplo-timeline-item { flex-direction: row; padding-left: 64px; padding-right: 0; }
    .mtv .haplo-timeline-item .haplo-timeline-node { left: 22px; }
    .mtv .haplo-timeline-item .haplo-timeline-connector { left: 38px; right: auto; width: 26px; }
    .mtv .haplo-timeline-haplogroup .haplo-timeline-connector { left: 44px; width: 20px; }
    .mtv .haplo-timeline-item .haplo-timeline-card { text-align: left; margin: 0; max-width: none; width: 100%; }
    .mtv .haplo-timeline-card-meta { justify-content: flex-start; }
}
@media (max-width: 540px) {
    .mtv .hg-chronology label.hg-chronology-checkbox { padding: 16px; gap: 12px; font-size: 15px; }
    .mtv .hg-chronology-consent .hg-chronology-button { width: 100%; }
    .mtv .hg-chronology-mode .hg-chronology-button { flex: 1 1 100%; }
}
.mtv-sidebar .mtv-guide { display: flex; gap: 14px; align-items: center; margin-top: auto; padding: 20px 16px; color: #e6dadf; font-size: 13px; }
.mtv-sidebar .mtv-guide .dna-icon { width: 20px; height: 20px; background-color: #d9b8bf; }
.mtv-sidebar nav a[aria-current="page"] .dna-icon { background-color: #ddc186; }
.mtv-branch[aria-pressed="true"] strong, .mtv-branch-result strong { background: var(--mtv-wine); color: white; border-color: #ddc68b; box-shadow: 0 0 0 3px #f2e9d4; }
.mtv-branch:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 18px; color: var(--mtv-wine); }
.mtv-branch-context { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.mtv-branch-context .mtv-detail-list { display: block; }
.mtv-branch-context dd { margin-bottom: 16px; font-family: var(--mtv-serif); font-size: 26px; color: var(--mtv-wine); }
/* Y-DNA reference branch details. These markers are not sample evidence. */
.mtv .yv-branch-detail { background: var(--mtv-paper); border: 1px solid var(--mtv-line); border-left: 3px solid var(--mtv-wine); padding: 28px 32px; }
.mtv .yv-branch-detail > summary { justify-content: flex-start; gap: 12px 20px; min-height: 44px; }
.mtv .yv-branch-detail > summary strong { overflow-wrap: anywhere; }
.mtv .yv-branch-detail > summary span { margin-right: auto; font-size: 13px; color: var(--mtv-wine); }
.mtv .yv-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; }
.mtv .yv-branch-detail[open] > summary::after { transform: rotate(225deg); margin-bottom: -4px; }
.mtv .yv-branch-intro { max-width: 72ch; margin: 12px 0 24px; }
.mtv .yv-branch-ages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 28px; padding: 24px 0; border-top: 1px solid var(--mtv-line); border-bottom: 1px solid var(--mtv-line); }
.mtv .yv-branch-ages > div { min-width: 0; }
.mtv .yv-branch-ages > div + div { border-left: 1px solid var(--mtv-line); padding-left: 24px; }
.mtv .yv-branch-ages dt { font-size: 14px; font-weight: 600; }
.mtv .yv-branch-ages dd { margin: 4px 0 8px; font-family: var(--mtv-serif); font-size: 30px; line-height: 1.2; color: var(--mtv-wine); }
.mtv .yv-branch-ages .yv-age-explanation { font: inherit; font-size: 14px; line-height: 1.6; color: var(--mtv-muted); margin: 0; max-width: 48ch; }
.mtv .yv-branch-references > p { max-width: 80ch; margin-bottom: 20px; }
.mtv .yv-branch-references a { text-decoration: underline; text-underline-offset: 3px; }
.mtv .yv-reference-disclosure > summary { display: list-item; padding: 12px 16px; background: #f0eae4; color: var(--mtv-wine); font-size: 15px; font-weight: 600; cursor: pointer; }
.mtv .yv-reference-disclosure > summary::marker { color: var(--mtv-wine); }
.mtv .yv-reference-disclosure[open] > summary { margin-bottom: 20px; }
.mtv .yv-reference-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.mtv .yv-reference-tools label { flex: 1 1 260px; max-width: 520px; margin: 0; min-width: 0; font-size: 14px; font-weight: 500; }
.mtv .yv-reference-tools label span { display: block; margin-bottom: 6px; }
.mtv .yv-reference-tools input { display: block; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--mtv-muted); border-radius: 4px; background: #fff; color: var(--mtv-ink); }
.mtv .yv-reference-tools button { min-height: 44px; margin: 0; }
.mtv .yv-reference-tools p { flex-basis: 100%; margin: 0; font-size: 14px; }
.mtv .yv-reference-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 24px; list-style: none; padding: 0; margin: 0; }
.mtv .yv-reference-grid li { min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--mtv-line); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; line-height: 1.6; color: var(--mtv-ink); overflow-wrap: anywhere; }
.mtv .yv-branch-detail :is(a, button, input, summary):focus-visible { outline-color: var(--mtv-wine); }
@media (max-width: 600px) {
    .mtv .yv-branch-detail { padding: 20px 16px; }
    .mtv .yv-branch-ages { grid-template-columns: 1fr; gap: 20px; }
    .mtv .yv-branch-ages > div + div { border-left: 0; padding: 20px 0 0; border-top: 1px solid var(--mtv-line); }
    .mtv .yv-reference-tools label { flex-basis: 100%; max-width: none; }
}
.mtv-evidence-filters { display: flex; flex-wrap: wrap; gap: 14px; }
.mtv .mtv-mutation-extra { background: #f5e5d2; color: #764315; }
.mtv-tabs { display: flex; flex-wrap: wrap; gap: 28px; border-bottom: 1px solid var(--mtv-line); margin-bottom: 28px; }
.mtv-tabs button { background: transparent; padding: 14px 0; border: 0; border-bottom: 3px solid transparent; color: var(--mtv-muted); }
.mtv-tabs button[aria-selected="true"] { border-bottom-color: var(--mtv-wine); color: var(--mtv-wine); }
.mtv-sample-rows { grid-template-columns: 1fr; gap: 12px; }
.mtv-sample-rows .mtv-sample { display: grid; grid-template-columns: minmax(140px, 28%) 1fr; background: transparent; }
.mtv-sample-rows .mtv-sample-image { height: 100%; min-height: 180px; }
.mtv-sample-rows .mtv-sample-body { padding: 18px 24px; min-width: 0; }
.mtv-sample-rows .mtv-sample-body h3 { margin: 6px 0; font-size: 26px; }
.mtv-sample-rows .mtv-actions { margin-top: 8px; }
.mtv-sample-rows .mtv-inline-detail { grid-column: 1 / -1; }
.mtv-inline-detail { padding: 18px 24px; }
.mtv-inline-detail summary { cursor: pointer; color: var(--mtv-wine); }
.mtv-enhanced .mtv-inline-detail { display: none; }
.mtv h1, .mtv h2, .mtv h3, .mtv-branch strong { overflow-wrap: anywhere; }
.mtv-dialog[open] { animation: mtv-drawer-in .2s ease-out; }
@keyframes mtv-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (min-width: 1800px) { .mtv-main { margin-right: auto; } }
@media (max-width: 1100px) {
    .mtv-sidebar { width: 224px; padding-inline: 12px; }
    .mtv-sidebar-title h2 { font-size: 22px; }
    .mtv-main { margin-left: 224px; padding-inline: 28px; }
    .mtv-filters { grid-template-columns: 1fr 1fr; }
    .mtv-result { gap: 24px; }
    .mtv-result-context { padding-left: 24px; }
}
@media (max-width: 800px) {
    body:has(.mtv-report) .dnai-modal { align-items: flex-end; }
    body:has(.mtv-report) .dnai-modal-panel { width: 100%; max-height: 90dvh; padding: 28px 22px; border-radius: 24px 24px 0 0; transform: translateY(24px); }
    body:has(.mtv-report) .dnai-modal-open .dnai-modal-panel { transform: none; }
    .mtv-sidebar { position: static; width: auto; padding: 16px 24px; min-height: 0; }
    .mtv-sidebar-title, .mtv-sidebar .mtv-back { display: none; }
    .mtv-sidebar nav { margin: 0; flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .mtv-sidebar nav a { font-size: 12px; min-height: 44px; padding: 10px; }
    .mtv-sidebar nav .dna-icon { display: none; }
    .mtv-enhanced .mtv-sidebar nav { display: none; }
    .mtv-sidebar .mtv-guide { display: none; }
    .mtv-main { margin-left: 0; padding: 20px 24px 32px; }
    .mtv-topbar { align-items: flex-start; margin-bottom: 20px; }
    .mtv-topbar .mtv-button { font-size: 12px; padding: 8px 12px; }
    .mtv-enhanced .mtv-mobile-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--mtv-line); padding-bottom: 18px; }
    .mtv-mobile-nav select { min-width: 180px; }
    .mtv-heading > p { font-size: 18px; }
    .mtv-skip { left: 24px; }
    .mtv-branch-context { grid-template-columns: 1fr; gap: 0; }
    .mtv-dialog { inset: auto 0 0; width: 100%; height: auto; max-height: 90dvh; border-radius: 24px 24px 0 0; padding-top: 28px; }
    .mtv-dialog::before { content: ""; display: block; height: 4px; width: 42px; border-radius: 4px; background: #cdbdc3; margin: -14px auto 24px; }
    .mtv-dialog[open] { animation-name: mtv-sheet-in; }
    @keyframes mtv-sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
@media (max-width: 540px) {
    .mtv .mtv-ai .mtv-button { max-width: 100%; white-space: normal; }
    .mtv .haplo-timeline-card-title { font-size: 22px; }
    .mtv .haplo-timeline-card-description { font-size: 14px; }
    .mtv h2 { font-size: 29px; }
    .mtv-main { padding-inline: 20px; }
    .mtv-result { grid-template-columns: 1fr; gap: 24px; }
    .mtv-result-context { border-left: 0; border-top: 1px solid var(--mtv-line); padding: 22px 0 0; }
    .mtv-haplogroup { font-size: 72px; }
    .mtv-facts > div { padding-inline: 8px; }
    .mtv-facts strong { font-size: 25px; }
    .mtv-facts span { font-size: 11px; }
    .mtv-cards, .mtv-two-column, .mtv-sample-rows .mtv-sample { grid-template-columns: 1fr; }
    .mtv-sample-rows .mtv-sample-image { height: 160px; min-height: 0; }
    .mtv-topbar { flex-wrap: wrap; }
    .mtv-branch-detail { padding: 22px; }
    .mtv-evidence-filters, .mtv-evidence-filters select { width: 100%; }
    .mtv-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .mtv-section-heading label, .mtv-section-heading input { width: 100%; }
    .mtv-two-column { gap: 22px; }
    .mtv-tree-preview { gap: 12px; }
    .mtv-branch { min-width: 64px; }
    .mtv-branch strong { min-width: 54px; min-height: 54px; font-size: 23px; }
    .mtv-dialog { padding: 28px 22px; }
    .mtv-detail-list { grid-template-columns: 1fr 1.3fr; gap: 12px; }
    .mtv-next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .mtv * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    body:has(.mtv-report) .dnai-modal-panel { transition: none; }
}
@media print {
    .mtv .yv-reference-tools, .mtv [data-yv-reference-empty] { display: none !important; }
    .mtv .yv-reference-grid [data-yv-reference-entry][hidden] { display: list-item !important; }
    .mtv .yv-reference-grid li, .mtv .yv-branch-ages { break-inside: avoid; }
    .mtv .yv-reference-disclosure > summary { background: none; }
    .mtv { padding: 0; background: white; color: black; font-size: 11pt; }
    .mtv-sidebar, .mtv-topbar, .mtv-mobile-nav, .mtv-next, .mtv-back-top, .mtv-js, .mtv-dialog, .mtv-skip { display: none !important; }
    .mtv [data-mtv-marker-count], .mtv [data-mtv-count], .mtv [data-mtv-empty], .mtv [data-mtv-help-empty], .mtv [data-mtv-markers-empty] { display: none !important; }
    .mtv-main { margin: 0; padding: 0; max-width: none; }
    .mtv [data-mtv-panel][hidden], .mtv [data-mtv-marker][hidden], .mtv [data-mtv-sample][hidden], .mtv [data-mtv-help] details[hidden], .mtv [data-mtv-branch-detail][hidden], .mtv [data-mtv-history-panel][hidden] { display: block !important; }
    .mtv [data-mtv-marker][hidden] { display: table-row !important; }
    .mtv-panel { display: block !important; break-before: page; }
    .mtv-panel:first-of-type { break-before: auto; }
    .mtv h1 { font-size: 32pt; }
    .mtv h2 { font-size: 22pt; break-after: avoid; }
    .mtv-sample, .mtv-note, .mtv-facts { break-inside: avoid; }
    .mtv-sample-image { height: 130px; }
    .mtv details > * { display: block !important; }
    .mtv details::details-content { content-visibility: visible; height: auto; }
    .mtv .mtv-inline-detail { display: block !important; }
    .mtv .mtv-sample-rows .mtv-sample { display: block; break-inside: auto; }
    .mtv .mtv-sample-rows .mtv-sample-image { height: 130px; min-height: 0; }
    .mtv.mtv-print-summary .mtv-panel:not(#overview), .mtv.mtv-print-summary #overview > :not([data-mtv-summary]) { display: none !important; }
    .mtv.mtv-print-summary [data-mtv-summary] { margin: 0; padding: 0; border: 0; }
    .mtv [data-mtv-history-panel] { break-before: auto; }
    .mtv .ai-assistant-section { background: white; }
    .mtv .ai-assistant-section button, .mtv .suggested-prompts { display: none !important; }
}
