/* Single-column challenge reading experience, using the shared cybersecurity Clup tokens. */
body.learning-view { background-image: none; }
body.learning-view .crumb { display: none; }
body.learning-view main { padding-top: 30px; }
.learning-page { max-width: 1060px; margin: 0 auto; }
.back-link { display: inline-flex; font-size: 13px; color: #99a9bf; margin-bottom: 22px; }
.back-link:hover { color: var(--accent); }
.path-heading { margin: 0 0 30px; }
.path-heading h1 { font-size: clamp(27px, 3vw, 36px); letter-spacing: -1.1px; margin-bottom: 12px; line-height: 1.2; }
.path-heading p { font-size: 15px; color: #a4b1c3; line-height: 1.75; max-width: 780px; margin: 0; }
.path-meta { display: flex; gap: 24px; font-size: 12px; color: #9cabc0; margin-top: 22px; }
.path-modules { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.path-module { display: grid; grid-template-columns: 42px minmax(0,1fr) 70px 18px; gap: 22px; align-items: center; padding: 28px; background: var(--surface); }
.path-module + .path-module { border-top: 1px solid var(--border); }
.path-module:hover { background: var(--raised); }
.path-module h2 { font-size: 18px; margin: 0 0 8px; }
.path-module p { font-size: 13px; line-height: 1.6; color: #a4b1c3; margin: 0; }
.path-number { font: 20px ui-monospace,monospace; color: var(--accent); }
.path-count { text-align: right; font: 13px ui-monospace,monospace; color: #becadb; }
.path-count small { display: block; font: 11px inherit; color: #91a0b7; margin-top: 5px; }
.path-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 22px 0; font-size: 13px; }
.path-bottom p { color: #9cabc0; }
.path-bottom a { color: var(--accent); white-space: nowrap; }
.module-heading { margin-bottom: 24px; }
.module-switcher { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 14px; border-bottom: 1px solid var(--border); }
.module-switcher a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 5px; white-space: nowrap; color: #9faec3; font-size: 12px; }
.module-switcher a span { font: 11px ui-monospace,monospace; opacity: .65; }
.module-switcher a[aria-current], .module-switcher a:hover { color: var(--accent); background: hsl(var(--neon)/.07); }
.challenge-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 14px; }
.challenge-list-heading h2 { font-size: 14px; font-weight: 600; }
.challenge-list-heading > span { font: 12px ui-monospace,monospace; color: #a4b1c3; }
.exercise { margin: 0 0 12px; padding: 0; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); overflow: clip; scroll-margin-top: 86px; }
.exercise > summary { display: flex; align-items: center; gap: 17px; list-style: none; cursor: pointer; background: #111c2c; padding: 21px 26px; color: var(--text); }
.exercise > summary::-webkit-details-marker { display: none; }
.exercise > summary:hover { background: #142134; }
.exercise > summary h3 { color: #e9f0f8; font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -.3px; }
.exercise[open] > summary h3 { color: var(--accent); }
.exercise-number { color: #8193ad; font: 12px ui-monospace,monospace; min-width: 22px; }
.exercise.is-solved .exercise-number { color: var(--accent); }
.exercise-meta { margin-left: auto; font-size: 11px; color: #a0aec1; white-space: nowrap; }
.exercise-chevron { color: #8c9bb1; font-size: 15px; transition: transform .15s; }
.exercise[open] .exercise-chevron { transform: rotate(180deg); }
.exercise-content { padding: 9px 30px 27px; }
.exercise-prose { color: #c8d2e0; font-size: 16px; line-height: 1.95; }
.exercise-prose p { margin: 19px 0; color: inherit; font-size: inherit; line-height: inherit; }
.exercise-prose code,.exercise-hint code { color: #8bbff1; font: .9em ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap: anywhere; background: transparent; padding: 0; }
.exercise-prose pre { background: #070d16; border: 1px solid #1b2a3f; border-radius: 5px; padding: 14px 18px; margin: 21px 0; overflow-x: auto; white-space: pre; font-size: 13px; line-height: 1.8; }
.exercise-prose pre code { color: #d6e2ee; font-size: inherit; }
.exercise-goal { padding-top: 5px; }
.exercise-goal strong { color: #edf3fb; font-weight: 600; }
.exercise-hint { margin: 0 0 18px; padding: 0; border: 0; font-size: 13px; color: #b1bfd1; }
.exercise-hint summary { color: #91a6c1; cursor: pointer; padding: 6px 0; width: fit-content; }
.exercise-hint p { margin: 10px 0; line-height: 1.8; color: #b1bfd1; }
.exercise-controls { display: flex; gap: 16px; align-items: center; margin-top: 25px; }
.start-exercise { min-width: 145px; height: 47px; justify-content: center; border: 1px solid #3b5169; background: transparent; color: #e0e9f3; box-shadow: none; font-size: 14px; }
.start-exercise:hover { background: hsl(var(--neon)/.06); border-color: var(--accent); color: var(--accent); }
.exercise-flag { flex: 1; display: flex; border: 1px solid #3b5169; border-radius: 5px; overflow: hidden; height: 47px; }
.exercise-flag:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px hsl(var(--neon)/.12); }
.exercise-flag input.field { min-width: 0; flex: 1; background: transparent; border: 0; margin: 0; padding: 12px 15px; border-radius: 0; font: 13px ui-monospace,monospace; outline: none; }
.exercise-flag button { background: transparent; border: 0; color: var(--accent); width: 48px; cursor: pointer; font-size: 20px; }
.exercise-flag:has(input:disabled) { border-color: #2a394d; }
.exercise-flag input:disabled { opacity: .7; cursor: not-allowed; }
.exercise-feedback { font-size: 12px; color: #9bacc3; line-height: 1.7; margin: 12px 0 0; }
.exercise-feedback.success { color: var(--accent); }
.exercise-next { display: inline-block; color: var(--accent); font-size: 13px; margin-top: 24px; }
.exercise-next[hidden] { display: none; }
.exercise-answer { display: flex; gap: 12px; }
.exercise-answer input { flex: 1; min-width: 0; }
.exercise-mode { color: #9cabc0; font-size: 12px; }
.exercise-host:empty { display: none; }
.exercise-host { margin-top: 22px; }
.live-lab { border: 1px solid #26374d; border-radius: 6px; background: #070d14; overflow: hidden; }
.live-topbar { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid #1c2a3c; background: #0d1623; font: 11px ui-monospace,monospace; color: #95b3aa; }
.live-timer { color: #97a6bc; }
.live-terminal { padding: 13px 12px 0; height: 355px; }
.live-tools { display: flex; gap: 16px; align-items: center; padding: 10px 15px; border-top: 1px solid #1c2a3c; }
.live-tools button { background: none; border: 0; padding: 6px 0; font: 11px inherit; color: #adbcd0; cursor: pointer; }
.live-tools button:hover { color: var(--accent); }
.live-tools > span { margin-left: auto; color: #73859e; font-size: 10px; }
.live-message { color: #c2b490; font-size: 12px; line-height: 1.7; margin: 0; padding: 0 15px 12px; }
.live-message:empty { display: none; }
.live-lab:fullscreen { display: flex; flex-direction: column; }
.live-lab:fullscreen .live-terminal { flex: 1; height: auto; min-height: 0; }
.exercise .embedded-workspace { min-height: 630px; }
.editor-context { margin: 0; padding: 12px 18px; font-size: 12px; line-height: 1.8; border-bottom: 1px solid var(--border); color: #a8b9ce; }
.editor-context code,.editor-context span { display: block; }
.editor-context summary { cursor: pointer; }
.editor-shortcut { margin-left: auto; color: #9babc1; font-size: 11px; }
@media (max-width:760px) {
  body.learning-view main { padding-top: 22px; }
  .learning-page { min-width: 0; }
  .path-module { padding: 20px 16px; gap: 12px; grid-template-columns: 27px minmax(0,1fr) 48px; }
  .path-module > span:last-child { display: none; }
  .path-module h2 { font-size: 16px; }
  .path-module p { font-size: 12px; }
  .path-bottom { align-items: start; flex-direction: column; gap: 8px; }
  .module-switcher a { padding: 8px 10px; }
  .exercise > summary { padding: 18px 14px; gap: 10px; }
  .exercise > summary h3 { font-size: 15px; }
  .exercise-meta { font-size: 10px; }
  .exercise-meta > span { display: none; }
  .exercise-content { padding: 5px 17px 22px; }
  .exercise-prose { font-size: 14px; line-height: 1.9; }
  .exercise-prose pre { padding: 12px; font-size: 12px; }
  .exercise-controls { gap: 10px; flex-wrap: wrap; }
  .start-exercise { min-width: 100%; }
  .exercise-flag { flex-basis: 100%; }
  .exercise-answer { flex-direction: column; }
  .live-terminal { height: 300px; padding: 10px 6px 0; }
  .live-tools { gap: 13px; padding: 8px 12px; }
  .live-tools > span { display: none; }
}
