:root {
    --bg: #ffffff;
    --sidebar-bg: #f8f9fa;
    --accent: #1a73e8;
    --text: #202124;
    --border: #dadce0;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents awkward baseline text gaps */
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    display: flex;
    color: var(--text);
}

/* Sidebar stays the same on every page */
#sidebar-target {
    width: 280px;
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 2rem 1rem;
    position: sticky;
    top: 0;
}

#sidebar-target h2 { font-size: 1.1rem; color: var(--accent); text-transform: uppercase; }

#sidebar-target nav a {
    display: block;
    padding: 10px;
    color: #5f6368;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 4px;
}

#sidebar-target nav a:hover { background: #e8eaed; }
#sidebar-target nav a.active { background: #e8f0fe; color: var(--accent); font-weight: 500; }

main { flex: 1; padding: 3rem; max-width: 900px; }

/* Code Block Styling */
pre {
    background: #f1f3f4;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow-x: auto;
}