:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #5f6d80;
  --line: #dbe3ed;
  --soft: #eef2f7;

  --accent: #24415d;
  --accent-2: #3e6688;
  --accent-soft: #eaf1f7;

  --success: #17663a;
  --success-soft: #e9f7ef;

  --danger: #8a1f1f;
  --danger-soft: #fdecec;

  --warning: #80511a;
  --warning-soft: #fff6e6;

  --radius: 18px;
  --shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 999;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
}

.site-header {
  background: linear-gradient(135deg, #172033, #243b53);
  color: #ffffff;
  padding: 52px 28px;
}

.header-inner {
  max-width: 1240px;
  margin: auto;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.header-eyebrow {
  color: #bcd0e2 !important;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  color: #6f8ba3;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.subtitle {
  max-width: 900px;
  margin: 18px 0 0;
  color: #dce8f2;
  font-size: 18px;
}

.version-card {
  min-width: 220px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.version-card strong {
  font-size: 28px;
}

.version-label,
.version-note {
  font-size: 13px;
  color: #dce8f2;
}

main {
  max-width: 1240px;
  margin: auto;
  padding: 30px 24px 58px;
}

section {
  margin-top: 28px;
}

.intro-section,
.overview-section,
.guide-section,
.browser-section,
.gene-card-section,
.release-section,
.downloads-section,
.documentation-section {
  background: var(--panel);
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.intro-section {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.intro-text h2,
.section-heading h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.intro-text p,
.section-intro,
.downloads-section > p {
  color: var(--muted);
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-button,
.download-filtered-button,
.reset-button,
.secondary-button {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.action-button:hover,
.download-filtered-button:hover,
.reset-button:hover,
.secondary-button:hover {
  background: var(--accent-soft);
  border-color: var(--accent-2);
}

.action-button.primary,
.download-filtered-button {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.action-button.primary:hover,
.download-filtered-button:hover {
  background: var(--accent-2);
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.stat-label {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.overview-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.overview-card,
.guide-card {
  background: #fbfdff;
  border: 1px solid var(--soft);
  border-radius: 16px;
  padding: 18px;
}

.overview-card h3,
.guide-card h3 {
  margin: 0 0 14px;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-item-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.bar-track {
  height: 10px;
  background: #e8edf3;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-2),
    #7fa2be
  );
  border-radius: 999px;
}

.guide-kicker {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.state-a .guide-kicker {
  background: #eeeaf7;
  color: #51437a;
}

.state-b .guide-kicker {
  background: #e5f5f1;
  color: #236b61;
}

.state-c .guide-kicker {
  background: #fff0dc;
  color: #8a5420;
}

.guide-card p {
  color: var(--muted);
}

.filter-panel {
  background: #f8fafc;
  border: 1px solid var(--soft);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 14px;
  background: #ffffff;
  color: var(--ink);
}

.table-help {
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

.table-wrapper {
  overflow-x: auto;
}

#atlasTable {
  font-size: 13px;
}

#atlasTable tbody tr {
  cursor: pointer;
}

#atlasTable tbody tr:hover {
  background: #f0f5fa;
}

#atlasTable tbody tr:focus {
  outline: 3px solid var(--accent-2);
  outline-offset: -3px;
  background: #edf4fa;
}

.dataTables_wrapper .dataTables_filter {
  display: none;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-size: 13px;
  color: var(--muted);
}

th[title] {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.gene-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  padding: 22px;
}

.empty-card {
  color: var(--muted);
}

.gene-card-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--soft);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.gene-title {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.protein-name {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.badge.match {
  background: var(--success-soft);
  color: var(--success);
}

.badge.mismatch {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge.boundary {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge.neutral {
  background: #eef2f7;
  color: #334155;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.resource-links a,
.copy-link-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--accent);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.resource-links a:hover,
.copy-link-button:hover {
  background: var(--accent-soft);
  border-color: var(--accent-2);
}

.action-context {
  background: #f8fafc;
  border: 1px solid var(--soft);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.action-context h3 {
  margin: 0 0 10px;
}

.context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.context-item {
  background: #ffffff;
  border: 1px solid var(--soft);
  border-radius: 12px;
  padding: 12px;
}

.context-item span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.context-item strong {
  display: block;
  margin-top: 4px;
}

.context-note {
  margin: 12px 0 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--soft);
  border-radius: 14px;
  padding: 14px;
}

.metric-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.evidence-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.evidence-panel {
  background: #ffffff;
  border: 1px solid var(--soft);
  border-radius: 14px;
  padding: 16px;
}

.evidence-panel h3 {
  margin: 0 0 12px;
}

.profile-row {
  display: grid;
  grid-template-columns: 165px 1fr 54px;
  gap: 10px;
  align-items: center;
  margin: 9px 0;
}

.profile-label {
  font-size: 13px;
  color: var(--muted);
}

.profile-track {
  height: 10px;
  background: #e8edf3;
  border-radius: 999px;
  overflow: hidden;
}

.profile-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-2),
    #7fa2be
  );
}

.profile-value {
  text-align: right;
  font-weight: 800;
  font-size: 13px;
}

.annotation-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.annotation-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f4f8;
}

.annotation-list li:last-child {
  border-bottom: 0;
}

.annotation-list span {
  color: var(--muted);
}

.info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e8eef5;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  margin-left: 4px;
  cursor: help;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metadata-item {
  border: 1px solid var(--soft);
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}

.metadata-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metadata-item strong,
.metadata-item a {
  display: block;
  margin-top: 4px;
  word-break: break-word;
}

.citation-box {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f8fafc;
}

.citation-box h3 {
  margin: 0 0 5px;
}

.citation-box p {
  margin: 0;
  color: var(--muted);
}

.download-grid,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.download-card,
.doc-card {
  display: block;
  background: #fbfdff;
  border: 1px solid var(--soft);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
}

.download-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent-2);
}

.download-card strong,
.doc-card h3 {
  display: block;
  margin: 0 0 6px;
}

.download-card span,
.doc-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.disabled-link {
  opacity: 0.52;
  pointer-events: none;
}

.notice-box {
  margin-top: 20px;
  background: var(--warning-soft);
  border: 1px solid #f1d49c;
  border-radius: 14px;
  padding: 16px;
  color: #604213;
}

.site-footer {
  max-width: 1240px;
  margin: auto;
  padding: 26px 24px 50px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: #172033;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .header-inner,
  .intro-section,
  .evidence-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .stats-section,
  .card-grid,
  .download-grid,
  .doc-grid,
  .metadata-grid {
    grid-template-columns: 1fr 1fr;
  }

  .overview-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .badge-row {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 38px 20px;
  }

  main {
    padding: 22px 14px 42px;
  }

  .intro-section,
  .overview-section,
  .guide-section,
  .browser-section,
  .gene-card-section,
  .release-section,
  .downloads-section,
  .documentation-section {
    padding: 20px;
  }

  .quick-actions,
  .filter-panel,
  .stats-section,
  .card-grid,
  .download-grid,
  .doc-grid,
  .metadata-grid,
  .context-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .gene-card-header,
  .citation-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-row {
    grid-template-columns: 130px 1fr 48px;
  }
}


/* ============================================================
   Step 2G.1 revised final interface refinement
   ============================================================ */

.badge-row {
  align-items: flex-start;
  max-width: 680px;
}

.badge {
  white-space: nowrap;
}

.bar-item-header strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.profile-note {
  margin: -2px 0 14px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  border-left: 3px solid #b6c9d9;
  padding-left: 10px;
}

.profile-value,
.stat-number,
.metric-card strong {
  font-variant-numeric: tabular-nums;
}

/* Interactive information buttons */

.info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;
  min-width: 18px;

  margin-left: 5px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: #e5edf5;
  color: var(--accent);

  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;

  vertical-align: middle;
  cursor: help;
}

.info-dot:hover,
.info-dot[aria-expanded="true"] {
  background: var(--accent);
  color: #ffffff;
}

.info-dot:focus-visible {
  outline: 3px solid #8bb1ce;
  outline-offset: 2px;
}

/* Custom definition tooltip */

.info-tooltip {
  position: fixed;
  z-index: 10000;

  width: max-content;
  max-width: min(360px, calc(100vw - 24px));

  padding: 13px 15px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;

  background: #172033;
  color: #ffffff;

  box-shadow:
    0 14px 36px rgba(23, 32, 51, 0.28);

  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);

  transition:
    opacity 0.14s ease,
    transform 0.14s ease,
    visibility 0.14s ease;

  pointer-events: none;
}

.info-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.info-tooltip strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  color: #ffffff;
}

.tooltip-description {
  display: block;
  font-size: 13px;
  line-height: 1.48;
  color: #e4edf5;
}

.tooltip-source {
  display: block;
  margin-top: 8px;
  padding-top: 7px;

  border-top:
    1px solid rgba(255, 255, 255, 0.14);

  font-size: 11.5px;
  color: #b8cada;
}


/* ============================================================
   Step 2I protein-comparison mode
   ============================================================ */

.comparison-section {
  background: var(--panel);
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.comparison-action {
  background: #eef4f9;
  border-color: #bfd0df;
}

.comparison-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--soft);
  border-radius: 14px;
  background: #f8fafc;
}

.comparison-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-controls select {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
}

.comparison-controls select:focus-visible {
  outline: 3px solid #8bb1ce;
  outline-offset: 2px;
}

.comparison-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.comparison-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.comparison-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.comparison-status.error {
  color: var(--danger);
  font-weight: 700;
}

.comparison-status.success {
  color: var(--success);
  font-weight: 700;
}

.comparison-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 0;
}

.comparison-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf2f7;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.comparison-chip.same {
  background: var(--success-soft);
  color: var(--success);
}

.comparison-chip.different {
  background: var(--warning-soft);
  color: var(--warning);
}

.comparison-results {
  margin-top: 18px;
}

.empty-comparison {
  padding: 24px;
  border: 1px dashed #cbd6e2;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: #fbfdff;
}

.comparison-matrix-wrapper {
  overflow-x: auto;
  border: 1px solid var(--soft);
  border-radius: 14px;
  background: #ffffff;
}

.comparison-matrix {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-matrix caption {
  padding: 16px;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.comparison-matrix th,
.comparison-matrix td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--soft);
  text-align: left;
  vertical-align: top;
}

.comparison-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf3f8;
  color: var(--ink);
}

.comparison-matrix tbody th {
  width: 220px;
  min-width: 190px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.comparison-matrix tbody tr:last-child th,
.comparison-matrix tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-matrix tr.comparison-different td {
  background: #fffaf0;
}

.comparison-matrix tr.comparison-same td {
  background: #ffffff;
}

.comparison-gene-heading {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.comparison-protein-name {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.comparison-profile-heading {
  margin: 24px 0 12px;
}

.comparison-profile-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.comparison-profile-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(285px, 1fr));
  gap: 14px;
}

.comparison-profile-card {
  padding: 18px;
  border: 1px solid var(--soft);
  border-radius: 14px;
  background: #ffffff;
}

.comparison-profile-card h4 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.comparison-profile-card .comparison-card-protein {
  margin: 3px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.comparison-profile-card .badge-row {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.comparison-footer-note {
  margin: 16px 0 0;
  padding: 13px 15px;
  border-left: 4px solid #9ab6cb;
  border-radius: 8px;
  background: #f5f9fc;
  color: var(--muted);
  font-size: 12.5px;
}

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

@media (max-width: 680px) {
  .comparison-section {
    padding: 20px;
  }

  .comparison-actions {
    flex-direction: column;
  }

  .comparison-actions button {
    width: 100%;
  }
}


/* ============================================================
   Step 2J final usability and publication-interface enhancement
   ============================================================ */

/* Loading and failure states */

.browser-loading-status {
  position: sticky;
  top: 0;
  z-index: 12000;
  padding: 10px 18px;
  background: #e9f1f7;
  border-bottom: 1px solid #bed0df;
  color: #24415d;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.browser-loading-status.success {
  display: none;
}

.browser-loading-status.error {
  position: relative;
  background: var(--danger-soft);
  border-color: #efb8b8;
  color: var(--danger);
}

.noscript-notice {
  padding: 14px 18px;
  background: var(--warning-soft);
  border-bottom: 1px solid #efcf97;
  color: #604213;
  text-align: center;
  font-weight: 700;
}

/* Compact sticky navigation */

.section-navigation {
  position: sticky;
  top: 0;
  z-index: 1100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.section-navigation-inner {
  max-width: 1240px;
  margin: auto;
  padding: 9px 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.section-navigation a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.section-navigation a:hover,
.section-navigation a:focus-visible {
  background: var(--accent-soft);
}

/* Result count and active filters */

.filter-summary-bar {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--soft);
  border-radius: 12px;
  background: #fbfdff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

#resultCount {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px 5px 10px;
  border: 1px solid #cad8e4;
  border-radius: 999px;
  background: #eef4f8;
  color: #294862;
  font-size: 12px;
  font-weight: 750;
}

.filter-chip button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8e4ed;
  color: #294862;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.filter-chip button:hover,
.filter-chip button:focus-visible {
  background: var(--accent);
  color: #ffffff;
}

.compact-button {
  padding: 8px 11px;
  white-space: nowrap;
  font-size: 12px;
}

/* Consistent state and action visual language */

.atlas-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.state-label-a {
  background: #eeeaf7;
  color: #51437a;
}

.state-label-b {
  background: #e5f5f1;
  color: #236b61;
}

.state-label-c {
  background: #fff0dc;
  color: #8a5420;
}

.action-label-discovery {
  background: #edf0f8;
  color: #465a83;
}

.action-label-build {
  background: #e8f5ef;
  color: #27664e;
}

.action-label-monitor {
  background: #fff3e3;
  color: #85531f;
}

.state-label-neutral,
.action-label-neutral {
  background: #eef2f7;
  color: #334155;
}

/* Gene-card local actions and external-resource scope */

.external-resource-block {
  margin-top: 14px;
}

.external-resource-heading {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.external-resource-note {
  margin: 7px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.gene-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gene-record-actions button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--accent);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.gene-record-actions button:hover,
.gene-record-actions button:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-2);
}

/* Comparison refinements */

.comparison-difference-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.comparison-difference-toggle input {
  width: 16px;
  height: 16px;
}

.comparison-selected-proteins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.selected-protein-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 10px;
  border: 1px solid #cbd8e3;
  border-radius: 999px;
  background: #f0f5f9;
  color: #294862;
  font-size: 12px;
  font-weight: 800;
}

.selected-protein-chip button {
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8e4ed;
  color: #294862;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.selected-protein-chip button:hover,
.selected-protein-chip button:focus-visible {
  background: var(--danger);
  color: #ffffff;
}

.comparison-no-differences {
  padding: 20px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* DataTables empty-result language */

.dataTables_empty {
  padding: 28px !important;
  color: var(--muted);
  text-align: center !important;
}

/* Mobile refinement */

@media (max-width: 760px) {
  .filter-summary-bar {
    flex-direction: column;
  }

  .filter-summary-bar .compact-button {
    width: 100%;
  }

  .section-navigation-inner {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Print-friendly scientific record view */

@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 10pt;
  }

  .site-header,
  .section-navigation,
  .intro-section,
  .stats-section,
  .overview-section,
  .guide-section,
  .browser-section,
  .release-section,
  .downloads-section,
  .documentation-section,
  .site-footer,
  .browser-loading-status,
  .resource-links,
  .gene-record-actions,
  .comparison-controls,
  .comparison-actions,
  .comparison-status,
  .comparison-selected-proteins,
  .comparison-summary,
  .toast,
  .info-tooltip {
    display: none !important;
  }

  main {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .gene-card-section,
  .comparison-section {
    display: block;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .gene-card,
  .comparison-matrix-wrapper,
  .comparison-profile-card {
    border: 1px solid #999999;
    box-shadow: none;
    break-inside: avoid;
  }

  .comparison-matrix {
    min-width: 0;
    font-size: 8pt;
  }

  .comparison-matrix th,
  .comparison-matrix td {
    padding: 6px;
  }

  .profile-fill,
  .bar-fill {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  a {
    text-decoration: none;
  }
}

/* ============================================================
   Step 3H.2 publication-tier interface polish START
   ============================================================ */

/* Refined design tokens */
:root {
  --muted: #526176;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(23, 32, 51, 0.065);
}

/* More compact, editorial hero */
.site-header {
  padding: 44px 28px;
}

h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.032em;
}

.subtitle {
  max-width: 860px;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.58;
}

.version-card {
  min-width: 205px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.version-card strong {
  font-size: 26px;
  letter-spacing: -0.025em;
}

.version-label {
  text-transform: uppercase;
  letter-spacing: 0.065em;
  font-size: 11px;
  font-weight: 800;
}

/* Slightly tighter overview presentation */
.intro-section {
  padding: 26px;
}

/* Clear primary, secondary, and tertiary action hierarchy */
.quick-actions .action-button {
  border-radius: 10px;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.quick-actions .action-button:hover {
  transform: translateY(-1px);
}

.quick-actions .action-button.primary {
  box-shadow:
    0 4px 12px rgba(36, 65, 93, 0.18);
}

.quick-actions .action-button.primary:hover {
  box-shadow:
    0 6px 16px rgba(36, 65, 93, 0.20);
}

.quick-actions .action-button.comparison-action {
  background: var(--accent-soft);
  border-color: #c9d7e4;
  color: var(--ink);
}

.quick-actions .action-button.comparison-action:hover {
  background: #dfeaf3;
  border-color: var(--accent-2);
}

.quick-actions .action-button:nth-child(n + 3) {
  background: #ffffff;
  border-color: #dfe6ee;
  color: #2a384c;
  font-weight: 700;
}

.quick-actions .action-button:nth-child(n + 3):hover {
  background: #f5f8fb;
  border-color: #cbd8e5;
}

/* Consistent medium-component radii */
.overview-card,
.guide-card,
.gene-card,
.download-card,
.doc-card,
.filter-panel,
.notice-box,
.citation-box,
.context-item {
  border-radius: 14px;
}

/* Slightly more deliberate card spacing */
.guide-card {
  padding: 20px;
}

.stat-card {
  padding: 20px;
}

/* Improved readability for secondary text */
.intro-text p,
.section-intro,
.guide-card p,
.table-help,
.protein-name,
.download-card span,
.doc-card p,
.site-footer {
  color: var(--muted);
}

/* Preserve restrained state colours */
.guide-kicker {
  letter-spacing: 0.055em;
}

/* Compact mobile hero while preserving readability */
@media (max-width: 680px) {
  .site-header {
    padding: 32px 20px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  .subtitle {
    font-size: 16px;
  }

  .version-card {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   Step 3H.2 publication-tier interface polish END
   ============================================================ */

/* Step 3H.4B compact expression UI START */
.neural-context-section{margin-top:24px;padding:22px;border:1px solid #dfe6ee;border-radius:14px;background:#f8fafc}
.neural-context-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:8px}
.neural-context-header h3{margin:2px 0 0;color:var(--ink);font-size:20px}
.neural-context-kicker{margin:0;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.neural-overlay-badge{flex-shrink:0;padding:6px 9px;border:1px solid #cfdae5;border-radius:999px;background:#eef4f8;color:#3c566f;font-size:11px;font-weight:750}
.neural-context-intro{max-width:920px;margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.55}
.neural-context-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.neural-context-card{padding:16px;border:1px solid #dfe6ee;border-radius:12px;background:#fff;min-width:0}
.neural-context-source{display:block;margin-bottom:5px;color:#617186;font-size:10px;font-weight:800;letter-spacing:.065em;text-transform:uppercase}
.neural-context-card h4{margin:0 0 11px;color:var(--ink);font-size:16px}
.neural-context-metric{padding:8px 0;border-top:1px solid #edf1f5}
.neural-context-metric:first-of-type{padding-top:0;border-top:0}
.neural-context-metric span{display:block;margin-bottom:2px;color:var(--muted);font-size:11px}
.neural-context-metric strong{display:block;color:var(--ink);font-size:13px;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
.neural-context-integrated{display:flex;flex-direction:column}
.neural-context-score{margin:2px 0 12px;color:#244a69;font-size:38px;font-weight:760;letter-spacing:-.04em;line-height:1}
.neural-context-profile{margin-top:0}
.neural-context-integrated p{margin:auto 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.neural-context-footnote{margin:14px 0 0;padding-top:12px;border-top:1px solid #e2e8ef;color:var(--muted);font-size:11px;line-height:1.55}
.disease-context-details{margin-top:12px;border:1px solid #dfe6ee;border-radius:12px;background:#fff;overflow:hidden}
.disease-context-details summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;cursor:pointer;list-style:none;color:var(--ink);transition:background-color .15s ease}
.disease-context-details summary::-webkit-details-marker{display:none}
.disease-context-details summary:hover{background:#f7f9fb}
.disease-context-details summary:after{content:"+";flex-shrink:0;color:#67798b;font-size:20px;font-weight:400;line-height:1}
.disease-context-details[open] summary:after{content:"−"}
.disease-context-details summary>span:first-child{display:flex;flex-direction:column;gap:2px}
.disease-summary-kicker{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.075em;text-transform:uppercase}
.disease-context-details summary strong{font-size:14px}
.disease-summary-meta{margin-left:auto;color:var(--muted);font-size:11px;white-space:nowrap}
.disease-context-body{padding:16px;border-top:1px solid #e6ebf0;background:#fbfcfd}
.disease-context-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:7px}
.disease-context-heading>div{display:flex;flex-direction:column;gap:3px}
.disease-context-heading strong{color:var(--ink);font-size:14px;line-height:1.4}
.disease-context-facet{color:#52697d;font-size:10px;font-weight:800;letter-spacing:.065em;text-transform:uppercase}
.disease-reference{margin:0 0 13px;color:var(--muted);font-size:11px;line-height:1.5}
.disease-detection-badge,.disease-direction-badge{flex-shrink:0;padding:5px 8px;border:1px solid #d7dee6;border-radius:999px;background:#f4f6f8;color:#5a6571;font-size:10px;font-weight:750}
.disease-direction-badge{border-color:#dbcfae;background:#faf6e9;color:#725f2d}
.disease-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.disease-metric-grid>div{padding:10px;border:1px solid #e3e8ee;border-radius:9px;background:#fff}
.disease-metric-grid span{display:block;margin-bottom:3px;color:var(--muted);font-size:10px}
.disease-metric-grid strong{display:block;color:var(--ink);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.disease-aggregate-note{margin:12px 0 0;color:var(--muted);font-size:11px;line-height:1.55}
.disease-table-wrap{overflow-x:auto;border:1px solid #e2e7ed;border-radius:9px;background:#fff}
.disease-context-table{width:100%;border-collapse:collapse;font-size:11px}
.disease-context-table th,.disease-context-table td{padding:8px 10px;border-bottom:1px solid #edf0f3;text-align:left;white-space:nowrap}
.disease-context-table th{background:#f6f8fa;color:#526176;font-size:10px;font-weight:800;letter-spacing:.02em}
.disease-context-table tr:last-child td{border-bottom:0}
.disease-context-caution{margin:0;padding:0 16px 14px;color:#687788;font-size:10px;line-height:1.55}
@media(max-width:900px){.neural-context-grid{grid-template-columns:1fr}.disease-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.neural-context-section{padding:16px}.neural-context-header,.disease-context-heading{flex-direction:column}.neural-overlay-badge,.disease-detection-badge,.disease-direction-badge{align-self:flex-start}.disease-summary-meta{display:none}.disease-metric-grid{grid-template-columns:1fr}.disease-context-details summary{padding:13px}}
/* Step 3H.4B compact expression UI END */

/* Step 3H.4D publication polish START */
.neural-context-scale{display:block;margin:-7px 0 12px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.02em}
.disease-sign-convention{margin:0 0 12px;padding:8px 10px;border-left:2px solid #cbd8e4;background:#f5f8fa;color:#526176;font-size:10px;line-height:1.5}
.disease-context-table th{vertical-align:bottom}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0ms!important}}
/* Step 3H.4D publication polish END */
