/* --- 1. GLOBAL CONFIGURATION --- */

/* Very light general background */
.md-main {
    background-color: #fcfcfc; 
}

/* The Grid: Removing the left column from the layout */
/* Structure: [Empty space] [Content] [Right TOC] */
.md-grid {
    max-width: 1200px; /* Comfortable standard width */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 12rem; /* Content takes everything except the TOC */
    gap: 2rem;
}

/* Permanently hiding the primary navigation sidebar (in case it forces display) */
.md-sidebar--primary {
    display: none;
}

/* --- 2. HEADER & TOP NAVIGATION (KEY ELEMENT) --- */

/* Top header (Logo + Title) */
.md-header {
    background-color: #ffffff !important;
    color: #1a202c !important;
    box-shadow: none !important;
    border-bottom: 1px solid #eaeaea;
}

/* Tab bar (Navigation) */
.md-tabs {
    background-color: #ffffff !important; /* Pure white background */
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568 !important; /* Dark grey text */
}

/* Links in tabs */
.md-tabs__link {
    color: #4a5568 !important;
    font-family: "Lato", sans-serif;
    font-weight: 500;
    opacity: 1 !important; /* Force visibility */
    transition: color 0.2s;
}

/* Active tab */
.md-tabs__link--active, 
.md-tabs__link:hover {
    color: #0d47a1 !important; /* MIT Blue */
    font-weight: 700;
}

/* Removing aggressive Material shadows */
.md-header, .md-tabs {
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
}

/* --- 3. CENTRAL CONTENT (DOCUMENT) --- */

.md-content {
    background-color: transparent;
    padding-top: 2rem;
}

/* The white "paper" containing the text */
.md-content__inner {
    background-color: white;
    padding: 3rem;
    border: 1px solid #eef1f4;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); /* Very subtle shadow */
}

/* --- 4. TYPOGRAPHY (KEEPING IT SERIOUS) --- */

/* Body text */
.md-typeset {
    font-family: "Merriweather", "Georgia", serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2d3748;
}

/* Headings */
.md-typeset h1, 
.md-typeset h2 {
    font-family: "Lato", sans-serif;
    color: #0d47a1;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.md-typeset h1 {
    margin-top: 0; /* Move the main title up */
    font-size: 2.2rem;
}

/* --- 5. RIGHT TABLE OF CONTENTS (TOC) --- */

/* Floating and discrete */
.md-sidebar--secondary {
    margin-top: 2rem;
    height: auto;
}

.md-nav--secondary .md-nav__title {
    background-color: transparent;
    box-shadow: none;
    color: #0d47a1;
    font-weight: bold;
    font-family: "Lato", sans-serif;
}
