/* markdown.css - Custom wrapper for Markdown content */

.markdown-body {
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	color: #1e293b;
	/* slate-800 */
	background-color: #ffffff;
	/* white */
	border-radius: 0.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	padding: 2rem;
}

/* Dark mode override */
@media (prefers-color-scheme: dark) {
	.markdown-body {
		color: #cbd5e1;
		/* slate-300 */
		background-color: #0f172a;
		/* slate-900 */
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	}
}

/* Headings */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	font-weight: 600;
	color: inherit;
}

.markdown-body h1 {
	font-size: 2.25rem;
}

.markdown-body h2 {
	font-size: 1.875rem;
}

.markdown-body h3 {
	font-size: 1.5rem;
}

.markdown-body h4 {
	font-size: 1.25rem;
}

/* Paragraphs */
.markdown-body p {
	margin: 1em 0;
}

/* Links */
.markdown-body a {
	color: #3b82f6;
	/* blue-500 */
	text-decoration: none;
}

.markdown-body a:hover {
	text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
	.markdown-body a {
		color: #60a5fa;
		/* blue-400 */
	}
}

/* Lists */
.markdown-body ul,
.markdown-body ol {
	margin: 1em 0 1em 1.5em;
}

/* Blockquotes */
.markdown-body blockquote {
	margin: 1em 0;
	padding: 0.75em 1em;
	border-left: 4px solid #e2e8f0;
	/* slate-200 */
	background-color: #f1f5f9;
	/* slate-100 */
	color: #475569;
	/* slate-600 */
}

@media (prefers-color-scheme: dark) {
	.markdown-body blockquote {
		border-color: #334155;
		/* slate-700 */
		background-color: #1e293b;
		/* slate-800 */
		color: #cbd5e1;
		/* slate-300 */
	}
}

/* Inline code */
.markdown-body code {
	background-color: #f5f5f5;
	color: #db2777;
	/* rose-600 */
	padding: 0.2em 0.4em;
	border-radius: 0.25rem;
	font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
	font-size: 0.95em;
}

@media (prefers-color-scheme: dark) {
	.markdown-body code {
		background-color: #1e293b;
		/* slate-800 */
		color: #f472b6;
		/* pink-400 */
	}
}

/* Code blocks */
.markdown-body pre {
	background-color: #0f172a;
	/* slate-900 */
	color: #e2e8f0;
	/* slate-200 */
	padding: 1em;
	overflow: auto;
	border-radius: 0.5rem;
}

/* Tables */
.markdown-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
}

.markdown-body th,
.markdown-body td {
	border: 1px solid #e2e8f0;
	/* slate-200 */
	padding: 0.75em 1em;
}

.markdown-body th {
	background-color: #f1f5f9;
	/* slate-100 */
	font-weight: 600;
}

@media (prefers-color-scheme: dark) {

	.markdown-body th,
	.markdown-body td {
		border-color: #334155;
		/* slate-700 */
	}

	.markdown-body th {
		background-color: #334155;
		/* slate-700 */
	}
}
