/* Scoped additions reuse the live site's colors, typography, borders and spacing. */
.thm-mini{scroll-margin-top:24px}.thm-mini h3{margin-top:24px}.thm-mini math{font-size:1.13em;margin:0 .12em;vertical-align:middle}.thm-mini .thm-steps{padding-left:24px}.thm-steps li{margin:12px 0}.thm-steps li>span{display:block;margin:5px 0}.thm-practice{background:var(--white);border:1px solid var(--line);border-radius:9px;padding:20px;margin:20px 0}.thm-practice h3{margin:0 0 15px}.thm-fields{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0}.thm-fields label{display:flex;flex-direction:column;gap:6px;font-size:16px;max-width:100%;min-width:0}.thm-fields input,.thm-fields select{min-height:46px;border:1px solid #8ca699;border-radius:6px;background:var(--white);color:var(--ink);padding:9px 12px;max-width:100%;width:100%}.thm-fields input{width:180px}.thm-fields select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23275d48' stroke-width='2'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:38px}.thm-fields select:focus-visible{outline:3px solid #ac7c31;outline-offset:4px}.thm-check{background:var(--green);color:white;border:1px solid var(--green);border-radius:6px;padding:10px 16px;min-height:44px;cursor:pointer;font-weight:600;font-size:16px}.thm-feedback{min-height:1.6em;font-size:16px;margin:12px 0}.thm-feedback:empty{display:none}.thm-feedback[data-state="correct"]{font-weight:650;color:var(--green)}.thm-reveal{margin-top:16px}.thm-reveal summary{list-style:none}.thm-reveal summary::-webkit-details-marker{display:none}.thm-reveal[open] summary::after{content:'−'}.thm-mini .answer-reveal-button{font-size:16px}.thm-mini .practice-reveal-answer{color:var(--ink)}.thm-graph{max-width:480px;margin:20px 0}.thm-graph svg{display:block;width:100%;height:auto;background:var(--white);border:1px solid var(--line);border-radius:8px}.thm-graph text{font-family:system-ui,sans-serif;font-size:16px;fill:var(--ink)}.thm-graph figcaption{font-size:14px;color:var(--muted);margin-top:8px}.thm-table-wrap{max-width:420px;margin:20px 0}.thm-table-wrap table{border-collapse:collapse;width:100%;background:var(--white)}.thm-table-wrap caption{text-align:left;font-size:16px;margin-bottom:8px}.thm-table-wrap th,.thm-table-wrap td{border:1px solid var(--line);padding:10px 18px;text-align:center}.thm-preview-banner{padding:10px 20px;background:#e7ede5;color:var(--ink);font-size:14px;text-align:center}.thm-mini a{overflow-wrap:anywhere}@media(max-width:500px){.thm-practice{padding:16px}.thm-fields{display:block}.thm-fields label{margin-bottom:14px}.thm-fields select{font-size:16px}.thm-mini h2{font-size:23px}.thm-fields input{width:100%}}

/* Lesson 3.2: construct a solution and reasoning with constrained choices. */
.thm-answer-builder{border:0;padding:0;margin:0;min-width:0;width:100%}.thm-answer-builder legend{font-size:16px;margin-bottom:10px}.thm-answer-row{display:grid;grid-template-columns:auto minmax(90px,130px) minmax(80px,150px);gap:12px;align-items:end}.thm-answer-row>span{font-size:24px;line-height:46px}.thm-fields .thm-answer-row label{margin:0}.thm-fields .thm-answer-row input{width:100%;min-width:0}.thm-reason-builder{width:100%}.thm-reason-builder>p{margin:0 0 12px}.thm-reason-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;font-size:16px}.thm-fields .thm-reason-line label{display:block;margin:0;font-size:0}.thm-reason-line select{font-size:16px;width:auto;min-width:120px}.thm-fields input:focus-visible{outline:3px solid #ac7c31;outline-offset:4px}

.thm-answer-visual{margin:18px 0;max-width:480px}.thm-answer-visual svg{width:100%;height:auto;display:block;background:var(--white);border:1px solid var(--line);border-radius:8px}.thm-answer-visual svg text{font:18px system-ui,sans-serif;fill:var(--ink)}.thm-answer-visual figcaption{font-size:14px;margin-top:8px;line-height:1.5}.thm-answer-table{overflow-x:auto}.thm-answer-table table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.45}.thm-answer-table th,.thm-answer-table td{border:1px solid var(--line);padding:8px;white-space:normal}.thm-answer-table caption{text-align:left;font-weight:600;margin-bottom:8px}.practice-reveal-answer .thm-graph text{font-size:21px}.practice-reveal-answer .thm-graph{margin:18px 0}
