/* L2-specific overrides on top of shared/custom.css. */

/* Applications-grid: 4-up image+caption grid for the visual landing slide. */
.reveal .app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7em 1em;
  text-align: center;
  margin-top: 0.4em;
}
.reveal .app-grid .app {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reveal .app-grid img {
  max-width: 100%;
  max-height: 110px;
  width: auto;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}
.reveal .app-grid .app-caption {
  font-size: 0.65em;
  line-height: 1.25;
  margin-top: 0.3em;
  color: #111827;
  font-weight: 600;
}
.reveal .app-grid .app-caption strong { color: #111827; font-weight: 600; }

/* Tiny info note (replaces Beamer's `inote`). */
.reveal .inote {
  margin: 0.5em 0;
  padding: 0.4em 0.8em;
  background: #fef9c3;
  border-left: 4px solid #ca8a04;
  font-size: 0.7em;
  line-height: 1.4;
  text-align: left;
  color: #422006;
}

/* Stat cards row (state-space-sizes slide). 3 big numbers side-by-side. */
.reveal .stat-grid {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  align-items: stretch;
  margin: 1em 0;
}
.reveal .stat-card {
  flex: 1;
  padding: 1.2em 0.8em;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-top: 5px solid #1d4ed8;
  border-radius: 6px;
  text-align: center;
}
.reveal .stat-card .stat-number {
  font-size: 1.6em;
  font-weight: bold;
  color: #1d4ed8;
  line-height: 1;
  margin-bottom: 0.4em;
}
.reveal .stat-card .stat-number sup { font-size: 0.6em; vertical-align: super; }
.reveal .stat-card .stat-label {
  font-size: 0.85em;
  font-weight: 600;
  color: #111827;
}
.reveal .stat-card .stat-sub {
  font-size: 0.65em;
  color: #6b7280;
  margin-top: 0.3em;
  line-height: 1.3;
}

/* Numerical table for the "Why O(b^d) matters" slide. */
.reveal table.bigO-table {
  width: 75%;
  margin: 0.6em auto;
  border-collapse: collapse;
  font-size: 0.8em;
}
.reveal table.bigO-table th,
.reveal table.bigO-table td {
  padding: 0.4em 0.9em;
  border-bottom: 1px solid #e5e7eb;
}
.reveal table.bigO-table th {
  background: #eff6ff;
  color: #1e3a8a;
  text-align: center;
}
.reveal table.bigO-table td:first-child {
  text-align: center;
  font-weight: 600;
}
.reveal table.bigO-table td.num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  text-align: right;
}
.reveal table.bigO-table td.mem {
  text-align: left;
  color: #4b5563;
  font-style: italic;
}

/* Maze comparison: two animated GIFs side-by-side. */
.reveal .maze-pair {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  align-items: flex-start;
  margin-top: 0.4em;
}
.reveal .maze-pair > div { flex: 1; text-align: center; }
.reveal .maze-pair img {
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}
.reveal .maze-pair .maze-label {
  font-size: 0.95em;
  font-weight: 600;
  color: #1d4ed8;
  margin-top: 0.4em;
}

/* "Expand" operation inset SVG on the Generic Search Algorithm slide. */
.reveal .expand-inset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  margin-top: 0.6em;
  font-size: 0.7em;
}
.reveal .expand-inset .step {
  padding: 0.35em 0.7em;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #f9fafb;
  white-space: nowrap;
}
.reveal .expand-inset .step.active {
  background: #eff6ff;
  border-color: #1d4ed8;
  color: #1e3a8a;
  font-weight: 600;
}
.reveal .expand-inset .arrow {
  color: #6b7280;
  font-size: 1.2em;
}
