:root {
    --gw-ink: #1c2d32;
    --gw-muted: #68777a;
    --gw-paper: #eef2f1;
    --gw-panel: #ffffff;
    --gw-line: #d3ddda;
    --gw-deep: #173e3e;
    --gw-green: #2a6d57;
    --gw-violet: #735277;
    --gw-amber: #ca8641;
    --gw-mint: #dcebe5;
    --gw-shadow: 0 16px 42px rgba(27, 60, 55, .09);
}

.gwas-page { min-height: 76vh; color: var(--gw-ink); background: var(--gw-paper); font-family: "Segoe UI", Arial, sans-serif; font-variant-numeric: tabular-nums lining-nums; }
.gwas-page-width { width: min(1480px, calc(100% - 48px)); margin: 0 auto; }
.gwas-hero { position: relative; overflow: hidden; color: #f6fbfa; background: linear-gradient(112deg, #153738, #1e5150 68%, #275e58); }
.gwas-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(0deg, transparent 0 31px, #d8f1e8 31px 32px), linear-gradient(90deg, transparent 0 74%, #f0b875 74% 74.15%, transparent 74.15%); }
.gwas-hero::after { content: "GWAS"; position: absolute; right: -20px; bottom: -57px; color: transparent; -webkit-text-stroke: 1px rgba(211, 236, 224, .12); font-family: Arial, sans-serif; font-size: 12rem; font-weight: 900; letter-spacing: -.08em; }
.gwas-germplasm-hero { background: linear-gradient(112deg, #223342, #324a58 66%, #405e64); }
.gwas-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(370px, .62fr); gap: 82px; align-items: center; min-height: 270px; padding: 44px 0 48px; }
.gwas-kicker, .gwas-section-label { margin: 0 0 8px; color: #9bd4c1; font-family: "Arial Narrow", Arial, sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.gwas-hero h2 { margin: 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 5.6vw, 5.3rem); font-weight: 400; line-height: .91; letter-spacing: -.055em; }
.gwas-hero h2 span { color: #bdddd1; }
.gwas-germplasm-hero h2 span { color: #bfd3d6; }
.gwas-deck { max-width: 700px; margin: 18px 0 0; color: #ccdfda; font-size: 1rem; line-height: 1.65; }
.gwas-scope-card { padding: 23px 26px; border: 1px solid rgba(215, 237, 228, .21); border-left: 3px solid var(--gw-amber); background: rgba(10, 35, 34, .4); box-shadow: 0 18px 45px rgba(7, 27, 26, .17); }
.gwas-scope-card > span { color: #9fb9b0; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gwas-scope-card > strong { display: block; margin-top: 6px; color: #fff; font-family: Georgia, serif; font-size: 1.28rem; font-weight: 400; }
.gwas-scope-card > p { margin: 9px 0 12px; color: #c3d5cf; font-size: .75rem; line-height: 1.55; }
.gwas-scope-card > b { color: #ebb477; font-size: .66rem; font-weight: 700; }
.gwas-passport-card dl { margin: 11px 0 0; }
.gwas-passport-card dl > div { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(222, 239, 233, .14); }
.gwas-passport-card dt { color: #efbb82; font-family: Arial, sans-serif; font-size: .66rem; font-style: normal; }
.gwas-passport-card dd { margin: 0; color: #d2dfdc; font-size: .72rem; }

.gwas-content { padding: 28px 0 64px; }
.gwas-loading { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 350px; color: var(--gw-muted); }
.gwas-loading > span { width: 20px; height: 20px; border: 2px solid #b9cbc5; border-top-color: var(--gw-green); border-radius: 50%; animation: gwas-spin .75s linear infinite; }
@keyframes gwas-spin { to { transform: rotate(360deg); } }
.gwas-error { padding: 18px 20px; color: #873e36; border-left: 4px solid #b65e50; background: #fff1ef; box-shadow: var(--gw-shadow); }

.gwas-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; border: 1px solid var(--gw-line); background: var(--gw-panel); box-shadow: var(--gw-shadow); }
.gwas-summary > div { position: relative; padding: 16px 21px; border-right: 1px solid var(--gw-line); }
.gwas-summary > div:last-child { border-right: 0; }
.gwas-summary > div::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--gw-violet), transparent 78%); }
.gwas-summary span { display: block; color: var(--gw-muted); font-size: .66rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.gwas-summary strong { display: block; margin-top: 4px; color: var(--gw-deep); font-family: Arial, "Helvetica Neue", sans-serif; font-size: 1.43rem; font-style: normal; font-weight: 700; }

.gwas-ledger-card, .gwas-cohort-card, .gwas-table-card { overflow: hidden; border: 1px solid var(--gw-line); background: var(--gw-panel); box-shadow: var(--gw-shadow); }
.gwas-table-card { margin-top: 22px; }
.gwas-card-head { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; padding: 23px 27px 18px; border-bottom: 1px solid var(--gw-line); }
.gwas-section-label { color: var(--gw-violet); }
.gwas-card-head h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.46rem; font-weight: 400; letter-spacing: -.018em; }
.gwas-card-head p:last-child { margin: 7px 0 0; color: var(--gw-muted); font-size: .75rem; line-height: 1.5; }
.gwas-text-button { align-self: center; padding: 0 0 2px; color: var(--gw-green); border: 0; border-bottom: 1px dotted currentColor; background: transparent; font-size: .68rem; font-weight: 750; }

.gwas-year-timeline { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; align-items: end; min-height: 190px; padding: 23px 30px 20px; background: repeating-linear-gradient(0deg, #fafcfb 0 31px, #edf2f0 31px 32px); }
.gwas-year-column { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 145px; padding: 0; border: 0; outline: 0; background: transparent; }
.gwas-year-column .gwas-year-bar { position: relative; display: block; min-height: 3px; background: linear-gradient(180deg, #826184, var(--gw-violet)); transition: filter .12s, transform .12s; }
.gwas-year-column:hover .gwas-year-bar, .gwas-year-column.active .gwas-year-bar { filter: saturate(1.25); transform: translateY(-3px); box-shadow: 0 3px 0 var(--gw-amber); }
.gwas-year-column:focus-visible { outline: 3px solid rgba(202, 134, 65, .4); outline-offset: 3px; }
.gwas-year-column b { display: block; margin-top: 8px; color: #536761; font-family: Arial, sans-serif; font-size: .67rem; font-style: normal; }
.gwas-year-column small { position: absolute; top: 6px; right: 0; left: 0; color: #fff; font-size: .6rem; font-weight: 800; text-align: center; }
.gwas-year-column.empty .gwas-year-bar { background: #d8e1dd; }
.gwas-year-column.empty small { color: #82908a; }
.gwas-ledger-note { margin: 0; padding: 10px 27px 12px; color: #788781; border-top: 1px solid var(--gw-line); background: #f7faf8; font-size: .64rem; line-height: 1.45; }

.gwas-cohort-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.gwas-cohort { position: relative; min-height: 155px; padding: 21px 23px; color: var(--gw-ink); border: 0; border-right: 1px solid var(--gw-line); background: #fff; text-align: left; }
.gwas-cohort:last-child { border-right: 0; }
.gwas-cohort::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--gw-green); opacity: .25; }
.gwas-cohort:hover, .gwas-cohort.active { background: #f1f7f4; }
.gwas-cohort.active::before { opacity: 1; background: var(--gw-amber); }
.gwas-cohort > span { color: var(--gw-violet); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gwas-cohort strong { display: block; margin-top: 7px; color: var(--gw-deep); font-family: Arial, sans-serif; font-size: 1.35rem; font-style: normal; }
.gwas-cohort p { display: -webkit-box; overflow: hidden; margin: 7px 0 0; color: #5e706b; font-size: .7rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.gwas-cohort small { display: block; margin-top: 7px; color: #85918e; font-size: .61rem; }

.gwas-download { flex: 0 0 auto; padding: 9px 13px; color: #fff; border: 0; background: var(--gw-deep); font-size: .7rem; font-weight: 750; }
.gwas-download:hover { background: var(--gw-green); }
.gwas-download i { margin-right: 6px; }
.gwas-download:focus-visible, .gwas-text-button:focus-visible, .gwas-filters button:focus-visible, .gwas-pagination button:focus-visible, .gwas-cohort:focus-visible { outline: 3px solid rgba(202, 134, 65, .42); outline-offset: 2px; }

.gwas-filters { display: grid; gap: 11px; align-items: end; padding: 17px 27px; border-bottom: 1px solid var(--gw-line); background: #f7faf8; }
.gwas-data-filters, .gwas-germ-filters { grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(145px, .72fr)) auto; }
.gwas-filters label > span { display: block; margin: 0 0 5px; color: #526660; font-size: .62rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.gwas-filters input, .gwas-filters select { width: 100%; height: 39px; color: #314942; border: 1px solid #c5d3ce; border-radius: 0; outline: none; background: #fff; font-family: "Segoe UI", Arial, sans-serif; font-size: .72rem; }
.gwas-filters select { padding: 0 27px 0 9px; }
.gwas-search-field > div { position: relative; }
.gwas-search-field i { position: absolute; top: 50%; left: 11px; color: #899691; font-size: .7rem; transform: translateY(-50%); }
.gwas-search-field input { padding: 0 10px 0 31px; }
.gwas-filters input:focus, .gwas-filters select:focus { border-color: var(--gw-green); box-shadow: 0 0 0 3px rgba(42,109,87,.11); }
.gwas-filters > button { height: 39px; padding: 0 12px; color: #65766f; border: 1px solid #c5d3ce; background: #fff; font-size: .67rem; font-weight: 750; white-space: nowrap; }
.gwas-filters > button:hover { color: var(--gw-deep); border-color: #91aa9f; }

.gwas-table-wrap { overflow-x: auto; }
.gwas-table { width: 100%; min-width: 1050px; border-collapse: collapse; font-size: .71rem; }
.gwas-table th { padding: 11px 12px; color: #586b64; border-bottom: 1px solid #cbd7d2; background: #eef3f1; font-size: .6rem; font-weight: 800; letter-spacing: .035em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.gwas-table th:first-child, .gwas-table td:first-child { padding-left: 27px; }
.gwas-table td { padding: 11px 12px; color: #41554e; border-bottom: 1px solid #e1e8e5; vertical-align: top; }
.gwas-table tbody tr:hover { background: #f8faf9; }
.gwas-study-index { color: var(--gw-violet) !important; font-family: Arial, sans-serif; font-size: .69rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.gwas-research-title { min-width: 330px; max-width: 560px; color: #263e36 !important; line-height: 1.5; }
.gwas-accessions { color: var(--gw-deep) !important; font-family: Arial, sans-serif; font-size: .76rem; font-style: normal; font-weight: 800; text-align: right; }
.gwas-bioproject { min-width: 145px; }
.gwas-bioproject a { display: block; color: var(--gw-green); font-family: "SFMono-Regular", Consolas, monospace; font-size: .65rem; text-decoration: none; }
.gwas-bioproject a + a { margin-top: 5px; }
.gwas-bioproject a:hover { text-decoration: underline; }
.gwas-bioproject span { display: block; color: #687a73; font-family: "SFMono-Regular", Consolas, monospace; font-size: .64rem; }
.gwas-not-reported { color: #98a49f !important; font-style: italic; }
.gwas-year-cell { font-family: Arial, sans-serif; font-style: normal; font-weight: 700; }
.gwas-germ-link { color: var(--gw-green); font-weight: 750; text-decoration: none; white-space: nowrap; }
.gwas-germ-link:hover { text-decoration: underline; }
.gwas-pending { color: #9a7860; font-size: .64rem; white-space: nowrap; }
.gwas-sample-id { color: var(--gw-deep) !important; font-family: "SFMono-Regular", Consolas, monospace; font-size: .68rem; font-weight: 750; white-space: nowrap; }
.gwas-common-name { color: #263e36 !important; font-weight: 750; white-space: nowrap; }
.gwas-origin { white-space: nowrap; }
.gwas-study-chip { display: inline-block; padding: 4px 7px; color: var(--gw-violet); border: 1px solid #d2c3d4; background: #f6f0f6; font-family: Arial, sans-serif; font-size: .62rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.gwas-germ-table .gwas-research-title { min-width: 360px; max-width: 620px; color: #61716c !important; font-size: .67rem; }
.gwas-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 270px; color: #7a8a84; }
.gwas-empty i { color: #89a298; font-size: 1.7rem; }
.gwas-empty strong { margin-top: 13px; color: #40564e; font-family: Georgia, serif; font-size: 1.05rem; font-weight: 400; }
.gwas-empty span { margin-top: 5px; font-size: .71rem; }

.gwas-pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; min-height: 54px; padding: 9px 27px; color: var(--gw-muted); background: #f7faf8; font-size: .67rem; }
.gwas-pagination > div { display: flex; align-items: center; gap: 11px; }
.gwas-pagination button { display: grid; place-items: center; width: 30px; height: 30px; color: var(--gw-deep); border: 1px solid #c5d3ce; background: #fff; }
.gwas-pagination button:disabled { color: #b2beb9; background: #eff3f1; }
.gwas-pagination b { min-width: 95px; color: #52665f; font-family: Arial, sans-serif; font-style: normal; font-weight: 700; text-align: center; }
.gwas-pagination > label { justify-self: end; }
.gwas-pagination select { margin-left: 5px; padding: 4px 6px; color: #52665f; border: 1px solid #c5d3ce; background: #fff; font-size: .67rem; }

@media (max-width: 1080px) {
    .gwas-hero-grid { grid-template-columns: 1fr minmax(320px, .7fr); gap: 42px; }
    .gwas-data-filters, .gwas-germ-filters { grid-template-columns: 1.25fr 1fr 1fr; }
}

@media (max-width: 760px) {
    .gwas-page-width { width: min(100% - 26px, 680px); }
    .gwas-hero-grid { grid-template-columns: 1fr; gap: 27px; padding: 37px 0; }
    .gwas-hero h2 { font-size: clamp(2.9rem, 14vw, 4.4rem); }
    .gwas-summary { grid-template-columns: 1fr 1fr; }
    .gwas-summary > div:nth-child(2) { border-right: 0; }
    .gwas-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--gw-line); }
    .gwas-card-head { display: block; padding: 20px; }
    .gwas-card-head > button { margin-top: 13px; }
    .gwas-year-timeline { min-width: 690px; }
    .gwas-ledger-card { overflow-x: auto; }
    .gwas-cohort-list { grid-template-columns: 1fr; }
    .gwas-cohort { min-height: auto; border-right: 0; border-bottom: 1px solid var(--gw-line); }
    .gwas-data-filters, .gwas-germ-filters { grid-template-columns: 1fr; padding: 16px 20px; }
    .gwas-pagination { grid-template-columns: 1fr auto; padding: 9px 18px; }
    .gwas-pagination > label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .gwas-loading > span { animation-duration: 1.8s; }
    .gwas-year-column .gwas-year-bar { transition: none; }
}

.gwas-table-card, .gwas-table-wrap, .gwas-table { overflow-anchor: none; }
