/* Markdown styles */

.markdown {
    font-size: 1em;
    line-height: 1.625;
}

.markdown h1 {
    font-size: 2.25em;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.markdown h2 {
    font-size: 1.875em;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.markdown h3 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.markdown h4 {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.markdown h5 {
    font-size: 1.125em;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.markdown h6 {
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.markdown p {
    margin-bottom: 1em;
}

.markdown p:first-child {
    margin-top: 0;
}

.markdown p:last-child {
    margin-bottom: 0;
}

.markdown a {
    color: hsl(var(--color-primary));
    text-decoration: underline;
}

.markdown blockquote {
    border-left: 4px solid hsl(var(--color-secondary));
    padding-left: 1em;
    margin-bottom: 1em;
}

.markdown code {
    background-color: hsl(var(--color-background));
    color: hsl(var(--color-foreground));
    border-radius: 0.125rem;
    padding: 0.25em;
}

.markdown pre {
    background-color: hsl(var(--color-background));
    color: hsl(var(--color-foreground));
    border-radius: var(--radius-sm);
    padding: 1em;
    overflow-x: auto;
    max-width: 100%;
    width: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 1em;
}

.markdown hr {
    border: 0;
    border-top: 2px solid hsl(var(--color-secondary));
    margin: 1em 0;
}

.markdown table {
    border-spacing: 2px;
    background-color: hsl(var(--color-primary) / 15%);
    border-radius: calc(var(--radius) + 1px);
    overflow-x: auto;
    max-width: 100%;
    width: fit-content;
    white-space: nowrap;
    display: block;
    margin: 1em 0;
}

.markdown table th {
    padding: 0.5em 1em;
}

.markdown table thead tr {
    background-color: hsl(var(--color-background)) !important;
}

.markdown table th:first-child {
    border-top-left-radius: var(--radius-lg);
}

.markdown table th:last-child {
    border-top-right-radius: var(--radius-lg);
}

.markdown table td {
    padding: 0.5em 1em;
}

.markdown table tr:last-of-type td:first-child {
    border-bottom-left-radius: var(--radius-lg);
}

.markdown table tr:last-of-type td:last-child {
    border-bottom-right-radius: var(--radius-lg);
}

.markdown table tr:nth-child(even) {
    background-color: hsl(var(--color-background));
}

.markdown table tr:nth-child(odd) {
    background-color: hsl(var(--color-background) / 75%);
}

.markdown table tr:hover {
    background-color: hsl(var(--color-background));
}

.markdown table th {
    text-align: left;
}

.markdown table td {
    text-align: left;
}

.markdown ul,
.markdown ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.markdown ul {
    list-style-type: disc;
}

.markdown ul ul {
    list-style-type: circle;
}

.markdown ul ul ul {
    list-style-type: square;
}

.markdown ol {
    list-style-type: decimal;
}

.markdown ol ol {
    list-style-type: lower-alpha;
}

.markdown ol ol ol {
    list-style-type: lower-roman;
}

.markdown li {
    margin: 0.25em 0;
}

.markdown img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1em 0;
}

.markdown input[type="checkbox"] {
    margin-right: 0.5em;
}

.markdown .task-list-item {
    list-style-type: none;
    margin-left: -1.5em;
}

.markdown .task-list-item input[type="checkbox"] {
    margin-right: 0.5em;
}

.markdown .md-feature {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0 5rem;
    padding: 1rem 0;
}

.markdown .md-feature .md-content {
    padding: 4rem 0;
    max-width: 32rem;
}

.markdown .md-feature img {
    max-width: 24rem;
    width: 100%;
}

.markdown .md-feature h1 {
    line-height: 1.1;
}

.markdown .md-feature p {
    font-size: 1.125rem;
    color: hsl(var(--color-foreground) / 67%);
}
