/* typography-fundamentals: colours and course-only rules for course.css */

.course-lesson.typography-fundamentals {
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --c1: #f59e0b;
  --c2: #6a737d;
  --c3: #f59e0b;
  --c4: #7ecfa0;
  --c5: #d2a8ff;
  --c6: #0f2417;
  --c7: #1f4d2c;
  --c8: #2ea043;
  --c9: #7ee787;
  --c10: #1a1424;
  --c11: #3d2a5c;
  --c12: #a371f7;
  --c13: #d2a8ff;
  --accent-bg: #2a1a05;
  --accent-ink: #1a0f02;
  --accent-border: #92400e;
  --c14: #2a1a05;
  --c15: #b3bce0;
}

.course-lesson.typography-fundamentals .example {
  margin: 1rem 0 1.5rem;
}

.course-lesson.typography-fundamentals .example .code-block {
  margin: 0;
  border-radius: 8px 8px 0 0;
}

.course-lesson.typography-fundamentals .example .code-block-wrap:last-child .code-block {
  border-radius: 8px;
}

.course-lesson.typography-fundamentals .output-block {
  background: #161b22;
  border: 1px solid #30363d;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 0.8rem 1.2rem;
  overflow-x: auto;
  white-space: pre;
  font-family: 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #a8b3c0;
}

.course-lesson.typography-fundamentals .output-block.empty {
  color: #6e7681;
  font-style: italic;
}

/* screenshots of tools (Swagger UI, Redoc) */
.typography-fundamentals img.shot { display: block; max-width: 100%; height: auto; margin: 14px 0 6px; border: 1px solid #30363d; border-radius: 8px; background: #fff; }

/* run output under a code block */
.course-lesson.typography-fundamentals .example { margin: 1rem 0 1.5rem; }
.course-lesson.typography-fundamentals .example .code-block { margin: 0; border-radius: 8px 8px 0 0; }
.course-lesson.typography-fundamentals .output-block {
  background: #161b22; border: 1px solid #30363d; border-top: none; border-radius: 0 0 8px 8px;
  padding: 0.8rem 1.2rem; overflow-x: auto; white-space: pre;
  font-family: 'Consolas', monospace; font-size: 0.85rem; line-height: 1.6; color: #a8b3c0;
}

/* specimens: live text samples */
.course-lesson.typography-fundamentals .specimen-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.8rem; margin: 1rem 0 1.5rem;
}
.course-lesson.typography-fundamentals .specimen {
  background: #161b22; border: 1px solid #30363d; border-radius: 10px; padding: 1rem 1.1rem;
}
.course-lesson.typography-fundamentals .specimen .sp-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.5rem;
}
.course-lesson.typography-fundamentals .specimen p { margin: 0; }
.course-lesson.typography-fundamentals .specimen .sp-note { font-size: 0.78rem; color: #8b949e; margin-top: 0.6rem; }

/* anatomy diagram */
.course-lesson.typography-fundamentals svg.anatomy {
  display: block; width: 100%; max-width: 720px; height: auto; margin: 1rem 0 0.4rem;
  background: #0d1117; border: 1px solid #30363d; border-radius: 10px;
}
.course-lesson.typography-fundamentals .figcaption { font-size: 0.8rem; color: #8b949e; margin-bottom: 1.2rem; }
