/* Progressive example ladders: six interactive examples per existing example area. */
.example-ladder { margin: 28px 0; padding: 26px; border: 1px solid #c4a574; border-radius: 12px; background: #fff; }
.example-ladder > h3 { font-size: 23px; margin-bottom: 10px; }
.ex-ladder-intro { color: #6b6159; line-height: 1.65; max-width: 850px; margin-bottom: 8px; }
.ex-ladder-scale { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; padding: 0; list-style: none; }
.ex-ladder-scale li { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid #e0d4c2; background: #faf8f5; color: #6b6159; }
.ex-card { margin: 0 0 18px; padding: 18px; border: 1px solid #e0d4c2; border-left: 5px solid #2f9e5c; border-radius: 10px; background: #faf8f5; }
.ex-card:last-child { margin-bottom: 0; }
.ex-card[data-tier="medium"] { border-left-color: #c98a1f; }
.ex-card[data-tier="hard"] { border-left-color: #c73c32; }
.ex-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.ex-badge { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: #e9f3ec; color: #1d5c38; white-space: nowrap; }
.ex-card[data-tier="medium"] .ex-badge { background: #fdf1dc; color: #80540a; }
.ex-card[data-tier="hard"] .ex-badge { background: #fbe7e5; color: #8d2a22; }
.ex-card h4 { margin: 0; font-size: 19px; color: #3d2817; }
.ex-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 0 0 14px; }
.ex-controls label { display: grid; gap: 4px; font-size: 14px; color: #3d2817; min-width: 0; }
.ex-controls .ex-slider { grid-template-columns: 1fr; }
.ex-controls .ex-slider span { display: flex; justify-content: space-between; gap: 10px; }
.ex-controls input[type="range"] { width: 190px; max-width: 100%; accent-color: #5a4a42; }
.example-ladder select, .example-ladder input[type="text"] { font: inherit; padding: 8px 10px; border: 1px solid #9c8160; border-radius: 6px; background: #fff; color: #3d2817; max-width: 100%; }
.example-ladder input[type="text"] { width: 130px; }
.ex-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ex-grid.ex-single { grid-template-columns: minmax(0, 1fr); }
.ex-visual { min-width: 0; background: #fff; border: 1px solid #e0d4c2; border-radius: 8px; padding: 8px; }
.ex-visual svg { display: block; width: 100%; height: auto; }
.ex-side { min-width: 0; }
.ex-prompt { line-height: 1.75; margin: 0 0 12px; }
.ex-readout { background: #f5f1ed; border-left: 4px solid #2f9e5c; padding: 12px 14px; line-height: 1.9; font-size: 16px; overflow-x: auto; margin-bottom: 14px; }
.ex-answer { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.ex-answer label { display: grid; gap: 4px; font-size: 14px; color: #3d2817; min-width: 0; }
.ex-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.example-ladder button { font: inherit; font-size: 15px; padding: 9px 13px; border: 1px solid #9c8160; border-radius: 6px; background: #fff; color: #3d2817; cursor: pointer; }
.example-ladder button:hover { background: #e8dcc8; }
.example-ladder button:focus-visible, .example-ladder input:focus-visible, .example-ladder select:focus-visible { outline: 3px solid #2f6fed; outline-offset: 3px; }
.ex-ok { border-color: #2f9e5c; background: #eef8f1; }
.ex-no { border-color: #c73c32; background: #fdeeec; }
.ex-feedback { margin: 0 0 10px; line-height: 1.7; font-weight: 600; min-height: 1.2em; }
.ex-feedback[data-state="correct"] { color: #1d5c38; }
.ex-feedback[data-state="wrong"], .ex-feedback[data-state="empty"] { color: #8d2a22; }
.ex-hint, .ex-solution { padding: 12px 14px; border-radius: 6px; line-height: 1.8; margin-bottom: 10px; overflow-x: auto; }
.ex-hint { background: #fff4df; border-left: 4px solid #b56b00; }
.ex-solution { background: #eef6f0; border-left: 4px solid #227849; }
.ex-solution ol { margin: 0; padding-left: 20px; }
.ex-solution li { margin: 4px 0; }
/* Enhanced solution format with steps and final answer box */
.solution-steps { padding: 12px 14px; border-radius: 6px 6px 0 0; background: #eef6f0; border-left: 4px solid #227849; }
.solution-steps ol { margin: 0; padding-left: 20px; }
.solution-steps li { margin: 6px 0; line-height: 1.8; }
.solution-final-answer { padding: 16px 14px; border-radius: 0 0 6px 6px; background: #d4edda; border: 2px solid #227849; border-top: none; margin-bottom: 10px; font-weight: 600; color: #1d5c38; line-height: 1.8; }
.solution-final-answer strong { display: block; margin-bottom: 8px; color: #155724; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; }
@media (max-width: 820px) {
  .ex-grid { grid-template-columns: minmax(0, 1fr); }
  .example-ladder { padding: 16px; }
  .ex-card { padding: 14px; }
  .ex-controls input[type="range"] { width: 100%; }
  .ex-controls label { width: 100%; }
}

.addition-module { margin: 32px 0; padding: 28px; border: 1px solid #c4a574; border-radius: 12px; background: #fff; color: #3d2817; }
.addition-module-heading { margin-bottom: 26px; }
.addition-module-heading h3 { margin: 5px 0 8px; color: #3d2817; font-size: 26px; }
.addition-module-heading p, .addition-topic > p, .addition-worked-card p { line-height: 1.75; }
.addition-module-kicker { color: #80540a; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.addition-topic { margin: 24px 0; }
.addition-topic h4, .addition-summary h4 { margin: 0 0 10px; color: #3d2817; font-size: 20px; }
.addition-topic h5 { margin: 0 0 10px; color: #3d2817; font-size: 17px; }
.addition-worked-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.addition-worked-card { min-width: 0; padding: 16px; border: 1px solid #e0d4c2; border-radius: 8px; background: #faf8f5; line-height: 1.75; }
.addition-worked-card ol { margin: 0; padding-left: 22px; }
.addition-worked-card li { margin: 4px 0; }
.addition-formula { padding: 14px; border-left: 4px solid #2f9e5c; border-radius: 5px; background: #eef8f1; line-height: 1.9; }
.addition-diagram { margin: 16px 0; padding: 12px; border: 1px solid #e0d4c2; border-radius: 8px; background: #faf8f5; }
.addition-diagram svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
.addition-diagram figcaption { margin-top: 8px; color: #51463d; font-size: 14px; line-height: 1.6; text-align: center; }
.addition-quiz-list { display: grid; gap: 14px; margin-top: 16px; }
.addition-question { padding: 16px; border: 1px solid #e0d4c2; border-left: 5px solid #2f9e5c; border-radius: 8px; background: #faf8f5; }
.addition-question[data-level="sederhana"] { border-left-color: #c98a1f; }
.addition-question[data-level="kbat"] { border-left-color: #c73c32; }
.addition-question h5 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.addition-level { color: #51463d; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.addition-question-prompt { line-height: 1.7; }
.addition-answer-fields { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.addition-answer-fields label { display: grid; gap: 5px; color: #3d2817; font-size: 14px; }
.addition-answer-fields input { width: 120px; max-width: 100%; padding: 9px 10px; border: 1px solid #9c8160; border-radius: 6px; background: #fff; color: #3d2817; font: inherit; }
.addition-question button { margin: 0 8px 8px 0; padding: 9px 13px; border: 1px solid #9c8160; border-radius: 6px; background: #fff; color: #3d2817; cursor: pointer; font: inherit; }
.addition-question button:hover { background: #e8dcc8; }
.addition-question button:focus-visible, .addition-answer-fields input:focus-visible { outline: 3px solid #2f6fed; outline-offset: 3px; }
.addition-question-feedback { margin: 8px 0 0; padding: 12px; border-radius: 6px; background: #f5f1ed; line-height: 1.7; }
.addition-question-feedback[data-state="correct"] { border-left: 4px solid #227849; background: #eef8f1; color: #1d5c38; }
.addition-question-feedback[data-state="wrong"], .addition-question-feedback[data-state="incomplete"] { border-left: 4px solid #c73c32; background: #fdeeec; color: #76241e; }
.addition-summary { margin-top: 28px; padding: 18px; border: 1px solid #c4a574; border-radius: 8px; background: #f5f1ed; }
.addition-summary ul { margin: 0; padding-left: 22px; line-height: 1.9; }
@media (max-width: 700px) {
  .addition-module { padding: 16px; }
  .addition-module-heading h3 { font-size: 22px; }
  .addition-worked-grid { grid-template-columns: minmax(0, 1fr); }
  .addition-answer-fields label { flex: 1 1 120px; }
}
