/* Python Pathways: the AI Labs look (Lessonsmith greens and gold). */
.pw-main { padding-top: 18px; padding-bottom: 48px; outline: none; }
.pw-hero { background: radial-gradient(circle at 85% 20%, rgb(244 200 66 / .35), transparent 40%), radial-gradient(circle at 10% 90%, rgb(45 190 143 / .35), transparent 45%), linear-gradient(135deg, #0E4D3E, #137A5E); color: #fff; border-radius: 24px; padding: 32px 28px; margin-bottom: 20px; }
.pw-hero h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 10px 0 8px; color: #fff; }
.pw-hero p { font-size: 1.15rem; max-width: 60ch; margin: 0; }
.pw-flag { display: inline-block; background: #F4C842; color: #0E4D3E; font-weight: 700; border-radius: 999px; padding: 6px 14px; }
.pw-card { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px; box-shadow: 0 12px 34px rgb(14 77 62 / .08); min-width: 0; }
.pw-stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pw-stage { display: grid; gap: 6px; text-align: left; padding: 20px; border-radius: 24px; border: 2px solid var(--line); background: #fff; color: #0E4D3E; min-height: 44px; cursor: pointer; box-shadow: 0 12px 34px rgb(14 77 62 / .08); }
.pw-stage b { font-family: var(--font-display); font-size: 1.4rem; }
.pw-stage small { color: var(--muted); font-size: .98rem; }
.pw-stage-shape { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; background: #E1F4EB; }
.pw-ks4 .pw-stage-shape { background: #2DBE8F; } .pw-ks5 .pw-stage-shape { background: #0E4D3E; color: #F4C842; }
.pw-stage:hover, .pw-stage:focus-visible { border-color: #137A5E; }
.pw-stage-progress { font-weight: 600; color: #137A5E; }
.pw-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pw-how p { margin: 6px 0 0; color: var(--muted); }
.pw-assigned { border: 2px solid #F4C842; border-radius: 24px; padding: 18px 20px; background: #FFFBEA; }
.pw-coin-line { font-weight: 600; color: #0E4D3E; }

/* The pathway: numbered skills, easy to hard; the suggested one in gold. */
.pw-path { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.pw-skill { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 16px 18px; }
.pw-skill.now { border: 2px solid #F4C842; box-shadow: 0 0 0 4px rgb(244 200 66 / .25); }
.pw-skill-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #137A5E; color: #fff; font-weight: 700; font-size: 1.15rem; }
.pw-skill h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.pw-skill-body { min-width: 0; }
.pw-dots { margin: 6px 0; }
.pw-dot { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); margin-right: 4px; }
.pw-dot.done { background: #E1F4EB; border-color: #2DBE8F; font-weight: 700; }
.pw-t1, .pw-t2, .pw-t3 { min-height: 44px; }
.pw-t2 { background: #E1F4EB; } .pw-t3 { background: #0E4D3E; color: #F4C842; border-color: #0E4D3E; }
.pw-later { opacity: .8; }

/* One step at a time. */
.pw-steps { list-style: none; padding: 0; margin: 10px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.pw-steps li { padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 600; }
.pw-steps li.now { background: #F4C842; border-color: #F4C842; color: #0E4D3E; }
.pw-steps li.done { background: #E1F4EB; border-color: #2DBE8F; }
.pw-stepcard h3 { font-family: var(--font-display); margin: 0 0 8px; font-size: 1.3rem; }
.pw-big { font-size: 1.2rem; line-height: 1.6; }
.pw-where { font-size: 1.1rem; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.pw-task { font-size: 1.15rem; font-weight: 600; color: #0E4D3E; background: #F3FAF6; border-left: 6px solid #2DBE8F; padding: 10px 14px; border-radius: 10px; }
.pw-code { background: #0E4D3E; color: #fff; padding: 14px 16px; border-radius: 14px; font-family: var(--font-mono); font-size: 1rem; overflow-x: auto; white-space: pre; max-width: 100%; }
.pw-editor { margin: 10px 0; }
.pw-console { max-height: 320px; overflow: auto; }
.pw-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0; }
.pw-opt { display: flex; gap: 10px; align-items: center; text-align: left; min-height: 56px; padding: 12px 16px; border-radius: 16px; font-size: 1.05rem; font-weight: 600; border: 2px solid transparent; cursor: pointer; overflow-wrap: anywhere; }
.pw-o0 { background: #0E4D3E; color: #fff; } .pw-o1 { background: #137A5E; color: #fff; } .pw-o2 { background: #F4C842; color: #0E4D3E; } .pw-o3 { background: #fff; color: #0E4D3E; border-color: #0E4D3E; }
.pw-win { color: #0E4D3E; background: #E1F4EB; border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.pw-nudge { color: #5a4300; background: #FFF6D6; border-radius: 12px; padding: 10px 14px; }
.pw-error { background: #FFF6D6; border-left: 6px solid #F4C842; border-radius: 10px; padding: 8px 12px; margin-top: 8px; }
.pw-checks { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.pw-checks li { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.pw-checks li.ok { background: #E1F4EB; border-color: #2DBE8F; font-weight: 600; }
.pw-hints ol { margin: 8px 0; }
.pw-support-note { background: #FFFBEA; border: 1px dashed #F4C842; border-radius: 10px; padding: 8px 12px; }
.pw-speak { min-height: 36px; margin-left: 6px; vertical-align: middle; }
.pw-support-btn[aria-pressed="true"] { background: #F4C842; color: #0E4D3E; border-color: #F4C842; }
.pw-challenge.pw-t3 .labs-num { background: #0E4D3E; color: #F4C842; }

/* Extra support: bigger code, more space between lines. */
.pw-supported .pw-editor textarea, .pw-supported .pw-editor .cd-hl { font-size: 1.15rem; }
.pw-supported .pw-big, .pw-supported .pw-task { font-size: 1.3rem; }

/* The sandbox. */
.pw-sandbox { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.pw-proj-list { display: grid; gap: 8px; }
.pw-proj-list h3 { margin: 10px 0 0; }
.pw-proj { text-align: left; min-height: 44px; padding: 10px 14px; border-radius: 14px; }
.pw-proj.mine { border-color: #F4C842; }
.pw-criteria { list-style: none; padding: 0; display: grid; gap: 6px; }
.pw-criteria label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; }
.pw-criteria input { width: 24px; height: 24px; flex: none; }

@media (max-width: 900px) {
  .pw-stage-grid, .pw-how { grid-template-columns: 1fr; }
  .pw-sandbox { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pw-options { grid-template-columns: 1fr; }
  .pw-skill { grid-template-columns: 1fr; }
  .pw-hero { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) { .pw-main * { transition: none !important; animation: none !important; } }
