/* Remove margin from body */
:root {
  --color-primary: #3b82f6;
  --color-primary-hover: #954abe;
  --color-accent: #3b82f6;
  --color-accent-soft: #dbeafe;
  --color-text-strong: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #cbd5e1;
  --color-surface: #f1f5f9;
  --color-card: #fff;
}

html, body {
  min-height: 100%;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family:
    Inter, "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-strong);
  background-color: var(--color-surface);
}

.main-content {
  flex: 1 0 auto;
}

.page-header {
  color: #fff;
  text-align: center;
  background-color: var(--color-primary);
  background-image: linear-gradient(120deg, #2563eb, #60a5fa);
  background-position-y: center;
}

.page-header a {
  color: inherit;
  font-weight: bold;
}

@media screen and (width >= 64em) {
  .page-header {
    padding: 5rem 6rem;
  }
}

@media screen and (width >= 42em) and (width <= 64em) {
  .page-header {
    padding: 3rem 4rem;
  }
}

@media screen and (width <= 42em) {
  .page-header {
    padding: 2rem 1rem;
  }
}

.project-name {
  margin-top: 0;
  margin-bottom: 0.1rem;
}

@media screen and (width >= 64em) {
  .project-name {
    font-size: 3.25rem;
  }
}

@media screen and (width >= 42em) and (width <= 64em) {
  .project-name {
    font-size: 2.25rem;
  }
}

@media screen and (width <= 42em) {
  .project-name {
    font-size: 1.75rem;
  }
}

.project-tagline {
  margin-bottom: 2rem;
  font-weight: normal;
  opacity: 0.9;
}

@media screen and (width >= 64em) {
  .project-tagline {
    font-size: 1.25rem;
  }
}

@media screen and (width >= 42em) and (width <= 64em) {
  .project-tagline {
    font-size: 1.15rem;
  }
}

@media screen and (width <= 42em) {
  .project-tagline {
    font-size: 1rem;
  }
}

.topnav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 84px;
  background-color: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 1.1rem 1.5rem;
  box-sizing: border-box;
  transition:
    min-height 0.25s ease,
    padding 0.25s ease,
    box-shadow 0.25s ease;
  z-index: 1000;
}

.topnav.nav-scrolled {
  min-height: 64px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 18px rgb(59 130 246 / 14%);
}

.topnav a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.logo-nav-container {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

#nav-logo {
  width: auto;
  height: 52px;
  display: block;
  transition: height 0.25s ease;
}

.topnav.nav-scrolled #nav-logo {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

@media screen and (width <= 42em) {
  .topnav {
    min-height: 68px;
    padding: 0.7rem 1rem;
    flex-wrap: wrap;
  }

  .topnav.nav-scrolled {
    min-height: 60px;
    padding: 0.65rem 1rem;
  }

  #nav-logo {
    height: 44px;
  }

  .topnav.nav-scrolled #nav-logo {
    height: 40px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--color-border);
  }

  .topnav.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    box-sizing: border-box;
  }
}

.heading-for-site {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-strong);
}

.main-content h2 {
  color: var(--color-primary-hover);
}

.main-content {
  overflow-wrap: break-word;
}

.main-content :first-child {
  margin-top: 0;
}

@media screen and (width >= 64em) {
  .main-content {
    max-width: 80rem;
    padding: 2rem 6rem;
    margin: 0 auto;
    font-size: 1.1rem;
  }
}

@media screen and (width >= 42em) and (width <= 64em) {
  .main-content {
    padding: 2rem 4rem;
    font-size: 1.1rem;
  }
}

@media screen and (width <= 42em) {
  .main-content {
    padding: 2rem 1rem;
    font-size: 1rem;
  }
}

.main-content img {
  max-width: 100%;
}

header h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  line-height: 1.3;
  color: var(--color-primary-hover);
}

.main-content h1,
.main-content h2,
.main-content h4,
.main-content h5,
.main-content h6 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--color-primary-hover);
  letter-spacing: 0.01em;
}

.main-content p {
  margin: 0 auto 1.2rem;
}

.main-content code {
  padding: 2px 4px;
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background-color: #e2e8f0;
  border-radius: 0.3rem;
}

.main-content pre {
  padding: 0.8rem;
  margin-top: 0;
  margin-bottom: 1rem;
  font:
    1rem Consolas,
    "Liberation Mono",
    Menlo,
    Courier,
    monospace;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  overflow: auto;
  overflow-wrap: normal;
  line-height: 1.45;
  background-color: #e2e8f0;
  border: solid 1px var(--color-border);
  border-radius: 0.3rem;
  -webkit-overflow-scrolling: touch;
}

.main-content pre > code {
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  word-break: normal;
  white-space: pre;
  background: transparent;
  border: 0;
}

.main-content .highlight {
  margin-bottom: 1rem;
}

.main-content .highlight pre {
  margin-bottom: 0;
  word-break: normal;
}

.main-content pre code,
.main-content pre tt {
  display: inline;
  max-width: initial;
  padding: 0;
  margin: 0;
  overflow: initial;
  line-height: inherit;
  overflow-wrap: normal;
  background-color: transparent;
  border: 0;
}

.main-content pre code::before,
.main-content pre code::after,
.main-content pre tt::before,
.main-content pre tt::after {
  content: normal;
}

.main-content ul,
.main-content ol {
  margin-top: 0;
}

.main-content blockquote {
  padding: 0 1rem;
  margin-left: 0;
  color: var(--color-text-muted);
  border-left: 0.3rem solid var(--color-border);
}

.main-content blockquote > :first-child {
  margin-top: 0;
}

.main-content blockquote > :last-child {
  margin-bottom: 0;
}

.main-content hr {
  height: 2px;
  padding: 0;
  margin: 1rem 0;
  background-color: #e2e8f0;
  border: 0;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
  font-size: 1.2rem;
}

.home-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 35%;
  padding: 5%;
}

.datasets-section-title {
  margin-top: 5rem;
}

.dataset-search-shell {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  padding: 1rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 14px rgb(15 23 42 / 5%);
}

.dataset-search-head h2 {
  margin: 0;
}

.dataset-search-head p {
  margin: 0.35rem 0 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.dataset-search-ui-wrap {
  display: flex;
  gap: 0.55rem;
}

.dataset-search-input {
  flex: 1;
  min-height: 44px;
  border-radius: 0.65rem;
  border: 1px solid var(--color-border);
  padding: 0 0.8rem;
  font-size: 0.95rem;
  color: var(--color-text-strong);
  background: var(--color-card);
}

.dataset-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 18%);
}

.dataset-search-clear {
  border: 1px solid var(--color-border);
  background: #eff6ff;
  color: var(--color-primary);
  border-radius: 0.65rem;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0 0.9rem;
  cursor: pointer;
}

.datasets-explorer {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.dataset-filters-panel {
  position: sticky;
  top: 84px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 0.9rem;
  max-height: calc(100vh - 120px);
  overflow: auto;
  box-shadow: 0 6px 14px rgb(15 23 42 / 6%);
}

.dataset-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.dataset-filters-head h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1rem;
}

#clear-dataset-filters {
  border: 1px solid var(--color-border);
  background: #eff6ff;
  color: var(--color-primary);
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.dataset-filter-group {
  margin-bottom: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 0.55rem;
  background-color: #fff;
  border-top: 2px solid rgb(59 130 246 / 20%);
}

.dataset-filter-group summary {
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.9rem;
  color: var(--color-primary-hover);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.dataset-filter-group summary::-webkit-details-marker {
  display: none;
}

.dataset-filter-group summary::after {
  content: "+";
  float: right;
  font-size: 1rem;
  line-height: 1;
  color: var(--color-primary);
}

.dataset-filter-group[open] summary::after {
  content: "−";
}

.dataset-filter-options {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.65rem 0.65rem;
}

.dataset-filter-options label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-text-strong);
  line-height: 1.3;
}

.dataset-filter-options input[type="checkbox"] {
  margin-top: 0.1rem;
}

.dataset-filter-options .filter-option-hidden {
  display: none;
}

.dataset-filter-options.filter-options-expanded .filter-option-hidden {
  display: flex;
}

.filter-options-toggle {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0;
  margin-top: 0.25rem;
  cursor: pointer;
  text-align: left;
}

.dataset-results-count {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.dataset-empty-state {
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fff, #eff6ff);
  border-radius: 0.7rem;
  padding: 0.8rem;
  margin-bottom: 0.85rem;
}

.dataset-empty-state p {
  margin: 0 0 0.5rem;
  color: var(--color-text-strong);
  font-size: 0.9rem;
}

.dataset-pagination {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.dataset-page-btn {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.dataset-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dataset-page-info {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.dataset-card-link[data-pagination-hidden="true"] {
  display: none !important;
}

#reset-empty-state {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.dataset-card-link {
  text-decoration: none;
}

.dataset-card-title a {
  text-decoration: none;
}

.dataset-card-link:focus-visible {
  outline: none;
}

.site-footer {
  display: block;
  margin-top: 3rem;
  padding: 2.5rem 1.25rem;
  margin-bottom: 0;
  background: linear-gradient(120deg, #1d4ed8, #3b82f6);
  color: #fff;
}

.site-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: start;
}

.footer-column {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
}

.footer-brand-logo {
  height: 56px;
  width: auto;
}

.footer-funding-text {
  margin-top: 0.9rem;
  margin-bottom: 0;
  color: rgb(255 255 255 / 90%);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-heading {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: rgb(255 255 255 / 90%);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

.footer-partner-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0.45rem;
  justify-content: start;
}

.footer-partner-logo {
  width: auto;
  max-width: 120px;
  height: 42px;
  object-fit: contain;
  display: block;
}

@media screen and (width <= 64em) {
  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand-column {
    grid-column: 1 / -1;
  }
}

@media screen and (width <= 42em) {
  .site-footer {
    padding: 2rem 1rem;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-partner-logos {
    grid-template-columns: repeat(3, max-content);
  }
}

.dataset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card-thumb {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
}

.card-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to top, rgb(22 33 64 / 12%), rgb(22 33 64 / 0%));
  pointer-events: none;
}

.card-body {
  width: 100%;
  min-height: 350px;
  padding: 0;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgb(20 33 61 / 6%);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.dataset-card-link:hover .card-body {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 14px 28px rgb(15 23 42 / 14%);
}

.dataset-card-link:focus-visible .card-body {
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 3px rgb(59 130 246 / 18%),
    0 14px 28px rgb(15 23 42 / 12%);
}

.img-thumb {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.dataset-card-details {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-access-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: rgb(59 130 246 / 92%);
  z-index: 2;
  max-width: 78%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 8px;
  color: var(--color-primary-hover);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
}

.card-short-name {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 1;
}

.card-description {
  color: var(--color-text-strong);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
}

.card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.stat-value {
  font-weight: 600;
  color: var(--color-text-strong);
  font-size: 1rem;
}

.card-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.keyword-tag {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

header {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgb(20 33 61 / 5%);
}

.meta {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
}

.panel {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--color-border);
  border-top: 2px solid rgb(59 130 246 / 18%);
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgb(15 23 42 / 5%);
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: var(--color-text-strong);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 8px;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.thumbs img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  transition: transform 0.2s;
}

dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px 16px;
  margin: 0;
}

dt {
  font-weight: 600;
  color: var(--color-text-strong);
}

dd {
  margin: 0;
  color: var(--color-text-muted);
}

.list-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.tag {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  display: inline-block;
}

pre.policy {
  white-space: pre-wrap;
  max-height: 300px;
  overflow: auto;
  background: #f8fafc;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  line-height: 1.5;
}

.dataset-info-table {
  width: 100%;
  border-collapse: collapse;
}

.dataset-info-table tr:nth-child(even) {
  background: rgb(59 130 246 / 3%);
}

.dataset-info-table th,
.dataset-info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.dataset-info-table th {
  width: 220px;
  max-width: 220px;
  font-weight: 600;
  color: var(--color-text-strong);
  background: rgb(148 163 184 / 8%);
  padding-right: 10px;
}

.dataset-info-table td {
  color: var(--color-text-muted);
}

.collapsible-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.collapsible-item {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(59 130 246 / 8%);
  color: var(--color-text-strong);
  font-size: 0.85rem;
  line-height: 1.4;
}

.collapsible-toggle {
  display: inline-block;
  margin-top: 6px;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
}

.collapsible-toggle:hover {
  text-decoration: underline;
}

.dataset-information {
  font-size: 100px;
}

.panel button {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.panel button:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.dataset-example-images {
  padding-left: 0;
}

.dataset-example-images::after {
  content: ".";
  visibility: hidden;
  display: block;
  height: 0;
  clear: both;
}

.dataset-example-images > li {
  border: 1px solid transparent;
  float: left;
  height: calc(100% / 5);
  margin: 0 -1px -1px 0;
  overflow: hidden;
  width: calc(100% / 5);
}

.datasets-cards-parent-container {
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  max-width: 80rem;
}

.dataset-card-top-section {
  display: flex;
  padding: 0.5rem;
}

.dataset-card-image {
  max-height: 100px;
  max-width: 200px;
}

.dataset-card-image img {
  max-width: 200px;
}

.dataset-example-images > li > img {
  cursor: zoom-in;
}

.dataset-card-bottom-section {
  margin-top: 1rem;
  padding: 0.5rem;
}

.dataset-card-title {
  margin-left: 25px;
  text-decoration: none;
}

@media screen and (width <= 64em) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (width <= 42em) {
  .dataset-search-shell {
    padding: 0.85rem;
  }

  .dataset-search-head p {
    font-size: 0.88rem;
  }

  .dataset-search-ui-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .datasets-section-title {
    margin-top: 3rem;
  }

  .datasets-explorer {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .dataset-filters-panel {
    position: static;
    max-height: none;
  }

  .dataset-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dataset-pagination {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .card-thumb {
    height: 170px;
  }

  .card-access-badge {
    font-size: 0.68rem;
    padding: 4px 7px;
  }

  .card-body {
    min-height: 0;
  }
}

.staining-item-hidden {
  display: none;
}

.thumbs img:hover {
  transform: scale(1.05);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background-color: #eff6ff;
  color: var(--color-primary-hover);
  outline: none;
}

.stainings-toggle-text {
  cursor: pointer;
  text-decoration: underline;
}
