/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * Heritage methods field guide. Scoped editorial layouts and schematic examples.
 */
.amh-page { --amh-muted: #50594e; }
.amh-page [hidden] { display: none !important; }
.amh-hero { padding: clamp(24px, 3vw, 40px) 0 54px; }
.amh-hero-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.amh-hero-copy, .amh-reading-card { min-width: 0; }
.amh-page .amh-hero h1 { color: #213a2f; font: 500 clamp(2.85rem, 5.6vw, 5.5rem)/1.02 var(--hd-serif, Georgia, serif); letter-spacing: -.035em; max-width: 14ch; margin: 0 0 26px; }
.amh-page em { color: #5d7056; font-weight: 400; }
.amh-hero-copy > p { max-width: 53ch; font-size: 17px; line-height: 1.85; color: var(--amh-muted); margin-bottom: 28px; }
.amh-hero-link { margin-top: 18px; }
.amh-reading-card { background: #efe6d6; border: 1px solid #ded2be; border-radius: 10px; padding: clamp(24px, 3vw, 40px); }
.amh-page .amh-reading-card h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; margin-bottom: 26px; }
.amh-reading-card ol { list-style: none; padding: 0; margin: 0; }
.amh-reading-card li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 17px 0; border-top: 1px solid #cfc2aa; }
.amh-reading-card li > span { color: #705a2f; font-size: 12px; font-weight: 600; padding-top: 3px; }
.amh-reading-card strong { color: #213a2f; font-size: 15px; line-height: 1.6; }
.amh-page .amh-reading-card li p { font-size: 14px; color: #50594e; line-height: 1.75; margin: 4px 0 0; }
.amh-page .amh-card-note { border-top: 1px solid #cfc2aa; padding-top: 18px; margin: 8px 0 0; color: #50594e; font-size: 12px; line-height: 1.8; }
.amh-contents { border-block: 1px solid #ded5c6; background: #fff; padding: 12px 0; }
.amh-contents > div { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.amh-contents a { display: inline-flex; align-items: center; min-height: 44px; color: #213a2f; font-size: 14px; line-height: 1.6; text-decoration: underline; text-decoration-color: #b2baa9; text-underline-offset: 5px; }
.amh-page :is(a,summary,[tabindex]):focus-visible { outline: 3px solid #213a2f; outline-offset: 4px; }
.amh-page .hpl-section { padding-block: clamp(44px, 6vw, 80px); }
.amh-question-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #d4cbbd; }
.amh-question-list li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(180px, .8fr); gap: 20px 36px; align-items: center; padding: 26px 0; border-bottom: 1px solid #d4cbbd; }
.amh-row-number { display: block; color: #705a2f; font-size: 12px; line-height: 1.6; letter-spacing: .05em; margin-bottom: 8px; }
.amh-page .amh-question-list h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); margin: 0; }
.amh-page .amh-question-list p { margin: 0; color: #50594e; font-size: 15px; line-height: 1.8; }
.amh-question-list .hpl-text-link { justify-self: end; font-size: 14px; }
.amh-method-section { background: #f1eee7; border-block: 1px solid #e4dccf; }
.amh-method-section + .amh-method-section { background: #faf8f4; border-top: 0; }
.amh-method-list { display: grid; gap: 14px; }
.amh-method { min-width: 0; background: #fff; border: 1px solid #d8d1c5; border-radius: 10px; }
.amh-method[open] { border-color: #7b8a77; }
.amh-method > summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(20px, 2.7vw, 32px); cursor: pointer; list-style: none; color: #213a2f; }
.amh-method > summary::-webkit-details-marker { display: none; }
.amh-method[open] > summary { border-bottom: 1px solid #e3dccf; }
.amh-method > summary:hover { background: #f6f7f2; border-radius: 10px; }
.amh-method-label { font: 500 clamp(1.5rem, 2.7vw, 2.05rem)/1.2 var(--hd-serif, Georgia, serif); }
.amh-method-label > span { display: block; margin-top: 8px; font: 400 14px/1.7 var(--hd-sans, Arial, sans-serif); color: #50594e; }
.amh-method > summary .dna-icon { width: 20px; height: 20px; flex-shrink: 0; }
.amh-method[open] > summary .dna-icon { transform: rotate(45deg); }
.amh-method-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 3vw, 44px); padding: clamp(20px, 2.7vw, 34px); }
.amh-method-body:not(:has(> .amh-figure)) { grid-template-columns: minmax(0, 1fr); }
.amh-method-copy { min-width: 0; max-width: 87ch; }
.amh-page .amh-method-explanation { font-size: 16px; line-height: 1.85; color: #405144; margin: 0 0 22px; }
.amh-method-facts { margin: 0 0 24px; }
.amh-method-facts > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 18px; border-top: 1px solid #ded5c6; padding: 16px 0; }
.amh-method-facts dt { color: #213a2f; font-size: 14px; font-weight: 600; line-height: 1.8; }
.amh-method-facts dd { color: #50594e; font-size: 14px; line-height: 1.85; margin: 0; }
.amh-method-facts .amh-fact-limit { border-left: 3px solid #a88944; padding-left: 14px; }
.amh-page .amh-inline-note { padding: 18px; background: #f3eee3; border-radius: 6px; color: #50594e; font-size: 14px; line-height: 1.85; margin-bottom: 18px; }
.amh-page #model-chromosome { font-size: 14px; line-height: 1.85; color: #50594e; }
.amh-method-next { padding-top: 20px; border-top: 1px solid #ded5c6; }
.amh-page .amh-method-next p { font-size: 14px; line-height: 1.85; color: #50594e; margin-bottom: 8px; }
.amh-figure { min-width: 0; padding: 18px; border: 1px solid #e0d7c6; background: #faf8f4; border-radius: 8px; margin: 0; }
.amh-figure figcaption strong { display: block; color: #213a2f; font: 500 1.4rem/1.3 var(--hd-serif, Georgia, serif); }
.amh-figure-label { display: block; color: #705a2f; font-size: 12px; line-height: 1.7; margin-bottom: 10px; }
.amh-graphic { display: block; width: 100%; max-width: 360px; height: auto; margin: 20px auto; overflow: visible; }
.amh-legend { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; color: #213a2f; font-size: 13px; line-height: 1.7; }
.amh-page .amh-figure p { color: #50594e; font-size: 13px; line-height: 1.85; margin-bottom: 0; }
.amh-lineage-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 22px; }
.amh-lineage-pair h4 { color: #213a2f; font: 600 14px/1.7 var(--hd-sans, Arial, sans-serif); margin: 0; }
.amh-lineage-pair .amh-graphic { max-width: 330px; margin: 10px auto 0; }
.amh-output-layout, .amh-reference-layout, .amh-sources-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 84px); align-items: start; }
.amh-outputs { background: #efe6d6; }
.amh-page .amh-output-layout p, .amh-page .amh-reference-layout > div > p, .amh-page .amh-sources-layout p { font-size: 15px; line-height: 1.85; color: #50594e; max-width: 47ch; }
.amh-output-layout dl { margin: 0; }
.amh-output-layout dl > div { border-top: 1px solid #c9bda5; padding: 22px 0; }
.amh-output-layout dt { color: #213a2f; font: 500 1.65rem/1.2 var(--hd-serif, Georgia, serif); margin-bottom: 10px; }
.amh-output-layout dd { color: #50594e; font-size: 15px; line-height: 1.85; margin: 0; }
.amh-checklist { background: #fff; border: 1px solid #ded5c6; padding: clamp(22px, 3vw, 36px); border-radius: 8px; }
.amh-checklist ol { list-style: none; padding: 0; margin: 0; }
.amh-checklist li { padding-top: 18px; margin-top: 18px; border-top: 1px solid #ded5c6; }
.amh-checklist strong, .amh-checklist span { display: block; }
.amh-checklist strong { color: #213a2f; font-size: 15px; line-height: 1.8; }
.amh-checklist span { color: #50594e; font-size: 14px; line-height: 1.85; margin-top: 5px; }
.amh-limits { background: #e8ede4; }
.amh-limit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.amh-limit-grid article { min-width: 0; border-top: 1px solid #acb8a5; padding-top: 22px; }
.amh-limit-grid article > span { display: block; color: #42553c; font-size: 12px; font-weight: 600; line-height: 1.6; margin-bottom: 14px; }
.amh-limit-grid h3 { font-size: 1.8rem; }
.amh-page .amh-limit-grid p, .amh-page .amh-responsible p { font-size: 15px; line-height: 1.85; color: #50594e; }
.amh-responsible { margin-top: 34px; padding-top: 28px; border-top: 1px solid #acb8a5; max-width: 88ch; }
.amh-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #ded5c6; border-radius: 10px; background: #fff; }
.amh-paths article { display: flex; flex-direction: column; align-items: start; min-width: 0; padding: clamp(22px, 3vw, 36px); border-right: 1px solid #ded5c6; }
.amh-paths article:last-child { border: 0; }
.amh-paths h3 { font-size: 1.9rem; }
.amh-page .amh-paths p, .amh-page .amh-related-note { color: #50594e; font-size: 14px; line-height: 1.85; margin-bottom: 24px; }
.amh-paths .hpl-button { margin-top: auto; font-size: 14px; padding: 13px 16px; }
.amh-related-note { padding: 24px 0 0; margin: 0; }
.amh-related-note a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.amh-reading { background: #f1eee7; }
.amh-sources-layout ol { list-style: none; padding: 0; margin: 0; }
.amh-sources-layout li { border-top: 1px solid #d4cbbd; padding: 18px 0; }
.amh-sources-layout li a { display: inline-flex; align-items: center; min-height: 44px; color: #213a2f; font-size: 15px; font-weight: 600; line-height: 1.8; text-underline-offset: 4px; }
.amh-sources-layout li span { display: block; color: #50594e; font-size: 14px; line-height: 1.8; }
.amh-closing { background: #efe6d6; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid #ded5c6; }
.amh-closing .hpl-container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.amh-closing .hpl-actions { justify-content: end; }
.amh-page .amh-closing h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.amh-page .amh-closing p { max-width: 49ch; color: #50594e; font-size: 15px; line-height: 1.85; margin-bottom: 0; }
@media (max-width: 1099px) {
    .amh-question-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .amh-question-list .hpl-text-link { grid-column: 2; justify-self: start; }
    .amh-method-body { grid-template-columns: minmax(0, 1fr); }
    .amh-figure { max-width: 580px; width: 100%; }
    .amh-lineage-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .amh-hero-layout, .amh-output-layout, .amh-reference-layout, .amh-sources-layout, .amh-closing .hpl-container { grid-template-columns: minmax(0, 1fr); }
    .amh-hero { padding-bottom: 32px; }
    .amh-contents > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
    .amh-question-list li { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 24px; }
    .amh-question-list .hpl-text-link { grid-column: auto; }
    .amh-method-facts > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .amh-limit-grid, .amh-paths { grid-template-columns: minmax(0, 1fr); }
    .amh-paths article { border-right: 0; border-bottom: 1px solid #ded5c6; }
    .amh-closing .hpl-actions { justify-content: start; }
}
@media (max-width: 479px) {
    .amh-method > summary { padding: 20px 16px; gap: 14px; }
    .amh-method-body { padding: 20px 14px; }
    .amh-figure { padding: 12px; }
    .amh-lineage-pair { grid-template-columns: minmax(0, 1fr); }
    .amh-hero .hpl-actions, .amh-closing .hpl-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
    .amh-contents a { font-size: 13px; }
}
@media print {
    .amh-page :is(.amh-contents, .hpl-actions, .hpl-skip-link) { display: none !important; }
    .amh-hero-layout, .amh-method-body, .amh-reference-layout { display: block; }
    .amh-page details::details-content { display: block; content-visibility: visible; }
    .amh-page .hpl-section { padding-block: 24px; background: #fff; }
    .amh-figure { break-inside: avoid; }
}
