/* ==========================================================================
   Technical Blueprint Dark Theme
   A distinctive engineering schematic aesthetic for Martin Krasser's blog
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Background */
    --bg-dark: #0a0e14;
    --bg-base: #0d1117;
    --bg-surface: #161b22;
    --grid-faint: #1e2530;
    --grid-major: #2a3342;

    /* Colors - Accent */
    --cyan: #3DD4E6;
    --cyan-light: #85E8F2;
    --cyan-glow: rgba(0, 217, 255, 0.15);
    --red: #ff6b6b;
    --yellow: #ffd93d;
    --purple: #a371f7;
    --green: #3fb950;

    /* Colors - Cyan alpha variants */
    --cyan-02: var(--cyan-02);
    --cyan-03: var(--cyan-03);
    --cyan-05: var(--cyan-05);
    --cyan-10: var(--cyan-10);
    --cyan-20: var(--cyan-20);
    --cyan-30: var(--cyan-30);

    /* Colors - Text */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-code: #c9d1d9;
    --text-prose: #c4ccd6;
    --text-math: #f0f6fc;

    /* Transitions */
    --transition-fast: 0.2s ease;

    /* Typography */
    --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-width: 48rem;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--cyan-light);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--grid-major);
    padding: 0.875rem 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-brand {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-brand::before {
    content: '//';
    color: var(--cyan);
    margin-right: 0.375rem;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    color: var(--cyan-light);
    border-color: var(--cyan-30);
    background: var(--cyan-05);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--grid-faint);
    padding: 2rem 0;
    background: rgba(10, 14, 20, 0.8);
    margin-top: 2rem;
}

.footer-social-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.footer-social-links li {
    margin-bottom: 0.375rem;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-social-links a:hover {
    color: var(--cyan-light);
}

.footer-social-links svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Social Links
   -------------------------------------------------------------------------- */
.social-links {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.social-links li {
    margin-bottom: 0.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--cyan);
    transition: color 0.2s ease;
}

.post-content .social-links {
    padding-left: 0;
}

.social-links a:hover {
    color: var(--cyan-light);
}

.social-links svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Blog Index
   -------------------------------------------------------------------------- */
.posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-preview {
    padding: 0;
}

.post-title {
    margin: 0 0 0.375rem 0;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.3;
}

.post-title a {
    color: var(--cyan);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--cyan-light);
}

.post-subtitle {
    color: var(--text-secondary);
    margin: 0 0 0.375rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.post-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.03em;
}

.post-meta::before {
    content: '>';
    color: var(--cyan);
    margin-right: 0.5rem;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--grid-major);
}

.pagination a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--cyan);
    padding: 0.5rem 1rem;
    border: 1px solid var(--cyan-30);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--cyan-10);
    border-color: var(--cyan);
}

.pagination-info {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pagination-info::before {
    content: '[';
    color: var(--cyan);
}

.pagination-info::after {
    content: ']';
    color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Blog Post
   -------------------------------------------------------------------------- */
.post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--grid-faint);
}

.post-header .post-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.post-header .post-meta {
    font-size: 0.8125rem;
    margin-top: 0.75rem;
}

.post-author {
    margin-left: 0.5rem;
    color: var(--text-secondary);
}

.post-content {
    line-height: 1.75;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--grid-faint);
}

.post-content h3 {
    font-size: 1.25rem;
}

.post-content h4 {
    font-size: 1.125rem;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--grid-faint);
    margin: 1.5rem 0;
}

.post-content p {
    margin: 1.25rem 0;
}

.post-content ul,
.post-content ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin: 0.5rem 0;
}

.post-content a {
    color: var(--cyan);
}

.post-content a:hover {
    color: var(--cyan-light);
}

/* Inline code */
.post-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--cyan-10);
    color: inherit;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    border: 1px solid var(--cyan-20);
}

/* Code blocks */
.post-content pre,
.post-content .highlight {
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-code);
}

.post-content .highlight {
    background: var(--bg-surface);
    border: 1px solid var(--grid-major);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
}


.post-content .highlight pre {
    margin: 0;
    line-height: 1.6;
}

/* Blockquotes */
.post-content blockquote {
    border-left: 3px solid var(--cyan);
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    background: var(--cyan-05);
    color: var(--text-secondary);
}

.post-content blockquote p {
    margin: 0.5rem 0;
}

.post-content blockquote p:first-child {
    margin-top: 0;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Images */
.post-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--grid-major);
    border-radius: 4px;
    margin: 1.5rem 0;
}

/* Post navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--grid-major);
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    max-width: 45%;
}

.post-nav-newer {
    text-align: right;
    align-items: flex-end;
}

.post-nav-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.post-nav-link a {
    font-size: 0.9375rem;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Page Styles
   -------------------------------------------------------------------------- */
.page-title {
    margin-top: 0;
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 2rem;
    color: var(--text-primary);
    position: relative;
    display: block;
    padding-left: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--grid-faint);
}

.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 1.5rem;
    width: 3px;
    background: var(--cyan);
}

/* --------------------------------------------------------------------------
   Experience / Resume
   -------------------------------------------------------------------------- */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.experience {
    position: relative;
    padding: 1.5rem;
    padding-left: 2.5rem;
    border-left: 2px solid var(--grid-faint);
    background: transparent;
    transition: background var(--transition-fast);
}

.experience:hover {
    background: var(--cyan-02);
}

.experience::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 1.75rem;
    width: 10px;
    height: 10px;
    border: 2px solid var(--cyan);
    background: var(--bg-dark);
    border-radius: 50%;
}


.experience-roles {
    margin: 0 0 0.25rem 0;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.experience-company {
    margin: 0 0 0.25rem 0;
    color: var(--cyan-light);
    font-size: 0.9375rem;
}

.experience-dates {
    margin: 0 0 0.75rem 0;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.experience-freelance {
    color: var(--text-secondary);
}

.experience-title {
    margin: 0.75rem 0 0 0;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.experience-title::before {
    content: '//';
    color: var(--cyan);
    margin-right: 0.5rem;
    opacity: 0.7;
}

.experience-title + .experience-description {
    margin-top: 0.25rem;
}

.experience-title + .experience-description p {
    margin-top: 0;
}

.experience-description a,
.experience-story a {
    color: var(--cyan);
}

.experience-description a:hover,
.experience-story a:hover {
    color: var(--cyan-light);
}

/* --------------------------------------------------------------------------
   Data Tables (Technologies, Talks, Courses, Citations)
   -------------------------------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    margin: 1.5rem 0;
}

thead {
    background: var(--bg-surface);
}

th {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cyan);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--grid-major);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--grid-faint);
    color: var(--text-code);
}

tr:hover td {
    background: var(--cyan-03);
}

td a {
    color: var(--cyan-light);
    text-decoration: none;
}

td a:hover {
    color: var(--cyan-light);
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.contact-form {
    max-width: 36rem;
}

.intro-text {
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group label::before {
    content: '>';
    color: var(--cyan);
    margin-right: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-base);
    border: 1px solid var(--grid-major);
    border-radius: 2px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-10);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.btn {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--cyan);
    border: 2px solid var(--cyan);
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn:hover {
    color: var(--cyan-light);
    border-color: var(--cyan-light);
    background: var(--cyan-10);
    box-shadow: 0 0 15px var(--cyan-20);
}

.btn:active {
    background: var(--cyan-20);
}

.form-status {
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    border-left: 3px solid;
    margin-bottom: 1rem;
}

.form-status:empty {
    display: none;
}

.form-status-success {
    background: rgba(63, 185, 80, 0.1);
    border-color: var(--green);
    color: var(--green);
}

.form-status-error {
    background: rgba(248, 81, 73, 0.1);
    border-color: var(--red);
    color: var(--red);
}

/* --------------------------------------------------------------------------
   Syntax Highlighting Overrides (Blueprint Theme)
   -------------------------------------------------------------------------- */
.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt { color: var(--cyan); }

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr,
.highlight .ss { color: var(--yellow); }

.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cp,
.highlight .cs { color: var(--text-muted); font-style: italic; }

.highlight .nf,
.highlight .fm { color: var(--cyan-light); }

.highlight .nc,
.highlight .nn { color: var(--green); }

.highlight .na,
.highlight .nb,
.highlight .ni { color: var(--text-code); }

.highlight .o,
.highlight .ow { color: var(--red); }

.highlight .m,
.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .mo { color: var(--purple); }

.highlight .p { color: var(--text-code); }

.highlight .err { color: var(--red); }

/* --------------------------------------------------------------------------
   Images
   -------------------------------------------------------------------------- */
img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Open Source Projects
   -------------------------------------------------------------------------- */
.project-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.project-table + .project-table {
    margin-top: 2rem;
}

.project-table td {
    padding: 0.375rem 0.75rem;
    vertical-align: middle;
    border-bottom: none;
}

.project-section-header td {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 2rem 0 0.75rem 0;
    border-bottom: 1px solid var(--grid-major);
}

.project-section-header:first-child td {
    padding-top: 0;
}

.project-row:hover td {
    background: var(--cyan-03);
}

.project-cell-name {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
}

.project-cell-name a {
    color: var(--cyan);
    text-decoration: none;
}

.project-cell-name a:hover {
    color: var(--cyan-light);
}

.project-cell-contribs {
    width: 1%;
    white-space: nowrap;
}

.project-cell-contribs a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.125rem 0.5rem;
    border: 1px solid var(--grid-major);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.project-cell-contribs a:hover {
    color: var(--cyan-light);
    border-color: var(--cyan-light);
}

.project-cell-year {
    width: 1%;
    text-align: right;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-cell-subtitle {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.project-cell-subtitle a {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: var(--grid-major);
    text-underline-offset: 2px;
}

.project-cell-subtitle a:hover {
    color: var(--cyan);
    text-decoration-color: var(--cyan);
}

.project-cell-info {
    width: 1%;
    text-align: center;
    vertical-align: middle;
}

.project-info-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.project-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: default;
    transition: color var(--transition-fast);
}

.project-info-icon svg {
    display: block;
    transform: translateY(2px);
}

.project-info-icon:hover,
.project-info-icon:focus {
    color: var(--text-primary);
    outline: none;
}

.project-tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.5rem);
    width: max-content;
    max-width: min(24rem, calc(100vw - 2rem));
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--grid-major);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.project-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0.5rem;
    border: 6px solid transparent;
    border-top-color: var(--grid-major);
}

.project-info-wrapper:hover .project-tooltip,
.project-info-icon:focus + .project-tooltip {
    opacity: 1;
    visibility: visible;
}

.project-tooltip p {
    margin: 0;
}

.project-tooltip a {
    color: var(--cyan);
}

.project-cell-stars {
    width: 1%;
    text-align: right;
    white-space: nowrap;
}

.project-stars-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    transition: color var(--transition-fast);
}

.project-stars-link:hover {
    color: var(--yellow);
}

.star-count:empty::before {
    content: '...';
    font-size: 0.625rem;
}

/* Founder footnote */
.founder-ref {
    color: var(--text-muted);
    font-size: 0.65em;
    margin-left: 0.25em;
}

.founder-footnote {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.founder-footnote sup {
    margin-right: 0.25em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .post-header .post-title {
        font-size: 1.5rem;
    }


    .post-nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .post-nav-link {
        max-width: 100%;
    }

    .post-nav-newer {
        text-align: left;
        align-items: flex-start;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem 0.75rem;
    }

    .experience {
        padding-left: 2rem;
    }

    .project-tooltip {
        max-width: calc(100vw - 2rem);
    }

    .project-cell-name {
        font-size: 0.875rem;
        white-space: normal;
        word-break: break-word;
    }

    .project-cell-contribs a {
        font-size: 0.6875rem;
        padding: 0.0625rem 0.375rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .footer-social-links {
        margin-bottom: 1rem;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* --------------------------------------------------------------------------
   Text Hierarchy: Muted prose, bright headers and math
   -------------------------------------------------------------------------- */

/* Muted prose text across the site */
p,
li,
td,
blockquote,
.post-subtitle,
.experience-description,
.experience-story {
    color: var(--text-prose);
}

/* Bright headers (unchanged from theme) */
h1, h2, h3, h4,
.page-title,
.experience-roles {
    color: var(--text-primary);
}

/* Math formulas - bright white */
mjx-container:not([display="true"]) {
    color: var(--text-math);
}

mjx-container[display="true"] {
    color: var(--text-math);
    display: block;
    margin: 1.5rem 0;
    padding: 1rem 0;
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
