/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * Heritage reference-panel directory, grouped labels and research context.
 */
.hrp-page .hg-article > section:first-of-type { padding-top:12px !important; }
.hrp-directory-search { background:var(--hd-surface); border:1px solid var(--hd-border); border-radius:10px; padding:20px; margin:24px 0 16px; }
.hrp-directory-search label { display:block; color:var(--hd-primary); font-size:.84em; font-weight:600; margin-bottom:10px; }
.hrp-page .hrp-directory-caption { color:#65675e; font-size:.78em; margin-bottom:18px; }
.hrp-directory { border:1px solid var(--hd-border); border-radius:12px; background:var(--hd-surface); }
.hrp-region + .hrp-region { border-top:1px solid var(--hd-border); }
.hrp-region summary { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; min-height:64px; color:var(--hd-primary); cursor:pointer; list-style:none; }
.hrp-region summary::-webkit-details-marker { display:none; }
.hrp-region summary > span:first-child { font-weight:600; }
.hrp-region-meta { display:flex; align-items:center; justify-content:flex-end; flex-shrink:0; gap:16px; color:#626559; font-size:.75em; }
.hrp-region-meta .dna-icon { width:13px; height:13px; }
.hrp-region[open] summary .dna-icon { transform:rotate(180deg); }
.hrp-region summary:hover { background:var(--hd-sand); }
.hrp-region:first-child summary { border-radius:11px 11px 0 0; }
.hrp-region:last-child:not([open]) summary { border-radius:0 0 11px 11px; }
.hrp-page .hrp-labels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 24px; padding:0 22px 22px; margin:0; list-style:none; }
.hrp-page .hrp-labels li { padding:10px 0 10px 14px; border-left:2px solid var(--hd-sand-strong); margin:0; font-size:.87em; line-height:1.65; min-width:0; }
.hrp-page .hrp-sources { list-style:none; padding:0; margin:26px 0; border-top:1px solid var(--hd-border); }
.hrp-sources li { display:grid; grid-template-columns:minmax(140px,1fr) minmax(0,2fr); gap:20px; padding:18px 0; margin:0; border-bottom:1px solid var(--hd-border); font-size:.9em; }
.hrp-sources strong { color:var(--hd-primary); font-weight:600; }
.hrp-sources span { color:#626559; }
.hrp-page .hg-note strong { color:var(--hd-primary); }
@media (max-width:575px) {
    .hrp-directory-search { padding:16px; }
    .hrp-region summary { padding:16px; }
    .hrp-page .hrp-labels { grid-template-columns:minmax(0,1fr); padding:0 16px 18px; gap:8px; }
    .hrp-region-meta { gap:10px; }
    .hrp-sources li { grid-template-columns:minmax(0,1fr); gap:6px; }
}
@media print {
    .hrp-directory-search, .hrp-page .hg-empty, .hrp-region summary .dna-icon { display:none !important; }
    .hrp-directory, .hrp-region { border-radius:0; }
    .hrp-region::details-content { display:contents; }
    .hrp-region .hrp-labels { display:grid !important; }
    .hrp-region summary { break-after:avoid; }
    .hrp-page .hrp-labels li { break-inside:avoid; }
}
