:root {
    /* BRAND COLORS */
    --mdl-gold: #FAA61A;
    --mdl-gold-hover: #FBB040;
    --mdl-blue: #004B8D;

    /* DARK THEME PALETTE (Zinc/Slate) */
    --bg-body: #0f172a;
    /* Slate 900 */
    --bg-sidebar: #1e293b;
    /* Slate 800 */
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --border-color: #334155;
    /* Slate 700 */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mdl-gold);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-box {
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
    width: 100%;
    height: auto;
    display: block;
}

.brand:hover {
    text-decoration: none;
}

.brand span {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.nav-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.nav-link:hover {
    background-color: rgba(250, 166, 26, 0.1);
    /* Gold with opacity */
    color: var(--mdl-gold);
    padding-left: 1.25rem;
    /* Slide effect */
}

.nav-link.active {
    background-color: var(--mdl-gold);
    color: #000;
    /* Contrast text on gold */
    font-weight: 600;
}

/* MAIN CONTENT */
.main-content {
    margin-left: 280px;
    /* Sidebar width */
    padding: 3rem 4rem;
    flex: 1;
    max-width: 1200px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--mdl-gold), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--mdl-gold);
}

h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--mdl-gold);
}

.card h3 {
    color: var(--mdl-gold);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-link {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--mdl-gold);
    padding-bottom: 2px;
    transition: color 0.2s;
}

.card-link:hover {
    color: var(--mdl-gold);
}

.version-tag {
    background-color: var(--mdl-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    margin-left: 1rem;
    vertical-align: middle;
}

/* UTILITIES */
.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 3rem 0;
}

/* MARKDOWN SPECIFIC OVERRIDES */
code {
    background: #00000040;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
    color: #e2e8f0;
}

pre {
    background: #0f172a;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

ul,
ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--mdl-gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--mdl-gold);
    font-weight: 600;
}

blockquote {
    border-left: 4px solid var(--mdl-blue);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--text-secondary);
    font-style: italic;
    background: #1e293b40;
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}