* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.3;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 8px;
}

h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 2px;
}

.subtitle {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Communities Nav */
.communities {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.community-link {
    font-size: 10px;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 2px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.community-link:hover {
    color: #000;
    background: #f0f0f0;
}

.community-link.active {
    color: #fff;
    background: #000;
}

/* Directory Grid - 6 columns */
.directory {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    flex: 1;
    margin-bottom: 10px;
}

.category {
    min-width: 0;
}

.category h2 {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}

.category ul {
    list-style: none;
}

.category li {
    margin-bottom: 2px;
    font-size: 10px;
    line-height: 1.35;
}

.category a {
    color: #000;
    text-decoration: none;
}

.category a:hover {
    text-decoration: underline;
}

.loc {
    color: #999;
    font-size: 9px;
    margin-left: 2px;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid #ddd;
    font-size: 10px;
    color: #666;
}

.footer-link {
    color: #666;
    text-decoration: none;
}

.footer-link:hover {
    color: #000;
    text-decoration: underline;
}

.sep {
    margin: 0 8px;
    color: #ccc;
}

.copy {
    color: #999;
}

/* Responsive */
@media (max-width: 1200px) {
    .directory {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px 16px;
    }
    
    .communities {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .directory {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    h1 {
        font-size: 18px;
    }
}