/* ====== Syllabus – Minimalist Dark Theme ====== */
:root {
    --bg: #0b0c0e;
    --surface: #111215;
    --border: #2a2a2e;
    --fg: #e3e3e7;
    --muted: #8b8e96;
    --accent: #ff6b35;          /* bright orange */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

/* Top bar */
.top-bar {
    max-width: 780px;
    margin: 0 auto;
    padding: 1.4rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.logo-area {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.logo-mark {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
}
.logo-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.5px;
}
.mini-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.78rem;
    margin-left: 1.5rem;
    font-weight: 600;
    transition: color 0.15s;
}
.mini-nav a:hover {
    color: var(--accent);
}

/* Main content */
.syllabus-wrapper {
    max-width: 780px;
    margin: 2.5rem auto;
    padding: 0 1.5rem 3rem;
}
h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #f0efe7;
}
.subtitle {
    color: var(--muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* Chapter list */
.chapter-list {
    list-style: none;
    padding: 0;
}
.chapter-list li {
    margin-bottom: 1.8rem;
    border-left: 3px solid transparent;
    padding-left: 1.2rem;
    transition: border-color 0.15s;
}
.chapter-list li:hover {
    border-left-color: var(--accent);
}
.chapter-list a {
    text-decoration: none;
    color: var(--fg);
    display: flex;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
}
.chapter-num {
    font-weight: 700;
    color: var(--accent);
    min-width: 5rem;
}
.chapter-title {
    font-weight: 600;
    font-size: 1.15rem;
    color: #e6e2d9;
}
.chapter-list p {
    color: var(--muted);
    margin-top: 0.3rem;
    font-size: 0.93rem;
}

/* Footer */
.page-footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}


/* ===== Universal Mobile Adaptations ===== */
/* Apply this after the main theme stylesheet */

/* Allow the main container to fill the screen on small devices */
@media (max-width: 768px) {
    .container {
        max-width: 100% !important;
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
    }

    /* Make the content card padding smaller */
    .enterprise-content {
        padding: 1.5rem 1rem !important;
    }

    /* Let code blocks scroll horizontally instead of overflowing */
    .code-output-box,
    pre {
        white-space: pre-wrap !important;
        word-break: break-word !important;
    }

    /* Toolbar buttons stack vertically if needed */
    .action-toolbar,
    .pagination-container-block {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    /* Make the floating TTS controller smaller and unobtrusive */
    .floating-tts-controller {
        bottom: 10px !important;
        right: 10px !important;
        padding: 0.5rem 0.8rem !important;
        border-radius: 12px !important;
        gap: 10px !important;
    }
    .float-btn {
        font-size: 1rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}


