:root {
    /* Blue Color Palette */
    --color-blue-50: #e3f2fd;
    --color-blue-100: #bbdefb;
    --color-blue-200: #90caf9;
    --color-blue-300: #64b5f6;
    --color-blue-400: #42a5f5;
    --color-blue-500: #2196f3;
    --color-blue-600: #1e88e5;
    --color-blue-700: #1976d2;
    --color-blue-800: #1565c0;
    --color-blue-900: #0d47a1;
    /* Neutral Colors */
    --color-gray-900: #1a202c;
    --color-white: #ffffff;
    
    /* Typography & Layout Variables */
    --text-primary: #2c3e50;
    --text-secondary: #586e88;
    --bg-white: #ffffff;
    --bg-light: #f8fafb;
    --bg-code: #f4f7f9;
    --border-light: #e1e8ed;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --font-main: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
    
    /* Container Sizes */
    --container-max: 1400px;
    --container-content: 1200px;
    --container-narrow: 1000px;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
    
    /* Text Sizes */
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.75rem;
    --text-4xl: 2.5rem;
    --text-5xl: 2.75rem;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Utilities */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-white { color: var(--color-white); }
.text-blue-600 { color: var(--color-blue-600); }
.text-blue-700 { color: var(--color-blue-700); }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.75rem; }
.text-4xl { font-size: 2.5rem; }
.text-5xl { font-size: 2.75rem; }

.line-height-tight { line-height: 1.2; }
.line-height-normal { line-height: 1.5; }
.line-height-relaxed { line-height: 1.6; }
.line-height-loose { line-height: 1.8; }

/* Container Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-content {
    max-width: var(--container-content);
    margin: 0 auto;
}


.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

/* Spacing Utilities */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mb-sm { margin-bottom: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.p-0 { padding: 0; }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

.px-xl { padding-left: var(--space-xl); padding-right: var(--space-xl); }
.px-2xl { padding-left: var(--space-2xl); padding-right: var(--space-2xl); }
.py-3xl { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
.py-4xl { padding-top: var(--space-4xl); padding-bottom: var(--space-4xl); }

/* Layout Utilities */
.flex { display: flex; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-end { justify-content: end; }
.justify-between { justify-content: space-between; }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* Component Base Classes */
.button {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.button-primary {
    background-color: var(--color-blue-500);
    color: white;
}

.button-primary:hover {
    background-color: var(--color-blue-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Code Block Base Styles */
.code-block {
    background-color: #1E1E1E;
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.code-block pre {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    padding: var(--space-lg);
    white-space: pre-wrap;
    overflow-x: auto;
    max-width: 120ch;
    background: transparent;
    border: none;
}

.code-block-compact {
    font-size: 0.8rem;
    padding: 0.75rem;
    min-height: 80px;
}

.code-block-compact pre {
    padding: 0;
    font-size: inherit;
    line-height: 1.4;
}

.navbar {
    background-color: var(--color-blue-50);
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-logo {
    width: 100px;
    height: auto;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 100px;
    width: auto;
}

.nav-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    margin-left: var(--space-sm);
    color: black;
    font-size: 1rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-btn {
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-btn:hover {
    background-color: var(--bg-white);
    color: var(--color-blue-700);
}

.main-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-xl);
}

.hero {
    padding-top: var(--space-md);
    padding-bottom: var(--space-4xl) ;
    background-color: var(--color-blue-50);
    width: 100%;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
}

.hero-left {
    text-align: left;
    align-self: center;
}

.hero-right {
    /* Placeholder for code example styling */
}

.hero-logo {
    width: 100px;
    height: auto;
    margin-bottom: var(--space-xl);
    margin-left: 0;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-tagline {
    font-size: var(--text-3xl);
    color: var(--color-blue-700);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0;
    line-height: 1.5;
}

.section {
    margin: var(--space-3xl) 0;
    max-width: var(--container-content);
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
}

.section h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.section-header p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.section-divider {
    text-align: center;
    margin: var(--space-3xl) auto;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-blue-700);
    opacity: 0.8;
}

.section-divider::before {
    content: "<=>";
    letter-spacing: 0.3rem;
}

.section p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.example-block {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.section ul {
    margin: var(--space-md) 0 var(--space-md) 3.5rem;
    line-height: 1.8;
}

.section ul li {
    margin: var(--space-sm) 0;
}

.benefits {
    background-color: var(--bg-light);
    padding: var(--space-xl);
    border-radius: 12px;
    margin-top: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.benefits h3 {
    margin-bottom: var(--space-lg);
    color: var(--color-blue-700);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: var(--space-xs) 0 var(--space-xs) var(--space-xl);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.2s ease;
    text-align: left;
}

.benefits-list li:hover {
    color: var(--text-primary);
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-blue-600);
    font-weight: bold;
    font-size: 1.2rem;
}

.benefits-list li a {
    color: var(--color-blue-600);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.benefits-list li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-blue-300);
    transition: width 0.3s ease;
}

.benefits-list li a:hover {
    color: var(--color-blue-300);
}

.benefits-list li a:hover::after {
    width: 100%;
}

/* Documentation page link styling */
.section p a,
.section li a {
    color: var(--color-blue-600);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.section p a::after,
.section li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-blue-300);
    transition: width 0.3s ease;
}

.section p a:hover,
.section li a:hover {
    color: var(--color-blue-300);
}

.section p a:hover::after,
.section li a:hover::after {
    width: 100%;
}

.features {
    width: 100%;
    background-color: var(--color-blue-50);
    padding: var(--space-3xl) 0;
}

.features-container {
    max-width: var(--container-content);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.features h2 {
    text-align: center;
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2xl);
    color: var(--text-primary);
    font-weight: 700;
}

.feature {
    margin: 0 0 var(--space-xl) 0;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--color-blue-300);
}

.feature:last-child {
    border-bottom: none;
}

/* All features have the same light blue background */
.feature {
    background-color: var(--color-blue-50);
}

.note {
    background-color: var(--color-blue-200);
    color: var(--color-blue-600);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: inline-block;
}

.code-example {
    margin: var(--space-lg) 0;
}

.kson-editor, .yaml-example {
    background-color: #1E1E1E;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.kson-editor pre, .yaml-example pre {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    padding: var(--space-lg);
    white-space: pre-wrap;
    overflow-x: auto;
    max-width: 120ch;
    flex: 1;
    background: transparent;
    border: none;
}

/* Ensure consistent styling for editable code blocks */
pre[data-editable="true"] {
    transition: opacity 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: pre-wrap;
    max-width: 120ch;
}

pre[data-editable="true"]:hover:not([data-editor-active]) {
    opacity: 0.9;
}



/* Ensure Monaco overlays stay within bounds */
.kson-editor {
    overflow: visible !important;
    position: relative;
}

.kson-editor .monaco-editor {
    position: relative !important;
}

/* Constrain Monaco hover and error tooltips */
.kson-editor .monaco-hover,
.kson-editor .monaco-editor-hover,
.kson-editor .monaco-editor-overlaymessage {
    max-width: calc(100vw - 40px) !important;
    overflow: hidden !important;
}

/* Ensure tooltips have proper z-index */
.kson-editor .monaco-hover {
    z-index: 50 !important;
}

/* Keep error squiggles visible */
.kson-editor .monaco-editor .view-overlays {
    overflow: visible !important;
}

/* Language label element */
.code-language-label {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-mono), monospace;
    color: #808080;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: 1;
}

/* Window titlebar for interactive editors */
.kson-editor-titlebar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(42, 42, 42, 0.95);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1;
    transition: all 0.3s ease;
}

/* Traffic lights container */
.kson-editor-controls {
    position: absolute;
    left: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Individual traffic light buttons */
.kson-editor-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.kson-editor-control::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
    border-radius: 50%;
}

.kson-editor-control.close {
    background-color: #FF5F57;
}

.kson-editor-control.minimize {
    background-color: #FFBD2E;
}

.kson-editor-control.maximize {
    background-color: #28CA42;
}

.kson-editor-control:hover {
    filter: brightness(1.15);
    transform: scale(1.1);
}

.kson-editor-control:active {
    filter: brightness(0.9);
    transform: scale(0.95);
}

/* Try me message */
.kson-editor-message {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-blue-600);
    letter-spacing: 0.02em;
    user-select: none;
    transition: all 0.2s ease;
    opacity: 0.8;
}

/* Show default message */
.kson-editor-message {
    visibility: hidden;
}

.kson-editor-message::before {
    content: attr(data-default-message);
    visibility: visible;
}

/* Show editing message when editor is active */
.kson-editor:has(pre[data-editor-active="true"]) .kson-editor-message::before {
    content: attr(data-editing-message);
}

/* Adjust editor container to accommodate titlebar */
.kson-editor.has-titlebar {
    padding-top: 36px;
    position: relative;
}

.kson-editor.has-titlebar pre {
    border-radius: 0 0 8px 8px;
}

/* Adjust language label position when titlebar is present */
.kson-editor.has-titlebar .code-language-label {
    top: calc(36px + 0.75rem);
}

/* Hover state for entire editor */
.kson-editor.has-titlebar {
    transition: all 0.3s ease;
    border-color: var(--border-light);
}

/* Active editing state */
.kson-editor.has-titlebar pre[data-editor-active="true"] {
    /* Editor is active */
}

.kson-editor.has-titlebar:has(pre[data-editor-active="true"]) {
    border-color: var(--color-blue-500);
    box-shadow: 0 0 0 1px var(--color-blue-500), 0 4px 16px rgba(33, 150, 243, 0.15);
}

.kson-editor.has-titlebar:has(pre[data-editor-active="true"]) .kson-editor-titlebar {
    background: rgba(44, 44, 44, 1);
}

.kson-editor.has-titlebar:has(pre[data-editor-active="true"]) .kson-editor-message {
    color: var(--color-blue-500);
    opacity: 1;
}


.code-example {
    margin: var(--space-md) 0 var(--space-lg) 0;
}

.feature ul {
    margin: var(--space-md) 0 var(--space-md) var(--space-xl);
}

.feature ul li {
    margin: var(--space-sm) 0;
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: stretch;
}

.feature-content {
    padding-right: var(--space-md);
}

.feature-code {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin: var(--space-lg) 0;
    align-items: stretch;
}

.code-comparison-item {
    display: flex;
    flex-direction: column;
}

.code-comparison-item .kson-editor,
.code-comparison-item .yaml-example {
    flex: 1;
    height: 100%;
}

.formatter-demo {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.format-example {
    display: none;
    width: 100%;
    flex: 1;
}

.format-example.active {
    display: flex;
    flex-direction: column;
}

.format-example .kson-editor {
    flex: 1;
}

.code-comparison-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.cta-section {
    text-align: center;
    background-color: var(--color-blue-100);
    padding: var(--space-3xl) 0;
    margin: 0;
    width: 100%;
}

.cta-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer {
    background-color: var(--bg-white);
    border-top: none;
    margin-top: 0;
    padding: var(--space-sm) var(--space-xl);
}

.footer-links {
    max-width: var(--container-narrow);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-gray-900);
    opacity: 0.9;
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Mobile responsive adjustments for titlebar */
@media (max-width: 768px) {
    .kson-editor-titlebar {
        height: 32px;
    }
    
    .kson-editor-message {
        font-size: 13px;
    }
    
    .kson-editor.has-titlebar {
        padding-top: 32px;
    }
    
    .kson-editor.has-titlebar .code-language-label {
        top: calc(32px + 0.75rem);
    }
    
    /* Hide tooltip on mobile */
    .kson-editor-titlebar::after {
        display: none;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        padding: var(--space-md);
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-btn {
        padding: var(--space-xs) 0.8rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: 0 var(--space-md);
    }

    .main-content {
        padding: var(--space-md);
    }

    .section h2 {
        font-size: 1.75rem;
    }

    .section h3 {
        font-size: 1.25rem;
    }

    .benefits {
        padding: var(--space-lg);
    }

    .kson-editor pre, .yaml-example pre {
        padding: var(--space-md);
        font-size: 0.75rem;
        max-width: 100%;
    }

    .kson-editor, .yaml-example {
        max-width: 100%;
    }

    pre[data-editable="true"] {
        max-width: 100%;
    }

    .hljs {
        max-width: 100%;
        font-size: 0.75rem;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .code-comparison {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .code-comparison-item {
        max-width: 100%;
        overflow: hidden;
    }

    .code-comparison-item h4 {
        font-size: 0.875rem;
        margin-bottom: var(--space-sm);
    }

    .feature-split {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .feature-content {
        padding-right: 0;
    }

    .feature-code {
        position: static;
    }

    .cta-cards {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .container-content.flex {
        flex-direction: column;
    }

    .card {
        width: 100%;
    }
    
    .cta-card {
        padding: var(--space-lg);
        min-height: auto;
    }
    
    .why-content {
        gap: var(--space-lg);
    }
    
    .why-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/*
 * Visual Studio 2015 dark style
 * Author: Nicolas LLOBERA <nllobera@gmail.com>
 */

.hljs {
  display: block;
  overflow-x: auto;
  background: #1E1E1E;
  color: #DCDCDC;
  white-space: pre-wrap;
  max-width: 120ch;
}

.hljs-keyword,
.hljs-literal,
.hljs-symbol,
.hljs-name {
  color: #569CD6;
}

.hljs-link {
  color: #569CD6;
  text-decoration: underline;
}

.hljs-error {
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: #F44747;
  text-underline-offset: 2px;
}

.hljs-built_in,
.hljs-type {
  color: #4EC9B0;
}

.hljs-number,
.hljs-class {
  color: #B8D7A3;
}

.hljs-string,
.hljs-meta-string {
  color: #D69D85;
}

.hljs-regexp,
.hljs-template-tag {
  color: #9A5334;
}

.hljs-subst,
.hljs-function,
.hljs-title,
.hljs-params,
.hljs-formula {
  color: #DCDCDC;
}

.hljs-comment,
.hljs-quote {
  color: #57A64A;
  font-style: italic;
}

.hljs-doctag {
  color: #608B4E;
}

.hljs-meta,
.hljs-meta-keyword,
.hljs-tag {
  color: #9B9B9B;
}

.hljs-variable,
.hljs-template-variable {
  color: #BD63C5;
}

.hljs-attr,
.hljs-attribute,
.hljs-builtin-name {
  color: #9CDCFE;
}

.hljs-section {
  color: gold;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

/*.hljs-code {
  font-family:'Monospace';
}*/

.hljs-bullet,
.hljs-selector-tag,
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo {
  color: #D7BA7D;
}

.hljs-addition {
  background-color: #144212;
  display: inline-block;
  width: 100%;
}

.hljs-deletion {
  background-color: #600;
  display: inline-block;
  width: 100%;
}

/* Playground hint link */
.playground-hint {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.playground-hint a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.playground-hint a:hover {
  color: var(--color-blue-600);
}

/* Playground Page Specific Styles */
.playground-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--color-blue-50);
}

.playground-body .nav-container{
    max-width: none;
}

.playground-main {
    flex: 1;
    padding: 2rem var(--space-xl);
    display: flex;
    flex-direction: column;
}

.example-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.example-selector {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

.example-selector:hover {
    border-color: var(--color-blue-600);
}

.example-selector:focus {
    outline: none;
    border-color: var(--color-blue-600);
    box-shadow: 0 0 0 2px rgba(25, 127, 247, 0.2);
}

.format-toggle {
    display: inline-flex;
    background-color: var(--bg-light);
    border-radius: 6px;
    gap: 4px;
}

.format-toggle label {
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.format-toggle input[type="radio"] {
    display: none;
}

.format-toggle input[type="radio"]:checked + span {
    background-color: var(--bg-white);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.format-toggle label span {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.playground-comparison {
    display: flex;
    gap: 2rem;
    flex: 1;
    min-height: 0;
}

.playground-comparison .code-comparison-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.playground-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.playground-editor .kson-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.playground-editor pre {
    flex: 1;
    margin: 0;
    min-height: 400px;
    overflow: auto;
}

.editor-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.editor-placeholder {
    color: var(--text-secondary);
    font-style: italic;
    padding: 1rem;
    user-select: none;
}

/* Inline traffic light controls */
.kson-editor-control {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .playground-comparison {
        flex-direction: column;
        height: auto;
    }
    
    .playground-comparison .code-comparison-item {
        min-height: 300px;
    }
}

/* Site Footer Styles */
.site-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: var(--space-xl) 0;
}

.footer-container {
    max-width: var(--container-content);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-blue-600);
}

.footer-divider {
    color: var(--text-secondary);
    opacity: 0.4;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.footer-copyright p {
    margin: 0;
}

/* Mobile responsive for footer */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-divider {
        display: none;
    }
}