@import "tailwindcss";

/* Markdown rendered exercise descriptions */
.prose-exercise {
  line-height: 1.75;

  p {
    margin-bottom: 0.75em;
  }

  h1, h2, h3, h4 {
    font-weight: 700;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    color: white;
  }

  h1 { font-size: 1.5em; }
  h2 { font-size: 1.25em; }
  h3 { font-size: 1.125em; }

  ul, ol {
    padding-left: 1.5em;
    margin-bottom: 0.75em;
  }

  ul { list-style-type: disc; }
  ol { list-style-type: decimal; }

  li {
    margin-bottom: 0.25em;
  }

  code {
    background-color: var(--color-gray-800);
    padding: 0.125em 0.375em;
    border-radius: 0.25em;
    font-size: 0.875em;
    font-family: ui-monospace, monospace;
  }

  pre {
    background-color: var(--color-gray-800);
    padding: 1em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin-bottom: 0.75em;
  }

  pre code {
    background-color: transparent;
    padding: 0;
  }

  blockquote {
    border-left: 3px solid var(--color-gray-600);
    padding-left: 1em;
    color: var(--color-gray-400);
    margin-bottom: 0.75em;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.75em;
  }

  th, td {
    border: 1px solid var(--color-gray-700);
    padding: 0.5em 0.75em;
    text-align: left;
  }

  th {
    background-color: var(--color-gray-800);
    font-weight: 600;
  }

  a {
    color: var(--color-blue-400);
    text-decoration: underline;
  }

  strong {
    font-weight: 700;
    color: white;
  }

  hr {
    border-color: var(--color-gray-700);
    margin: 1.5em 0;
  }
}
