/* Shared styling for the Swarup Lab static gene browsers */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2c3e50; background: #ffffff;
}
.navbar {
  background: #2c3e50; color: #fff;
  padding: 0 18px; display: flex; align-items: center; flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.navbar .brand {
  font-size: 18px; font-weight: 600; padding: 14px 18px 14px 0; margin-right: 8px;
}
.navbar .tab {
  padding: 16px 16px; cursor: pointer; color: #cdd6df;
  border-bottom: 3px solid transparent; font-size: 14px; user-select: none;
}
.navbar .tab:hover { color: #fff; }
.navbar .tab.active { color: #fff; border-bottom-color: #18bc9c; }
.layout { display: flex; align-items: flex-start; gap: 18px; padding: 20px; }
.sidebar {
  flex: 0 0 280px; background: #f4f6f8; border: 1px solid #e1e6ea;
  border-radius: 6px; padding: 16px;
}
.sidebar label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.main { flex: 1 1 auto; min-width: 0; }
.search-wrap { position: relative; }
.search-wrap input {
  width: 100%; padding: 8px 10px; font-size: 14px;
  border: 1px solid #c3ccd3; border-radius: 4px;
}
.search-wrap input:focus { outline: none; border-color: #18bc9c; }
.suggestions {
  position: absolute; z-index: 50; left: 0; right: 0; top: 100%;
  background: #fff; border: 1px solid #c3ccd3; border-top: none;
  max-height: 280px; overflow-y: auto; border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,.12); display: none;
}
.suggestions div { padding: 6px 10px; cursor: pointer; font-size: 13px; }
.suggestions div:hover, .suggestions div.active { background: #18bc9c; color: #fff; }
.plot-card {
  border: 1px solid #e1e6ea; border-radius: 6px; padding: 8px;
  margin-bottom: 16px; background: #fff;
}
.plot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1100px) { .plot-grid { grid-template-columns: 1fr; } }
.notes {
  font-size: 12px; color: #5a6b7b; margin-top: 14px;
  border-top: 1px solid #e1e6ea; padding-top: 10px;
}
.notes p { margin: 3px 0; }
.legend-hint { font-size: 12px; color: #5a6b7b; margin-top: 6px; }
.loading {
  padding: 40px; text-align: center; color: #7f8c9a; font-size: 15px;
}
.controls-row { margin-top: 14px; }
.controls-row label { margin-top: 12px; }
.controls-row input[type=number], .controls-row select {
  width: 100%; padding: 6px 8px; border: 1px solid #c3ccd3; border-radius: 4px;
  font-size: 14px;
}
.radio-row label { display: inline-block; font-weight: 400; margin-right: 14px; }
.radio-row input { margin-right: 4px; }
.btn-link {
  display: inline-block; margin: 4px 6px 4px 0; padding: 6px 10px;
  background: #18bc9c; color: #fff; border-radius: 4px; text-decoration: none;
  font-size: 12px;
}
.btn-link:hover { background: #128f76; }
.footer {
  padding: 14px 20px; font-size: 12px; color: #7f8c9a;
  border-top: 1px solid #e1e6ea; margin-top: 10px;
}
.footer a { color: #18bc9c; }
h2.section { font-size: 20px; margin: 4px 0 12px; }
.abstract { max-width: 900px; line-height: 1.6; font-size: 14px; padding: 20px; }
.abstract h3 { color: #2c3e50; }
