/* Authored lesson guides (lesson-guides.js). */
.guide-card p{line-height:1.6}
.guide-rule{margin-top:14px;padding:12px 16px;border-left:3px solid #225f4b;background:#eef5eb;border-radius:4px}
.guide-grid,.guide-table{border-collapse:collapse;margin:12px 0;font-size:16px}
.guide-grid th,.guide-grid td{width:72px;height:48px;text-align:center;border:1px solid #cfdccf}
.guide-grid th{background:#f5f7f3;color:#577166;font-weight:600}
.guide-grid td{background:#fff}
.guide-table th,.guide-table td{padding:10px 14px;border:1px solid #cfdccf;text-align:left}
.guide-table th{background:#f5f7f3;color:#193d38}
.guide-steps{list-style:none;counter-reset:gstep;padding:0;margin:12px 0 0}
.guide-steps li{counter-increment:gstep;position:relative;padding:0 0 14px 38px}
.guide-steps li::before{content:counter(gstep,lower-alpha);position:absolute;left:0;top:0;width:26px;height:26px;box-sizing:border-box;border-radius:50%;background:#eef5eb;border:1.5px solid #91b89e;color:#225f4b;font-size:14px;font-weight:700;line-height:1;padding-bottom:2px;display:flex;align-items:center;justify-content:center}
.guide-why{margin:0 0 6px;min-height:26px;display:flex;align-items:center;font-size:16px;font-weight:600;color:#193d38}
#learning-page .guide-steps .math-step{padding:10px 14px;background:#fff;border:1px solid #dfe9df;border-radius:8px;line-height:1.7;font-size:19px!important;min-height:0}
.guide-note{color:#577166;font-size:14px}
.guide-hint{margin-top:8px;border:1px solid #dfe9df;border-radius:8px;background:#fff}
.guide-hint summary{cursor:pointer;padding:12px 14px;min-height:44px;box-sizing:border-box;font-weight:600;color:#225f4b}
.guide-hint summary:focus-visible{outline:2px solid #225f4b;outline-offset:2px}
.guide-hint p{margin:0;padding:0 14px 12px}
.guide-mistakes,.guide-summary{padding-left:20px;line-height:1.6}
.guide-mistakes li,.guide-summary li{margin-bottom:10px}
@media(max-width:600px){#learning-page .guide-steps .math-step{font-size:17px!important}.guide-grid th,.guide-grid td{width:56px;height:42px}.guide-table{font-size:14px}.guide-table th,.guide-table td{padding:8px 10px}.guide-steps li{padding-left:34px}}
.guide-try{margin-top:14px;padding-top:12px;border-top:1px solid #e3ece3}
.guide-try:first-of-type{border-top:0;padding-top:0}
.guide-quick{margin-top:16px;border:1.5px dashed #91b89e;border-radius:10px;background:#f7faf5}
.guide-quick summary{cursor:pointer;padding:12px 16px;min-height:44px;box-sizing:border-box;font-weight:700;color:#225f4b}
.guide-quick summary:focus-visible{outline:2px solid #225f4b;outline-offset:2px}
.guide-quick>div{padding:0 16px 14px}
.guide-ladder{border-collapse:collapse;margin:10px 0;font-size:17px}
.guide-ladder td{padding:6px 14px;text-align:center}
.guide-ladder td:first-child{border-right:2px solid #193d38;font-weight:700;color:#225f4b}
.guide-ladder tr:not(:last-child) td:not(:first-child){border-bottom:2px solid #193d38}
.guide-ladder tr:last-child td:first-child{border-right:0}
.guide-lesson-menu{display:grid;gap:8px;margin-top:12px}
.guide-lesson-link{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 14px;border:1px solid #dfe9df;border-radius:10px;background:#fff;color:#193d38;font:inherit;font-weight:600;text-align:left;cursor:pointer;transition:background .15s,border-color .15s}
.guide-lesson-link:hover{background:#f7faf5;border-color:#91b89e}
.guide-lesson-link:focus-visible,.guide-lesson-back:focus-visible{outline:2px solid #225f4b;outline-offset:2px}
.guide-lesson-link span{flex:none;width:28px;height:28px;border-radius:50%;background:#eef5eb;border:1.5px solid #91b89e;color:#225f4b;font-size:13px;display:flex;align-items:center;justify-content:center}
.guide-lesson-back{margin:0 0 14px;min-height:44px;padding:8px 16px;border:1px solid #dfe9df;border-radius:10px;background:#fff;color:#225f4b;font:inherit;font-weight:650;cursor:pointer}
.guide-lesson-back:hover{background:#f7faf5}
.guide-check{margin:12px 0 10px}
.guide-check label{display:block;font-weight:650;margin-bottom:6px}
.guide-check div{display:flex;gap:8px;flex-wrap:wrap}
.guide-check input{flex:1 1 160px;min-height:42px;padding:8px 12px;border:1px solid #b9cbbf;border-radius:10px;font:inherit}
.guide-check button{min-height:42px}
.guide-check-result{margin:8px 0 0;min-height:1.2em;font-weight:600}
.guide-check-result[data-state="correct"]{color:#1d6b43}
.guide-check-result[data-state="wrong"]{color:#9b2c22}

/* My Journey lessons: a question after each example and practice until secure. */
.guide-like{margin-top:14px;border-top:1px dashed #c9d8ce;padding-top:12px}
.guide-like-label{margin:0 0 4px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#225f4b}
.guide-solution{margin-top:10px;padding:10px 12px;border-left:3px solid #9ec8ae;background:#f7fbf5;border-radius:0 8px 8px 0}
.guide-solution p{margin:4px 0}
.guide-solution-answer{font-weight:700}
.lesson-secure{border:2px solid #9ec8ae}
.lesson-streak{display:flex;align-items:center;gap:6px;margin:6px 0 10px}
.lesson-streak span{width:14px;height:14px;border-radius:50%;border:2px solid #225f4b;background:#fff}
.lesson-streak span.on{background:#225f4b}
.lesson-streak small{margin-left:6px;color:#47594f;font-weight:600}
.lesson-secure-next{margin-top:10px}
.lesson-secure-done p{font-size:17px}
.lesson-secure-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.guide-marks{margin-top:12px;padding:10px 14px;border:1px solid #c9d8ce;border-radius:10px;background:#fff}
.guide-marks b{display:block;margin-bottom:4px;color:#1f4d3d}
.guide-marks ul{margin:0;padding-left:18px}
.lesson-review-note{margin:-4px 0 18px;color:#5d6d64;font-size:14px}
