body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 24px;
  background: #fafafa;
  color: #222;
}

h1 {
  margin-bottom: 0.25rem;
}

.subtitle {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: #555;
}

/* Styling for subsection titles within combined sections */
.title.is-4 {
  color: #363636;
  font-weight: 600;
}

.set-buttons {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* Blue highlight for specific 4D method names */
.method-name-4d {
  color: #4a90e2;
  font-weight: 600;
}

/* Shared button style */
.set-buttons button {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  background: #f5f5f5;
  font-size: 0.9rem;
}

.set-buttons button:hover {
  background: #e9e9e9;
}

.set-buttons .set-button.active {
  background: #ddd;
  font-weight: 600;
}

.video-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Each set contains 3 video rows */
.video-set {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.video-set.active {
  display: flex;
}

.header-row,
.video-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.header-row {
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.header-cell {
  padding: 4px 2px;
}

.video-row .cell {
  background: #fdfdfd;
}

video {
  width: 100%;
  display: block;
  border-radius: 0;
  border: 1px solid #ddd;
  background: #000;
  cursor: pointer;
}

@media (max-width: 900px) {

  .header-row,
  .video-row {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .header-row::after {
    content: "Scroll horizontally on small screens.";
    grid-column: 1 / -1;
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
  }
}
