:root {
    --primary: #1a7c5f;
    --primary-dark: #0d5a45;
    --primary-light: #2fa877;
    --secondary: #ff5a3f;
    --text-dark: #0a0a0a;
    --text-gray: #555555;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 2rem;
    --radius-sm: 4px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.8rem 2rem;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Mono', monospace;
}

.logo-icon {
    width: 38px;
    height: 38px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
}

nav a.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a.nav-link:hover {
    color: var(--primary);
}

nav a.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    z-index: 10;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 0.5rem 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-gray);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

@media (max-width: 768px) {
    nav ul { display: none; } /* Simplified for example, would need a mobile menu */
}

/* Atomic directory/listing layout */
body.odx-directory main {
    margin-top: 24px;
    padding: var(--space-4) var(--space-5) var(--space-5);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

body.odx-directory .full-width {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0 0 var(--space-2) 0;
}

body.odx-directory .full-width h1 {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 var(--space-1) 0;
}

body.odx-directory .full-width p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

body.odx-directory .sidebar {
    gap: var(--space-4);
}

body.odx-directory .filter-section {
    background: white;
    border: 1px solid var(--border);
    padding: 0.9rem;
}

body.odx-directory .filter-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text-dark);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

body.odx-directory .filter-title::after {
    content: '▾';
    font-size: 0.72rem;
    color: var(--text-gray);
    transition: transform 0.2s ease;
}

body.odx-directory .filter-section.is-collapsed .filter-title::after {
    transform: rotate(-90deg);
}

body.odx-directory .filter-section.is-collapsed .filter-content {
    display: none;
}
