.reveal .slides section {
    text-align: left;
}

.reveal .controls .controls-arrow {
    color: #1E93AB;
}

.reveal .progress span {
    background: #1E93AB;
}

.reveal .text-blue {
    color: #1E93AB !important;
}

.reveal .text-red {
    color: #E62727 !important;
}

.reveal .text-light {
    color: #666 !important;
}

.reveal a {
    color: #1E93AB;
}

.reveal ul,
.reveal ol {
    padding-left: 1rem;
    line-height: 1.4em;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.reveal ul ul,
.reveal ol ol,
.reveal ul ol,
.reveal ol ul {
    font-size: 0.9em;
}

.reveal .text-center {
    text-align: center;
}

.reveal .text-underlined {
    text-decoration: underline;
}

.reveal .footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    color: #888;
}

/* Hide footer when the first slide is showing */
.reveal section:first-of-type.present~.footer {
    display: none;
}

.reveal .keyword {
    color: #E62727;
    font-weight: bold;
}

.reveal .inline-code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 4px;
    /* font-weight: bold; */
    text-transform: none !important;
}

.reveal .fragment.blur {
    filter: blur(5px);
}

.reveal .fragment.blur.visible {
    filter: none;
}

.reveal .question-box {
    border: 3px solid #1E93AB;
    border-radius: 16px;
    padding: 1em;
    /* max-width: 700px; */
    margin: auto;
    background: #F3F2EC;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.reveal .question-title {
    /* font-size: 1.2em; */
    font-weight: bold;
    color: #1E93AB;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reveal .question-content {
    /* font-size: 1.4em; */
    line-height: 1.4;
    color: #333;
}

/* Pipeline diagram */

.reveal .pipeline {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0.5em;
    margin-top: 1em;
    flex-wrap: wrap;
}

.reveal .pipeline .stage {
    background: #F3F2EC;
    border: 2px solid #1E93AB;
    border-radius: 10px;
    padding: 0.5em;
    width: 140px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reveal .pipeline .stage-title {
    font-weight: bold;
    color: #1E93AB;
    margin-bottom: 0.5em;
}

.reveal .pipeline .stage-desc {
    font-size: 0.8em;
    color: #333;
}

.reveal .pipeline .arrow {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    color: #1E93AB;
}

.reveal .caption {
    text-align: center;
    margin-top: 0.8em;
    font-size: 0.8em;
    font-style: italic;
    color: #666;
}

/* Responsive: stack nicely on narrow displays */
@media (max-width: 900px) {
    .reveal .pipeline {
        font-size: 0.8em;
    }

    .reveal .stage {
        width: 160px;
    }
}

@media (max-width: 680px) {
    .reveal .pipeline {
        gap: 0.6em;
    }

    .reveal .arrow {
        display: none;
    }

    .reveal .stage {
        width: 100%;
        max-width: 420px;
    }
}

/* Hide line numbers ONLY for code blocks with class 'no-line-numbers' */
.reveal pre code.no-line-numbers .hljs-ln-numbers {
    display: none !important;
}

/* ===== Jupyter-like dark cells for Reveal.js ===== */
:root {
    --jp-bg: #1e1f24;
    --jp-bg-2: #23252b;
    --jp-fg: #e8e8e8;
    --jp-muted: #b6b6b6;
    --jp-border: #2c2f36;
    --jp-accent: #f1c76a;
    --jp-radius: 0px;
    --jp-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    --jp-padY: 8px;
    --jp-padX: 10px;
    --jp-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Source Code Pro", monospace;
    --jp-stdout: #c6e1a7;
    --jp-stderr: #ffb3b3;
    --jp-gutter-width: 10ch;
    /* width of the prompt gutter */
}

/* cell wrapper */
.reveal .jp-cell {
    margin: 1.2rem 0;
    background: var(--jp-bg);
    border: 1px solid var(--jp-border);
    border-radius: var(--jp-radius);
    box-shadow: var(--jp-shadow);
    overflow: hidden;
}

/* rows: fixed gutter + content */
.reveal .jp-input,
.reveal .jp-output {
    display: grid;
    grid-template-columns: var(--jp-gutter-width) 1fr;
    /* gutter | code */
    align-items: start;
    /* top-align reliably */
    margin: 0;
    padding: 0;
    width: 100%;
}

.reveal .jp-input {
    border-bottom: 1px solid var(--jp-border)
}

.reveal .jp-output {
    background: var(--jp-bg-2)
}

/* prompts (in gutter) */
.reveal .jp-input::before,
.reveal .jp-output::before {
    grid-column: 1;
    justify-self: end;
    /* right-align inside gutter */
    padding-top: var(--jp-padY);
    /* ⬅ match code's top padding */
    padding-left: 1rem;
    /* inset from left cell edge */
    margin-right: .5rem;
    /* gap before code */
    font: 600 1em var(--jp-font);
    /* ⬅ match line-height */
    white-space: nowrap;
}

.reveal .jp-input::before {
    content: "In  [" attr(data-jp-n) "]:";
    color: var(--jp-accent);
}

.reveal .jp-output::before {
    content: "Out [" attr(data-jp-n) "]:";
    color: var(--jp-muted);
}


/* code/output column */
.reveal .jp-input>code,
.reveal .jp-output>code,
.reveal .jp-stdout,
.reveal .jp-stderr {
    grid-column: 2;
    padding: var(--jp-padY) var(--jp-padX) var(--jp-padY) 0;
    font: 1em var(--jp-font);
    color: var(--jp-fg);
    background: transparent !important;
    overflow-x: auto;
}

.reveal .jp-cell pre {
    margin: 0;
    border: 0
}

/* selection */
.reveal .jp-cell ::selection {
    background: rgba(255, 255, 255, .14)
}

/* stdout/stderr tint */
.reveal .jp-stdout {
    color: var(--jp-stdout)
}

.reveal .jp-stderr {
    color: var(--jp-stderr)
}

/* compact single-line output */
.reveal .jp-output.jp-compact>code {
    padding-top: .25rem;
    padding-bottom: .25rem
}