/*
 * Custom components and overrides that are not practical to express
 * with Tailwind utility classes.
 */

/* Repo module matrix: sticky first column */
.grid-sticky th:first-child,
.grid-sticky td:first-child {
  position: sticky;
  left: 0;
  background-color: var(--color-surface);
  z-index: 10;
}

.grid-sticky th:first-child {
  z-index: 20;
}

/* README / markdown rendering */
.markdown-body {
  font-size: var(--text-sm);
  line-height: 1.625;
  color: var(--color-text);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  font-weight: var(--font-semibold);
  margin: 1em 0 0.5em;
}

.markdown-body h1 {
  font-size: var(--text-2xl);
}
.markdown-body h2 {
  font-size: var(--text-xl);
}
.markdown-body h3 {
  font-size: var(--text-lg);
}

.markdown-body ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin: 0.5em 0;
}

.markdown-body code {
  background-color: var(--color-gray-100);
  padding: 0.1em 0.3em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  font-family: var(--font-mono);
}

.markdown-body pre {
  background-color: var(--color-gray-100);
  padding: 0.75em;
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.markdown-body a {
  color: var(--color-link);
  text-decoration: underline;
}

.markdown-body a:hover {
  color: var(--color-link-hover);
}

.markdown-body blockquote {
  border-left: 3px solid var(--color-gray-300);
  padding-left: 0.75em;
  color: var(--color-text-muted);
  margin: 0.5em 0;
}
