/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * Heritage experiment setup and responsive G25 benchmark results.
 */
.gbl { padding: 80px 0 64px; font-family: var(--hd-sans); }
.gbl *, .gbl *::before, .gbl *::after { box-sizing: border-box; }
.gbl [hidden] { display: none !important; }
.gbl-container { width: min(100% - 48px, 1480px); margin-inline: auto; }
.gbl h1, .gbl h2, .gbl h3 { color: var(--hd-forest); font-family: var(--hd-serif); line-height: 1.15; margin: 0 0 12px; }
.gbl h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.gbl h2 { font-size: 2rem; }
.gbl h3 { font-size: 1.5rem; }
.gbl p { line-height: 1.65; }
.gbl-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-block: 28px; }
.gbl-header > div { max-width: 850px; }
.gbl-header p { color: var(--hd-muted); margin: 0; }
.gbl-header nav, .gbl-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.gbl-header nav { flex-shrink: 0; }
.gbl-principle { font-size: .9rem; color: var(--hd-forest); background: var(--hd-sage); padding: 16px 20px; border-radius: 10px; }
.gbl-guide { border-block: 1px solid var(--hd-border); margin: 24px 0; }
.gbl summary { min-height: 48px; padding: 14px 0; color: var(--hd-forest); cursor: pointer; font-weight: 600; font-size: .88rem; }
.gbl-guide > div { max-width: 1000px; font-size: .9rem; padding-bottom: 12px; }
.gbl .hd-btn { min-height: 44px; justify-content: center; cursor: pointer; }
.gbl button:disabled { opacity: .55; cursor: default; }
.gbl :is(button, input, select, summary, [tabindex]):focus-visible { outline: 3px solid #426b52; outline-offset: 3px; }
.gbl label { display: block; font-size: .83rem; font-weight: 600; margin: 0 0 8px; }
.gbl :is(input[type="text"], input[type="search"], input[type="number"], select) { width: 100%; max-width: 100%; min-width: 0; min-height: 46px; border: 1px solid #cfc7b8; border-radius: 8px; background: #fff; color: var(--hd-ink); padding: 10px 12px; font: inherit; }
.gbl input[type="checkbox"] { accent-color: var(--hd-forest); flex-shrink: 0; width: 20px; height: 20px; }
.gbl-surface { min-width: 0; padding: 28px; border: 1px solid var(--hd-border); border-radius: var(--hd-radius); background: #fff; }
.gbl-help { color: var(--hd-muted); font-size: .82rem; }
.gbl-notice { padding: 16px 18px; background: var(--hd-cream); color: var(--hd-ink); border-radius: 8px; font-size: .86rem; }
.gbl-access { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding: 36px; border: 1px solid var(--hd-border); border-radius: var(--hd-radius); background: #fff; }
.gbl-access p { color: var(--hd-muted); }
.gbl-sign-in { display: block; margin-top: 18px; }
.gbl-illustration { min-width: 0; background: var(--hd-sand); padding: 28px; border-radius: 10px; }
.gbl-illustration p { display: flex; justify-content: space-between; gap: 16px; }
.gbl-panel-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 36px; }
.gbl-panel-picker > div { min-width: 0; }
.gbl-panel-picker > div > p { color: var(--hd-muted); font-size: .9rem; }
.gbl-panel-picker input { margin-bottom: 16px; }
.gbl-panel-picker .gbl-actions { margin-top: 16px; }
.gbl-status { color: var(--hd-forest); font-size: .88rem; margin: 0; grid-column: 1 / -1; }
.gbl-panel-record { margin: 24px 0 18px; padding: 16px 20px; border-left: 3px solid var(--hd-gold); background: var(--hd-sand); border-radius: 0 8px 8px 0; font-size: .87rem; }
.gbl-panel-record p { margin: 4px 0 0; }
.gbl-input-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.gbl-builder #gbl-reference-search { margin-bottom: 16px; }
.gbl-builder #gbl-reference { min-height: 180px; overflow: auto; }
.gbl-builder option { padding: 6px 2px; }
.gbl-mixture { margin-top: 24px; }
.gbl-source { display: grid; grid-template-columns: minmax(0, 1fr) 104px 44px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hd-border); }
.gbl-source > div { min-width: 0; }
.gbl-source strong { font-size: .88rem; display: block; }
.gbl-source small { color: var(--hd-muted); }
.gbl-source label { font-size: .75rem; }
.gbl-remove { align-self: start; min-width: 44px; min-height: 44px; background: #fff; border: 1px solid var(--hd-border); border-radius: 7px; color: var(--hd-forest); cursor: pointer; }
.gbl-access-state { color: var(--hd-forest); font-size: .83rem; font-weight: 600; }
.gbl-cases { margin-top: 24px; max-height: 440px; overflow: auto; padding: 4px; }
.gbl [data-gbl-candidates] { max-height: 500px; overflow: auto; padding: 4px; }
.gbl-case { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px; background: var(--hd-bg); border: 1px solid var(--hd-border); border-radius: 10px; margin-top: 12px; }
.gbl-case > div { min-width: 0; }
.gbl-case strong { font-size: .9rem; }
.gbl-case p { margin: 6px 0 0; font-size: .82rem; color: var(--hd-muted); }
.gbl-count { color: var(--hd-forest); font-size: .85rem; }
.gbl-candidate { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; border-bottom: 1px solid var(--hd-border); padding: 14px 0; }
.gbl-candidate > div { min-width: 0; }
.gbl-candidate strong { display: block; font-size: .86rem; }
.gbl-candidate small { color: var(--hd-muted); font-size: .75rem; }
.gbl-candidate label { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 8px 0 0; font-weight: 400; cursor: pointer; }
.gbl-methods { border: 0; border-top: 1px solid var(--hd-border); padding: 22px 0 0; margin-top: 22px; }
.gbl-methods legend { float: none; width: auto; margin: 0 0 8px; font-weight: 600; font-size: .9rem; }
.gbl-methods label { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 58px; padding: 10px; border-radius: 8px; background: var(--hd-bg); cursor: pointer; }
.gbl-methods span { grid-column: 2; font-size: .75rem; font-weight: 400; color: var(--hd-muted); }
.gbl-review { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.gbl-review > div:first-child { flex: 1 1 400px; }
.gbl-review > .gbl-status, .gbl-review > .gbl-notice { flex-basis: 100%; }
.gbl-results { margin-top: 44px; }
.gbl-results-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 36%); gap: 24px; align-items: end; }
.gbl-record { margin: 22px 0; }
.gbl-record p { font-size: .86rem; margin: 6px 0; }
.gbl-record details { border-top: 1px solid var(--hd-border); margin-top: 18px; }
.gbl-record ul { padding-left: 22px; font-size: .82rem; line-height: 1.7; }
.gbl-fingerprint { font-family: monospace; font-size: .76rem !important; overflow-wrap: anywhere; }
.gbl-overview { overflow: auto; border: 1px solid var(--hd-border); border-radius: 12px; background: #fff; max-height: 500px; }
.gbl-overview table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .83rem; }
.gbl-overview caption { caption-side: bottom; padding: 16px 18px; color: var(--hd-muted); font-size: .78rem; }
.gbl-overview th { background: var(--hd-cream); color: var(--hd-forest); }
@media screen {
    .gbl-overview thead th { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
    .gbl-overview td { overflow-wrap: normal; word-break: normal; }
}
.gbl-overview :is(th, td) { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--hd-border); font-variant-numeric: tabular-nums; }
.gbl-breakdown { margin-top: 24px; }
.gbl-breakdown-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) minmax(0, 1fr); gap: 18px; align-items: end; }
.gbl-breakdown-heading > div { min-width: 0; }
.gbl-expected { padding: 14px 18px; background: var(--hd-sage); border-radius: 8px; font-size: .88rem; margin: 22px 0; }
.gbl-result-metrics { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 18px; font-size: .88rem; }
.gbl-result-metrics strong { display: block; color: var(--hd-forest); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.gbl-zero-toggle { display: flex !important; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.gbl-weight { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 12px 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--hd-border); }
.gbl-weight > div { min-width: 0; }
.gbl-weight h4 { font: 600 .9rem/1.5 var(--hd-sans); color: var(--hd-forest); margin: 0; }
.gbl-weight small { font-size: .75rem; color: var(--hd-muted); }
.gbl-weight span { display: block; color: var(--hd-muted); font-size: .74rem; }
.gbl-weight strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.gbl-weight meter { display: block; width: 100%; height: 12px; margin-top: 6px; }
.gbl-weight meter::-webkit-meter-bar { background: var(--hd-bg); border: 0; border-radius: 4px; }
.gbl-weight meter::-webkit-meter-optimum-value { background: #4e715b; }
.gbl-weight .gbl-recovered::-webkit-meter-optimum-value { background: #b08d4f; }
.gbl-weight meter::-moz-meter-bar { background: #4e715b; }
.gbl-weight .gbl-recovered::-moz-meter-bar { background: #b08d4f; }
@media (max-width: 1199px) { .gbl-header { flex-direction: column; gap: 20px; } .gbl-input-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } .gbl-breakdown-heading { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gbl-breakdown-heading h3 { grid-column: 1 / -1; } }
@media (max-width: 900px) { .gbl-input-layout, .gbl-access { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) {
    .gbl-container { width: calc(100% - 28px); }
    .gbl-surface, .gbl-access { padding: 18px; }
    .gbl-panel-picker, .gbl-results-heading, .gbl-breakdown-heading { grid-template-columns: minmax(0, 1fr); }
    .gbl-header nav { flex-shrink: 1; }
    .gbl-header .hd-btn { padding-inline: 14px; }
    .gbl-source { grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; }
    .gbl-source > div:first-child { grid-column: 1 / -1; }
    .gbl-weight { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .gbl-weight > div:first-child { grid-column: 1 / -1; }
    .gbl-review .gbl-actions { width: 100%; }
    .gbl-actions .hd-btn { flex: 1 1 auto; }
}
