/* /css/wiki.css */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;700&family=Source+Sans+3:wght@400;600&display=swap');

body {
    background-color: #f1f5f9; /* slate-100 */
}

.wiki-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
}

.wiki-sidebar {
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.wiki-sidebar-header {
    font-family: 'Source Serif 4', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4338ca; /* indigo-700 */
    border-bottom: 2px solid #e0e7ff; /* indigo-100 */
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.wiki-nav {
    list-style: none;
    padding: 0;
    font-family: 'Source Sans 3', sans-serif;
}
.wiki-nav ul {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.wiki-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #374151; /* gray-700 */
    transition: all 0.2s ease-in-out;
    font-weight: 400;
    border-left: 3px solid transparent;
}
.wiki-nav a.nav-level-1 {
    font-weight: 600;
}

.wiki-nav a:hover {
    background-color: #f3f4f6; /* gray-100 */
    color: #111827; /* gray-900 */
}

.wiki-nav a.active {
    background-color: #eef2ff; /* indigo-50 */
    color: #4338ca; /* indigo-700 */
    font-weight: 600;
    border-left-color: #6366f1; /* indigo-500 */
}

.wiki-main {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.wiki-main-header h1 {
    font-family: 'Source Serif 4', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b; /* slate-800 */
    margin-bottom: 0.5rem;
}

.wiki-main-header p.subtitle {
    font-family: 'Source Sans 3', sans-serif;
    color: #64748b; /* slate-500 */
    font-size: 1.125rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0; /* slate-200 */
    padding-bottom: 2rem;
}

.wiki-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed #cbd5e1; /* slate-300 */
}
.wiki-section:last-of-type {
    border-bottom: none;
}

/* Using Tailwind Typography plugin's output as a base and customizing */
.prose {
    color: #334155; /* slate-700 */
    font-family: 'Source Sans 3', sans-serif;
    line-height: 1.7;
}

.prose h2 {
    font-family: 'Source Serif 4', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b; /* slate-800 */
    border-bottom: 1px solid #e2e8f0; /* slate-200 */
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    scroll-margin-top: 2rem; /* For scroll-spy */
}

.prose h3 {
    font-family: 'Source Serif 4', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose a {
    color: #4f46e5; /* indigo-600 */
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #c7d2fe; /* indigo-200 */
    transition: all 0.2s;
}
.prose a:hover {
    color: #312e81; /* indigo-900 */
    background-color: #eef2ff; /* indigo-50 */
}

.prose blockquote {
    border-left-color: #a5b4fc; /* indigo-300 */
    background-color: #f8fafc; /* slate-50 */
    color: #475569; /* slate-600 */
    font-style: normal;
    padding: 1rem 1.5rem;
}

.prose code {
    background-color: #e2e8f0; /* slate-200 */
    color: #1e293b;
    padding: 0.1em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
}
.prose pre {
    background-color: #1e293b; /* slate-800 */
    color: #e2e8f0; /* slate-200 */
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.prose strong {
    color: #0f172a; /* slate-900 */
    font-weight: 600;
}