@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg: #000000;
    --fg: #ffffff;
    --muted: #a1a1aa;
    --border: #262626;
    --accent: #171717;
}

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

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.625;
}

.app {
    display: block;
}

/* Sidebar */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid var(--border);
    padding: 24px 8px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg);
    z-index: 1000;
}

.search-container {
    padding: 0 12px;
    margin-bottom: 24px;
}

.search-box {
    background: #09090b;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

.key-hint {
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    display: flex;
    gap: 4px;
}

.nav-section {
    border-bottom: 1px dashed var(--border);
}

.nav-link {
    display: block;
    padding: 10px 12px;
    color: var(--fg);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-section-header {
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 12px;
    color: var(--fg);
    cursor: pointer;
    text-transform: uppercase;
}

.nav-section-header svg { color: var(--muted); transition: transform 0.2s; }
.nav-section-header.expanded svg { transform: rotate(90deg); }

.nav-section-content {
    display: none;
    padding-bottom: 8px;
}

.nav-section-content.show { display: block; }

.nav-nested-link {
    display: block;
    padding: 8px 12px 8px 28px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
}

.nav-link.active, .nav-nested-link.active {
    background: var(--accent);
    color: var(--fg) !important;
    font-weight: 600;
}

/* Main */
.main {
    margin-left: 280px;
    margin-right: 240px;
    padding: 64px 40px;
}

.content-wrapper {
    max-width: 768px;
    margin: 0 auto;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

p { font-size: 16px; margin-bottom: 24px; color: #fff; }

.participant-list {
    list-style: none;
    margin-bottom: 32px;
    padding: 0;
}

.participant-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: #fff;
}

.dash { color: #52525b; }

.callout {
    background: #051412;
    border: 1px solid #065f46;
    border-radius: 8px;
    padding: 24px;
    margin: 40px 0;
    display: flex;
    gap: 20px;
}

.callout-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.card {
    background: #09090b;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.card:hover { border-color: #3f3f46; }
.card-title { font-weight: 600; font-size: 16px; color: #fff; margin-bottom: 8px; }
.card-desc { color: var(--muted); font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.card-footer { font-family: 'JetBrains Mono'; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); }

/* TOC */
.toc-sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    padding: 64px 32px;
    font-family: 'JetBrains Mono';
    border-left: 1px solid var(--border);
    background: var(--bg);
}

.toc-top-link { font-size: 12px; color: var(--muted); display: block; margin-bottom: 8px; text-decoration: underline; text-transform: uppercase; }
.last-edit { font-size: 12px; color: var(--muted); text-transform: uppercase; margin-top: 32px; display: block; }

/* Breadcrumbs */
.breadcrumbs {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--fg); }
