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

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #7dd3fc;
    --accent: #f97316;
    --surface: #0b172a;
    --surface-soft: #111d33;
    --card-bg: #0f243f;
    --card-alt: #0f2a4f;
    --text-main: #e2e8f0;
    --text-light: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --nav-height: 70px;
    --nav-bg: rgba(8, 14, 26, 0.8);
    --skip-link-bg: rgba(12, 20, 35, 0.95);
    --pill-bg: rgba(255, 255, 255, 0.03);
    --pill-bg-hover: rgba(255, 255, 255, 0.06);
    --pill-ghost-bg: rgba(255, 255, 255, 0.04);
    --tag-bg: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #0369a1;
    --accent: #f97316;
    --surface: #f8fafc;
    --surface-soft: #eef2ff;
    --card-bg: #ffffff;
    --card-alt: #f1f5f9;
    --text-main: #0f172a;
    --text-light: #475569;
    --border: rgba(15, 23, 42, 0.10);
    --shadow: 0 20px 60px rgba(2, 6, 23, 0.12);
    --success: #16a34a;
    --warning: #d97706;
    --error: #dc2626;
    --nav-bg: rgba(255, 255, 255, 0.78);
    --skip-link-bg: rgba(255, 255, 255, 0.92);
    --pill-bg: rgba(15, 23, 42, 0.03);
    --pill-bg-hover: rgba(15, 23, 42, 0.06);
    --pill-ghost-bg: rgba(15, 23, 42, 0.03);
    --tag-bg: rgba(15, 23, 42, 0.03);
}

* {
    box-sizing: border-box;
}

.skip-link {
    position: absolute;
    left: 14px;
    top: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--skip-link-bg);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    font-weight: 700;
    transform: translateY(-140%);
    transition: transform 0.15s ease;
    z-index: 40;
}

[data-theme="light"] .skip-link {
    border: 1px solid var(--border);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 3px solid rgba(125, 211, 252, 0.9);
    outline-offset: 2px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', 'Space Grotesk', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.15), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.12), transparent 30%),
        linear-gradient(135deg, #050d18 0%, #0b1627 45%, #0f1f35 100%);
    padding: 60px 24px 100px;
    line-height: 1.6;
}

[data-theme="light"] body {
    background: radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.18), transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.14), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 55%, #f1f5f9 100%);
}

a {
    color: var(--primary-light);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: #b5e3ff;
}

[data-theme="light"] a:hover {
    color: var(--primary-dark);
}

.container,
.lab-shell {
    max-width: 1300px;
    margin: 0 auto;
    background: var(--surface);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.card,
.lab-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.lab-card.soft {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.12), rgba(15, 37, 65, 0.8));
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .lab-card.soft {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.10), rgba(255, 255, 255, 0.75));
    border-color: var(--border);
}

.lab-nav {
    position: sticky;
    top: 20px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
    background: var(--nav-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    font-family: 'Manrope', 'Space Grotesk', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

[data-theme="light"] .lab-nav {
    background: var(--nav-bg);
    border: 1px solid var(--border);
    box-shadow: 0 10px 35px rgba(2, 6, 23, 0.10);
}

.lab-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text-main);
}

.lab-brand .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.65);
}

.lab-brand-name {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.lab-brand-name:hover {
    color: var(--primary-light);
}

.lab-divider {
    color: var(--text-light);
}

.lab-current {
    color: var(--primary-light);
    font-weight: 600;
}

.lab-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--pill-bg);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.pill.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #0b1220;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.pill.primary:hover {
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.pill.primary:active {
    transform: translateY(0) scale(0.98);
}

.select-wrapper {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    padding: 0 28px 0 14px;
    width: 100%;
    height: 100%;
    cursor: pointer;
    outline: none;
}

.select-wrapper select option {
    background-color: var(--surface);
    color: var(--text-main);
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    pointer-events: none;
}

.lab-nav .select-wrapper {
    width: auto;
    min-width: 72px;
    max-width: 96px;
    flex: 0 0 auto;
}

.pill:focus,
.pill:focus-visible,
button.pill:focus,
button.pill:focus-visible,
.btn:focus,
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(125, 211, 252, 0.9);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
[id] {
    scroll-margin-top: calc(var(--nav-height) + 18px);
}

.pill:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .pill:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: #0b1220;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

.pill.ghost {
    background: var(--pill-ghost-bg);
}

.lab-tagbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 8px 0;
}

.tag {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--tag-bg);
    color: var(--text-light);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.tag:hover {
    background: var(--pill-bg-hover);
    color: var(--text-main);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 26px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.hero p {
    margin: 0;
    color: var(--text-light);
    max-width: 780px;
}

.hero .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.lab-tile {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 10px;
}

.lab-tile h3 {
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.lab-tile p {
    margin: 0;
    color: var(--text-light);
}

.lab-tile .tile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.lab-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(249, 115, 22, 0.12));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.lab-tile:hover::after {
    opacity: 1;
}

.lab-tile>* {
    position: relative;
    z-index: 1;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .chip {
    background: rgba(14, 165, 233, 0.08);
    color: var(--primary-dark);
    border-color: rgba(14, 165, 233, 0.15);
}

h1,
.h1,
header h1,
.card-header,
.lab-card h3,
.lab-card h4 {
    font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
}

.card-header,
.lab-card h4 {
    letter-spacing: 0.01em;
    color: var(--primary-light);
}

.btn,
.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #061020;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.btn:hover,
.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
}

.btn-secondary,
.button-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 10px;
    color: var(--text-main);
}

.section-title span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

/* Learning Objective Specific Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.grid-2 .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

@media (max-width: 920px) {
    body {
        padding: 16px 14px 90px;
    }

    .lab-nav {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .lab-brand {
        margin-right: auto;
    }

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

@media (max-width: 480px) {
    body {
        padding: 12px 12px 80px;
    }

    .lab-nav {
        padding: 10px 14px;
        margin: -8px -2px 20px;
    }

    .lab-brand-name {
        font-size: 1.1rem;
    }

    .lab-divider {
        display: none;
    }

    .lab-current {
        font-size: 0.95rem;
        width: 100%;
        margin-top: 4px;
        order: 3;
    }

    h1 {
        font-size: 2rem;
    }

    .lab-grid,
    .responsive-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transform: translateY(20px);
    transition: transform 0.2s ease;
}

.modal-backdrop.open .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-main);
    background: var(--pill-bg-hover);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    color: var(--text-main);
    line-height: 1.7;
}

.modal-body h1,
.modal-body h2,
.modal-body h3 {
    margin-top: 1.5em;
    color: var(--text-main);
}

.modal-body h1 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3em;
}

.modal-body h2 {
    font-size: 1.4rem;
}

.modal-body p {
    margin-bottom: 1em;
}

.modal-body code {
    background: var(--pill-bg);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.modal-body pre {
    background: var(--surface);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--border);
}

.modal-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.modal-body img {
    max-width: 100%;
    border-radius: 8px;
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.modal-body th,
.modal-body td {
    padding: 8px 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.modal-body th {
    background: var(--surface);
}

/* Theme Toggle Icon */
.theme-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* Glossary Tooltips */
.glossary-term {
    border-bottom: 1px dotted var(--primary-light);
    cursor: help;
    transition: color 0.2s;
}

.glossary-term:hover,
.glossary-term:focus {
    color: var(--accent);
    background: rgba(249, 115, 22, 0.1);
    border-radius: 4px;
}

.glossary-tooltip {
    position: fixed;
    z-index: 1000;
    background: var(--card-alt);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 250px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(5px);
}

.glossary-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.glossary-tooltip strong {
    color: var(--primary-light);
    display: block;
    margin-bottom: 4px;
}

.glossary-tooltip p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.4;
}

/* --- PrismJS Syntax Highlighting --- */

/* Dark Mode: Synthwave '84 */
[data-theme='dark'] code[class*='language-'],
[data-theme='dark'] pre[class*='language-'] {
    color: #f92aad;
    text-shadow: 0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3;
    background: none;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 1em;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

[data-theme='dark'] pre[class*='language-'] {
    padding: 1em;
    margin: .5em 0;
    overflow: auto;
}

[data-theme='dark'] :not(pre)>code[class*='language-'],
[data-theme='dark'] pre[class*='language-'] {
    background-color: transparent !important;
    background-image: linear-gradient(to bottom, #2a2139 75%, #34294f);
}

[data-theme='dark'] :not(pre)>code[class*='language-'] {
    padding: .1em;
    border-radius: .3em;
    white-space: normal;
}

[data-theme='dark'] .token.comment,
[data-theme='dark'] .token.block-comment,
[data-theme='dark'] .token.prolog,
[data-theme='dark'] .token.doctype,
[data-theme='dark'] .token.cdata {
    color: #8e8e8e;
}

[data-theme='dark'] .token.punctuation {
    color: #ccc;
}

[data-theme='dark'] .token.tag,
[data-theme='dark'] .token.attr-name,
[data-theme='dark'] .token.namespace,
[data-theme='dark'] .token.number,
[data-theme='dark'] .token.unit,
[data-theme='dark'] .token.hexcode,
[data-theme='dark'] .token.deleted {
    color: #e2777a;
}

[data-theme='dark'] .token.property,
[data-theme='dark'] .token.selector {
    color: #72f1b8;
    text-shadow: 0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475;
}

[data-theme='dark'] .token.function-name {
    color: #6196cc;
}

[data-theme='dark'] .token.boolean,
[data-theme='dark'] .token.selector .token.id,
[data-theme='dark'] .token.function {
    color: #fdfdfd;
    text-shadow: 0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975;
}

[data-theme='dark'] .token.class-name {
    color: #fff5f6;
    text-shadow: 0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75;
}

[data-theme='dark'] .token.constant,
[data-theme='dark'] .token.symbol {
    color: #f92aad;
    text-shadow: 0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3;
}

[data-theme='dark'] .token.important,
[data-theme='dark'] .token.atrule,
[data-theme='dark'] .token.keyword,
[data-theme='dark'] .token.selector .token.class,
[data-theme='dark'] .token.builtin {
    color: #f4eee4;
    text-shadow: 0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575;
}

[data-theme='dark'] .token.string,
[data-theme='dark'] .token.char,
[data-theme='dark'] .token.attr-value,
[data-theme='dark'] .token.regex,
[data-theme='dark'] .token.variable {
    color: #f87c32;
}

[data-theme='dark'] .token.operator,
[data-theme='dark'] .token.entity,
[data-theme='dark'] .token.url {
    color: #67cdcc;
}

[data-theme='dark'] .token.important,
[data-theme='dark'] .token.bold {
    font-weight: bold;
}

[data-theme='dark'] .token.italic {
    font-style: italic;
}

[data-theme='dark'] .token.entity {
    cursor: help;
}

[data-theme='dark'] .token.inserted {
    color: green;
}


/* Light Mode: Tokyo Night Light */
[data-theme='light'] code[class*='language-'],
[data-theme='light'] pre[class*='language-'] {
    color: #343b59;
    text-shadow: none;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    direction: ltr;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    line-height: 1.5;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

[data-theme='light'] pre[class*='language-'] {
    padding: 1em;
    margin: .5em 0;
    overflow: auto;
    background: #e1e2e7;
}

[data-theme='light'] :not(pre)>code[class*='language-'] {
    padding: .1em;
    border-radius: .3em;
    color: #343b59;
    background: #e1e2e7;
}

[data-theme='light'] .token.comment,
[data-theme='light'] .token.prolog,
[data-theme='light'] .token.doctype,
[data-theme='light'] .token.cdata {
    color: #848cb5;
    font-style: italic;
}

[data-theme='light'] .token.punctuation {
    color: #343b59;
}

[data-theme='light'] .token.namespace {
    opacity: .7;
}

[data-theme='light'] .token.property,
[data-theme='light'] .token.tag,
[data-theme='light'] .token.boolean,
[data-theme='light'] .token.number,
[data-theme='light'] .token.constant,
[data-theme='light'] .token.symbol,
[data-theme='light'] .token.deleted {
    color: #3760bf;
}

[data-theme='light'] .token.selector,
[data-theme='light'] .token.attr-name,
[data-theme='light'] .token.string,
[data-theme='light'] .token.char,
[data-theme='light'] .token.builtin,
[data-theme='light'] .token.inserted {
    color: #4c505e;
}

[data-theme='light'] .token.operator,
[data-theme='light'] .token.entity,
[data-theme='light'] .token.url,
[data-theme='light'] .language-css .token.string,
[data-theme='light'] .style .token.string {
    color: #343b59;
}

[data-theme='light'] .token.atrule,
[data-theme='light'] .token.attr-value,
[data-theme='light'] .token.keyword {
    color: #8c4351;
}

[data-theme='light'] .token.function,
[data-theme='light'] .token.class-name {
    color: #33467C;
}

[data-theme='light'] .token.regex,
[data-theme='light'] .token.important,
[data-theme='light'] .token.variable {
    color: #8c4351;
}

[data-theme='light'] .token.italic {
    font-style: italic;
}

[data-theme='light'] .token.important,
[data-theme='light'] .token.bold {
    font-weight: bold;
}


/* --- Legacy Code Block Mappings --- */
/* Map manual classes to Prism Theme Colors */

/* Dark Mode (Synthwave '84) Mappings */
[data-theme='dark'] .code-block {
    background-color: transparent !important;
    background-image: linear-gradient(to bottom, #2a2139 75%, #34294f);
    color: #f92aad;
    text-shadow: 0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    padding: 1em;
    border-radius: 8px;
    overflow: auto;
}

[data-theme='dark'] .py-keyword {
    color: #f4eee4;
    text-shadow: 0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575;
}

[data-theme='dark'] .py-function {
    color: #6196cc;
}

[data-theme='dark'] .py-string {
    color: #f87c32;
}

[data-theme='dark'] .highlight-yellow {
    color: #8e8e8e;
    font-style: italic;
}

/* Mapping comments */
[data-theme='dark'] .py-built-in {
    color: #fdfdfd;
    text-shadow: 0 0 2px #001716, 0 0 3px #03edf975;
}

/* Light Mode (Tokyo Night Light) Mappings */
[data-theme='light'] .code-block {
    background-color: #e1e2e7;
    color: #343b59;
    text-shadow: none;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    padding: 1em;
    border-radius: 8px;
    overflow: auto;
}

[data-theme='light'] .py-keyword {
    color: #8c4351;
    font-weight: bold;
}

[data-theme='light'] .py-function {
    color: #33467C;
}

[data-theme='light'] .py-string {
    color: #4c505e;
}

[data-theme='light'] .highlight-yellow {
    color: #848cb5;
    font-style: italic;
}

[data-theme='light'] .py-built-in {
    color: #33467C;
}