/* Genetic Correlates Explorer — layered on top of tracker.css. */

.gce-subnav {
  background: #f4f6fb;
  border-bottom: 1px solid #dfe4ee;
  margin-top: 100px; /* clears the fixed main nav (tracker.css `nav { position: fixed }`) */
}
.gce-subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.gce-subnav-inner a {
  color: #33415c;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.gce-subnav-inner a:hover { color: #1b3a8c; }

.gce-hero p { max-width: 760px; }
.gce-hero.page-hero { padding-top: 3rem; }

.gce-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.gce-search {
  width: 100%;
  max-width: 560px;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #cbd3e1;
  border-radius: 8px;
  margin-bottom: 24px;
}

.gce-phenotype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gce-phenotype-card {
  display: block;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.gce-phenotype-card:hover { box-shadow: 0 4px 14px rgba(20, 30, 60, 0.1); transform: translateY(-1px); }
.gce-phenotype-card h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.gce-card-meta { font-size: 0.8rem; color: #62708a; margin: 0; }
.gce-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.gce-role-badge, .gce-state-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.gce-role-badge { background: #eef1f8; color: #33415c; }
.gce-state-badge { background: #f1f1f1; color: #555; }
.gce-state-searched_none .gce-state-badge { background: #fde8e8; color: #9b2c2c; }
.gce-state-searched_underpowered .gce-state-badge { background: #fef3c7; color: #92620a; }
.gce-state-has_evidence .gce-state-badge { background: #e6f4ea; color: #1e6b3c; }

.gce-pending-note { color: #62708a; font-size: 0.9rem; margin-top: 24px; }

.gce-banner {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.gce-banner-none { background: #fde8e8; border: 1px solid #f3b8b8; }
.gce-banner-underpowered { background: #fef3c7; border: 1px solid #f3d98b; }
.gce-banner p { margin: 4px 0 0; font-size: 0.85rem; }

.gce-tier-note { color: #62708a; font-size: 0.88rem; }

.gce-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.gce-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.gce-table th, .gce-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #e6e9f0; vertical-align: top; }
.gce-table thead th { background: #f4f6fb; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }

.gce-tier-T1 { background: #fbfcff; }
.gce-t2-note-row td { font-size: 0.8rem; color: #62708a; font-style: italic; border-bottom: 1px solid #e6e9f0; padding-top: 0; }

.gce-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}
.gce-grade-A { background: #1e6b3c; }
.gce-grade-B { background: #4c8f5e; }
.gce-grade-C { background: #b08a2e; }
.gce-grade-D { background: #8a8f9a; }
.gce-grade-none { background: #d9dee8; color: #62708a; }

.gce-via { font-size: 0.75rem; color: #62708a; }
.gce-cite { color: #62708a; font-size: 0.8rem; }
.gce-gap-tag { background: #fde8e8; color: #9b2c2c; font-size: 0.7rem; padding: 1px 6px; border-radius: 999px; margin-left: 6px; }

.gce-relationship-list { list-style: none; margin: 0; padding: 0; }
.gce-relationship-list li { padding: 10px 0; border-bottom: 1px solid #e6e9f0; font-size: 0.92rem; }

.gce-gap-panel { font-size: 0.92rem; }

.gce-download { display: inline-block; margin: 12px 0 32px; font-size: 0.85rem; color: #1b3a8c; }

.gce-matrix-controls { margin-bottom: 16px; }
.gce-matrix-wrap { overflow-x: auto; }
.gce-matrix { border-collapse: collapse; font-size: 0.85rem; }
.gce-matrix th, .gce-matrix td { border: 1px solid #e6e9f0; padding: 8px 10px; text-align: center; }
.gce-matrix thead th { background: #f4f6fb; writing-mode: vertical-rl; text-orientation: mixed; min-width: 32px; }
.gce-matrix tbody th { text-align: left; writing-mode: horizontal-tb; background: #fbfcff; }

.gce-cell-significant { background: #e6f4ea; color: #1e6b3c; font-weight: 700; }
.gce-cell-suggestive { background: #fef3c7; color: #92620a; }
.gce-cell-tested_null { background: #eef1f8; color: #33415c; }
.gce-cell-not_tested { background: #f7f7f9; color: #b7bcc7; }
.gce-cell-conflicting { background: #fde8e8; color: #9b2c2c; font-weight: 700; }

.gce-matrix-legend { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; }
.gce-matrix-legend li { display: flex; align-items: center; gap: 8px; }
.gce-matrix-legend .gce-cell { display: inline-block; width: 24px; padding: 4px; border-radius: 4px; }

.gce-evidence-map { min-height: 320px; border: 1px solid #e6e9f0; border-radius: 10px; padding: 16px; margin-bottom: 24px; }
.gce-evidence-map-empty { color: #62708a; font-size: 0.9rem; }

.gce-methods h2 { margin-top: 32px; }

.gce-footer-disclaimer { max-width: 700px; margin: 0 auto 8px; font-size: 0.8rem; }
