/* Token-based Reveal.js theme and Sri-specific presentation components. */
:root {
    --r-background-color: var(--color-bg);
    --r-main-font: var(--font-text);
    --r-main-font-size: 40px;
    --r-main-color: var(--color-text);
    --r-block-margin: 20px;
    --r-heading-margin: 0 0 20px;
    --r-heading-font: var(--font-text);
    --r-heading-color: var(--color-text);
    --r-heading-line-height: 1.2;
    --r-heading-letter-spacing: -.03em;
    --r-heading-font-weight: 700;
    --r-code-font: var(--font-mono);
    --r-link-color: var(--color-accent);
    --r-link-color-dark: var(--color-accent);
    --r-link-color-hover: var(--color-accent-hover);
    --r-selection-background-color: var(--color-accent);
    --r-selection-color: var(--color-bg);
}

.reveal-viewport {
    background-color: var(--r-background-color);
}

.reveal {
    color: var(--r-main-color);
    font-family: var(--r-main-font);
    font-size: var(--r-main-font-size);
    font-weight: 400;
}

.reveal ::selection {
    color: var(--r-selection-color);
    background: var(--r-selection-background-color);
    text-shadow: none;
}

.reveal .slides section,
.reveal .slides section > section {
    font-weight: inherit;
    line-height: 1.3;
    text-align: left;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
    margin: var(--r-heading-margin);
    color: var(--r-heading-color);
    font-family: var(--r-heading-font);
    font-weight: var(--r-heading-font-weight);
    letter-spacing: var(--r-heading-letter-spacing);
    line-height: var(--r-heading-line-height);
    text-transform: none;
    text-shadow: none;
    overflow-wrap: break-word;
}

.reveal h1 {
    font-size: 2.2em;
    line-height: 1.15;
}

.reveal h2 {
    margin-bottom: .6em;
    padding-bottom: .3em;
    border-bottom: 2px solid var(--color-accent);
    font-size: 1.6em;
}

.reveal h3 {
    margin-bottom: .5em;
    color: var(--color-text-muted);
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.reveal h4 {
    font-size: 1em;
}

.reveal p {
    margin: var(--r-block-margin) 0;
    font-size: .9em;
    line-height: 1.6;
}

.reveal h1:last-child,
.reveal h2:last-child,
.reveal h3:last-child,
.reveal h4:last-child,
.reveal h5:last-child,
.reveal h6:last-child {
    margin-bottom: 0;
}

.reveal img,
.reveal video,
.reveal iframe {
    max-width: 95%;
    max-height: 95%;
}

.reveal strong,
.reveal b {
    color: var(--color-text);
    font-weight: 700;
}

.reveal em {
    font-style: italic;
}

.reveal ol,
.reveal dl,
.reveal ul {
    display: inline-block;
    margin: 0 0 0 1em;
    font-size: .88em;
    line-height: 1.7;
    text-align: left;
}

.reveal ol {
    list-style-type: decimal;
}

.reveal ul {
    list-style-type: disc;
}

.reveal ul ul {
    list-style-type: square;
}

.reveal ul ul ul {
    list-style-type: circle;
}

.reveal li {
    margin-bottom: .3em;
}

.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
    display: block;
    margin-left: 40px;
}

.reveal dt {
    font-weight: 700;
}

.reveal dd {
    margin-left: 40px;
}

.reveal blockquote {
    display: block;
    position: relative;
    width: 100%;
    margin: 0 0 .5em;
    padding: 0;
    border: 0;
    color: var(--color-text-muted);
    background: none;
    box-shadow: none;
    font-size: .7em;
    font-style: normal;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.reveal blockquote p {
    display: inline-block;
    font-size: 1em;
}

.reveal pre {
    display: block;
    position: relative;
    width: 90%;
    margin: var(--r-block-margin) auto;
    font-family: var(--r-code-font);
    font-size: .55em;
    line-height: 1.2;
    text-align: left;
    overflow-wrap: break-word;
}

.reveal code {
    font-family: var(--r-code-font);
    text-transform: none;
    tab-size: 2;
}

.reveal pre code {
    display: block;
    max-height: 400px;
    padding: .5em;
    overflow: auto;
    color: var(--color-text);
    background: var(--color-container-bg);
    overflow-wrap: normal;
}

.reveal table {
    margin: auto;
    border-collapse: collapse;
    border-spacing: 0;
}

.reveal table th {
    font-weight: 700;
}

.reveal table th,
.reveal table td {
    padding: .2em .5em;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
    border-bottom: 0;
}

.reveal small {
    display: inline-block;
    font-size: .6em;
    line-height: 1.2;
    vertical-align: top;
}

.reveal img {
    margin: var(--r-block-margin) 0;
}

.reveal a {
    color: var(--r-link-color);
    text-decoration: none;
    transition: color .15s ease;
}

.reveal a:hover,
.reveal a:focus-visible {
    color: var(--r-link-color-hover);
    border: 0;
    text-shadow: none;
}

.reveal .controls,
.reveal .progress {
    color: var(--r-link-color);
}

.reveal .progress {
    background: color-mix(in srgb, var(--color-text) 20%, transparent);
}

.reveal .muted {
    color: var(--color-text-muted);
    font-size: .8em;
}

.reveal .big {
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
}

.reveal .accent {
    color: var(--color-accent);
}

.slide-section {
    margin-bottom: .5em;
    color: var(--color-text-muted);
    font-size: .7em;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
}

.stat-block {
    padding: 1em 1.2em;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.stat-block .label {
    color: var(--color-text-muted);
    font-size: .7em;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stat-block .value {
    color: var(--color-text);
    font-size: 1.6em;
    font-weight: 700;
}

.stat-block.highlight {
    border-color: var(--color-accent);
}

.stat-block.highlight .value {
    color: var(--color-accent);
}

body.no-cursor,
body.no-cursor * {
    cursor: none !important;
}

.cursor-dot {
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    pointer-events: none;
    transition: opacity .1s;
}

@media print {
    .backgrounds {
        background-color: var(--r-background-color);
    }
}
