/** Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * Haplogroup v2 content density and readable light-theme components. Scoped to reports that opt into density controls.
 */
.mtv.hgv-report { overflow-wrap: anywhere; }
.mtv.hgv-report:not(.hgv-enhanced) .hgv-js { display: none; }
.mtv.hgv-report .mtv-prose { max-width: 76ch; line-height: 1.75; }
/* Branch descriptions use the report width and naturally reflow on small screens. */
.mtv.hgv-report .mtv-prose-wide { width: 100%; max-width: none; min-width: 0; }
/* Full-width report text must follow its own section/card, not a second reading-column cap.
   Keep form controls, dialogs, figures and the separate v3 layout at their designed sizes. */
.haplogroup-v2.hgv-report:not(.haplogroup-v3) :is(
    .mtv-prose, .mtv-heading, .mtv-publication h3, .ai-result-content,
    .hgr p, .hgr-calculation li, .hgi-research > p, .hve-intro,
    .huc p, .huc-consent, .yv-branch-intro, .yv-branch-references > p,
    .hg-chronology-heading > div, .hg-chronology-footnote p
) { max-width: none; }
.mtv.hgv-report .mtv-prose :is(ul, ol), .mtv.hgv-report .mtv-two-column :is(ul, ol) { padding-left: 24px; color: var(--mtv-muted); }
.mtv.hgv-report .mtv-prose li, .mtv.hgv-report .mtv-two-column li { margin-block: 8px; }
.mtv.hgv-report .mtv-prose :is(h2, h3, h4) { margin-top: 28px; margin-bottom: 12px; color: var(--mtv-ink); }
.mtv.hgv-report .mtv-prose h4 { font: 600 22px/1.3 var(--mtv-serif); }
.mtv.hgv-report .mtv-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.mtv.hgv-report .mtv-prose :is(th, td) { padding: 10px 12px; border: 1px solid var(--mtv-line); }
.mtv.hgv-report .mtv-prose th { background: #f0eae4; }
.mtv.hgv-report .mtv-two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mtv.hgv-report .mtv-two-column > div { min-width: 0; }
.mtv.hgv-report .mtv-facts span { font-size: 13px; }
.mtv.hgv-report .mtv-facts strong { overflow-wrap: anywhere; }
.mtv.hgv-report :is(.mtv-filters, .mtv-section-heading) > label { font-size: 14px; }
.mtv.hgv-report :is(input[type="search"], select) { border-color: var(--mtv-muted); min-width: 0; }
.mtv.hgv-report :is(a, button, input, select, summary, [tabindex]):focus-visible { outline: 3px solid var(--mtv-wine); outline-offset: 4px; }
.mtv.hgv-report .hgv-lineage-picker { margin: 24px 0; padding: 16px 20px; background: #f0eae4; border: 1px solid var(--mtv-line); }
.mtv.hgv-report .hgv-lineage-picker > summary { cursor: pointer; color: var(--mtv-wine); font-weight: 600; min-height: 28px; }
.mtv.hgv-report .hgv-lineage-picker > summary span { font-size: 13px; font-weight: 400; margin-left: 12px; }
.mtv.hgv-report .hgv-lineage-picker .mtv-tree-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; padding: 20px 0 0; border: 0; }
.mtv.hgv-report .hgv-lineage-picker .mtv-branch { gap: 4px; padding: 12px; border: 1px solid #cdbdc3; border-radius: 4px; background: var(--mtv-paper); min-width: 0; }
.mtv.hgv-report .hgv-lineage-picker .mtv-branch::after { content: none; }
.mtv.hgv-report .hgv-lineage-picker .mtv-branch strong { display: block; padding: 0; min-width: 0; min-height: 0; border: 0; background: transparent; box-shadow: none; font-size: 24px; }
.mtv.hgv-report .hgv-lineage-picker .mtv-branch span { font-size: 12px; }
.mtv.hgv-report .hgv-lineage-picker .mtv-branch[aria-pressed="true"] { background: var(--mtv-wine); border-color: var(--mtv-wine); }
.mtv.hgv-report .hgv-lineage-picker .mtv-branch[aria-pressed="true"] :is(strong, span) { color: white; }
.mtv.hgv-report .mtv-accordion > summary { font-size: 16px; line-height: 1.6; padding: 4px 0; }
.mtv.hgv-report .mtv-accordion > summary > span { display: inline-block; font-size: 13px; }
.mtv.hgv-report .mtv-sample-rows .mtv-sample { grid-template-columns: minmax(110px, 18%) minmax(0, 1fr); background: #fffdfa; border-radius: 8px; }
.mtv.hgv-report .mtv-sample-rows .mtv-sample-image { min-height: 150px; }
.mtv.hgv-report .mtv-sample-rows .mtv-sample-body { padding: 18px 22px; }
.mtv.hgv-report .mtv-sample-body p { font-size: 14px; }
.mtv.hgv-report .mtv-sample-body .mtv-portrait-notice { font-size: 12px; line-height: 1.6; }
.mtv.hgv-report .dna-accession-badge { font-size: 12px; }
.mtv.hgv-report .mtv-detail-list { grid-template-columns: minmax(120px, 1fr) minmax(0, 1.7fr); gap: 12px 20px; }
.mtv.hgv-report .mtv-dialog .mtv-detail-list { padding-block: 20px; border-block: 1px solid var(--mtv-line); }
.mtv.hgv-report .mtv-publication { margin: 0; padding: 24px 0; }
.mtv.hgv-report .mtv-publication h3 { font-size: 25px; max-width: 68ch; }
.mtv.hgv-report .hgv-match-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.mtv.hgv-report .hgv-match-toolbar p { margin: 0; }
.mtv.hgv-report .hgv-list-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 24px; border-bottom: 1px solid var(--mtv-line); }
.mtv.hgv-report .hgv-list-controls p, .mtv.hgv-report .hgv-list-controls .mtv-actions { margin: 0; }
.mtv.hgv-report .hgv-list-controls p { font-size: 14px; }
.mtv.hgv-report .hgv-evidence { margin-block: 32px; }
.mtv.hgv-report .hgv-evidence-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mtv.hgv-report .hgv-evidence-key { margin: 20px 0; }
.mtv.hgv-report .hgv-evidence-key > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--mtv-line); }
.mtv.hgv-report .hgv-evidence-key dt { color: var(--mtv-wine); font-size: 14px; }
.mtv.hgv-report .hgv-evidence-key dd { margin: 0; color: var(--mtv-muted); }
.mtv.hgv-report .hgv-evidence .mtv-filters { align-items: end; grid-template-columns: minmax(180px, 1.5fr) minmax(120px, 1fr) minmax(120px, 1fr) auto; }
.mtv.hgv-report.hgv-enhanced .hgv-static-count { display: none; }
.mtv.hgv-report .hgv-marker-table { min-width: 680px; table-layout: fixed; background: #fffdfa; }
.mtv.hgv-report .hgv-marker-table :is(th, td) { vertical-align: top; padding: 12px; overflow-wrap: anywhere; }
.mtv.hgv-report .hgv-marker-table thead th { background: #f0eae4; font-size: 13px; font-weight: 600; color: var(--mtv-ink); }
.mtv.hgv-report .hgv-marker-table th:first-child { width: 25%; }
.mtv.hgv-report .hgv-marker-table tbody tr:nth-child(even) { background: var(--mtv-paper); }
.mtv.hgv-report .hgv-marker-name { display: block; font: 500 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.mtv.hgv-report .hgv-marker-table .mtv-status { margin-top: 6px; padding: 3px 6px; border-radius: 4px; font-size: 11px; }
.mtv.hgv-report .hgv-marker-state { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.mtv.hgv-report .hgv-marker-positive { color: #1d633b; background: #e0efdf; }
.mtv.hgv-report .hgv-marker-negative { color: #764315; background: #f5e5d2; }
.mtv.hgv-report .hgv-marker-unresolved { color: #504a48; background: #ece7e2; }
.mtv.hgv-report .report-version-stamp { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); background: #f0eae4; border-color: var(--mtv-line); color: var(--mtv-ink); }
.mtv.hgv-report .report-version-stamp__label { color: var(--mtv-muted); opacity: 1; letter-spacing: .04em; }
.mtv.hgv-report .report-version-stamp__value { flex-wrap: wrap; }
.mtv.hgv-report .ai-result-content { max-width: 76ch; line-height: 1.75; }
.mtv.hgv-report .ai-result-content :is(ul, ol) { padding-left: 24px; }
.mtv.hgv-report .ai-result-content li { margin-block: 8px; }
.mtv.hgv-report .hgv-maternal-table { min-width: 420px; }
.mtv.hgv-report .hgv-collection-search { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 20px 0; }
.mtv.hgv-report .hgv-collection-search label { flex: 1 1 220px; max-width: 420px; margin: 0; font-size: 14px; color: var(--mtv-ink); }
.mtv.hgv-report .hgv-collection-search input { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 9px 12px; border: 1px solid var(--mtv-muted); border-radius: 4px; background: #fffdfa; color: var(--mtv-ink); }
.mtv.hgv-report .hgv-mutation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.mtv.hgv-report .hgv-mutation-grid li { min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--mtv-line); }
.mtv.hgv-report .hgv-mutation-grid code, .mtv.hgv-report .hgv-reference-text { font: 500 14px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--mtv-ink); overflow-wrap: anywhere; }
.mtv.hgv-report .hgv-extra-label { margin-left: 8px; font-size: 12px; color: var(--mtv-wine); }
@media (max-width: 1100px) {
    .mtv.hgv-report .hgv-evidence .mtv-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mtv.hgv-report .hgv-evidence-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
    .mtv.hgv-report .hgv-evidence-facts > div:nth-child(2) { border-right: 0; }
}
@media (max-width: 600px) {
    .mtv.hgv-report .mtv-facts:not(.hgv-evidence-facts) { grid-template-columns: 1fr; gap: 16px; }
    .mtv.hgv-report .mtv-facts:not(.hgv-evidence-facts) > div { border-right: 0; padding: 0; align-items: flex-start; text-align: left; }
    .mtv.hgv-report .mtv-two-column { grid-template-columns: 1fr; gap: 24px; }
    .mtv.hgv-report .mtv-sample-rows .mtv-sample { grid-template-columns: 1fr; }
    .mtv.hgv-report .mtv-sample-rows .mtv-sample-image { height: 160px; min-height: 0; }
    .mtv.hgv-report .mtv-sample-rows .mtv-sample-body { padding: 16px; }
    .mtv.hgv-report .mtv-filters, .mtv.hgv-report .hgv-evidence .mtv-filters { grid-template-columns: 1fr; }
    .mtv.hgv-report .mtv-mobile-nav { flex-wrap: wrap; }
    .mtv.hgv-report .mtv-mobile-nav select { width: 100%; }
    .mtv.hgv-report .mtv-detail-list { grid-template-columns: 1fr; gap: 4px; }
    .mtv.hgv-report .mtv-detail-list dd { margin-bottom: 12px; }
    .mtv.hgv-report .hgv-evidence-key > div { grid-template-columns: 1fr; gap: 4px; }
}
/* Keep the brief lineage no-result messages compact, including on narrow screens. */
.mtv.yv-nodata-simple .mtv-empty,
.mtv.mtdna-nodata-simple .mtv-empty { padding: 24px; }
.mtv.yv-nodata-simple .mtv-empty h2,
.mtv.mtdna-nodata-simple .mtv-empty h2 { font-size: clamp(24px, 2.5vw, 30px); line-height: 1.2; }
@media print {
    .mtv.hgv-report .hgv-js { display: none !important; }
    .mtv.hgv-report [data-hgv-collection-empty] { display: none !important; }
    .mtv.hgv-report [data-hgv-items] > [hidden] { display: block !important; }
    .mtv.hgv-report .mtv-table-wrap { overflow: visible; }
    .mtv.hgv-report .hgv-marker-table { min-width: 0; font-size: 9pt; }
    .mtv.hgv-report .hgv-marker-table :is(th, td) { padding: 6px; }
    .mtv.hgv-report .hgv-marker-table thead { display: table-header-group; }
    .mtv.hgv-report .hgv-marker-table tr { break-inside: avoid; }
}
