:root {
  --text: #272727;
  --muted: #676767;
  --line: #d8d8d8;
  --panel: #f7f7f7;
  --accent: #25645a;
  --accent-dark: #174940;
  --focus: #7a4f9f;
  --missing: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
}

.site-header {
  background: #344657;
}

.site-header .wrap {
  width: 100%;
  max-width: none;
  padding: 0 32px 0 0;
}

.header-inner {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  flex: 0 0 auto;
  color: #fff;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  font-size: 16px;
}

.site-nav a {
  color: #fff;
  padding: 16px 15px;
  line-height: 1.25;
}

.site-title:hover,
.site-nav a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.migration-banner {
  margin: 0 0 18px;
  padding: 15px 18px;
  border-left: 5px solid #148f86;
  border-radius: 6px;
  background: #eaf6f5;
  color: #003f3d;
  font-size: 15px;
  line-height: 1.55;
}
.intro {
  padding: 34px 0 18px;
}

h1 {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
}

h2,
h3,
p {
  margin-top: 0;
}

.search-panel {
  padding: 8px 0 16px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  overflow: hidden;
}

.search-form input {
  min-width: 0;
  height: 42px;
  border: 0;
  padding: 0 12px;
  font: inherit;
}

.search-form input:focus {
  outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
  outline-offset: -3px;
}

.search-form button {
  height: 42px;
  border: 0;
  border-left: 1px solid #b9b9b9;
  padding: 0 16px;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--accent-dark);
}

.status {
  min-height: 24px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.result-button {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 9px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.result-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.gene-summary {
  min-height: 86px;
  padding: 14px 0 8px;
  border-top: 1px solid var(--line);
}

.gene-summary h2 {
  margin-bottom: 4px;
  font-size: 22px;
}

.gene-summary p {
  margin-bottom: 2px;
  color: var(--muted);
}

.image-stack {
  padding-bottom: 56px;
}

.figure-panel {
  margin-top: 36px;
}

.figure-panel h3 {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
}

.legend,
.gene-image {
  display: block;
  width: min(100%, 905px);
  min-height: 80px;
  border: 0;
  background: #fff;
}

.legend {
  margin-bottom: 12px;
}

.gene-image.missing {
  height: 160px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .site-header .wrap {
    padding: 0;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .site-title {
    padding: 0 16px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 8px 16px;
  }

  h1 {
    font-size: 34px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-form button {
    border-left: 0;
    border-top: 1px solid #b9b9b9;
  }
}
