.mud-link {
    color: var(--mudlink-text-color) !important;
}

/* Theme-specific overrides */
[data-theme="light"] {
    --mudlink-text-color: var(--mud-palette-primary);
    --mudpaper-border-color: #9b9b9b;

    /* CalqCmd page — contrast band colors (light theme) */
    --calq-band-dark-bg: #f0f2f5;
    --calq-band-dark-card-bg: #ffffff;
    --calq-band-dark-card-border: rgba(90, 147, 241, 0.2);
    --calq-band-dark-heading: #1a1a2e;
    --calq-band-dark-subtext: #555;
    --calq-band-dark-code-bg: #f7f8fa;
    --calq-band-dark-code-text: #1a1a2e;
    --calq-band-tint-bg: rgba(90, 147, 241, 0.10);
    --calq-card-border: rgba(90, 147, 241, 0.2);
    --calq-card-border-accent: #5A93F1;
    --calq-label-muted: #777;
    --calq-copy-btn: #5A93F1;
    --calq-pricing-open-border: #4caf50;
    --calq-pricing-comm-border: #5A93F1;
    --calq-diagram-label-bg: #ffffff;
    --calq-diagram-tint-label-bg: #f6f8fe;
}

[data-theme="dark"] {
    --mudlink-text-color: #95B8F4;
    --mudpaper-border-color: var(--mud-palette-surface);

    /* CalqCmd page — contrast band colors (dark theme) */
    --calq-band-dark-bg: #1a1b23;
    --calq-band-dark-card-bg: #24252e;
    --calq-band-dark-card-border: rgba(80, 140, 240, 0.25);
    --calq-band-dark-heading: #e0e0e0;
    --calq-band-dark-subtext: #a0a0a0;
    --calq-band-dark-code-bg: #1a1b23;
    --calq-band-dark-code-text: #c0c0c0;
    --calq-band-tint-bg: rgba(80, 140, 240, 0.08);
    --calq-card-border: rgba(80, 140, 240, 0.15);
    --calq-card-border-accent: #508CF0;
    --calq-label-muted: #999;
    --calq-copy-btn: #508CF0;
    --calq-pricing-open-border: #4caf50;
    --calq-pricing-comm-border: #508CF0;
    --calq-diagram-label-bg: #202128;
    --calq-diagram-tint-label-bg: #1f2130;
}

.mud-button,
.mud-button-root {
    border-radius: 8px !important;
}

.mud-paper,
.mud-paper-root {
    border-radius: 8px !important;
    border: 1px solid var(--mudpaper-border-color) !important;
}

/* Heading font weight overrides - make headings thinner */
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
h1,
h2,
h3,
h4 {
    font-weight: 300 !important;
}

.text-center {
    text-align: center;
    width: 100%;
}

/* CalqCmd page — section band overrides (no border, no radius) */
.calq-band.mud-paper {
    border: none !important;
    border-radius: 0 !important;
}

.calq-band-hero.mud-paper {
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
}

.calq-band-cta.mud-paper {
    border: none !important;
    border-radius: 0 0 8px 8px !important;
}

/* CalqCmd page — inner cards that need their own border style */
.calq-card.mud-paper {
    border: 1px solid var(--calq-card-border) !important;
    border-radius: 8px !important;
}

.calq-card-accent-top.mud-paper {
    border: 1px solid var(--calq-card-border) !important;
    border-top: 3px solid var(--calq-card-border-accent) !important;
    border-radius: 8px !important;
}

.calq-card-accent-left.mud-paper {
    border: 1px solid var(--calq-card-border) !important;
    border-left: 3px solid var(--calq-card-border-accent) !important;
    border-radius: 8px !important;
}

.calq-card-dark.mud-paper {
    border: 1px solid var(--calq-band-dark-card-border) !important;
    border-radius: 8px !important;
}

.calq-card-dark-orange.mud-paper {
    border: 1px solid rgba(255, 152, 0, 0.2) !important;
    border-radius: 8px !important;
}

.calq-pricing-open.mud-paper {
    border: 2px solid var(--calq-pricing-open-border) !important;
    border-radius: 8px !important;
}

.calq-pricing-comm.mud-paper {
    border: 2px solid var(--calq-pricing-comm-border) !important;
    border-radius: 8px !important;
}

.calq-code-block.mud-paper {
    border: none !important;
    border-radius: 6px !important;
}

.calq-instructions.mud-paper {
    border: none !important;
    border-radius: 6px !important;
}

/* Mobile: remove body and section padding for full-width layout */
@media (max-width: 600px) {
    /* Remove MudMainContent side padding
    #main-content.mud-main-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    } */

    /* Remove MudContainer horizontal padding 
    #main-content .mud-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    } */

    /* Section bands: remove horizontal padding, keep vertical */
    .calq-band.mud-paper,
    .calq-band-hero.mud-paper,
    .calq-band-cta.mud-paper {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Scale down headings on mobile */
    .mud-typography-h2 {
        font-size: 2.5em !important;
    }

    .mud-typography-h3 {
        font-size: 1.5rem !important;
    }

    .mud-typography-h4 {
        font-size: 1.25rem !important;
    }

    .mud-typography-h5 {
        font-size: 1.1rem !important;
    }

    /* Kill padding on card wrappers around tables */
    .responsive-table-wrapper .calq-card.mud-paper,
    .calq-card.mud-paper:has(.responsive-table-wrapper),
    .responsive-table-wrapper .mud-paper {
        padding: 4px !important;
    }
}

/* ============================================================ */
/* Responsive Table — stacked card layout on mobile             */
/* ============================================================ */

/* Desktop: normal table display */
.responsive-table-wrapper table {
    width: 100%;
}

/* Mobile: transform table into stacked cards */
@media (max-width: 768px) {
    .responsive-table-wrapper {
        width: 100%;
    }

    .responsive-table-wrapper .mud-simple-table {
        overflow-x: visible !important;
    }

    .responsive-table-wrapper .mud-table-container {
        overflow-x: visible !important;
    }

    .responsive-table-wrapper table {
        display: block !important;
        width: 100% !important;
        border: none !important;
        table-layout: auto !important;
    }

    .responsive-table-wrapper thead {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    .responsive-table-wrapper thead tr {
        display: none !important;
    }

    .responsive-table-wrapper thead th {
        display: none !important;
    }

    .responsive-table-wrapper tbody {
        display: block !important;
        width: 100% !important;
    }

    .responsive-table-wrapper tbody tr {
        display: block !important;
        border: 1px solid var(--calq-card-border) !important;
        border-radius: 6px !important;
        padding: 6px 8px;
        margin-bottom: 8px;
        background: var(--mud-palette-surface);
        width: 100% !important;
    }

    .responsive-table-wrapper tbody tr:hover {
        background: var(--mud-palette-surface);
    }

    .responsive-table-wrapper tbody td {
        display: block !important;
        padding: 6px 0 !important;
        border-bottom: 1px solid var(--calq-card-border);
        width: 100% !important;
        position: relative;
        box-sizing: border-box;
        font-size: 0.85rem;
    }

    .responsive-table-wrapper tbody td:last-child {
        border-bottom: none;
    }

    /* Remove float from SVG icons inside mobile cards */
    .responsive-table-wrapper tbody td svg,
    .responsive-table-wrapper tbody td .mud-icon-root {
        float: none !important;
        display: inline !important;
        vertical-align: middle;
        margin-right: 4px !important;
    }

    .responsive-table-wrapper tbody td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 0.75rem;
        color: var(--mud-palette-text-secondary);
        margin-bottom: 2px;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    /* First cell (row label) — card header style */
    .responsive-table-wrapper tbody td:first-child {
        display: block !important;
        padding: 4px 0 6px 0 !important;
        border-bottom: 2px solid var(--calq-card-border-accent) !important;
        margin-bottom: 0;
        font-weight: 700;
        font-size: 0.9rem;
        text-align: left;
    }

    .responsive-table-wrapper tbody td:first-child::before {
        display: none;
    }
}



/* ============================================================ */
/* Home Page Styles                                             */
/* ============================================================ */

.hero-section {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Dark theme hero gradient + dot grid */
[data-theme="dark"] .hero-section {
    background-color: #0d1117;
    background-image:
        radial-gradient(rgba(90, 147, 241, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}

[data-theme="dark"] .hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(80, 140, 240, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Light theme hero gradient + dot grid */
[data-theme="light"] .hero-section {
    background-color: #e8f0fe;
    background-image:
        radial-gradient(rgba(90, 147, 241, 0.12) 1px, transparent 1px),
        linear-gradient(160deg, #e8f0fe 0%, #f0e6ff 50%, #e8f4fd 100%);
    background-size: 24px 24px, 100% 100%;
}

[data-theme="light"] .hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(90, 147, 241, 0.25) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Gradient bottom border accent line */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #5A93F1, #7c4dff, #5A93F1);
    pointer-events: none;
    z-index: 1;
}

/* Ensure hero content sits above the glow pseudo-elements */
.hero-section > * {
    position: relative;
    z-index: 1;
}

/* Light theme: give the hero code block a crisp bordered look */
[data-theme="light"] .hero-section .code-block {
    background: #ffffff;
    border: 1px solid rgba(90, 147, 241, 0.3);
    box-shadow: 0 8px 32px rgba(90, 147, 241, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Secondary glow (purple, bottom-left) */
.hero-glow--secondary {
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .hero-glow--secondary {
    background: radial-gradient(circle, rgba(124, 77, 255, 0.12) 0%, transparent 70%);
}

[data-theme="light"] .hero-glow--secondary {
    background: radial-gradient(circle, rgba(124, 77, 255, 0.18) 0%, transparent 65%);
}

/* ============================================================ */
/* Page-level dot-grid background texture                       */
/* ============================================================ */

[data-theme="dark"] #main-content.mud-main-content {
    background-color: #202128;
    background-image: radial-gradient(rgba(80, 140, 240, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

[data-theme="light"] #main-content.mud-main-content {
    background-color: #ffffff;
    background-image: radial-gradient(rgba(90, 147, 241, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ============================================================ */
/* Statement section subtle glow accents                        */
/* ============================================================ */

/* Alternating glow orbs on odd/even statement sections */
.statement-section:nth-child(odd)::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -8%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(90, 147, 241, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

.statement-section:nth-child(even)::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -8%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

[data-theme="dark"] .statement-section:nth-child(odd)::before {
    background: radial-gradient(circle, rgba(80, 140, 240, 0.10) 0%, transparent 70%);
}

[data-theme="dark"] .statement-section:nth-child(even)::before {
    background: radial-gradient(circle, rgba(124, 77, 255, 0.07) 0%, transparent 70%);
}

/* Ensure section content sits above glow */
.statement-section > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-weight: 700 !important;
    font-size: 3.25rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

[data-theme="light"] .hero-title {
    color: #1a1a2e;
}

.hero-subtitle {
    font-weight: 300 !important;
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 24px;
}

[data-theme="light"] .hero-subtitle {
    color: #2d3748;
    opacity: 0.9 !important;
}

/* ============================================================ */
/* Hero container layout                                        */
/* ============================================================ */

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================================ */
/* Code block (shared between Hero and Statement sections)      */
/* ============================================================ */

.code-block {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    border-radius: 12px;
    overflow: hidden;
    padding: 16px;
    background: var(--mud-palette-surface, #272a3a);
    border: 1px solid var(--calq-card-border, rgba(80, 140, 240, 0.15));
    box-shadow: 0 2px 4px -1px rgba(0,0,0,0.2), 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12);
}

.code-block-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.code-block-filename {
    margin-left: 12px;
    font-size: 0.75rem;
    opacity: 0.6;
}

.code-block pre {
    white-space: pre;
    tab-size: 4;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-x: auto;
}

.statement-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.statement-section:nth-child(even) {
    background: var(--calq-band-tint-bg);
}

.statement-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.statement-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.statement-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.statement-media > .code-block {
    width: 100%;
}

.statement-title {
    font-weight: 600 !important;
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.statement-body {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.85;
}

.usecases-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: var(--calq-band-tint-bg);
}

.cta-section {
    padding: 100px 0;
    background: var(--calq-band-dark-bg);
    position: relative;
    overflow: hidden;
}

/* Light theme: give the CTA band a soft gradient for visual weight */
[data-theme="light"] .cta-section {
    background: linear-gradient(160deg, #e8f0fe 0%, #ede6ff 60%, #e8f4fd 100%);
}

/* Top gradient line for CTA separation */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(90, 147, 241, 0.4), rgba(124, 77, 255, 0.3), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Soft centered glow behind CTA content */
.cta-section::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(90, 147, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

[data-theme="dark"] .cta-section::after {
    background: radial-gradient(ellipse, rgba(80, 140, 240, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .cta-section::after {
    background: radial-gradient(ellipse, rgba(90, 147, 241, 0.15) 0%, transparent 65%);
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

/* Light theme: ensure CTA text has strong contrast */
[data-theme="light"] .cta-section h3 {
    color: #1a1a2e;
}

.code-block pre {
    white-space: pre;
    tab-size: 4;
    margin: 0;
}

/* Statement section images */
.statement-section img {
    max-width: 360px;
    width: 100%;
    height: auto;
}

/* Light theme: gentle contrast boost on SVG illustrations */
[data-theme="light"] .statement-section img[src$=".svg"] {
    filter: saturate(1.15) brightness(0.85);
}

/* Desktop: visually move media before text in reversed sections */
@media (min-width: 960px) {
    .statement-reverse .statement-media {
        order: -1;
    }
}

@media (max-width: 960px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-section::before {
        width: 350px;
        height: 350px;
    }

    .hero-glow--secondary {
        width: 250px;
        height: 250px;
    }

    .statement-section {
        padding: 48px 0;
    }

    .statement-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .statement-title {
        font-size: 1.3rem;
    }

    .statement-section img {
        max-width: 280px;
    }

    .statement-section:nth-child(odd)::before,
    .statement-section:nth-child(even)::before {
        width: 200px;
        height: 200px;
    }

    .usecases-section::before {
        width: 300px;
        height: 300px;
    }

    .cta-section {
        padding: 60px 0;
    }
}

/* ============================================================ */
/* Use Cases Section                                            */
/* ============================================================ */

.usecases-heading {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 48px;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.usecase-card {
    padding: 20px;
    border: 1px solid var(--calq-card-border, rgba(80, 140, 240, 0.15));
    border-radius: 8px;
    height: 100%;
}

.usecase-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.usecase-card-header h4 {
    font-size: 1.25rem;
    font-weight: 500 !important;
    margin: 0;
}

.usecase-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mud-palette-primary, #5A93F1);
    color: #fff;
    flex-shrink: 0;
}

.usecase-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

@media (max-width: 960px) {
    .usecases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usecases-heading {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .usecases-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================ */
/* CTA Section                                                  */
/* ============================================================ */

.cta-container {
    text-align: center;
}

.cta-heading {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: 24px;
}

.cta-email {
    font-size: 1rem;
    margin-bottom: 16px;
}

.cta-email a {
    color: var(--mudlink-text-color, #95B8F4);
    text-decoration: none;
}

.cta-email a:hover {
    text-decoration: underline;
}

.cta-linkedin {
    font-size: 0.875rem;
    opacity: 0.7;
}

.cta-linkedin a {
    color: var(--mudlink-text-color, #95B8F4);
    text-decoration: none;
}

.cta-linkedin a:hover {
    text-decoration: underline;
}

/* ============================================================ */
/* Footer                                                       */
/* ============================================================ */

.site-footer {
    border-top: 1px solid var(--mud-palette-lines-default, #33323e);
    padding: 8px 0;
}

[data-theme="dark"] .site-footer {
    background: #1a1b23;
}

[data-theme="light"] .site-footer {
    background: #f5f5f5;
}

/* Nav plain link (non-dropdown items in appbar) */
.nav-plain-link {
    background: none;
    border: none;
    color: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 12px;
    cursor: pointer;
    letter-spacing: 0.01em;
    border-radius: 4px;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-plain-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .nav-plain-link:hover {
    background: rgba(0, 0, 0, 0.04);
}


/* ===== Markdown documentation page styles ===== */
.markdown-body {
    line-height: 1.7;
    font-size: 1rem;
}

.markdown-body h1 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--mud-palette-lines-default, #33323e);
}

.markdown-body h2 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--mud-palette-lines-default, #33323e);
}

.markdown-body h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

.markdown-body h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.markdown-body p {
    margin-bottom: 1rem;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.markdown-body li {
    margin-bottom: 0.25rem;
}

.markdown-body code {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875em;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    background: var(--calq-band-dark-code-bg, #1a1b23);
    color: var(--calq-band-dark-code-text, #c0c0c0);
}

.markdown-body pre {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--calq-card-border, rgba(80, 140, 240, 0.15));
}

.markdown-body pre code {
    display: block;
    padding: 1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    background: var(--calq-band-dark-code-bg, #1a1b23);
    color: var(--calq-band-dark-code-text, #c0c0c0);
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    overflow-x: auto;
    display: block;
}

.markdown-body th,
.markdown-body td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--mud-palette-lines-default, #33323e);
    text-align: left;
}

.markdown-body th {
    font-weight: 500;
    background: var(--calq-band-dark-bg, #1a1b23);
}

.markdown-body blockquote {
    border-left: 4px solid var(--mud-palette-primary, #5A93F1);
    margin: 0 0 1rem 0;
    padding: 0.5rem 1rem;
    opacity: 0.85;
}

.markdown-body hr {
    border: none;
    border-top: 1px solid var(--mud-palette-lines-default, #33323e);
    margin: 2rem 0;
}

.markdown-body a {
    color: var(--mudlink-text-color, #95B8F4);
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.markdown-body strong {
    font-weight: 600;
}

/* ============================================================ */
/* Observability Screencast Controls                            */
/* ============================================================ */

.screencast-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    padding: 24px 16px 12px 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.screencast-controls:hover,
div:hover > .screencast-controls {
    opacity: 1;
}

.control-indicator {
    flex: 1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.indicator-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.control-indicator:hover .indicator-label,
.indicator-active .indicator-label {
    color: rgba(255, 255, 255, 1);
}

.indicator-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.indicator-active .indicator-track {
    background: var(--mud-palette-primary);
}
