/* varro-edukg.css — supplementary polish over the Cromer rich-lesson design system.
   Boxes the VSL worked-example code, and tints the trap / check callouts so the
   pedagogy stands out. Palette harmonised with the Cromer cream + navy. */

.lesson-body h2 {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b5e;
  margin: 1.2rem 0 0.5rem;
}

/* concept dividers */
.lesson-body .rlp-panel + .rlp-panel {
  border-top: 1px solid #e7e7df;
  margin-top: 2rem;
  padding-top: 1.75rem;
}
.rlp-segment-title code {
  background: none;
  color: #1a1a2e;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.4rem;
}

/* worked-example VSL code blocks */
pre.vsl-snippet {
  background: #1c1c2e;
  color: #e8e8f2;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 3px solid #4a6fa5;
  overflow-x: auto;
  margin: 0.6rem 0 0.4rem;
}
pre.vsl-snippet code { font-family: inherit; color: inherit; background: none; }

/* misconception (trap) callout */
.rlp-checkpoint.trap-callout {
  background: #fdf3f2;
  border: 1px solid #f0d6d3;
  border-left: 4px solid #b0413e;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0.8rem 0;
}
.rlp-checkpoint.trap-callout h2 { color: #b0413e; margin-top: 0; }

/* retrieval check callout */
.rlp-checkpoint.check-callout {
  background: #eef4fb;
  border: 1px solid #d4e2f2;
  border-left: 4px solid #2c5aa0;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0.8rem 0;
}
.rlp-checkpoint.check-callout h2 { color: #2c5aa0; margin-top: 0; }
.rlp-checkpoint.check-callout em { color: #3a4a5e; }

/* index module list */
.resource-list li { margin: 0.4rem 0; }
.resource-list a { text-decoration: none; }
.resource-list a:hover { text-decoration: underline; }

/* --- course completion: do / assess / path --- */
.rlp-checkpoint.do-callout { background:#f0faf3; border:1px solid #cfe9d8; border-left:4px solid #2e8b57; border-radius:6px; padding:12px 16px; margin:0.8rem 0; }
.rlp-checkpoint.do-callout h2 { color:#155b38; margin-top:0; }
.rlp-checkpoint.do-callout summary { cursor:pointer; color:#17324d; font-family:"Source Sans 3",system-ui,sans-serif; font-size:0.82rem; margin-top:0.5rem; }

.assessment-block { border-top:2px solid #e7e7df; margin-top:2.5rem; padding-top:1.75rem; }
.quiz-list li { margin:1.1rem 0; }
.quiz-opt { display:block; margin:0.25rem 0; padding:0.3rem 0.5rem; border-radius:4px; cursor:pointer; }
.quiz-opt:hover { background:#f2f2ec; }
.quiz-btn { font-family:"Source Sans 3",system-ui,sans-serif; background:#1a1a2e; color:#fff; border:none; border-radius:6px; padding:8px 18px; cursor:pointer; font-size:0.9rem; }
.quiz-btn:hover { background:#2c2c4e; }
.quiz-result { font-weight:600; margin-top:0.7rem; }
.quiz-result.quiz-pass { color:#2e8b57; }
.quiz-result.quiz-fail { color:#b0413e; }

.path-list li { margin:0.3rem 0; }
.path-list code { font-size:0.95rem; }

/* --- first-reader on-ramp --- */
.start-onramp {
  background: #f8fbfb;
  border-left: 4px solid #0f7d84;
}

.onramp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.onramp-primary,
.onramp-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 6px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 13px;
  text-decoration: none;
}

.onramp-primary {
  background: #17324d;
  color: #fff;
}

.onramp-primary:hover,
.onramp-primary:focus-visible {
  background: #0f7d84;
  text-decoration: none;
}

.onramp-secondary {
  border: 1px solid #cddbd7;
  background: #fffefa;
  color: #17324d;
}

.onramp-secondary:hover,
.onramp-secondary:focus-visible {
  border-color: #0f7d84;
  text-decoration: none;
}

/* --- learner path and vocabulary floor --- */
.novice-intro {
  background: #fffefa;
  border-left: 4px solid #17324d;
}

.novice-vocab {
  margin-top: 1.1rem;
}

.term-definition-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0.75rem 0 1rem;
}

.term-definition {
  border: 1px solid #e2e2d8;
  border-radius: 6px;
  background: #f8fbfb;
  padding: 10px 12px;
}

.term-definition dt {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  color: #17324d;
  margin-bottom: 0.25rem;
}

.term-definition dt a {
  color: inherit;
  text-decoration: none;
}

.term-definition dt a:hover,
.term-definition dt a:focus-visible {
  text-decoration: underline;
}

.term-definition dd {
  margin: 0;
  color: #3f4b53;
  line-height: 1.42;
}

.worked-thread {
  margin-top: 1.15rem;
}

.worked-thread ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.worked-thread li {
  border: 1px solid #d7dfdf;
  border-top: 4px solid #0f7d84;
  border-radius: 6px;
  background: #f7fbfb;
  padding: 10px;
}

.worked-thread span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #17324d;
  color: #fff;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.worked-thread strong {
  display: block;
  color: #17324d;
  font-family: "Source Sans 3", system-ui, sans-serif;
  line-height: 1.2;
}

.worked-thread p {
  color: #53606a;
  font-size: 0.84rem;
  line-height: 1.35;
  margin: 0.35rem 0 0;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 1rem 0 0.25rem;
}

.flow-step {
  border: 1px solid #d7dfdf;
  border-top: 4px solid #0f7d84;
  border-radius: 6px;
  background: #f7fbfb;
  padding: 10px;
  min-height: 120px;
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f3b63;
  color: #fff;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.flow-step strong,
.flow-step small {
  display: block;
}

.flow-step strong {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: #17324d;
  font-size: 0.95rem;
}

.flow-step small {
  color: #53606a;
  font-size: 0.8rem;
  line-height: 1.35;
  margin-top: 0.35rem;
}

.learner-path-list {
  display: grid;
  gap: 1rem;
}

.learner-stage {
  border: 1px solid #e2e2d8;
  border-radius: 6px;
  padding: 14px 16px;
  background: #fffefa;
}

.learner-stage h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.3rem;
  margin: 0.1rem 0 0.45rem;
  color: #1a1a2e;
}

.learner-stage h2,
.readiness-panel h2 {
  margin-top: 1rem;
}

.stage-code,
.term-kind {
  color: #66727a;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.82rem;
  margin: 0;
}

.term-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding-left: 0;
  margin: 0.45rem 0 0.75rem;
}

.term-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cddbd7;
  border-radius: 999px;
  background: #eef7f5;
  color: #153f45;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 0.84rem;
  line-height: 1.2;
  min-height: 30px;
  padding: 5px 10px;
  text-decoration: none;
}

.term-chip:hover,
.term-chip:focus-visible {
  background: #dff0ed;
  text-decoration: none;
}

.ready-list,
.concept-list {
  margin-top: 0.4rem;
}

.ready-list li,
.concept-list li {
  margin: 0.35rem 0;
}

.readiness-panel {
  background: #f4f8fb;
  border: 1px solid #d8e5ee;
  border-left: 4px solid #0f7d84;
  border-radius: 6px;
  padding: 14px 16px;
}

.intent-panel,
.spaced-warmup,
.representation-panel {
  background: #fffefa;
  border: 1px solid #e2e2d8;
  border-left: 4px solid #17324d;
  border-radius: 6px;
  padding: 14px 16px;
}

.intent-list li,
.success-list li {
  margin: 0.35rem 0;
}

.generated-representation {
  margin: 0.8rem 0 0;
}

.generated-representation svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d7dfdf;
  border-radius: 6px;
  background: #fffefa;
}

.generated-representation figcaption {
  color: #53606a;
  font-size: 0.86rem;
  line-height: 1.4;
  margin-top: 0.45rem;
}

.glossary-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.glossary-term {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #e2e2d8;
  border-radius: 6px;
  padding: 12px 14px;
  background: #fffefa;
}

.glossary-term dt {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  color: #17324d;
}

.glossary-term dd {
  margin: 0;
}

.glossary-term p {
  margin-top: 0;
}

@media (max-width: 900px) {
  .term-definition-list,
  .worked-thread ol {
    grid-template-columns: 1fr;
  }

  .flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step {
    min-height: 0;
  }

  .glossary-term {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .flow-strip {
    grid-template-columns: 1fr;
  }
}
