/* Styles for the lesson flow in kwd-path.js. Colours come from kwd-ui.css. */
.kp-head{margin:12px 0 16px}
.kp-goal{margin:0 0 12px;padding:12px 16px;border-radius:12px;background:var(--kwd-green-50);border:1px solid var(--kwd-green-100);color:var(--kwd-ink);font-size:16px;line-height:1.55}
.kp-goal b{display:block;font-size:13px;letter-spacing:.04em;color:var(--kwd-green-600);margin-bottom:2px}
.kp-progress{display:flex;gap:6px}
.kp-progress i{flex:1;height:8px;border-radius:99px;background:#e3dfd3}
.kp-progress i.is-done{background:var(--kwd-green-600)}
.kp-progress i.is-now{background:var(--kwd-gold)}
.kp-step{margin:6px 0 0;font-size:13px;font-weight:700;color:var(--kwd-muted)}
.kp-panel{padding:24px!important}
.kp-stage-title{margin:0 0 4px!important;font-size:clamp(22px,4.5vw,28px)!important;letter-spacing:-.02em;outline:none}
.kp-instruction{margin:0 0 20px!important;color:var(--kwd-muted);font-size:16px;line-height:1.55}
.kp-count{margin:0 0 8px;font-size:13px;font-weight:700;color:var(--kwd-muted)}
.kp-sub{margin:24px 0 10px!important;font-size:16px!important;color:var(--kwd-green-800)}

/* Word and sentence cards */
.kp-words{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kp-word,.kp-sentence{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--kwd-line);border-radius:14px;background:#fff}
.kp-sentence{margin:8px 0}
.kp-word>div,.kp-sentence>div{min-width:0;flex:1 1 140px}
.kp-word b,.kp-sentence b{display:block;font-size:22px;line-height:1.35;color:var(--kwd-ink);word-break:keep-all;overflow-wrap:anywhere}
.kp-sentence b{font-size:20px}
.kp-word span,.kp-sentence span{display:block;margin-top:2px;font-size:15px;color:var(--kwd-muted);line-height:1.45}
.kp-word .bd-swatch{flex:0 0 auto}

/* Questions */
.kp-ask,.kp-situation{margin:0 0 12px;font-size:18px;font-weight:700;line-height:1.5;color:var(--kwd-ink)}
.kp-big{font-size:clamp(34px,9vw,48px);font-weight:800;line-height:1.2;text-align:center;padding:20px 12px;border-radius:16px;background:var(--kwd-green-50);color:var(--kwd-green-900);word-break:keep-all}
.kp-big.is-meaning{font-size:clamp(24px,6vw,32px)}
.kp-audio{display:flex;justify-content:center;margin:10px 0 0}
.kp-noaudio{font-size:20px;font-weight:700}
.kp-frame{font-size:clamp(22px,5.5vw,30px);font-weight:750;line-height:1.7;padding:18px 16px;border-radius:16px;background:var(--kwd-green-50);color:var(--kwd-green-900);word-break:keep-all}
.kp-gap{display:inline-block;min-width:3.2em;padding:0 8px;border-bottom:3px solid var(--kwd-gold);text-align:center;line-height:1.3}
.kp-gap.is-filled{border-color:var(--kwd-green-600);color:var(--kwd-green-700)}
.kp-frame-meaning{margin:8px 2px 0;color:var(--kwd-muted);font-size:15px}
.kp-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:16px}
.kp-options.is-long{grid-template-columns:1fr}
.kp-option{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px;padding:12px 16px;border:2px solid var(--kwd-line);border-radius:14px;background:#fff;color:var(--kwd-ink);font:inherit;font-size:18px;font-weight:700;text-align:left;cursor:pointer;box-shadow:none;word-break:keep-all}
.kp-option:hover:not(:disabled){border-color:var(--kwd-green-600)}
.kp-option:focus-visible,.kp-pair:focus-visible{outline:3px solid var(--kwd-gold);outline-offset:2px}
.kp-option.is-wrong{opacity:.45;text-decoration:line-through;cursor:default}
.kp-option.is-right{border-color:var(--kwd-green-600);background:var(--kwd-green-100);color:var(--kwd-green-900);opacity:1}
.kp-option i{font-style:normal;font-weight:800}

/* Feedback */
.kp-feedback{margin-top:16px;padding:16px;border-radius:14px;outline:none;line-height:1.55}
.kp-feedback b{display:block;font-size:17px;margin-bottom:6px}
.kp-feedback p{margin:6px 0 0;font-size:16px;color:var(--kwd-ink)}
.kp-feedback.is-good{background:var(--kwd-green-100);border:1px solid var(--kwd-green-200);color:var(--kwd-green-900)}
.kp-feedback.is-hint{background:var(--kwd-gold-50);border:1px solid #ecd9ad;color:#5f4011}
.kp-feedback .kp-next{margin-top:14px;width:100%;min-height:52px;font-size:17px}
.kp-feedback .kp-word,.kp-feedback .kp-sentence{margin-top:8px}
.kp-note{margin:14px 0 0;color:var(--kwd-muted);font-size:15px}

/* Matching */
.kp-match{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kp-match>div{display:grid;gap:10px;align-content:start}
.kp-pair{min-height:60px;padding:10px 12px;border:2px solid var(--kwd-line);border-radius:14px;background:#fff;color:var(--kwd-ink);font:inherit;font-size:17px;font-weight:700;cursor:pointer;box-shadow:none;word-break:keep-all;overflow-wrap:anywhere}
.kp-pair.is-picked{border-color:var(--kwd-gold);background:var(--kwd-gold-50)}
.kp-pair.is-done{border-color:var(--kwd-green-200);background:var(--kwd-green-100);color:var(--kwd-green-800);cursor:default}

/* Idea and wrap-up */
.kp-idea{padding:16px 18px;border-left:5px solid var(--kwd-green-600);border-radius:0 12px 12px 0;background:var(--kwd-green-50)}
.kp-idea p{margin:0;font-size:18px;line-height:1.7;color:var(--kwd-ink)}
.kp-more{margin-top:18px;border:1px dashed var(--kwd-line);border-radius:12px;padding:10px 14px}
.kp-more summary{cursor:pointer;font-weight:700;color:var(--kwd-muted);min-height:32px}
.kp-more p{margin:10px 0 4px;font-size:15px;line-height:1.65;color:var(--kwd-muted)}
.kp-can{padding:16px 18px;border-radius:14px;background:var(--kwd-green-900);color:#fff;margin-bottom:12px}
.kp-can b{display:block;font-size:13px;letter-spacing:.04em;color:#e6c98e;margin-bottom:4px}
.kp-can p{margin:0;font-size:18px;line-height:1.5;color:#fff}
.kp-tip{margin:14px 0;padding:14px 16px;border-radius:12px;background:var(--kwd-gold-50);border:1px solid #ecd9ad}
.kp-tip b{display:block;font-size:14px;color:#7a5216;margin-bottom:2px}
.kp-tip p{margin:0;font-size:16px;line-height:1.55;color:var(--kwd-ink)}
.kp-score{margin:14px 0;font-size:15px;color:var(--kwd-muted)}

@media(max-width:560px){
  .kp-panel{padding:18px 16px!important}
  .kp-words{grid-template-columns:1fr}
  .kp-word b{font-size:21px}
  .kp-options{grid-template-columns:1fr}
  .kp-pair{font-size:16px;padding:8px}
}
@media(min-width:1800px){
  .kp-word b{font-size:30px}.kp-sentence b{font-size:28px}.kp-word span,.kp-sentence span{font-size:20px}
  .kp-option,.kp-pair{font-size:24px;min-height:72px}.kp-ask,.kp-situation{font-size:25px}.kp-instruction,.kp-idea p,.kp-goal{font-size:22px}
  .kp-feedback p,.kp-feedback b{font-size:21px}
}

/* The step-by-step lessons have their own three-language switch in the header;
   hide the older floating EN/中文 switch there so it no longer covers the title. */
body:has(.bd-shell) #langSwitch{display:none!important}
.bd-header{flex-wrap:wrap;gap:8px}
