/*
 * Simple V1 theme.
 *
 * This file only overrides presentation. The page templates, layout,
 * navigation, database queries and content remain unchanged.
 * The previous appearance is preserved in themes/original.css.
 */

:root {
  --ink: #20262d;
  --navy: #26313a;
  --deep: #202830;
  --teal: #2f766f;
  --sky: #e8efee;
  --paper: #f4f5f6;
  --white: #fff;
  --line: #c9ced2;
  --muted: #626a72;
  --coral: #95584f;
  --shadow: none;
}

body {
  background: var(--paper);
}

.brand-mark,
.large-orb {
  display: none;
}

.brand {
  gap: 0;
}

.site-header,
footer,
.hero,
.interpretation {
  background: var(--deep);
}

.hero {
  background-image: none;
}

.hero::after {
  display: none;
}

.hero h1,
.page-intro h1 {
  font-family: inherit;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section h2,
.panel h2,
.data-card h2,
.publication-card h2,
.coverage-number,
.stat strong {
  font-family: inherit;
}

.brand-mark,
.nav-admin,
.hero-search input,
.hero-search button,
.filter-bar input,
.filter-bar select,
.filter-bar button,
.stats-wrap,
.granule-card,
.candidate-list,
.badge,
.notice,
.panel,
.identity-card,
.data-card,
.publication-card,
.method-pill,
.methods-copy,
.source-coverage,
.external-button,
.coverage-pending,
.source-chip,
.mapping-status,
.secondary-source {
  border-radius: 0;
}

.orb,
.dot,
.large-orb {
  border-radius: 0;
}

.stats-wrap,
.granule-card,
.candidate-list,
.panel,
.data-card,
.publication-card {
  box-shadow: none;
}

.granule-card {
  border-top-width: 1px;
}

.granule-card:hover {
  transform: none;
  box-shadow: none;
  background: #f8f9f9;
}

.contact-email {
  color: var(--teal);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-email:hover,
.contact-external-link:hover,
.footer-note a:hover {
  text-decoration: underline;
}

.contact-page {
  padding-top: 30px;
  padding-bottom: 60px;
}

.contact-directory {
  width: min(1080px, 100%);
  margin: 0 auto;
  background: var(--white);
  border: 0;
}

.contact-directory > h1 {
  margin: 0 0 8px;
  padding: 12px 14px;
  background: #e8e8e8;
  border: 1px solid #d4d4d4;
  color: #111;
  font-size: 22px;
  font-weight: 600;
  text-align: left;
}

.contact-section {
  margin: 0;
  padding: 14px 6px 20px;
  border: 0;
}

.contact-guidance {
  margin: 0 0 28px;
  font-weight: 700;
  font-size: 13px;
}

.contact-card {
  border: 1px solid #d6d6d6;
  background: var(--white);
}

.contact-card > h2,
.contact-card > h3 {
  margin: 0;
  padding: 10px 14px;
  background: #e8e8e8;
  border-bottom: 1px solid #d6d6d6;
  color: #111;
  font-size: 15px;
  font-weight: 600;
}

.contact-card-body {
  padding: 12px 20px 14px;
}

.contact-card-body ul {
  margin: 0;
  padding-left: 22px;
}

.contact-card-body li {
  margin: 3px 0;
}

.contact-external-link {
  color: #315fc4;
}

.contact-team {
  margin: 0;
  padding: 12px 6px 20px;
}

.contact-team > h2 {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 700;
}

.contact-person {
  margin-bottom: 28px;
}

.contact-reporting-note {
  margin: 8px 6px 0;
  color: var(--muted);
}

.contact-reporting-note .contact-card-body p {
  margin: 0;
}

@media (max-width: 640px) {
  .contact-page {
    padding: 20px 12px;
  }

  .contact-section,
  .contact-team {
    padding-right: 0;
    padding-left: 0;
  }
}

.candidate-list > a:hover {
  background: #f3f5f5;
}

.badge,
.method-pill,
.source-chip,
.coverage-pending {
  font-weight: 600;
}

.eyebrow {
  letter-spacing: 0.08em;
}

.hero-search button,
.filter-bar button {
  background: #d5dfdd;
  color: var(--ink);
}

/* Selected-granule coverage summary. */
.granule-overview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
  margin: 18px 0 0;
}

.granule-overview-stats div {
  padding: 12px 14px;
  border: 1px solid #c8ced2;
  background: #f7f8f9;
}

.granule-overview-stats dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.granule-overview-stats dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

/* Compact granule chooser: one purpose, one decision, and one action. */
.browse-intro {
  padding-top: 30px;
  padding-bottom: 32px;
}

.browse-intro-content {
  max-width: 1124px;
}

.browse-intro .eyebrow {
  margin-bottom: 6px;
}

.browse-intro h1 {
  margin-bottom: 8px;
}

.browse-intro > .browse-intro-content > p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.granule-browse-form {
  display: grid;
  grid-template-columns: auto minmax(250px, 1fr) auto minmax(180px, 260px) auto;
  align-items: end;
  gap: 12px;
  margin-top: 22px;
  max-width: 880px;
}

.granule-browse-form label {
  align-self: center;
  font-size: 14px;
  font-weight: 700;
}

.granule-browse-form select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #747b80;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 15px Arial, Helvetica, sans-serif;
}

.granule-browse-form button {
  min-height: 44px;
  padding: 8px 26px;
  border: 1px solid #145d90;
  border-radius: 0;
  background: #1679bd;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.granule-browse-form button:hover,
.granule-browse-form button:focus-visible {
  background: #0f5f98;
}

.browse-page {
  max-width: 1440px;
  padding-top: 24px;
}

.browse-inline-results {
  margin-top: 0;
}

/* Search follows the same compact chooser layout as Browse. */
.search-intro {
  padding-top: 30px;
  padding-bottom: 32px;
}

.search-intro-content {
  max-width: 1124px;
}

.search-intro h1 {
  margin-bottom: 8px;
}

.search-intro > .search-intro-content > p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.search-intro .protein-batch-search {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto minmax(170px, 240px) auto;
  align-items: center;
  gap: 12px;
  max-width: 980px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.search-intro .protein-batch-search label {
  margin: 0;
  font-size: 14px;
}

.search-intro .protein-batch-search textarea {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 10px 12px;
  resize: none;
}

.search-intro .protein-batch-search select,
.life-stage-filter select {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #747b80;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 14px Arial, Helvetica, sans-serif;
}

.search-intro .protein-batch-search-actions {
  gap: 8px;
}

.search-intro .protein-batch-search-actions button {
  min-height: 44px;
  padding: 8px 22px;
  border-color: #145d90;
  background: #1679bd;
}

.search-intro .protein-batch-search-actions button:hover,
.search-intro .protein-batch-search-actions button:focus-visible {
  background: #0f5f98;
}

.search-intro .protein-batch-search-actions .secondary {
  border-color: #747b80;
  background: #fff;
  color: var(--ink);
}

.search-intro .protein-batch-search-actions .secondary:hover,
.search-intro .protein-batch-search-actions .secondary:focus-visible {
  background: #e9ebec;
}

.protein-search-support {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 7px 0 0;
}

.protein-search-support p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.search-intro .protein-example-button {
  margin: 0;
}

.search-intro .protein-search-feedback {
  max-width: 920px;
}

.protein-search-page {
  padding-top: 24px;
}

#protein-search-result-section[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .granule-overview-stats {
    grid-template-columns: 1fr;
  }

  .browse-intro,
  .search-intro {
    padding-top: 24px;
    padding-bottom: 26px;
  }

  .granule-browse-form,
  .search-intro .protein-batch-search {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .granule-browse-form button {
    width: 100%;
  }

  .search-intro .protein-batch-search-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .protein-search-support {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Multi-granule overlap chooser. */
.overlap-intro {
  padding-top: 30px;
  padding-bottom: 32px;
}

.overlap-intro-content {
  max-width: 1124px;
}

.overlap-intro h1 {
  margin-bottom: 8px;
}

.overlap-intro > .overlap-intro-content > p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.overlap-search-form {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(170px, 230px) auto auto;
  align-items: end;
  gap: 18px;
  max-width: 1124px;
  margin-top: 20px;
}

.life-stage-filter {
  display: grid;
  gap: 8px;
}

.life-stage-filter label {
  font-size: 14px;
  font-weight: 700;
}

.overlap-search-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.overlap-search-form legend {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.overlap-search-form legend span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.overlap-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  padding: 10px 12px;
  border: 1px solid #aeb1b3;
  background: #fff;
}

.overlap-checkbox-grid label,
.overlap-mode-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  white-space: nowrap;
}

.overlap-checkbox-grid input,
.overlap-mode-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1679bd;
}

.overlap-mode-options {
  display: grid;
  gap: 8px;
  padding-bottom: 6px !important;
}

.overlap-search-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 1px;
}

.overlap-search-actions button {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #145d90;
  border-radius: 0;
  background: #1679bd;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.overlap-search-actions button:hover,
.overlap-search-actions button:focus-visible {
  background: #0f5f98;
}

.overlap-search-actions .secondary {
  border-color: #747b80;
  background: #fff;
  color: var(--ink);
}

.overlap-search-actions .secondary:hover,
.overlap-search-actions .secondary:focus-visible {
  background: #e9ebec;
}

.overlap-intro .protein-search-feedback {
  max-width: 1124px;
}

.overlap-page {
  max-width: 1600px;
  padding-top: 24px;
}

#overlap-result-section[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .overlap-search-form {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
  }

  .overlap-search-actions button {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .overlap-intro {
    padding-top: 24px;
    padding-bottom: 26px;
  }

  .overlap-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.notice > span {
  border-radius: 0;
  background: #d5dfdd;
  color: var(--ink);
}

.notice,
.source-note,
.coverage-warning,
.source-coverage.incomplete > div:last-child {
  background: #f1f3f3;
  border-color: var(--line);
}

.source-chip,
.source-chip.bait,
.source-chip.direct,
.badge.high,
.badge.moderate,
.badge.low,
.badge.unclear,
.badge.support-strong,
.badge.support-moderate,
.badge.support-limited,
.badge.support-conflicting {
  color: var(--ink);
  background: #e6e9ea;
}

/*
 * Classic data-grid tables: dark header, full cell borders and alternating
 * row colors. Horizontal scrolling remains available on narrow screens.
 */
.table-wrap {
  border: 1px solid #aeb3b7;
  background: #fff;
}

.table-wrap table {
  border: 0;
  table-layout: auto;
}

.table-wrap thead th {
  padding: 16px 14px;
  border-right: 1px solid #c4c7ca;
  border-bottom: 1px solid #90959a;
  background: #262626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
  text-transform: none;
  vertical-align: middle;
}

.table-wrap thead th:last-child {
  border-right: 0;
}

.table-wrap tbody td {
  padding: 14px;
  border-right: 1px solid #c4c7ca;
  border-bottom: 1px solid #cfd2d4;
  background: #fff;
  line-height: 1.45;
  vertical-align: middle;
}

.table-wrap tbody tr:nth-child(odd) td {
  background: #f0f0f0;
}

.table-wrap tbody tr:hover td {
  background: #e5ebea;
}

.table-wrap tbody td:last-child {
  border-right: 0;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

a:hover {
  text-decoration: underline;
}

.site-header a:hover,
.brand:hover,
.granule-card:hover,
.candidate-list > a:hover {
  text-decoration: none;
}

@media (max-width: 560px) {
  .brand span:last-child {
    display: inline;
  }
}

/* Homepage research rationale and guided workflow. */
.hero-links {
  flex-wrap: wrap;
}

.atlas-purpose {
  padding-bottom: 64px;
}

.atlas-purpose-heading {
  max-width: 900px;
}

.atlas-purpose-heading .lead {
  margin: 14px 0 0;
  line-height: 1.65;
}

.atlas-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.atlas-story-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
}

.story-step {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.atlas-story-card h3,
.atlas-workflow-grid h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.atlas-story-card > p:not(.story-sources),
.atlas-workflow-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.story-sources {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #555d63;
  font-size: 12px;
  line-height: 1.6;
}

.story-sources a,
.atlas-workflow-grid a {
  color: #126a9f;
  font-weight: 700;
  text-decoration: underline;
}

.story-sources span {
  white-space: nowrap;
}

.atlas-principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid #aeb7ba;
  background: #e9eeee;
}

.atlas-principle strong {
  white-space: nowrap;
}

.atlas-principle p {
  margin: 0;
  color: #4f575c;
  line-height: 1.5;
}

.atlas-workflow {
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.atlas-workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.atlas-workflow-grid li {
  min-width: 0;
  padding: 22px;
  border-top: 3px solid var(--teal);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.workflow-number {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  place-items: center;
  background: var(--deep);
  color: #fff;
  font-weight: 800;
}

.atlas-workflow-grid p {
  min-height: 132px;
  margin: 0 0 16px;
  font-size: 14px;
}

@media (max-width: 950px) {
  .atlas-story-grid {
    grid-template-columns: 1fr;
  }

  .atlas-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .site-header nav a:nth-child(3),
  .site-header nav a:nth-child(4) {
    display: inline;
  }
}

@media (max-width: 620px) {
  .atlas-workflow-grid {
    grid-template-columns: 1fr;
  }

  .atlas-workflow-grid p {
    min-height: 0;
  }

  .atlas-principle {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}



/* Global species scope selector. Cross-species comparison can reuse the same backend context later. */
.species-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 4px;
}

.species-switcher label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.species-switcher select {
  max-width: 190px;
  min-height: 34px;
  padding: 5px 28px 5px 10px;
  border: 1px solid #59646e;
  border-radius: 0;
  background: var(--deep);
  color: #fff;
  font: inherit;
}

.species-switcher select:focus {
  outline: 2px solid #7eb6df;
  outline-offset: 2px;
}

@media (max-width: 850px) {
  .species-switcher {
    flex-basis: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 620px) {
  .species-switcher select {
    max-width: 150px;
    font-size: 12px;
  }
}
