/* Override main.css styles for systems pages */
body.systems-page {
    max-width: none;
    width: 100%;
    padding: 0;
}

.systems-page main {
    max-width: none;
    width: 100%;
    padding: 0;
}

/* Debug styles to make sure CSS is loading */
.systems-container {
    display: flex !important;
    flex-direction: row !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* Sidebar styling */
.systems-container .systems-sidebar {
    position: fixed;
    top: 200px;
    /* Adjust based on your header height */
    left: max(20px, calc((100vw - 1500px) / 2));
    width: 180px;
    height: calc(100vh - 200px);
    padding: 1rem;
    overflow-y: auto;
}

.systems-container .systems-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.systems-container .systems-sidebar .sidebar-link {
    display: block;
    padding: 0.5rem;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.systems-container .systems-sidebar .sidebar-link:hover {
    color: #000;
}

.systems-container .systems-sidebar .sidebar-link.active {
    font-weight: bold;
}

/* Content styling */
.systems-container .systems-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    /* Center the content */
    padding: 0 1rem;
}

.system-section {
    margin-bottom: 3rem;
    scroll-margin-top: 2rem;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.system-card {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.system-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.system-card h2 {
    margin-top: 0;
}

.system-card a {
    text-decoration: none;
    color: inherit;
}

/* Remove debug borders */
.systems-container,
.systems-container .systems-sidebar,
.systems-container .systems-sidebar nav,
.systems-container .systems-content {
    border: none;
}