:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --text: #1e2430;
  --muted: #5a6472;
  --primary: #0f4c5c;
  --accent: #c07a3a;
  --line: #dce2e8;
  --shadow: 0 14px 35px rgba(15, 76, 92, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--bg);
}

.site-shell {
  width: min(1320px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.9rem 0;
}

.brand {
  color: var(--primary);
  text-decoration: none;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.46rem 0.85rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffffff;
  background: var(--primary);
}

.main-nav a.is-active,
.main-nav a.is-active:hover,
.main-nav a.is-active:focus-visible {
  color: #ffffff;
  background: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.page-content {
  padding-top: 1.6rem;
  padding-bottom: 2.4rem;
}

.container {
  width: 100%;
  margin: 0 auto;
}

.center {
  text-align: center;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
}

h1 {
  font-size: clamp(1.4rem, 1.4vw + 1rem, 2.2rem);
  margin: 0.4rem 0 0.8rem;
}

h2 {
  font-size: clamp(1.8rem, 2.1vw + 1rem, 3rem);
  margin: 0.8rem 0 1rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.2rem);
  font-weight: 500;
  color: var(--muted);
  margin: 0.2rem 0 1.2rem;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1.6rem 0;
}

.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.control-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #d9e6eb;
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.control-group {
  font-size: 1.03rem;
  line-height: 1.7;
  color: var(--text);
}

.contact-accent-panel {
  background: #8da0cb;
  border: 1px solid #6f85b4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0.95rem;
  color: #ffffff;
}

.contact-accent-panel h3,
.contact-accent-panel h4,
.contact-accent-panel p,
.contact-accent-panel label,
.contact-accent-panel small {
  color: #ffffff;
}

.prs-trait-search-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(920px, 100%);
  flex-wrap: wrap;
}

.prs-trait-search-row h4 {
  margin: 0;
  white-space: nowrap;
}

.prs-trait-search-row .select2 {
  flex: 1;
  min-width: 260px;
}

.btn-search-prominent {
  background: #1e2430;
  border-color: #1e2430;
  color: #ffffff;
  font-weight: 700;
  padding: 0.7rem 1.15rem;
  box-shadow: 0 8px 18px rgba(30, 36, 48, 0.28);
}

.btn-search-prominent:hover {
  background: #111723;
  border-color: #111723;
}

.top-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.top-filter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 170px;
}

.top-filter-box label {
  font-size: 1.03rem;
  text-align: left;
  line-height: 1.55;
}

.singlevar-input {
  width: min(620px, 100%);
  height: 38px;
  font-size: 1rem;
  border: 1px solid #d8deea;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

.btn,
button {
  appearance: none;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.62rem 1.15rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 76, 92, 0.24);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
}

.plot-section {
  margin-bottom: 1.3rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.plot-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.plot-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-card {
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-card.methods {
  background: linear-gradient(165deg, #fff7e8, #ffffff 55%);
  border-color: #efd8b2;
}

.home-card.summary {
  background: linear-gradient(165deg, #eaf6fb, #ffffff 55%);
  border-color: #bfdde9;
}

.home-card.trait {
  background: linear-gradient(165deg, #eef8f0, #ffffff 55%);
  border-color: #cae6cf;
}

.home-card.correlation {
  background: linear-gradient(165deg, #f2efff, #ffffff 55%);
  border-color: #d5cdf4;
}

.home-card.super {
  background: linear-gradient(165deg, #ffeef1, #ffffff 55%);
  border-color: #f0c9d2;
}

.home-card.single {
  background: linear-gradient(165deg, #ecf7f4, #ffffff 55%);
  border-color: #c5e8dd;
}

.home-card.download {
  background: linear-gradient(165deg, #f7f4ea, #ffffff 55%);
  border-color: #e5dcc2;
}

.home-card.contact {
  background: linear-gradient(165deg, #eff3fb, #ffffff 55%);
  border-color: #c8d6ee;
}

.home-card h4 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  color: var(--primary);
}

.home-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.home-card:hover,
.home-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 76, 92, 0.14);
  border-color: #c8d4de;
}

.plot-card img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.coauthor-shell {
  width: min(860px, 100%);
  margin: 0 auto;
}

.coauthor-card {
  background: linear-gradient(180deg, #f8fbfc 0%, #ffffff 20%);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.coauthor-header {
  margin-bottom: 1.2rem;
}

.coauthor-kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.coauthor-required-note {
  margin: 0.65rem 0 0;
  color: #8c2c2c;
  font-weight: 600;
}

.coauthor-required-star {
  color: #c62828;
  font-weight: 700;
}

.coauthor-step-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #edf6f8;
  color: var(--primary);
  font-weight: 700;
  padding: 0.34rem 0.72rem;
  margin-bottom: 0.9rem;
}

.coauthor-step-title {
  margin: 0 0 0.85rem;
  color: var(--text);
}

.coauthor-alert {
  margin-bottom: 1rem;
  border: 1px solid #e7b9b9;
  background: #fff4f4;
  color: #8c2c2c;
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.coauthor-form-stack {
  display: grid;
  gap: 1rem;
}

.coauthor-label {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.coauthor-field-hint {
  margin: 0.15rem 0 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.coauthor-input,
.coauthor-textarea {
  width: 100%;
  border: 1px solid #cfd9df;
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.coauthor-input[readonly] {
  background: #f5f8fa;
  color: #53616d;
}

.coauthor-input:focus,
.coauthor-textarea:focus {
  outline: none;
  border-color: #6ea4b2;
  box-shadow: 0 0 0 4px rgba(15, 76, 92, 0.12);
}

.coauthor-field-block,
.coauthor-fieldset {
  border: 1px solid #dce5ea;
  border-radius: 16px;
  padding: 1rem;
  margin: 0;
}

.coauthor-field-topline,
.coauthor-table-header,
.coauthor-actions,
.coauthor-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.coauthor-affiliation-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.coauthor-affiliations {
  display: grid;
  gap: 0.75rem;
}

.coauthor-copy-panel {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
  margin-bottom: 0.9rem;
  padding: 0.9rem;
  border: 1px dashed #cfd9df;
  border-radius: 14px;
  background: #f9fbfc;
}

.coauthor-affiliation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

.coauthor-affiliation-input-wrap {
  position: relative;
}

.coauthor-suggestion-list {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  z-index: 30;
  background: #ffffff;
  border: 1px solid #cfd9df;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 76, 92, 0.14);
  padding: 0.25rem;
}

.coauthor-suggestion-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #ffffff;
  color: #1e2430;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  box-shadow: none;
  transform: none;
}

.coauthor-suggestion-item:hover,
.coauthor-suggestion-item:focus-visible {
  background: #edf6f8;
  color: #0f4c5c;
  box-shadow: none;
  transform: none;
}

.coauthor-suggestion-item small {
  color: #5a6472;
}

.coauthor-add-btn {
  padding: 0.5rem 0.9rem;
}

.coauthor-remove-btn {
  white-space: nowrap;
}

.coauthor-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.coauthor-radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #d7e2e7;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: #ffffff;
  cursor: pointer;
}

.coauthor-radio input {
  margin: 0;
}

.coauthor-radio-info {
  justify-content: flex-start;
}

.coauthor-authorship-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .coauthor-card {
    padding: 1rem;
  }

  .coauthor-radio-grid {
    grid-template-columns: 1fr;
  }

  .coauthor-affiliation-row {
    grid-template-columns: 1fr;
  }
}

.hero-image {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.muted-note {
  color: var(--muted);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.94rem;
  background: #fff;
}

th,
td {
  text-align: left;
  padding: 0.56rem 0.62rem;
  border-bottom: 1px solid #edf1f5;
}

th {
  background-color: #f2f6f9;
  color: #22303d;
  font-weight: 700;
}

.table-scroll {
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.superprs-top-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(520px, 1.75fr);
  gap: 1rem;
  align-items: start;
}

.correlated-top-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.2fr) minmax(520px, 1.8fr);
  gap: 1rem;
  align-items: start;
}

.superprs-heatmap-wrap {
  width: 100%;
  overflow: hidden;
}

.correlated-heatmap-wrap {
  width: 100%;
  overflow: hidden;
}

.superprs-heatmap-wrap > div {
  width: 100% !important;
}

.correlated-heatmap-wrap > div {
  width: 100% !important;
}

.table-scroll-both {
  width: 100%;
  max-width: 100%;
  max-height: 550px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.table-scroll-both table {
  min-width: 780px;
}

.image-container-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  opacity: 0.92;
}

.image-container-foot img {
  max-height: 72px;
  object-fit: contain;
}

.container-main {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.column {
  flex: 1;
  min-width: 250px;
  padding: 1.1rem;
  color: #fff;
  text-align: justify;
  border-radius: var(--radius-md);
}

#column1 {
  background-color: #66c2a5;
}

#column2 {
  background-color: #8da0cb;
}

.column p {
  font-size: 1.05rem;
  margin: 0;
}

#column3 {
  background-color: #fc8d62;
}

#column4 {
  background-color: #4c837a;
}

.login-shell {
  min-height: 72vh;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(460px, 95vw);
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.login-card input[type="password"],
input[type="text"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.error-text {
  color: #b42318;
  font-weight: 700;
  margin-top: 0.2rem;
}

@media (max-width: 1040px) {
  .plot-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .superprs-top-grid {
    grid-template-columns: 1fr;
  }

  .correlated-top-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .plot-grid-3 {
    grid-template-columns: 1fr;
  }

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

  .top-filters-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    margin-top: 0.4rem;
  }
}
