/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* Header and Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #007bff;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Table of Contents styles */
.toc {
    position: fixed;
    left: 0;
    top: 100px;
    width: 280px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 20px;
    background: white;
    border-right: 1px solid #eee;
}

.toc-nav h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Nested list styles */
.toc-nav ul ul {
    margin-left: 1rem;
    border-left: 1px solid #e0e0e0;
    margin-top: 4px;
    margin-bottom: 4px;
}

.toc-nav ul ul li {
    font-size: 0.85rem;
    padding-left: 0.5rem;
}

.toc-nav ul ul a {
    color: #777;
    font-size: 0.85rem;
}

.toc-nav ul ul a:hover {
    color: #0056b3;
}

.toc-nav ul ul a.active {
    color: #0056b3;
}

.toc-nav li {
    margin-bottom: 0;
    padding-left: 1rem;
    width: 100%;
}

.toc-nav a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toc-nav a:hover {
    color: #007bff;
}

.toc-nav a.active {
    color: #007bff;
    font-weight: 500;
}

/* Adjust main content to make room for TOC */
.main-container {
    margin-left: 300px;
    max-width: 800px;
    padding: 2rem;
}

/* Responsive design */
@media (max-width: 1300px) {
    .toc {
        display: none;
    }
    
    .main-container {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.main-container p.subtitle {
    color: #666;
    font-size: 1.5rem;
    margin: 0;
    font-weight: normal;
    font-style: italic;
}

.main-container h1 {
    color: #333;
    font-size: 2.5rem;
}

.main-container h2 {
    color: #666;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.main-container .disclaimer {
    font-style: italic;
    color: #666;
    margin: 2rem 0;
    line-height: 1.8;
}

.main-container p {
    font-size: 1.1rem;
    color: #555;
    margin: 2rem 0;
    line-height: 1.8;
}

.main-container section h2 {
    margin-top: 3rem;
    color: #666;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.de-facto-patronage-highlight {
    color: #6b46c1;  /* Vibrant purple */
}

.political-authority-highlight {
    color: #38a169;  /* Forest green */
}

.hoarding-information-highlight {
    color: #b7791f;  /* Warm amber */
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 2rem 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-caption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Nested list styles for main content */
.main-container ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.main-container ul li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.main-container ul ul {
    margin: 0.5rem 0 1rem 1rem;
    padding-left: 1.5rem;
}

.main-container ul ul li {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.main-container ul ul li::before {
    margin-right: 0.5rem;
}
