:root {
  --accent: #0b5d5e;
  --accent-2: #c84c09;
  --ink-soft: #4a5568;
  --panel: #f8fafc;
  --line: #d9e2ec;
}

body {
  line-height: 1.55;
}

h1, h2, h3 {
  letter-spacing: -0.01em;
}

.hero-card,
.timebox,
.quick-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--panel) 100%);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0.8rem 0 1rem;
}

.hero-card h2,
.timebox h3,
.quick-card h3 {
  margin-top: 0;
}

.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  background: #fff;
}

.chapter-map td,
.chapter-map th,
.schedule-table td,
.schedule-table th {
  vertical-align: top;
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  margin: 0.8rem 0 1rem;
}

.what-grid > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.7rem 0.8rem;
}

.what-grid strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0.8rem 0 1rem;
}

@media (min-width: 1100px) {
  .app-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.app-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  background: #fff;
}

.app-card h3,
.app-card h4 {
  margin-top: 0;
}

.app-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.app-frame.tall {
  aspect-ratio: 4 / 3;
}

.app-frame.short {
  aspect-ratio: 21 / 9;
}

.app-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.prompt-list li,
.checklist li {
  margin-bottom: 0.35rem;
}

.exercise-log table,
.exercise-log td,
.exercise-log th {
  border-color: var(--line);
}

.exercise-log table {
  width: 100%;
}

.muted {
  color: var(--ink-soft);
}

.reveal .slides h1,
.reveal .slides h2,
.reveal .slides h3 {
  color: #0f172a;
}

.reveal .slides section {
  text-align: left;
  font-size: 0.92em;
  line-height: 1.22;
}

/* Vertically center content on non-app slides */
.reveal .slides section:not(.app-slide) {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
}

.reveal .slides section h2 {
  font-size: 1.72em;
  line-height: 1.08;
  margin-bottom: 0.45rem;
}

.reveal .slides .slides-card {
  border: 1px solid #dbe3ea;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 0.9rem 1rem;
  font-size: 0.9em;
  line-height: 1.24;
}

.reveal .slides .slides-card p,
.reveal .slides .slides-card li {
  line-height: 1.24;
}

.reveal .slides .slides-card ul,
.reveal .slides .slides-card ol {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.reveal .slides .slides-card table {
  font-size: 0.84em;
  line-height: 1.16;
}

.reveal .slides .slides-card th,
.reveal .slides .slides-card td {
  padding: 0.18rem 0.34rem;
  vertical-align: top;
}

.reveal .slides pre code {
  font-size: 0.74em;
  line-height: 1.12;
}

.reveal .slides .mini {
  font-size: 0.72em;
}

.reveal .slides .tight li {
  margin-bottom: 0.2rem;
}

.reveal .slides .app-frame {
  margin-top: 0.5rem;
}

/* Sections inside columns are NOT slides — override Reveal's absolute positioning */
.reveal .slides .column section {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  display: block !important;
}

/* App slide: make the heading + columns stack vertically so columns fill the rest */
.reveal .slides section.app-slide {
  display: flex !important;
  flex-direction: column;
}

.reveal .slides .app-columns {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.7rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.reveal .slides .app-columns > .column {
  display: flex;
  flex-direction: column;
}

.reveal .slides section.app-slide h2 {
  font-size: 1.35em;
  margin-bottom: 0.22rem;
}

.reveal .slides section.app-slide .slides-card.task-card {
  padding: 0.65rem 0.8rem;
  font-size: 0.68em;
  line-height: 1.28;
  height: 100%;
}

.reveal .slides section.app-slide .slides-card.task-card h3 {
  font-size: 1.05em;
  margin: 0 0 0.3rem;
}

.reveal .slides section.app-slide .slides-card.task-card p {
  margin: 0.2rem 0 0.35rem;
}

.reveal .slides section.app-slide .slides-card.task-card ol {
  margin: 0.25rem 0 0 1.1rem;
}

.reveal .slides section.app-slide .slides-card.task-card li {
  margin-bottom: 0.22rem;
}

.reveal .slides section.app-slide .app-frame.stage {
  margin-top: 0;
  aspect-ratio: auto;
  height: 490px;
}

.reveal .slides section.app-slide .app-link {
  margin-top: 0.2rem;
  font-size: 0.62em;
  line-height: 1.15;
}

.reveal .slides section.app-slide .app-frame iframe {
  background: #fff;
  pointer-events: auto;
}

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

.reveal .slide-number {
  color: #334155;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 0.8rem;
  color: #243b53;
}
