:root {
    --sidebar-width: 360px;
    --content-max-width: 860px;
    --brand-primary: #1F4788;
    --brand-secondary: #00B4D8;
    --brand-tertiary: #264B7A;
    --brand-bg: #F8FAFB;
    --brand-surface: #FFFFFF;
}

body {
    font-family: 'Rubik', 'Plus Jakarta Sans', 'Inter', 'Roboto', 'Helvetica', 'Arial', 'sans-serif';
    background-color: var(--brand-bg);
}

.mud-drawer.mud-drawer-fixed-left {
    width: var(--sidebar-width) !important;
}

.mud-drawer-responsive-md-left.mud-drawer--open-md-up ~ .mud-main-content {
    margin-left: var(--sidebar-width);
}

main {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--mud-appbar-height));
    width: 100%;
}

article {
    max-width: var(--content-max-width);
    margin: 0 auto;
    width: 100%;
}

.mud-markdown-body {
    line-height: 1.7;
    color: #333333;
}

.mud-markdown-body h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--brand-primary);
    line-height: 1.2;
}

.mud-markdown-body h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--brand-primary);
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.mud-markdown-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--brand-tertiary);
}

.mud-markdown-body p {
    margin-bottom: 1.5rem;
}

.mud-markdown-body ul, .mud-markdown-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.mud-markdown-body li {
    margin-bottom: 0.75rem;
}

.mud-markdown-body code:not(pre code) {
    background-color: #f1f3f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875em;
    color: #d63384;
}

.mud-markdown-body pre {
    background-color: #282c34;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mud-markdown-body pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    color: #abb2bf;
    line-height: 1.5;
}

.mud-markdown-body blockquote {
    border-left: 5px solid var(--brand-secondary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #f0faff;
    color: #495057;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.mud-markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.mud-markdown-body th, .mud-markdown-body td {
    padding: 1rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.mud-markdown-body th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--brand-primary);
}

.mud-markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2.5rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: block;
}

.main-content-flex {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - var(--mud-appbar-height, 64px)) !important;
}

.app-footer {
    background: var(--brand-surface);
    border-top: 1px solid #e9ecef;
    padding: 32px 0;
    margin-top: auto;
    width: 100%;
}

.footer-brand {
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: #6c757d;
    transition: color 0.15s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

@media (max-width: 959.95px) {
    main {
        padding: 1.5rem 1rem;
    }

    article {
        max-width: 100%;
    }

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

    .mud-markdown-body h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .footer-links {
        gap: 16px;
    }
}
