.case-nav-link[aria-current="page"] { color: #2447a8; font-weight: 750; }
.case-page > h1 { margin-bottom: 16px; }
.case-page > h1:has(+ .learning-intro) { margin-bottom: 0; }
.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  overflow: hidden;
  color: #f1f5fb;
  background: #14243a;
  border-radius: 16px;
  margin-bottom: 20px;
}
.case-hero > div { padding: clamp(20px, 3vw, 34px); }
.case-hero h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.8vw, 2.25rem); }
.case-hero p { margin: 0 0 13px; line-height: 1.55; }
.case-hero .case-count { margin: 4px 0 12px; color: #cedbed; font-size: .88rem; }
.case-cover { width: 100%; height: 100%; min-height: 170px; object-fit: cover; object-position: 54% 58%; }
.case-hero .progress-bar { max-width: 260px; color: #ffda85; }
.case-page .case-hero-button { background: #ffda85; color: #2c2416; border-color: #ffda85; }
.case-page .case-hero-button:hover { background: #ffe4a7; }
.case-page .case-hero-button:focus-visible { outline-color: #ffda85; }
.case-map-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(210px, .9fr); gap: 15px; align-items: start; }
.case-chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.case-chapter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
  background: white;
}
.case-chapter h3, .case-chapter p { margin: 0; }
.case-chapter p { margin-top: 4px; color: #425673; font-size: .88rem; line-height: 1.4; }
.case-chapter > a { flex: none; }
.case-locked { flex: none; color: #526883; font-size: .8rem; max-width: 13ch; }
.case-journal { padding: 14px; border-radius: 12px; background: #edf4f7; color: #254460; }
.case-journal h2, .case-journal p, .case-journal ul { margin: 0; }
.case-journal h2 { margin-bottom: 9px; font-size: 1.08rem; }
.case-journal ul { padding-left: 1.2em; display: grid; gap: 8px; }
.case-journal p, .case-journal li { font-size: .9rem; line-height: 1.45; }
.case-result h2, .case-scene h2 { margin: 0 0 10px; }
.case-scene [hidden] { display: none; }
.case-resumed { color: #456581; font-weight: 650; font-size: .87rem; margin: 8px 0; }
.case-position { margin: 0 0 8px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.case-scene .case-actions, .case-result .case-actions { margin-top: 12px; }
.case-feedback > p { margin: 10px 0 0; font-weight: 620; color: #294967; }
.case-feedback > p:empty { display: none; }
.case-feedback .criteria-list { margin-top: 10px; }
.case-demonstration, .case-hint {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid #dae4ee;
  background: #f4f7fb;
  color: #294967;
}
.case-demonstration > summary, .case-hint > summary { cursor: pointer; font-weight: 690; padding: 4px 0; }
.case-demo-frame { position: relative; isolation: isolate; }
.case-demo-caption { margin: 6px 0; font-weight: 650; }
.case-hint p { margin: 5px 0; line-height: 1.45; }
.case-conclusion { font-weight: 650; }
.case-scene .case-journal { margin-top: 12px; }
.case-artifacts { margin-top: 14px; padding: 12px; border-radius: 10px; background: #f5f7fb; }
.case-artifacts h3 { margin: 0; }
.case-export-status { margin: 8px 0 0; color: #294967; }
.case-export-status:empty { display: none; }
@media (max-width: 730px) {
  .case-hero, .case-map-grid { grid-template-columns: minmax(0, 1fr); }
  .case-cover { grid-row: 1; height: 116px; min-height: 0; }
  .case-chapter { flex-wrap: wrap; }
  .case-locked { max-width: none; }
}
@media (max-width: 540px) {
  .klik-shell .case-nav-link { font-size: .8rem; }
}
.case-hero-text { grid-template-columns: minmax(0, 1fr); }
.case-hero-text p { max-width: 64ch; }
.case-practice-link { margin-top: 16px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-grid h2 { margin-top: 0; }
.project-grid p { line-height: 1.55; }
@media (max-width: 680px) { .project-grid { grid-template-columns: minmax(0, 1fr); } }
