
/* 1. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* 2. VARIABLES */
:root {
  /* ── Brand palette (UK DRI) ── */
  --blue-dark:   #00326e; /* accessible text */
  --grey-light:  #c4d1d9;
  --grey-dark:   #415767; /* accessible text */
  --blue-sky:    #0ac8ff;
  --blue-petrol: #007faf; /* large text only */
  --blue-bright: #4682ff; /* large text only */
  --blue-cobalt: #325ad7; /* large text only */
  --violet:      #461e8c; /* accessible text */
  --fuchsia:     #e1235c;
  --ruby:        #aa0050; /* accessible text */
  --yellow:      #ffed00;

  /* Neutrals */
  --white: #ffffff;
  --black: #000000;

  /* ── Semantic tokens ── */
  /* ── Core UI ── */
  --bg: var(--white);
  --surface: var(--white);
  --surface-alt: var(--grey-light);

  --border: var(--grey-light);
  --border-strong: var(--grey-dark);

  /* ── Text ── */
  --text: var(--blue-dark);
  --text-subtle: var(--grey-dark);
  --muted: var(--grey-dark);

  /* ── Brand usage ── */
  --primary: var(--blue-dark);
  --primary-soft: rgba(0, 50, 110, 0.08);

  --secondary: var(--violet);
  --secondary-soft: rgba(70, 30, 140, 0.08);

  --tertiary: var(--blue-cobalt);
  --tertiary-soft: rgba(50, 90, 215, 0.08);

  --highlight: var(--yellow);
  --highlight-soft: rgba(255, 237, 0, 0.08);

  --secondary-highlight: var(--fuchsia);
  --secondary-highlight-soft: rgba(225, 35, 92, 0.08);

  --tertiary-highlight: var(--ruby);
  --tertiary-highlight-soft: rgba(170, 0, 80, 0.08);

  --disabled: var(--grey-dark);
  --disabled-soft: rgba(65, 87, 103, 0.12);

  /* ── Non-text / decorative colours ── */
  --info: var(--blue-sky);
  --info-soft: rgba(10, 200, 255, 0.08);
  --accent-alt: var(--blue-cobalt);
  --accent-warm: var(--fuchsia);
  --warning: var(--yellow);

  /* ── Status ── */
  --success: var(--blue-sky);
  --success-soft: rgba(10, 200, 255, 0.1);
  --danger: #dc2626;

  /* ── Radius ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
}

/* 3. BASE */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* 4. HEADER */
header {
    background: var(--primary); color: var(--white);
    padding: 1.1rem 1rem; display: flex; align-items: center; gap: 0.8rem;
}
header h1 { font-size: 1.25rem; font-weight: 700; }
.header-title {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-link:hover {
  opacity: 0.85;
}
.ukdri-logo {
  height: 67px;
  width: auto;
  object-fit: contain;
  display: block;
}
.ddn-icon {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.top-nav {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}
.nav-link {
  cursor: pointer;
  color: #cbd5e1;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav-link:hover {
  color: #ffffff;
  border-bottom: 1px solid #60a5fa;
}

#modal-body {
  overflow-y: auto;
  padding: 1.5rem;
  flex: 1;
}
.modal-wide {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: normal;

  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.6;
}
.modal-wide h2 {
  margin-top: 0;
}
.modal-wide p {
  margin-bottom: 1rem;
}
.modal-wide video {
  width: 100%;
  height: auto;
  max-height: 60vh;
  border-radius: 10px;

  object-fit: contain;
  background: black;
}

/* 5. LAYOUT */
main {
  width: 100%;

  max-width: none;

  margin: 1.5rem 0;

  padding: 0 1.25rem;
}

.layout {
  display: grid;

  grid-template-columns:
    minmax(220px, 280px)
    minmax(0, 1fr);

  gap: 1.5rem;

  align-items: start;

  width: 100%;
}
.sidebar {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1rem;
  height: fit-content;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sidebar-column {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  min-width: 0;
  gap: 1.25rem;
}
.sidebar-column .sidebar {
  margin-bottom: 0.5rem;
}
.sidebar-column .sidebar:last-child {
  margin-bottom: 0;
}
.clear-sidebar {
  border: none;
  box-shadow: none;
  padding: 0.25rem 0.5rem;
  background: transparent;
}
.content {
  grid-column: 2;

  width: 100%;

  min-width: 0;
}

/* filters */
.collapsible h4 {
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
}
.filter-group {
  margin-bottom: 1.2rem;
}
.filter-group h4 {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.filter-group label {
  display: block;
  font-size: 0.85rem;
  margin: 0.2rem 0;
  cursor: pointer;
}
.filter-options.hidden {
  display: none;
}

/* chevron */
.chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}
.chevron.open {
  transform: rotate(90deg);
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.external-icon {
  display: inline-flex;
  align-items: center;
}

.external-icon svg {
  display: block;
  flex-shrink: 0;
}

/* footer */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem;
  border-top: 1px solid var(--white);
  text-align: center;
}

.partner-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1rem;
}

.partner-logos img {
  height: 100px;
  width: auto;
}

/* 6. SEARCH */
.search-bar {
  display: flex;

  gap: .75rem;

  margin-bottom: 1.25rem;

  width: 100%;
}
.search-bar input {
    flex: 1; padding: .65rem 1rem;
    border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 1rem;
}
.search-bar input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(10, 200, 255, 0.2);
}
.search-bar button {
    padding: .65rem 1.4rem; background: var(--primary); color: var(--white);
    border: none; border-radius: var(--radius-md); font-size: 1rem; cursor: pointer;
}
.search-bar button:hover {
    background: var(--accent-alt);
}
mark {
  background: var(--highlight);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}
.td-snippet {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.dataset-highlight {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
/* ── Meta row ── */
.meta-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; font-size: .88rem; color: var(--muted);
}
.meta-row select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .28rem .5rem; }
.meta-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Dataset/Paper view toggle */

.view-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.view-btn {
  padding: 0.45rem 0.85rem;

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  background: var(--surface);

  color: var(--text);

  font-size: 0.84rem;
  font-weight: 500;

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.view-btn:hover {
  background: var(--primary-soft);
}

.view-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Dataset-only results */

.dataset-only-wrapper {
  margin-bottom: 1rem;
}

.dataset-paper-ref {
  padding: 0.75rem 1rem;

  margin-bottom: 0.5rem;

  background: var(--primary-soft);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);
}

.dataset-paper-ref strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.paper-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.per-page-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toolbox-filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;

  cursor: pointer;

  user-select: none;

  font-size: 0.84rem;

  color: var(--text-subtle);
}
.toolbox-filter-toggle input {
  display: none;
}
.toolbox-filter-toggle .slider {
  position: relative;

  width: 42px;
  height: 24px;

  background: var(--grey-light);

  border-radius: 999px;

  transition: background 0.2s ease;
}
.toolbox-filter-toggle .slider::before {
  content: "";

  position: absolute;

  width: 18px;
  height: 18px;

  left: 3px;
  top: 3px;

  background: white;

  border-radius: 50%;

  transition: transform 0.2s ease;
}
.toolbox-filter-toggle input:checked + .slider {
  background: var(--blue-cobalt);
}
.toolbox-filter-toggle input:checked + .slider::before {
  transform: translateX(18px);
}
.toggle-label {
  font-weight: 500;
}

/* 6. TABLE */
/* ── Results table ── */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);

  border-radius: var(--radius-md);
  overflow: hidden;

  box-shadow: 0 4px 18px rgba(0,0,0,.05);

  table-layout: fixed;
}
thead th {
    background: var(--bg); padding: .75rem 1rem;
    text-align: left; font-size: .76rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
    border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover:not(:has(.btn:hover)) > td {
  background: var(--primary-soft);
  cursor: pointer;
}
/* Don't hover-highlight the expanded dataset section rows */
tbody tr.dataset-section:hover > td { background: none; cursor: default; }
td { padding: .7rem 1rem; vertical-align: top; font-size: .88rem; }
.td-title { font-weight: 600; color: var(--secondary); }
.td-authors { color: var(--muted); font-size: .78rem; max-width: 240px;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
    display: inline-block; padding: .15rem .55rem;
    border-radius: 999px; font-size: .72rem; font-weight: 600;
    background: var(--tertiary-soft); color: var(--tertiary);
}
td, th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

td {
  min-width: 0;
}

/* 7. DATASET UI */
/* ── Dataset section (expandable row beneath each paper row) ── */
.dataset-section td { padding: 0; background: var(--surface); }
.dataset-section-inner { padding: 1rem 1.2rem 1.2rem; }
.dataset-section h4 {
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted); margin-bottom: .75rem;
}

/* ── Dataset card ── */
.dataset-card {
  border: 1px solid rgba(0,0,0,0.06);

  border-radius: 14px;

  background: var(--surface);

  margin-bottom: 1rem;

  overflow: hidden;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;

  box-shadow:
    0 2px 6px rgba(0,0,0,0.04),
    0 10px 24px rgba(0,0,0,0.03);
}
.dataset-card:hover:not(:has(.btn:hover, a:hover)) {
  transform: translateY(-2px);

  border-color: rgba(50, 90, 215, 0.25);

  box-shadow:
    0 6px 18px rgba(0,0,0,0.06),
    0 16px 36px rgba(0,0,0,0.06);

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,1),
    rgba(245,248,255,1)
  );
}
.dataset-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  width: 100%;
}
.dataset-card-header .ds-info {
  flex: 1;
  min-width: 0;
}
.dataset-card-header h5 {
    font-size: .9rem; font-weight: 600; margin-bottom: .25rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dataset-card-header p { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.ds-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.tag {
    font-size: .72rem; padding: .18rem .55rem;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--primary);
}

.toolbox-panel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;

  margin-top: 0.4rem;
  padding-right: 0.25rem;

  opacity: 1;
  transform: translateY(0);

  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.toolbox-panel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;

  margin-top: 0.4rem;
  padding-right: 0.25rem;

  /* animation setup */
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.toolbox-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toolbox-panel.open .btn,
.toolbox-panel.open a {
  animation: toolboxFadeIn 0.25s ease both;
}

.toolbox-panel.open .btn:nth-child(1),
.toolbox-panel.open a:nth-child(1) { animation-delay: 0.02s; }

.toolbox-panel.open .btn:nth-child(2),
.toolbox-panel.open a:nth-child(2) { animation-delay: 0.06s; }

.toolbox-panel.open .btn:nth-child(3),
.toolbox-panel.open a:nth-child(3) { animation-delay: 0.10s; }

@keyframes toolboxFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Action buttons area on the right of the card header */
.ds-actions {
  display: flex;
  flex-direction: column;

  gap: 0.55rem;

  align-items: flex-end;

  flex-shrink: 0;

  width: fit-content;

  max-width: 100%;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: .42rem;

  padding: .55rem .9rem;

  border-radius: 10px;

  font-size: .78rem;
  font-weight: 600;

  cursor: pointer;

  border: 1px solid transparent;

  white-space: normal;

  text-align: center;

  line-height: 1.3;

  transition:
    background .16s ease,
    color .16s ease,
    border-color .16s ease,
    transform .16s ease,
    box-shadow .16s ease;
}
.btn:hover { opacity: .85; }
.btn-clusters {
    background: var(--secondary-soft);
    color: var(--secondary);
    border-color: var(--secondary);
    transition: all .15s ease;
}
.btn-clusters:hover {
    background: var(--secondary);
    color: var(--white);
}
.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
.btn-clusters:disabled {
    background: var(--disabled-soft);
    color: var(--disabled);
    border-color: var(--disabled);
}
.btn-clusters.active {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
.btn-link {
    background: var(--primary-soft); color: var(--primary);
    border-color: var(--primary); text-decoration: none;
}

.clear-btn {
  width: 100%;
  padding: 6px 8px;
  margin-bottom: 0px;
  border: 1px solid var(--accent-warm);
  background: var(--surface);
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.clear-btn:hover {
  background: var(--accent-warm);
}

.output-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.output-tab {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.output-tab.active {
  font-weight: 600;
}
.output-output-section.hidden {
  display: none;
}

.download-section {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-toolbox {
  background: var(--secondary-highlight-soft);
  color: var(--secondary-highlight);
  border-color: var(--secondary-highlight);
}
.btn-toolbox:hover {
  background: var(--secondary-highlight);
  color: var(--white);
}
.btn-toolbox.active {
  background: var(--secondary-highlight);
  color: var(--white);
}
.btn-toolbox:disabled {
  background: var(--disabled-soft);
  color: var(--disabled);
  border-color: var(--disabled);
}

/* 8. CLUSTERS */
/* ── Cluster panel (inside dataset card) ── */
.cluster-panel {
    border-top: 1px solid var(--border);
    padding: .85rem 1rem;
    background: var(--white);
}
.cluster-panel-loading { color: var(--muted); font-size: .82rem; }
.cluster-panel-error   { color: var(--danger); font-size: .82rem; }

/* Analysis block */
.analysis-block { margin-bottom: 1rem; }
.analysis-block:last-child { margin-bottom: 0; }
.analysis-meta {
    font-size: .76rem; color: var(--muted); margin-bottom: .5rem;
    display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
}
.analysis-meta strong { color: var(--text); font-size: .82rem; }

/* Cluster accordion */
.cluster-accordion { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: .4rem; }
.cluster-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .5rem .85rem; background: var(--bg);
    cursor: pointer; font-size: .83rem; font-weight: 600;
    user-select: none;
}
.cluster-header:hover { background: var(--primary-soft); }
.cluster-header-left { display: flex; align-items: center; gap: .6rem; }
.cluster-header-actions { display: flex; gap: .4rem; align-items: center; }
.btn-datamap {
    padding: .28rem .65rem; font-size: .72rem; font-weight: 600;
    background: var(--info-soft);
    color: var(--primary);
    border: 1px solid var(--info);
    border-radius: 5px;
    cursor: pointer; display: inline-flex; align-items: center; gap: .3rem;
    transition: background .15s;
    text-decoration: none;
}
.btn-datamap:hover { background: var(--info); }
.btn-datamap.sending { opacity: .6; cursor: default; }
.btn-datamap.sent { background: var(--success-soft); color: var(--success); border-color: var(--color-success); }
.chevron { transition: transform .2s; font-size: .7rem; color: var(--muted); }
.chevron.open { transform: rotate(90deg); }

/* Gene table inside cluster */
.gene-table-wrap { overflow-x: auto; }
.gene-table {
    width: 100%; border-collapse: collapse; font-size: .78rem;
}
.gene-table th {
    background: var(--surface); padding: .35rem .7rem;
    border-bottom: 1px solid var(--border); text-align: left;
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted);
}
.gene-table td { padding: .32rem .7rem; border-bottom: 1px solid var(--secondary-soft); }
.gene-table tr:last-child td { border-bottom: none; }
.gene-table tr:hover td { background: var(--primary-soft); }
.gene-name { font-weight: 600; color: var(--text); }
.num { font-variant-numeric: tabular-nums; color: var(--muted); }
.logfc-pos { color: var(--success); }
.logfc-neg { color: var(--danger); }


/* ── Pagination ── */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: .5rem; margin-top: 1.4rem;
}
.pagination button {
    padding: .4rem .9rem; border: 1px solid var(--border);
    border-radius: var(--radius-md); background: var(--surface);
    cursor: pointer; font-size: .88rem;
}
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination .page-info { font-size: .88rem; color: var(--muted); }

/* 9. MODAL */
/* ── Paper modal ── */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 50, 110, 0.35); z-index: 100;
    padding: 2rem 1rem; overflow-y: auto;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.modal {
    background: var(--surface); border-radius: var(--radius-md);
    padding: 2rem; max-width: 820px; width: 100%;
    position: relative; box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.modal h2 { font-size: 1.1rem; margin-bottom: .4rem; }
.modal .subtitle { color: var(--muted); font-size: .83rem; margin-bottom: 1.1rem; }
.modal h3 { font-size: .95rem; margin: 1.3rem 0 .55rem; }
.close-btn {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: var(--muted);
}

/* 10. UTILITIES */
/* ── Misc ── */
.message { text-align: center; padding: 3rem; color: var(--muted); }
a { color: var(--primary); }
.hidden { display: none !important; }

/* DataMap toast */
#toast {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    background: var(--accent-warm); color: var(--white);
    padding: .7rem 1.2rem; border-radius: var(--radius-md);
    font-size: .85rem; opacity: 0; transition: opacity .3s;
    pointer-events: none; z-index: 9999; max-width: 320px;
}
#toast.show { opacity: 1; }

/* ─────────────────────────────────────────────
   Responsive Design
/* ────────────────────────────────────────────── */

@media (max-width: 1200px) {

  .layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

}

@media (max-width: 980px) {

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

  .sidebar-column {
    position: relative;
    top: auto;

    max-height: none;
    overflow: visible;
  }

  .content {
    grid-column: 1;
  }

  .dataset-card-header {
    flex-direction: column;
  }

  .ds-actions {
    width: 100%;
    min-width: 0;
  }

}

@media (max-width: 768px) {

  main {
    padding: 0 0.75rem;
  }

  header {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  header h1 {
    font-size: 1rem;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar button {
    width: 100%;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    border-bottom: 2px solid var(--border);
    padding: 0.5rem 0;
  }

  td {
    display: flex;
    justify-content: space-between;

    gap: 1rem;

    padding: 0.5rem 0.75rem;

    font-size: 0.82rem;
  }

  td::before {
    font-weight: 700;
    color: var(--muted);
    min-width: 90px;
  }

  td:nth-child(1)::before { content: "Title"; }
  td:nth-child(2)::before { content: "Authors"; }
  td:nth-child(3)::before { content: "Year"; }
  td:nth-child(4)::before { content: "Journal"; }
  td:nth-child(5)::before { content: "Datasets"; }
  td:nth-child(6)::before { content: "Omics"; }
  td:nth-child(7)::before { content: "Conditions"; }

  .modal {
    padding: 1.2rem;
  }

  .cluster-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .cluster-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

}