:root {
	--r-heading-color: #2c3e50;
	--r-main-color: #333;
	--r-link-color: #2980b9;
	--hit-blue: #1a5276;
	--deep-blue: #2c3e50;
	--blue: #2980b9;
	--green: #27ae60;
	--orange: #e67e22;
	--red: #c0392b;
	--purple: #8e44ad;
	--muted: #777;
}

.reveal h1,
.reveal h2,
.reveal h3 {
	text-transform: none;
	font-weight: 700;
	letter-spacing: 0;
}

.reveal h1 {
	font-size: 1.72em;
}

.reveal h2 {
	font-size: 1.36em;
	margin-bottom: 0.42em;
}

.reveal h3 {
	font-size: 1.05em;
	color: #34495e;
}

.reveal h4 {
	margin: 0 0 0.3em 0;
	font-size: 0.96em;
	color: #2c3e50;
}

.reveal section {
	text-align: left;
}

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

.reveal .title-slide h1 {
	font-size: 1.5em;
	color: var(--hit-blue);
	line-height: 1.35;
}

.reveal .title-slide h2 {
	color: var(--orange);
	font-size: 1.02em;
	margin-top: 0.35em;
}

.reveal .title-slide p {
	font-size: 0.68em;
	color: #555;
	margin-top: 0.28em;
}

.reveal ul {
	font-size: 0.84em;
}

.reveal li {
	margin-bottom: 0.36em;
	line-height: 1.48;
}

.reveal code {
	font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

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

.reveal .small {
	font-size: 0.68em;
	color: var(--muted);
}

.reveal .accent {
	color: var(--red);
	font-weight: bold;
}

.reveal .blue {
	color: var(--blue);
	font-weight: bold;
}

.reveal .green {
	color: var(--green);
	font-weight: bold;
}

.reveal .orange {
	color: var(--orange);
	font-weight: bold;
}

.reveal .purple {
	color: var(--purple);
	font-weight: bold;
}

.reveal .highlight-box {
	background: #ebf5fb;
	border-left: 4px solid var(--blue);
	padding: 0.58em 0.9em;
	margin: 0.5em 0;
	font-size: 0.78em;
	text-align: left;
	border-radius: 0 6px 6px 0;
}

.reveal .highlight-box.green {
	background: #eafaf1;
	border-left-color: var(--green);
}

.reveal .highlight-box.orange {
	background: #fef9e7;
	border-left-color: var(--orange);
}

.reveal .highlight-box.red {
	background: #fdedec;
	border-left-color: var(--red);
}

.reveal table {
	font-size: 0.68em;
	border-collapse: collapse;
	margin: 0.5em auto;
}

.reveal table th {
	background: var(--deep-blue);
	color: white;
	padding: 0.38em 0.72em;
	font-weight: 700;
}

.reveal table td {
	padding: 0.36em 0.72em;
	border: 1px solid #ddd;
}

.reveal table tr:nth-child(even) {
	background: #f8f9fa;
}

.reveal .compact-table th,
.reveal .compact-table td {
	padding: 0.24em 0.48em;
}

.reveal .pipeline-box {
	display: inline-block;
	background: #3498db;
	color: white;
	padding: 0.28em 0.56em;
	margin: 0.12em;
	border-radius: 4px;
	font-size: 0.68em;
	font-weight: 700;
}

.reveal .pipeline-box.green-bg {
	background: var(--green);
}

.reveal .pipeline-box.orange-bg {
	background: var(--orange);
}

.reveal .pipeline-box.red-bg {
	background: var(--red);
}

.reveal .pipeline-box.purple-bg {
	background: var(--purple);
}

.reveal .pipeline-box.gray-bg {
	background: #95a5a6;
}

.reveal .toc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5em;
	font-size: 0.8em;
	text-align: left;
}

.reveal .toc-item {
	background: #f0f4f8;
	padding: 0.48em 0.74em;
	border-radius: 6px;
	border-left: 3px solid var(--blue);
}

.reveal .toc-item.done {
	background: #d4efdf;
	border-left-color: var(--green);
}

.reveal .toc-item.done::before {
	content: "✓ ";
	color: var(--green);
	font-weight: bold;
}

.reveal .two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.8em;
	font-size: 0.78em;
}

.reveal .two-col-3-2 {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 0.8em;
	font-size: 0.78em;
}

.reveal .two-col-2-3 {
	display: grid;
	grid-template-columns: 2fr 3fr;
	gap: 0.8em;
	font-size: 0.78em;
}

.reveal .three-col {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.55em;
	font-size: 0.74em;
}

.reveal .four-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5em;
	font-size: 0.74em;
}

.reveal .grid-item {
	background: #f8f9fa;
	padding: 0.48em 0.66em;
	border-radius: 6px;
	border-top: 3px solid var(--blue);
}

.reveal .grid-item p {
	margin: 0;
	line-height: 1.46;
}

.reveal .timeline {
	position: relative;
	font-size: 0.74em;
}

.reveal .timeline-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 0.48em;
}

.reveal .timeline-date {
	min-width: 7em;
	font-weight: bold;
	color: var(--blue);
	padding-top: 0.28em;
	font-size: 0.9em;
}

.reveal .timeline-content {
	background: #f0f4f8;
	padding: 0.4em 0.78em;
	border-radius: 6px;
	flex: 1;
	border-left: 3px solid var(--blue);
	line-height: 1.44;
}

.reveal .timeline-content.done {
	background: #d4efdf;
	border-left-color: var(--green);
}

.reveal .timeline-content.current {
	background: #fef9e7;
	border-left-color: var(--orange);
}

.reveal .progress-bar-container {
	background: #ecf0f1;
	border-radius: 10px;
	overflow: hidden;
	height: 28px;
	margin: 0.6em 0;
	position: relative;
}

.reveal .progress-bar-fill {
	background: linear-gradient(90deg, #27ae60, #2ecc71);
	height: 100%;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 0.74em;
}

.reveal .tag {
	display: inline-block;
	padding: 0.14em 0.48em;
	border-radius: 3px;
	font-size: 0.75em;
	font-weight: 700;
	margin: 0.1em;
}

.reveal .tag.done {
	background: #d4efdf;
	color: var(--green);
}

.reveal .tag.wip {
	background: #fef9e7;
	color: var(--orange);
}

.reveal .tag.todo {
	background: #fadbd8;
	color: var(--red);
}

.reveal .stat-number {
	font-size: 2em;
	font-weight: 800;
	color: var(--blue);
	line-height: 1;
}

.reveal .stat-label {
	font-size: 0.68em;
	color: var(--muted);
}

.reveal .perf-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.6em;
	margin: 0.6em 0;
}

.reveal .perf-card {
	background: #f8fafc;
	border-radius: 8px;
	padding: 0.58em 0.36em;
	text-align: center;
	border-top: 3px solid var(--blue);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.reveal .perf-card .perf-num {
	font-size: 1.44em;
	font-weight: 800;
	color: var(--blue);
	line-height: 1.1;
}

.reveal .perf-card .perf-label {
	font-size: 0.72em;
	color: #555;
	margin-top: 0.3em;
	line-height: 1.25;
}

.reveal .perf-card.green,
.reveal .grid-item.green {
	border-top-color: var(--green);
}

.reveal .perf-card.green .perf-num {
	color: var(--green);
}

.reveal .perf-card.orange,
.reveal .grid-item.orange {
	border-top-color: var(--orange);
}

.reveal .perf-card.orange .perf-num {
	color: var(--orange);
}

.reveal .perf-card.purple,
.reveal .grid-item.purple {
	border-top-color: var(--purple);
}

.reveal .perf-card.purple .perf-num {
	color: var(--purple);
}

.reveal .perf-card.red,
.reveal .grid-item.red {
	border-top-color: var(--red);
}

.reveal .perf-card.red .perf-num {
	color: var(--red);
}

.reveal .citation {
	font-size: 0.6em;
	color: #888;
	font-style: italic;
	margin-top: 0.3em;
}

.reveal pre code {
	border-radius: 6px;
	padding: 0.5em 0.8em;
	font-size: 0.55em;
	line-height: 1.5;
}

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

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

.reveal .formula {
	font-size: 0.76em;
	background: #f8f9fa;
	border-radius: 6px;
	padding: 0.42em 0.62em;
	text-align: center;
	margin: 0.42em 0;
}

.reveal .image-frame {
	display: block;
	max-width: 100%;
	max-height: 430px;
	margin: 0.35em auto;
	border-radius: 6px;
	border: 1px solid #dde3ea;
	background: white;
}

.reveal .axis-chart {
	width: 100%;
	height: auto;
	max-height: 430px;
	display: block;
	margin: 0.2em auto;
}

.reveal .mono-box {
	font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
	background: #2d2d2d;
	color: #f8f8f2;
	padding: 0.72em 0.9em;
	border-radius: 8px;
	font-size: 0.58em;
	line-height: 1.5;
}

.reveal .katex {
	font-size: 1.06em;
}

.reveal .katex-display {
	margin: 0.3em 0;
}

.reveal .formula .katex-display {
	margin: 0.2em 0;
}

.reveal .flow-diagram {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.22em;
	font-size: 0.68em;
	line-height: 1.25;
}

.reveal .flow-node {
	background: #ebf5fb;
	color: #2c3e50;
	border: 2px solid #2980b9;
	border-radius: 6px;
	padding: 0.42em 0.62em;
	font-weight: 700;
	text-align: center;
	min-width: 6.8em;
}

.reveal .flow-node.green {
	background: #eafaf1;
	border-color: #27ae60;
}

.reveal .flow-node.orange {
	background: #fef9e7;
	border-color: #e67e22;
}

.reveal .flow-node.red {
	background: #fdedec;
	border-color: #c0392b;
}

.reveal .flow-arrow {
	color: #555;
	font-weight: 800;
	font-size: 1.2em;
}

.reveal .flow-break {
	flex-basis: 100%;
	height: 0;
}

@media (max-width: 760px) {
	.reveal .two-col,
	.reveal .two-col-3-2,
	.reveal .two-col-2-3,
	.reveal .three-col,
	.reveal .four-grid,
	.reveal .toc-grid,
	.reveal .perf-grid {
		grid-template-columns: 1fr;
	}
}
