.dataset-switcher {
  max-width: 72rem;
}

.dataset-switcher .row > * {
  display: flex;
}

.dataset-card-link {
  color: inherit;
  display: block;
  height: 100%;
  text-decoration: none;
  width: 100%;
}

.dataset-card {
  border: 1px solid var(--bs-border-color);
  width: 100%;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.dataset-card:hover {
  border-color: var(--dataset-accent);
  transform: translateY(-2px);
}

.dataset-card.active {
  background: linear-gradient(135deg, var(--dataset-surface), transparent 68%);
  border-color: var(--dataset-accent);
  box-shadow: 0 0 0 0.2rem var(--dataset-glow);
}

.dataset-card-icon {
  align-items: center;
  background: var(--dataset-surface);
  border-radius: 0.75rem;
  color: var(--dataset-accent-strong);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.dataset-kicker {
  color: var(--dataset-accent-strong);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dataset-chip {
  background: var(--dataset-surface);
  border: 1px solid var(--dataset-glow);
  border-radius: 999px;
  color: var(--dataset-accent-strong);
  display: inline-flex;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.35rem 0.75rem;
}

.narrative {
  max-width: 40rem;
}

.cursor-pointer {
  cursor: pointer;
}

.table .selected-cell {
  background-color: var(--bs-body-color);
}

/* Style the chord diagram */
#chord {
  /* Keep font slightly small to avoid long contract filenames going too far out */
  text {
    font-size: 0.8rem;
  }

  /* A slight transparency shows reds and greens through each other */
  path {
    fill-opacity: 0.5;
  }

  /* When hovering over a chord, we enter focus mode */
  .focus-mode {
    /* By default, hide everything */
    path,
    text {
      fill-opacity: 0.05;
    }

    /* ... except the active chord */
    path.active,
    text.active {
      fill-opacity: 1;
    }
  }
}

@media (max-width: 1200px) {
  .doc-name {
    max-width: 20rem;
  }
}
