/* ==========================================================================
   Sodexus.AI — VCOM Framework Pages
   Extends design-system.css with VCOM-specific components
   ========================================================================== */

/* --- Pillar Color System --- */
:root {
    --c-pillar-constitution: #00A896;
    --c-pillar-constitution-bg: rgba(0, 168, 150, 0.06);
    --c-pillar-constitution-border: rgba(0, 168, 150, 0.25);
    --c-pillar-execution: #0077B6;
    --c-pillar-execution-bg: rgba(0, 119, 182, 0.06);
    --c-pillar-execution-border: rgba(0, 119, 182, 0.25);
    --c-pillar-evolution: #F7B801;
    --c-pillar-evolution-bg: rgba(247, 184, 1, 0.06);
    --c-pillar-evolution-border: rgba(247, 184, 1, 0.25);
}

/* --- VCOM Page Layout (sidebar + content) --- */
.vcom-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - var(--header-height, 64px));
    margin-top: var(--header-height, 64px);
}

@media (max-width: 1023px) {
    .vcom-layout {
        grid-template-columns: 1fr;
    }
}

.vcom-content {
    max-width: 900px;
    padding: 2.5rem 3rem 4rem;
}

@media (max-width: 767px) {
    .vcom-content {
        padding: 1.5rem 1.25rem 3rem;
    }
}

/* --- VCOM Sidebar --- */
.vcom-sidebar {
    position: sticky;
    top: var(--header-height, 64px);
    height: calc(100vh - var(--header-height, 64px));
    overflow-y: auto;
    background: var(--c-surface-base, #F8F9FB);
    border-right: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    padding: 1.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--c-border-default, rgba(13, 27, 42, 0.12)) transparent;
}

.vcom-sidebar::-webkit-scrollbar {
    width: 4px;
}

.vcom-sidebar::-webkit-scrollbar-thumb {
    background: var(--c-border-default, rgba(13, 27, 42, 0.12));
    border-radius: 2px;
}

@media (max-width: 1023px) {
    .vcom-sidebar {
        display: none;
        position: fixed;
        top: var(--header-height, 64px);
        left: 0;
        right: 0;
        height: auto;
        max-height: calc(100vh - var(--header-height, 64px));
        z-index: 90;
        border-right: none;
        border-bottom: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
        box-shadow: var(--shadow-lg, 0 8px 30px rgba(13, 27, 42, 0.12));
    }

    .vcom-sidebar.open {
        display: block;
    }
}

.vcom-sidebar-hub-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--c-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.vcom-sidebar-hub-link:hover {
    color: var(--c-accent-hover);
}

.vcom-sidebar-pillar {
    margin-bottom: 0.25rem;
}

.vcom-sidebar-pillar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.vcom-sidebar-pillar-header:hover {
    background-color: rgba(13, 27, 42, 0.04);
}

.vcom-sidebar-pillar-header[data-pillar="constitution"] {
    color: var(--c-pillar-constitution);
}

.vcom-sidebar-pillar-header[data-pillar="execution"] {
    color: var(--c-pillar-execution);
}

.vcom-sidebar-pillar-header[data-pillar="evolution"] {
    color: var(--c-pillar-evolution);
}

.vcom-sidebar-pillar-header .chevron {
    transition: transform 0.2s;
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.vcom-sidebar-pillar-header.collapsed .chevron {
    transform: rotate(-90deg);
}

.vcom-sidebar-dims {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.vcom-sidebar-dims.collapsed {
    max-height: 0 !important;
}

.vcom-sidebar-dim-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.25rem 0.4rem 1.75rem;
    font-size: 0.8125rem;
    color: var(--c-text-light, #555);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}

.vcom-sidebar-dim-link:hover {
    background-color: rgba(13, 27, 42, 0.04);
    color: var(--c-primary);
}

.vcom-sidebar-dim-link.active {
    background-color: var(--c-accent-glow, rgba(0, 168, 150, 0.15));
    color: var(--c-accent);
    font-weight: 600;
    border-left-color: var(--c-accent);
}

.vcom-sidebar-dim-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.6875rem;
    opacity: 0.4;
    min-width: 1.25rem;
}

.vcom-sidebar-dim-link.active .vcom-sidebar-dim-num {
    opacity: 1;
}

/* Mobile sidebar toggle */
.vcom-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 95;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-accent);
    color: var(--c-primary);
    border: none;
    box-shadow: var(--shadow-lg, 0 8px 30px rgba(13, 27, 42, 0.12));
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1023px) {
    .vcom-sidebar-toggle {
        display: flex;
    }
}

/* --- VCOM Breadcrumb --- */
.vcom-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--c-text-muted, #888);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vcom-breadcrumb a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.vcom-breadcrumb a:hover {
    color: var(--c-accent-hover);
    text-decoration: underline;
}

.vcom-breadcrumb-sep::before {
    content: '\203A';
    color: var(--c-text-muted, #888);
    margin: 0 0.125rem;
}

/* --- VCOM Tabs --- */
.vcom-tab-bar {
    display: flex;
    border-bottom: 2px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    margin-bottom: 2rem;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.vcom-tab-bar::-webkit-scrollbar {
    display: none;
}

.vcom-tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--c-text-muted, #888);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

.vcom-tab-btn:hover {
    color: var(--c-primary);
}

.vcom-tab-btn[aria-selected="true"] {
    color: var(--c-accent);
    border-bottom-color: var(--c-accent);
}

.vcom-tab-panel {
    display: none;
}

.vcom-tab-panel.active {
    display: block;
    animation: vcom-tab-fade 0.35s ease-out;
}

@keyframes vcom-tab-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- VCOM Dimension Header --- */
.vcom-dim-header {
    margin-bottom: 2rem;
}

.vcom-dim-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md, 12px);
    background: var(--c-accent-glow, rgba(0, 168, 150, 0.15));
    color: var(--c-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.vcom-dim-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--type-h2, clamp(1.75rem, 3.5vw, 2.75rem));
    color: var(--c-primary);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.vcom-dim-question {
    font-size: 1.125rem;
    color: var(--c-accent);
    font-weight: 600;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.vcom-dim-summary {
    font-size: 1rem;
    color: var(--c-text-light, #555);
    line-height: 1.7;
}

/* --- VCOM Triptych (Hub Page) --- */
.vcom-triptych {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1023px) {
    .vcom-triptych {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.vcom-triptych-pillar {
    background: var(--c-surface-elevated, #fff);
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    border: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vcom-triptych-pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 8px 30px rgba(13, 27, 42, 0.12));
}

.vcom-triptych-pillar[data-pillar="constitution"] {
    border-top: 3px solid var(--c-pillar-constitution);
}

.vcom-triptych-pillar[data-pillar="execution"] {
    border-top: 3px solid var(--c-pillar-execution);
}

.vcom-triptych-pillar[data-pillar="evolution"] {
    border-top: 3px solid var(--c-pillar-evolution);
}

.vcom-triptych-header {
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.vcom-triptych-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.vcom-triptych-pillar[data-pillar="constitution"] .vcom-triptych-label { color: var(--c-pillar-constitution); }
.vcom-triptych-pillar[data-pillar="execution"] .vcom-triptych-label { color: var(--c-pillar-execution); }
.vcom-triptych-pillar[data-pillar="evolution"] .vcom-triptych-label { color: var(--c-pillar-evolution); }

.vcom-triptych-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--c-primary);
    margin-bottom: 0.25rem;
}

.vcom-triptych-question {
    font-size: 0.875rem;
    color: var(--c-text-light, #555);
    font-style: italic;
}

.vcom-triptych-dims {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vcom-triptych-dim {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm, 6px);
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
    border: 1px solid transparent;
}

.vcom-triptych-dim:hover {
    background-color: var(--c-surface-base, #F8F9FB);
    border-color: var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    transform: translateX(4px);
}

.vcom-triptych-dim-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    opacity: 0.2;
    min-width: 2rem;
    transition: opacity 0.2s;
}

.vcom-triptych-dim:hover .vcom-triptych-dim-num {
    opacity: 0.6;
}

.vcom-triptych-pillar[data-pillar="constitution"] .vcom-triptych-dim-num { color: var(--c-pillar-constitution); }
.vcom-triptych-pillar[data-pillar="execution"] .vcom-triptych-dim-num { color: var(--c-pillar-execution); }
.vcom-triptych-pillar[data-pillar="evolution"] .vcom-triptych-dim-num { color: var(--c-pillar-evolution); }

.vcom-triptych-dim-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--c-primary);
}

.vcom-triptych-dim-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.vcom-triptych-dim-tag {
    font-size: 0.6875rem;
    color: var(--c-text-muted, #888);
    background: var(--c-surface-sunken, #EEF0F4);
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-full, 9999px);
}

/* --- VCOM Dimension Card (Pillar Page) --- */
.vcom-dim-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 639px) {
    .vcom-dim-card-grid {
        grid-template-columns: 1fr;
    }
}

.vcom-dim-card {
    background: var(--c-surface-elevated, #fff);
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    border: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vcom-dim-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent, linear-gradient(135deg, #00A896, #007A6B));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.vcom-dim-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover, 0 12px 40px rgba(13, 27, 42, 0.15));
    border-color: var(--c-border-default, rgba(13, 27, 42, 0.12));
}

.vcom-dim-card:hover::before {
    transform: scaleX(1);
}

.vcom-dim-card-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    opacity: 0.12;
    transition: opacity 0.3s;
}

.vcom-dim-card:hover .vcom-dim-card-num {
    opacity: 0.5;
}

.vcom-dim-card-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--c-primary);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.vcom-dim-card-question {
    font-size: 0.8125rem;
    color: var(--c-text-light, #555);
    margin-bottom: 0.75rem;
}

.vcom-dim-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.vcom-dim-card-tag {
    font-size: 0.6875rem;
    color: var(--c-accent);
    background: var(--c-accent-glow, rgba(0, 168, 150, 0.15));
    padding: 0.15rem 0.625rem;
    border-radius: var(--radius-full, 9999px);
    font-weight: 600;
}

.vcom-dim-card-arrow {
    display: block;
    margin-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-accent);
}

/* --- VCOM Callout Boxes --- */
.vcom-callout {
    border-radius: var(--radius-md, 12px);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.vcom-callout-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.vcom-callout p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

/* Employee variant (teal) */
.vcom-callout-employee {
    background: rgba(0, 168, 150, 0.06);
    border-left: 4px solid var(--c-accent);
}

.vcom-callout-employee .vcom-callout-label {
    color: var(--c-accent);
}

/* Client variant (amber) */
.vcom-callout-client {
    background: rgba(247, 184, 1, 0.06);
    border-left: 4px solid var(--c-accent-secondary, #F7B801);
}

.vcom-callout-client .vcom-callout-label {
    color: var(--c-accent-secondary-muted, #D49E00);
}

/* Partner variant (navy) */
.vcom-callout-partner {
    background: rgba(13, 27, 42, 0.04);
    border-left: 4px solid var(--c-primary);
}

.vcom-callout-partner .vcom-callout-label {
    color: var(--c-primary);
}

/* Bei Sodexus.AI callout */
.vcom-callout-sodexus {
    background: linear-gradient(135deg, rgba(0, 168, 150, 0.06) 0%, rgba(247, 184, 1, 0.04) 100%);
    border: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    border-left: 4px solid var(--c-accent);
}

.vcom-callout-sodexus .vcom-callout-label {
    color: var(--c-accent);
}

/* --- VCOM Related Dimensions --- */
.vcom-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
}

.vcom-related-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--c-primary);
    margin-bottom: 1rem;
}

.vcom-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.vcom-related-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.vcom-related-card:hover {
    background-color: var(--c-surface-base, #F8F9FB);
    border-color: var(--c-accent);
    transform: translateY(-2px);
}

.vcom-related-card-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--c-accent);
    opacity: 0.4;
}

.vcom-related-card:hover .vcom-related-card-num {
    opacity: 1;
}

.vcom-related-card-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--c-primary);
}

.vcom-related-card-pillar {
    font-size: 0.6875rem;
    color: var(--c-text-muted, #888);
}

/* --- VCOM Principle Cards (Hub Page) --- */
.vcom-principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1023px) {
    .vcom-principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .vcom-principles-grid {
        grid-template-columns: 1fr;
    }
}

.vcom-principle-card {
    background: var(--c-surface-elevated, #fff);
    border-radius: var(--radius-md, 12px);
    padding: 1.5rem;
    border: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vcom-principle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(13, 27, 42, 0.08));
}

.vcom-principle-card h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--c-primary);
    margin-bottom: 0.5rem;
}

.vcom-principle-card p {
    font-size: 0.8125rem;
    color: var(--c-text-light, #555);
    line-height: 1.6;
}

/* --- VCOM Reading Paths (Hub Page) --- */
.vcom-reading-paths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 767px) {
    .vcom-reading-paths {
        grid-template-columns: 1fr;
    }
}

.vcom-reading-path {
    background: var(--c-surface-elevated, #fff);
    border-radius: var(--radius-lg, 16px);
    padding: 1.75rem;
    border: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
}

.vcom-reading-path h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--c-primary);
    margin-bottom: 0.25rem;
}

.vcom-reading-path p {
    font-size: 0.8125rem;
    color: var(--c-text-light, #555);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.vcom-reading-path-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.vcom-reading-path-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vcom-reading-path-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(13, 27, 42, 0.05));
}

.vcom-reading-path-badge[data-pillar="constitution"] {
    background: var(--c-pillar-constitution-bg);
    color: var(--c-pillar-constitution);
}

.vcom-reading-path-badge[data-pillar="execution"] {
    background: var(--c-pillar-execution-bg);
    color: var(--c-pillar-execution);
}

.vcom-reading-path-badge[data-pillar="evolution"] {
    background: var(--c-pillar-evolution-bg);
    color: var(--c-pillar-evolution);
}

.vcom-reading-path-arrow {
    color: var(--c-text-muted, #888);
    font-size: 0.75rem;
}

/* --- VCOM Cross-Cutting Flow (Pillar Page) --- */
.vcom-flow-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.vcom-flow-step {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full, 9999px);
    background: var(--c-surface-base, #F8F9FB);
    border: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-primary);
}

.vcom-flow-arrow {
    color: var(--c-accent);
    font-weight: bold;
    font-size: 1.25rem;
}

/* --- VCOM Content Prose --- */
.vcom-prose h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--c-accent);
}

.vcom-prose h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--c-secondary, #1B263B);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.vcom-prose p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--c-text, #333);
}

.vcom-prose ul,
.vcom-prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.vcom-prose li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.vcom-prose li::marker {
    color: var(--c-accent);
}

.vcom-prose strong {
    color: var(--c-primary);
}

.vcom-prose a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.vcom-prose a:hover {
    color: var(--c-primary);
    text-decoration: underline;
}

.vcom-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(13, 27, 42, 0.05));
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
    font-size: 0.875rem;
}

.vcom-prose th,
.vcom-prose td {
    border: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    padding: 0.625rem 0.875rem;
    text-align: left;
}

.vcom-prose th {
    background: var(--c-primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8125rem;
}

.vcom-prose tbody tr:nth-child(even) {
    background-color: var(--c-surface-base, #F8F9FB);
}

.vcom-prose details {
    background: var(--c-surface-base, #F8F9FB);
    border: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    border-radius: var(--radius-md, 12px);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.vcom-prose details summary {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--c-primary);
    cursor: pointer;
    font-size: 0.9375rem;
}

.vcom-prose details[open] summary {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
}

.vcom-prose code {
    background: var(--c-surface-sunken, #EEF0F4);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.vcom-prose pre {
    background: var(--c-primary);
    color: var(--c-primary-text, #E0E1DD);
    padding: 1.25rem;
    border-radius: var(--radius-md, 12px);
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.vcom-prose pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    color: inherit;
}

/* --- Version Footer --- */
.vcom-version-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    font-size: 0.75rem;
    color: var(--c-text-muted, #888);
}

/* --- Pillar Hero (Pillar Pages) --- */
.vcom-pillar-hero {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.vcom-pillar-hero[data-pillar="constitution"] {
    background: linear-gradient(135deg, rgba(0, 168, 150, 0.04) 0%, rgba(0, 168, 150, 0.01) 100%);
    border-bottom: 2px solid var(--c-pillar-constitution-border);
}

.vcom-pillar-hero[data-pillar="execution"] {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.04) 0%, rgba(0, 119, 182, 0.01) 100%);
    border-bottom: 2px solid var(--c-pillar-execution-border);
}

.vcom-pillar-hero[data-pillar="evolution"] {
    background: linear-gradient(135deg, rgba(247, 184, 1, 0.04) 0%, rgba(247, 184, 1, 0.01) 100%);
    border-bottom: 2px solid var(--c-pillar-evolution-border);
}

/* --- Sidebar Extras Section --- */
.vcom-sidebar-extras {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
}

.vcom-sidebar-extras-label {
    padding: 0.5rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-muted, #888);
}

.vcom-sidebar-pdf-link {
    gap: 0.5rem !important;
}

.vcom-sidebar-pdf-link svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.vcom-sidebar-pdf-link:hover svg {
    opacity: 1;
    color: var(--c-accent);
}

/* --- Language Toggle --- */
.vcom-lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    margin-bottom: 0.75rem;
}

.vcom-lang-toggle svg {
    opacity: 0.4;
    flex-shrink: 0;
}

.vcom-lang-btn {
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    border-radius: var(--radius-sm, 6px);
    background: transparent;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    color: var(--c-text-muted, #888);
    cursor: pointer;
    transition: all 0.2s;
}

.vcom-lang-btn:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.vcom-lang-btn.active {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: white;
}

.vcom-lang-mobile {
    display: none;
    margin-bottom: 1rem;
}

@media (max-width: 1023px) {
    .vcom-lang-mobile {
        display: block;
    }
    .vcom-sidebar .vcom-lang-toggle {
        display: flex;
    }
}

/* --- PDF Download Banner --- */
.vcom-pdf-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 168, 150, 0.08) 0%, rgba(247, 184, 1, 0.04) 100%);
    border: 1px solid var(--c-border-subtle, rgba(13, 27, 42, 0.08));
    border-radius: var(--radius-md, 12px);
    margin: 1.5rem 0;
}

.vcom-pdf-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-accent-glow, rgba(0, 168, 150, 0.15));
    border-radius: var(--radius-sm, 6px);
    color: var(--c-accent);
}

.vcom-pdf-banner-text {
    flex: 1;
}

.vcom-pdf-banner-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--c-primary);
    margin-bottom: 0.125rem;
}

.vcom-pdf-banner-desc {
    font-size: 0.8125rem;
    color: var(--c-text-light, #555);
}

.vcom-pdf-banner .btn {
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .vcom-pdf-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Print Styles for VCOM --- */
@media print {
    .vcom-sidebar,
    .vcom-sidebar-toggle,
    .vcom-tab-bar {
        display: none !important;
    }

    .vcom-layout {
        grid-template-columns: 1fr;
    }

    .vcom-tab-panel {
        display: block !important;
    }

    .vcom-prose details {
        open: true;
    }

    .vcom-prose details[open] {
        display: block;
    }
}
