/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 * Heritage layout for public G25 reference panel comparisons.
 */
.rpc { padding-top: 80px; padding-bottom: 64px; font-family: var(--hd-sans); }
.rpc *, .rpc *::before, .rpc *::after { box-sizing: border-box; }
.rpc [hidden] { display: none !important; }
.rpc-container { width: min(100% - 48px, 1480px); margin-inline: auto; }
.rpc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin: 28px 0; }
.rpc h1, .rpc h2, .rpc h3 { font-family: var(--hd-serif); color: var(--hd-forest); line-height: 1.15; margin: 0 0 12px; }
.rpc h1 { font-size: clamp(2.25rem, 4vw, 3.6rem); }
.rpc h2 { font-size: 2rem; }
.rpc h3 { font-size: 1.6rem; }
.rpc p { line-height: 1.65; }
.rpc-header p { max-width: 780px; color: var(--hd-muted); margin: 0; }
.rpc-header nav { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.rpc-guide { border-block: 1px solid var(--hd-border); margin-bottom: 28px; }
.rpc-guide summary { min-height: 48px; padding: 14px 0; color: var(--hd-forest); font-weight: 600; cursor: pointer; }
.rpc-guide > div { max-width: 1000px; padding-bottom: 12px; }
.rpc-guide p { margin-bottom: 12px; }
.rpc-setup { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border: 1px solid var(--hd-border); border-radius: var(--hd-radius); background: #fff; overflow: hidden; }
.rpc-picker, .rpc-selection { min-width: 0; padding: 28px; }
.rpc-picker { border-right: 1px solid var(--hd-border); }
.rpc-picker > p, .rpc-help { color: var(--hd-muted); font-size: .9rem; }
.rpc label { display: block; font-weight: 600; font-size: .83rem; margin: 0 0 8px; }
.rpc :is(input, select) { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 46px; border: 1px solid #d5ccbd; border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--hd-ink); font: inherit; }
.rpc :is(button, input, select, summary, [tabindex]):focus-visible { outline: 3px solid #426b52; outline-offset: 3px; }
.rpc #rpc-search { margin-bottom: 20px; }
.rpc #rpc-catalog { min-height: 200px; overflow: auto; white-space: nowrap; }
.rpc #rpc-catalog option { padding: 9px 4px; }
.rpc-picker-footer, .rpc-selection-heading, .rpc-run { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rpc-picker-footer { margin-top: 16px; }
.rpc-picker-footer p { margin: 0; font-size: .82rem; color: var(--hd-muted); }
.rpc-selection-heading { margin-bottom: 20px; }
.rpc-selection-heading h2 { margin: 0; }
.rpc-selection-heading > span { font-size: .83rem; color: var(--hd-muted); }
.rpc-selected-panel { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px; border: 1px solid var(--hd-border); border-radius: 10px; margin-bottom: 12px; background: var(--hd-bg); }
.rpc-selected-panel > div { min-width: 0; }
.rpc-selected-panel strong { display: block; font-size: .95rem; }
.rpc-selected-panel p { font-size: .8rem; margin: 4px 0 0; color: var(--hd-muted); }
.rpc-remove { flex-shrink: 0; min-width: 44px; min-height: 44px; border: 1px solid var(--hd-border); background: #fff; color: var(--hd-forest); border-radius: 7px; cursor: pointer; }
.rpc-empty { padding: 28px 16px; border: 1px dashed #d5ccbd; border-radius: 10px; color: var(--hd-muted); }
.rpc-help { margin-block: 20px; }
.rpc-run { justify-content: flex-start; }
.rpc .hd-btn { min-height: 44px; justify-content: center; cursor: pointer; }
.rpc button:disabled { opacity: .55; cursor: default; }
.rpc-status { color: var(--hd-forest); margin: 16px 0 0; font-size: .88rem; }
.rpc-notice { padding: 16px; background: var(--hd-sand); border-radius: 8px; }
.rpc-results { margin-top: 40px; }
.rpc-section-heading p { color: var(--hd-muted); font-size: .9rem; }
.rpc-panel-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 14px; margin-block: 24px; }
.rpc-fact { min-width: 0; padding: 18px; border: 1px solid var(--hd-border); border-radius: 10px; background: var(--hd-sage); }
.rpc-fact h3 { font-size: 1.25rem; }
.rpc-fact p { margin: 6px 0 0; font-size: .82rem; }
.rpc-matrix-wrap { overflow: auto; border: 1px solid var(--hd-border); background: #fff; border-radius: 12px; }
.rpc-matrix { width: 100%; border-collapse: collapse; font-size: .88rem; }
.rpc-matrix caption { padding: 14px 20px; caption-side: bottom; font-size: .8rem; color: var(--hd-muted); }
.rpc-matrix :is(th, td) { min-width: 140px; padding: 16px; border-bottom: 1px solid var(--hd-border); text-align: left; overflow-wrap: anywhere; }
.rpc-matrix th { background: var(--hd-cream); color: var(--hd-forest); }
.rpc-matrix button { min-height: 44px; width: 100%; padding: 10px; border: 1px solid #bdcaba; background: var(--hd-sage); border-radius: 8px; color: var(--hd-forest); font: inherit; cursor: pointer; }
.rpc-matrix button span { display: block; font-size: .76rem; }
.rpc-detail { margin-top: 28px; border: 1px solid var(--hd-border); border-radius: var(--hd-radius); background: #fff; padding: 28px; }
.rpc-detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 45%); gap: 24px; align-items: end; }
.rpc-pair-summary { margin: 22px 0; padding: 14px 18px; background: var(--hd-cream); border-radius: 8px; font-size: .88rem; line-height: 1.7; }
.rpc-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; }
.rpc-nearby { display: grid; grid-template-columns: minmax(0, 260px) auto; justify-content: start; align-items: end; gap: 12px 18px; margin-top: 20px; padding: 18px; border: 1px solid var(--hd-border); border-radius: 10px; }
.rpc-nearby p { grid-column: 1 / -1; color: var(--hd-muted); font-size: .82rem; margin: 0; }
.rpc-nearby .hd-btn { justify-self: start; }
.rpc-list-status { margin: 22px 0 12px; color: var(--hd-muted); font-size: .85rem; }
.rpc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 28px; padding: 20px 0; border-bottom: 1px solid var(--hd-border); }
.rpc-row > div { min-width: 0; }
.rpc-row-label { color: var(--hd-muted); font-size: .76rem; margin-bottom: 6px; }
.rpc-row ul { list-style: none; padding: 0; margin: 0; }
.rpc-row li { font-size: .9rem; margin-bottom: 6px; }
.rpc-row small { color: var(--hd-muted); }
.rpc-row-note { grid-column: 1 / -1; color: var(--hd-forest); font-size: .8rem; margin: 0; }
.rpc-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.rpc-pagination span { font-size: .82rem; color: var(--hd-muted); }
@media (max-width: 1199px) { .rpc-header { flex-direction: column; gap: 20px; } }
@media (max-width: 900px) { .rpc-setup { grid-template-columns: minmax(0, 1fr); } .rpc-picker { border-right: 0; border-bottom: 1px solid var(--hd-border); } }
@media (max-width: 575px) {
    .rpc-container { width: calc(100% - 28px); }
    .rpc-picker, .rpc-selection, .rpc-detail { padding: 18px; }
    .rpc-detail-heading, .rpc-filters, .rpc-nearby, .rpc-row { grid-template-columns: minmax(0, 1fr); }
    .rpc-header nav { flex-shrink: 1; }
    .rpc-header .hd-btn { padding-inline: 14px; }
    .rpc-nearby .hd-btn { width: 100%; }
    .rpc-row { gap: 14px; }
}
