/* Experiments page styles */
.experiments-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(var(--columns, 1), 1fr);
}

/* Cover image styles */
.cover-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Responsive columns */
@media (max-width: 640px) {
  .experiments-grid {
    --columns: 1;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .experiments-grid {
    --columns: 2;
  }
}

@media (min-width: 1025px) {
  .experiments-grid {
    --columns: 3;
  }
}

/* Override with frontmatter columns if specified */
.experiments-grid[data-columns="1"] {
  --columns: 1;
}

.experiments-grid[data-columns="2"] {
  --columns: 2;
}

.experiments-grid[data-columns="3"] {
  --columns: 3;
}

/* ---------- Grundlæggende tabelstruktur ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-family: "Inter", sans-serif;
  color: #1a1a1a; /* mørk tekstfarve */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ---------- Header styling ---------- */
table thead th {
  background-color: #0f1f3a; /* mørkeblå header */
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 0.85em 1em;
  border-bottom: 2px solid #4a90e2;
}

/* ---------- Celle styling ---------- */
table tbody td {
  background-color: #ffffff;
  padding: 0.75em 1em;
  border-bottom: 1px solid #e3e3e3;
  font-size: 0.95rem;
}

/* ---------- Zebra-striber for rækker ---------- */
table tbody tr:nth-child(even) td {
  background-color: #f9f9f9;
}

/* ---------- Hover-effekt ---------- */
table tbody tr:hover td {
  background-color: #ebf5ff;
  transition: background-color 0.15s ease-in-out;
}

/* ---------- Links i tabellen ---------- */
table tbody td a {
  color: #0047bb;
  text-decoration: none;
  font-weight: 500;
}
table tbody td a:hover {
  text-decoration: underline;
}

/* ---------- Responsive container ---------- */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5em;
}

/* ---------- Caption styling (hvis du bruger caption) ---------- */
table caption {
  caption-side: top;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #0f1f3a;
}
