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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.6;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #fafafa;
    border-right: 1px solid #e5e7eb;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav > ul > li {
    margin-bottom: 0.25rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 0.9rem;
}

.sidebar-nav a:hover {
    color: #111827;
    background-color: #f3f4f6;
}

.sidebar-nav a.active {
    color: #2563eb;
    background-color: #eff6ff;
    font-weight: 500;
}

.sidebar-nav a.external-link::after {
    content: '↗';
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.nav-section {
    margin: 0.5rem 0;
}

.nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    background: none;
    border: none;
    color: #111827;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background-color 0.15s ease;
}

.nav-toggle:hover {
    background-color: #f3f4f6;
}

.nav-toggle svg {
    transition: transform 0.2s ease;
}

.nav-toggle.collapsed svg {
    transform: rotate(-90deg);
}

.submenu {
    list-style: none;
    display: none;
    padding-left: 0;
}

.submenu.open {
    display: block;
}

.submenu li a {
    padding-left: 2.5rem;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 3rem;
    max-width: 100%;
}

article {
    max-width: 900px;
}

.breadcrumb {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.lead {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #374151;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.platform-card:hover {
    border-color: #2563eb;
    background-color: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.platform-icon {
    color: #2563eb;
    margin-bottom: 1rem;
}

.platform-card p {
    margin: 0;
    color: #111827;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.info-box h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #1e40af;
}

.info-box p {
    margin-bottom: 0.5rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Instructions */
.instruction-step {
    margin: 1.5rem 0;
}

.instruction-step ol {
    list-style-position: outside;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.instruction-step li {
    margin-bottom: 0.75rem;
    color: #374151;
}

.instruction-step strong {
    color: #111827;
    font-weight: 600;
}

.instruction-image {
    margin: 1.5rem 0;
    text-align: center;
}

.instruction-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
}

.image-row img {
    max-width: calc(50% - 0.5rem);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Code blocks */
code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .platform-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .image-row img {
        max-width: 100%;
    }
}

