/* sbom.wiki - SBOM Wiki Reference - Flat Swiss Typography */
/* Colors: #111827, #1F2937, #6B7280, #E5E7EB, #F9FAFB, #059669, #D97706, #7C3AED */

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

body {
    background-color: #F9FAFB;
    color: #1F2937;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Navigation */
#navbar {
    position: sticky;
    top: 0;
    height: 56px;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #111827;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: #111827;
    background: rgba(17, 24, 39, 0.05);
}

.nav-link.active {
    color: #111827;
    font-weight: 600;
    background: rgba(17, 24, 39, 0.08);
}

/* Main */
#main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 10rem);
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    margin-top: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Tags */
.tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
}

.tag-sm {
    font-size: 0.65rem;
    padding: 2px 8px;
}

.tag-standard { background: #E5E7EB; color: #1F2937; }
.tag-security { background: rgba(5, 150, 105, 0.12); color: #059669; }
.tag-compliance { background: rgba(217, 119, 6, 0.12); color: #D97706; }
.tag-tools { background: rgba(124, 58, 237, 0.12); color: #7C3AED; }

/* Sections */
.wiki-section {
    padding: 4rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.wiki-section:last-child {
    border-bottom: none;
}

.section-bar {
    width: 100%;
    height: 4px;
    margin-bottom: 2rem;
    border-radius: 2px;
}

.bar-standard { background: #1F2937; }
.bar-security { background: #059669; }
.bar-compliance { background: #D97706; }
.bar-tools { background: #7C3AED; }

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #111827;
    margin-bottom: 1.5rem;
}

.section-body {
    font-size: 1.05rem;
    color: #1F2937;
    max-width: 600px;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Z-Pattern Rows */
.z-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.z-row.z-reverse {
    direction: rtl;
}

.z-row.z-reverse > * {
    direction: ltr;
}

.flat-diagram {
    width: 100%;
    max-width: 300px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.wiki-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.wiki-card:hover {
    border-color: #1F2937;
    transform: translateY(-2px);
}

.compact-card {
    padding: 1.25rem;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.card-version {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #6B7280;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.6;
}

.card-meta {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #E5E7EB;
}

.meta-item {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #6B7280;
}

/* Component List */
.component-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comp-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.comp-item:hover {
    background: #F9FAFB;
}

.comp-icon {
    color: #1F2937;
    font-size: 0.6rem;
}

.comp-name {
    flex: 1;
    font-weight: 500;
}

/* Glossary */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.glossary-term {
    padding: 1rem;
    border-left: 3px solid #1F2937;
    background: rgba(249, 250, 251, 0.5);
}

.glossary-term dt {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    margin-bottom: 0.25rem;
}

.glossary-term dd {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .z-row,
    .z-row.z-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }

    .hero-title {
        font-size: clamp(3rem, 15vw, 6rem);
    }

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

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