/* ============================================================
   ProteIN Explorer — Scientific / Academic Journal Style
   style.css
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── Design Tokens ── */
:root {
  /* Palette */
  --ink:           #0f1b2d;
  --ink-soft:      #2c3e55;
  --ink-muted:     #6b82a0;
  --paper:         #ffffff;
  --paper-warm:    #ffffff;
  --paper-rule:    #d6cfbf;

  --blue-deep:     #1a3a6b;
  --blue-mid:      #2356a8;
  --blue-bright:   #3b74d4;
  --blue-light:    #c8d9f5;
  --blue-wash:     #e8eef8;

  --rule-color:    rgba(26, 58, 107, 0.18);
  --shadow-sm:     0 1px 4px rgba(15, 27, 45, 0.10);
  --shadow-md:     0 4px 20px rgba(15, 27, 45, 0.12);
  --shadow-lg:     0 12px 48px rgba(15, 27, 45, 0.16);

  /* Typography scale */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --page-pad: clamp(1.5rem, 5vw, 4rem);
  --max-w:    1100px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: none;
}

/* ── Background canvas (animated network) ── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-canvas svg {
  width: 100%;
  height: 100%;
  opacity: 0.10;
}

/* ── Page wrapper ── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HEADER / MASTHEAD
   ============================================================ */

.masthead {
  border-bottom: 3px double var(--rule-color);
  background: var(--paper);
}

/* Top rule strip */
.masthead-rule {
  background: var(--blue-deep);
  height: 4px;
}

/* Journal meta bar */
.masthead-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem var(--page-pad);
  border-bottom: 1px solid var(--rule-color);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.masthead-meta .issn {
  color: var(--blue-mid);
  font-weight: 500;
}

/* Main branding row */
.masthead-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem var(--page-pad) 1.4rem;
}

.masthead-search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.8rem;
}

.masthead-search input {
  width: min(34vw, 320px);
  min-width: 190px;
  border: 1px solid #c7cfdb;
  border-radius: 2px;
  padding: 0.45rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #1c2a3b;
  background: #fff;
}

.masthead-search input:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.16);
}

.masthead-search button {
  border: 1px solid var(--blue-mid);
  background: var(--blue-mid);
  color: #fff;
  border-radius: 2px;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.masthead-search button:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.brand-logo {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.brand-logo-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: 520px;
}

.logo-img {
  display: block;
  width: 200px;
  max-width: 26vw;
  height: auto;
  object-fit: contain;
}
.brand-tagline {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: min(56vw, 520px);
}

.brand-logo svg {
  flex-shrink: 0;
  margin-bottom: 2px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}

.brand-title em {
  font-style: italic;
  color: var(--blue-mid);
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.3rem;
  display: block;
}

/* Navigation */
.masthead-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

@media (max-width: 980px) {
  .masthead-brand {
    flex-wrap: wrap;
  }

  .masthead-search {
    order: 3;
    width: 100%;
    margin: 0.4rem 0 0;
  }

  .masthead-search input {
    width: 100%;
    min-width: 0;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  font-style: italic;
}

.nav-link:hover {
  background: var(--blue-wash);
  color: var(--blue-deep);
}

.nav-link-primary {
  background: var(--blue-deep);
  color: #fff;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
}

.nav-link-primary:hover {
  background: var(--blue-mid);
  color: #fff;
}

/* Section nav under brand */
.masthead-sections {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 var(--page-pad);
  border-top: 1px solid var(--rule-color);
  overflow-x: auto;
}

.section-tab {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.65rem 1.2rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.section-tab:hover,
.section-tab.active {
  color: var(--blue-deep);
  border-bottom-color: var(--blue-deep);
}

/* ============================================================
   HERO / ARTICLE BODY
   ============================================================ */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem var(--page-pad) 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* Article-style header */
.article-header {
  width: 100%;
  max-width: 740px;
  text-align: center;
  margin: 0.8rem auto 1rem auto;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-color);
  opacity: 0;
  animation: fadeIn 0.8s 0.1s ease forwards;
}

.index-hero-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.1rem;
}

.index-hero-logo .logo-img {
  width: 450px;
  max-width: 72vw;
  height: auto;
}

.article-section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.article-section-label::before,
.article-section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: var(--blue-light);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--blue-deep);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-align: center;
}

.article-title em {
  font-style: italic;
  color: var(--blue-mid);
}

.article-abstract {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.article-links {
  margin: 0.5rem auto 0;
  font-size: 0.85rem;
  text-align: center;
}

.article-links a {
  color: var(--blue-mid);
}

.article-links a + a {
  margin-left: 0.5rem;
}

.article-function {
  max-width: 800px;
  margin: 1rem auto 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  text-align: left;
}

.article-function a {
  color: var(--blue-mid);
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--paper-rule);
}

/* ============================================================
   SEARCH
   ============================================================ */

.search-section {
  width: 100%;
  max-width: 660px;
  position: relative;
  z-index: 30;
  opacity: 0;
  animation: fadeIn 0.8s 0.35s ease forwards;
}

.search-label-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.search-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.search-label-note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--ink-muted);
}

.search-form {
  display: flex;
  gap: 0;
  box-shadow: var(--shadow-md);
  border-radius: 3px;
  overflow: visible;
  position: relative;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--paper-rule);
  border-right: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 1rem 1rem 1rem 3rem;
  outline: none;
  border-radius: 3px 0 0 3px;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}

.search-input::placeholder {
  color: var(--ink-muted);
  font-style: italic;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.search-input:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(35, 86, 168, 0.12);
}

.search-btn {
  background: var(--blue-deep);
  border: 1px solid var(--blue-deep);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 1.8rem;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
}

.search-btn svg {
  transition: transform 0.2s;
}

.search-btn:hover svg {
  transform: translateX(3px);
}

/* Loading state */
.search-btn.loading .btn-text,
.search-btn.loading svg {
  display: none;
}

.search-btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--paper-rule);
  border-radius: 0 0 3px 3px;
  overflow: hidden;
  z-index: 200;
  display: none;
  box-shadow: var(--shadow-lg);
}

.autocomplete-dropdown.open {
  display: block;
}

.autocomplete-item {
  padding: 0.7rem 1rem 0.7rem 3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.12s;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: var(--blue-wash);
}

.autocomplete-item .gene {
  font-family: var(--font-mono);
  color: var(--blue-deep);
  font-weight: 500;
  font-size: 0.82rem;
}

.autocomplete-item .uniprot {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* Error message */
.error-msg {
  margin-top: 0.75rem;
  background: #fff8f8;
  border: 1px solid #e8c4c4;
  border-left: 3px solid #c0392b;
  color: #7b2020;
  padding: 0.65rem 1rem;
  border-radius: 2px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  display: none;
}

.error-msg.visible {
  display: block;
}

/* Keyword chips */
.search-hints {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hint-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hint-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-mid);
  border: 1px solid var(--blue-light);
  background: var(--blue-wash);
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  letter-spacing: 0.04em;
}

.hint-chip:hover {
  background: var(--blue-light);
  border-color: var(--blue-mid);
  color: var(--blue-deep);
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
  width: 100%;
  max-width: 740px;
  margin-top: 3.5rem;
  position: relative;
  z-index: 10;
  border: 1px solid var(--rule-color);
  border-radius: 2px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: fadeIn 0.8s 0.55s ease forwards;
}

.stat-item {
  padding: 1.4rem 1rem;
  text-align: center;
  border-right: 1px solid var(--rule-color);
  position: relative;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue-deep);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue-deep);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.45rem;
  display: block;
}

/* ============================================================
   FEATURE CARDS (Methods / Outputs section)
   ============================================================ */

.methods-section {
  width: 100%;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule-color);
  border-bottom: 1px solid var(--rule-color);
  padding: 3rem var(--page-pad);
}

.methods-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.methods-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.methods-heading-line {
  flex: 1;
  height: 1px;
  background: var(--rule-color);
}

.methods-heading-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.method-card {
  background: #fff;
  border: 1px solid var(--rule-color);
  border-radius: 2px;
  padding: 1.8rem;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}

.method-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.method-card-index {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.method-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
}

.method-card-desc {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--ink-soft);
  font-style: italic;
}

.method-card-tag {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-mid);
  background: var(--blue-wash);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--paper);
  border-top: 3px double var(--rule-color);
  padding: 1.4rem var(--page-pad);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.footer-copy a {
  color: var(--blue-mid);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--blue-deep);
  text-decoration: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--blue-deep);
  text-decoration: underline;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .methods-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .logo-img {
    width: 102px;
    max-width: 42vw;
  }

  .masthead-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .masthead-nav {
    display: none;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--rule-color);
  }

  .methods-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    padding: 2.5rem 1.5rem;
  }

  .results-wrapper {
    grid-template-columns: 1fr;
  }

  #structure-container {
    height: 500px;
  }
  .brand-logo-stack {
    max-width: 100%;
  }

  .brand-tagline {
    font-size: 0.8rem;
    max-width: 100%;
  }
}

/* ============================================================
   RESULTS PAGE — INTERACTION TABLE AND PAGINATION
   ============================================================ */

.interaction-table {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.interaction-table table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.interaction-table tbody {
  display: table-row-group;
}

.interaction-table thead {
  background-color: #1a3a6b;
  color: white;
}

.interaction-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.interaction-table th:hover {
  background-color: #0f2847;
}

.interaction-table th::after {
  content: ' ↕';
  opacity: 0.5;
  font-size: 12px;
}

.interaction-table th.sort-asc::after {
  content: ' ↑';
  opacity: 1;
}

.interaction-table th.sort-desc::after {
  content: ' ↓';
  opacity: 1;
}

#table-tab .interaction-table th::after {
  content: none;
}

.interaction-table tbody tr {
  border-bottom: 1px solid #ddd;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.interaction-table tbody tr:hover {
  background-color: #e8f0f7;
}

.interaction-table td {
  padding: 12px 15px;
}

.interaction-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background-color: white;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pagination button:hover {
  background-color: #f0f0f0;
}

.pagination button.active {
  background-color: #1a3a6b;
  color: white;
  border-color: #1a3a6b;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.table-info {
  text-align: center;
  margin-top: 15px;
  color: #666;
  font-size: 14px;
}

/* Download buttons styling */
#download-structure-btn,
#download-table-btn {
  padding: 8px 16px;
  background-color: #1a3a6b;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

#download-structure-btn:hover,
#download-table-btn:hover {
  background-color: #0f2847;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#download-structure-btn:active,
#download-table-btn:active {
  transform: scale(0.98);
}

/* Structure Viewer Styles */
#structure-container {
  position: relative;
  border: 1px solid #ddd;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#structure-viewer {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Two-column results layout */
.results-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px auto;
  align-items: stretch;
  max-width: 1200px;
  width: 90%;
}

#structure-container {
  height: 100%;
  min-height: 700px;
}

.interaction-table {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   RESULTS PAGE — MOVED FROM results.html
   ============================================================ */

.three-column-page {
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
}

.three-column-row {
  display: grid;
  grid-template-columns: 20% 40% 40%;
  width: 98%;
  min-height: 93zvh;
  gap: 12px;
}

.column-placeholder {
  background: #000;
  min-height: 70vh;
}

.bait-column {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  color: #1c2a3b;
}

.bait-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a3a6b;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.bait-label {
  display: block;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #6b7a8d;
  margin-bottom: 2px;
}

.bait-value {
  font-size: 18px;
  font-weight: 600;
  word-break: break-word;
}

.bait-column a.bait-value,
.bait-column a.bait-value:visited,
.bait-column a.bait-value:hover,
.bait-column a.bait-value:active {
  color: inherit;
  text-decoration: none;
}

.bait-column a.bait-uniprot-value,
.bait-column a.bait-uniprot-value:visited,
.bait-column a.bait-uniprot-value:hover,
.bait-column a.bait-uniprot-value:active {
  color: #166bc0;
}

.bait-gene-value {
  font-size: 50px;
  font-weight: 700;
  font-family: "Helvetica Neue", "Arial", "Nimbus Sans L", sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #013582;
}

.bait-full-name-value {
  font-size: 20px;
  line-height: 1.2;
}

.bait-function {
  font-weight: 400;
  line-height: 1.45;
}

.bait-function-hover {
  position: relative;
}

.bait-hover-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #6b7a8d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  text-transform: none;
  line-height: 1;
  vertical-align: middle;
  cursor: help;
  padding: 0;
}

.bait-hover-context {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 320px;
  background: #fff;
  color: #1c2a3b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d9dee5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 12;
  text-transform: none;
}

.bait-hover-context::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid #d9dee5;
  border-bottom: 1px solid #d9dee5;
}

.bait-hover-note.is-open .bait-hover-context {
  display: block;
}

.selected-protein-inline .bait-hover-context {
  min-width: 320px;
  max-width: 460px;
  padding: 12px 14px;
}

.download-db-note .bait-hover-context {
  min-width: 360px;
  max-width: 560px;
  padding: 12px 14px;
}

.bait-function-placeholder {
  height: 28px;
  background: #000;
  border-radius: 2px;
}

.bait-function-text-window {
  display: block;
  width: 100%;
  height: 300px;
  background: #fff;
  color: #1c2a3b;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.bait-uniprot-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bait-uniprot-group.selected-protein-inline {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.bait-uniprot-group.selected-protein-inline #selected-protein-label {
  white-space: nowrap;
}

.bait-uniprot-label {
  display: block;
  width: 100%;
  color: #6b7a8d;
}

.bait-uniprot-value {
  display: block;
  width: 100%;
  color: #1e90ff;
}

.bait-uniprot-value {
  display: inline-block;
  width: auto;
  align-self: flex-start;
}

.bait-db-links-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.bait-db-links-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.column-visual-panel {
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 85vh;
}

.structure-panel {
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 85vh;
}

.column-visual-toolbar {
  padding: 10px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid #c8d1df;
  background: #fff;
  color: #1a3a6b;
  border-radius: 4px;
  font-size: 12px;
  padding: 5px 10px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  background: #1a3a6b;
  border-color: #1a3a6b;
  color: #fff;
}

.tab-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-control-group {
  display: none;
  align-items: center;
  gap: 6px;
}

.tab-control-group.active {
  display: inline-flex;
}

.source-btn,
.zoom-btn {
  border: 1px solid #c8d1df;
  background: #fff;
  color: #1a3a6b;
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
}

.source-btn.active {
  background: #1a3a6b;
  border-color: #1a3a6b;
  color: #fff;
}

.column-visual-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.tab-pane {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  min-height: 0;
}

.tab-pane.active {
  display: flex;
}

.plot-host {
  flex: 1;
  min-height: 0;
}

.network-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  background: #fff;
  font-size: 12px;
}

.network-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-marker.bait {
  border-radius: 0;
  background: #2e9f49;
  transform: rotate(45deg);
}

.legend-marker.novel {
  background: #2356a8;
}

.legend-marker.known {
  background: #e8a838;
}

.legend-marker.bait-volcano {
  border-radius: 0;
  background: #2e9f49;
  transform: rotate(45deg);
}

.legend-marker.network-hit-volcano {
  background: #d32f2f;
}

.legend-marker.other-volcano {
  background: #2f6eb8;
  opacity: 0.75;
}

#network-container,
#volcano-container {
  width: 100%;
  height: 100%;
}

.table-tab-pane .interaction-table {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.table-scroll {
  flex: 1;
  width: 100%;
  overflow: auto;
}

.table-scroll table {
  width: 95%;
  min-width: 95%;
  margin: 0 auto;
  table-layout: fixed;
  border-collapse: collapse;
}

.table-scroll th,
.table-scroll td {
  border-bottom: 1px solid #e9edf2;
  padding: 8px;
  text-align: left;
  font-size: 12px;
}

.table-scroll th.sortable-col {
  cursor: pointer;
  user-select: none;
}

.table-scroll tbody tr:hover {
  background: #f7fbff;
}

/* ============================================================
   TARGET PROTEIN PAGE
   ============================================================ */

.target-protein-page {
  padding-top: 1.2rem;
  display: flex;
  justify-content: center;
}

.target-protein-page .column-visual-panel {
  width: 85%;
  margin: 0 auto;
}

.target-protein-page .column-visual-toolbar {
  justify-content: center;
}

.target-protein-page .target-toolbar-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.target-protein-page .toolbar-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a3a6b;
}

.target-protein-page .target-help-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: #6b7a8d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.target-protein-page .target-help-context {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 360px;
  background: #fff;
  color: #1c2a3b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #d9dee5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 20;
  text-transform: none;
  text-align: left;
}

.target-protein-page .target-help-context::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  border-left: 1px solid #d9dee5;
  border-top: 1px solid #d9dee5;
}

.target-protein-page .target-help-note.is-open .target-help-context {
  display: block;
}

.target-protein-page .tab-pane {
  padding: 0;
}

.target-protein-page .table-scroll {
  max-height: 72vh;
}

.target-protein-page thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #1a3a6b;
}

.target-protein-page .interaction-table th::after {
  content: none !important;
}

.target-protein-page .sort-indicator {
  display: none !important;
}

.target-protein-page .table-scroll th,
.target-protein-page .table-scroll td {
  font-size: 15px;
  text-align: center;
  vertical-align: middle;
}

.target-protein-page .sortable-header {
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.target-protein-page .filter-row th {
  padding: 0;
  height: 44px;
  vertical-align: middle;
  position: sticky;
  top: 44px;
  z-index: 3;
  background: #fff;
}

.target-protein-page .column-filter-input {
  width: 50%;
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
  height: 80%;
  font-size: 15px;
  text-align: center;
}

.target-protein-page .table-scroll table {
  margin-left: auto;
  margin-right: auto;
}

.target-protein-page .table-info {
  padding: 12px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-page {
  padding-top: 1.2rem;
}

.contact-page .contact-panel {
  max-width: 860px;
  margin: 0 auto;
  min-height: auto;
}

.contact-page .contact-toolbar-heading {
  display: inline-flex;
  align-items: center;
}

.contact-page .contact-title {
  font-weight: 700;
  font-size: 20px;
  color: #1a3a6b;
}

.contact-page .contact-stage {
  padding: 18px;
  display: block;
}

.contact-page .contact-copy {
  font-size: 1.05rem;
  color: #1c2a3b;
  margin-bottom: 12px;
}

.contact-page .contact-link,
.contact-page .contact-link:visited,
.contact-page .contact-link:hover,
.contact-page .contact-link:focus,
.about-page .contact-link,
.about-page .contact-link:visited,
.about-page .contact-link:hover,
.about-page .contact-link:focus,
.data-download-page .contact-link,
.data-download-page .contact-link:visited,
.data-download-page .contact-link:hover,
.data-download-page .contact-link:focus,
.guide-page .contact-link,
.guide-page .contact-link:visited,
.guide-page .contact-link:hover,
.guide-page .contact-link:focus {
  color: #2356a8;
  text-decoration: none;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-page {
  padding-top: 1.2rem;
}

.about-page .about-panel {
  max-width: 1100px;
  margin: 0 auto;
  min-height: auto;
}

.about-page .about-toolbar-heading {
  display: inline-flex;
  align-items: center;
}

.about-page .about-title {
  font-weight: 700;
  font-size: 22px;
  color: #1a3a6b;
}

.about-page .about-stage {
  padding: 18px;
  display: block;
}

.about-page .about-intro-layout {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.about-page .about-figure {
  margin: 0;
  position: sticky;
  top: 10px;
}

.about-page .about-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(26, 58, 107, 0.18);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(15, 27, 45, 0.12);
  background: #fff;
}

.about-page .about-content {
  min-width: 0;
}

.about-page .about-copy {
  font-size: 1.05rem;
  color: #1c2a3b;
  margin-bottom: 14px;
  line-height: 1.75;
}

.about-page .about-section-title {
  margin: 14px 0 8px;
  font-size: 1.08rem;
  color: #1a3a6b;
  font-weight: 700;
}

.about-page .about-list {
  margin: 0 0 10px 20px;
  color: #1c2a3b;
}

.about-page .about-list li {
  margin-bottom: 6px;
}

.about-page .about-bottom-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 58, 107, 0.14);
  text-align: center;
  font-size: 0.95rem;
  color: #2c3e55;
  font-style: italic;
}

@media (max-width: 900px) {
  .about-page .about-intro-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-page .about-figure {
    position: static;
    max-width: 520px;
  }
}

/* ============================================================
   GUIDE PAGE
   ============================================================ */

.guide-page {
  padding-top: 1.2rem;
}

.guide-page .guide-panel {
  max-width: 1100px;
  margin: 0 auto;
  min-height: auto;
}

.guide-page .guide-toolbar-heading {
  display: inline-flex;
  align-items: center;
}

.guide-page .guide-title {
  font-weight: 700;
  font-size: 22px;
  color: #1a3a6b;
}

.guide-page .guide-stage {
  padding: 18px;
  display: block;
}

.guide-page .guide-intro {
  font-size: 1.04rem;
  line-height: 1.75;
  color: #1c2a3b;
  margin-bottom: 14px;
}

.guide-page .guide-hero-figure {
  margin: 0 0 14px;
}

.guide-page .guide-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(26, 58, 107, 0.16);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 27, 45, 0.1);
  background: #fff;
}

.guide-page .guide-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.guide-page .guide-image-row .guide-hero-figure {
  margin: 0;
}

.guide-page .guide-gif-toggle-wrap {
  margin-bottom: 10px;
}

.guide-page .guide-gif-toggle-btn {
  min-width: 120px;
}

.guide-page .guide-gif-panel {
  margin-bottom: 14px;
}

.guide-page .guide-section {
  border: 1px solid #d9e2f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px 14px;
}

.guide-page .guide-section + .guide-section {
  margin-top: 12px;
}

.guide-page .guide-section-title {
  margin-bottom: 8px;
  font-size: 1.06rem;
  color: #1a3a6b;
  font-weight: 700;
}

.guide-page .guide-list {
  margin: 0 0 0 20px;
  color: #1c2a3b;
}

.guide-page .guide-list li {
  margin-bottom: 6px;
  line-height: 1.65;
}

.guide-page .guide-footer-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 58, 107, 0.14);
  font-size: 0.95rem;
  color: #2c3e55;
  font-style: italic;
}

@media (max-width: 900px) {
  .guide-page .guide-image-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   DATA DOWNLOAD PAGE
   ============================================================ */

.data-download-page {
  padding-top: 1.2rem;
}

.data-download-page .data-download-panel {
  max-width: 1100px;
  margin: 0 auto;
  min-height: auto;
}

.data-download-page .data-download-toolbar-heading {
  display: inline-flex;
  align-items: center;
}

.data-download-page .data-download-title {
  font-weight: 700;
  font-size: 22px;
  color: #1a3a6b;
}

.data-download-page .data-download-stage {
  padding: 18px;
  display: block;
}

.data-download-page .data-download-intro,
.data-download-page .data-download-note {
  font-size: 1.02rem;
  color: #1c2a3b;
  margin-bottom: 14px;
}

.data-download-page .data-download-section + .data-download-section {
  margin-top: 22px;
}

.data-download-page .data-download-section-title {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #1a3a6b;
  font-weight: 700;
}

.data-download-page .data-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.data-download-page .data-download-card {
  border: 1px solid #d7deea;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-download-page .data-download-card.is-unavailable {
  background: #f8f8f8;
  border-color: #e1e1e1;
}

.data-download-page .data-download-card-title {
  color: #1a3a6b;
  font-size: 1rem;
  line-height: 1.35;
}

.data-download-page .data-download-card-copy {
  color: #2c3e55;
  font-size: 0.94rem;
  line-height: 1.55;
}

.data-download-page .data-download-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #5a6f8e;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.data-download-page .data-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 132px;
  border: 1px solid #2356a8;
  border-radius: 5px;
  background: #2356a8;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
}

.data-download-page .data-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-download-page .data-download-btn:hover {
  background: #1a3a6b;
  border-color: #1a3a6b;
}

.data-download-page .data-download-btn.is-disabled,
.data-download-page .data-download-btn[aria-disabled="true"] {
  pointer-events: none;
  background: #9aa8be;
  border-color: #9aa8be;
}

.data-download-page .gene-download-form {
  border: 1px solid #d7deea;
  border-radius: 8px;
  padding: 14px;
  background: #f9fbff;
}

.data-download-page .gene-download-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #1a3a6b;
}

.data-download-page .gene-download-input {
  width: 100%;
  max-width: 420px;
  border: 1px solid #c8d1df;
  border-radius: 5px;
  font-size: 0.98rem;
  padding: 0.55rem 0.7rem;
  color: #1c2a3b;
}

.data-download-page .gene-download-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-download-page .gene-download-error {
  margin-top: 8px;
  color: #6b7a8d;
  font-size: 0.9rem;
  min-height: 1.1rem;
}

@media (max-width: 700px) {
  .data-download-page .data-download-stage {
    padding: 14px;
  }

  .data-download-page .data-download-btn {
    width: 100%;
  }

  .data-download-page .gene-download-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

#volcano-tooltip {
  pointer-events: none;
  position: absolute;
  background: rgba(20, 25, 36, 0.95);
  color: #fff;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  z-index: 20;
}

#volcano-empty {
  margin: auto;
  color: #666;
  font-size: 14px;
}

#structure-controls {
  padding: 10px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.structure-tab-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.structure-tab-help-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.structure-help-note {
  margin-left: 0;
}

.structure-tab-pane {
  display: none;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.structure-tab-pane.active {
  display: flex;
  flex-direction: column;
}

.structure-tab-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.alphafold-actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

#structure-viewer {
  flex: 1;
  min-height: 0;
  background: #fff;
}

#crispri-container {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
}

#crispri-status {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  font-size: 13px;
  font-weight: 600;
  color: #1c2a3b;
}

#brain-expression-container,
#brain-expression-gtex-container {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.brain-expression-tabs {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.brain-expression-tab-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}

.brain-expression-tab-btn {
  border: 1px solid #c8d1df;
  background: #fff;
  color: #1a3a6b;
  border-radius: 4px;
  font-size: 12px;
  padding: 5px 10px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
}

.brain-expression-tab-btn.active {
  background: #1a3a6b;
  border-color: #1a3a6b;
  color: #fff;
}

.brain-expression-tab-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.brain-expression-tab-pane {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  min-height: 0;
}

.brain-expression-tab-pane.active {
  display: flex;
}

#brain-expression-tooltip,
#brain-expression-gtex-tooltip {
  pointer-events: none;
  position: absolute;
  background: rgba(20, 25, 36, 0.95);
  color: #fff;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  z-index: 21;
}

.crispri-tooltip {
  pointer-events: none;
  position: absolute;
  background: rgba(20, 25, 36, 0.95);
  color: #fff;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  z-index: 20;
}

#structure-info {
  padding: 10px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #1c2a3b;
}
