/* A coherent illustrated entry point; all teaching labels remain accessible HTML. */
.lr-foundations .lr-foundation{padding:12px;border-color:#dee3dd;border-radius:9px;background:#fff;overflow:hidden;transition:box-shadow .2s,border-color .2s}
.lr-foundations .lr-foundation:hover{border-color:#a5b1a2;box-shadow:0 5px 18px #18365310}
.lr-foundations .lr-demo.lr-foundation-art{display:block;height:auto;aspect-ratio:3/2;overflow:hidden;border-radius:5px;background:#f6f4ee}
.lr-foundation-art img{display:block;width:100%;height:100%;object-fit:cover}
.lr-foundations .lr-foundation{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-content:start}
.lr-foundations .lr-foundation-art,.lr-foundations .lr-foundation h3{grid-column:1/-1}
.lr-foundations .lr-foundation h3{margin:17px 7px 10px}
.lr-foundations .lr-foundation p{margin:0 0 7px 7px;font-size:13px;line-height:1.6;align-self:center}
.lr-foundations .lr-start{display:inline-flex;align-items:center;justify-content:center;align-self:center;white-space:nowrap;margin:0 7px 7px 0;padding:7px 10px;min-height:34px;border-radius:5px;background:#2e4229;color:#fff;font-size:12px;line-height:1.5;text-decoration:none}
.lr-foundations .lr-foundation:hover .lr-start{background:#42573c}
.lr-foundations .lr-foundation,.lr-foundations .lr-foundation:hover *{text-decoration:none!important}
@media(min-width:621px) and (max-width:900px){.lr-foundations{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Scope every exercise override to this page, leaving lesson workspaces intact. */
body[data-comprehensive]{background:#f8faf7}
body[data-comprehensive] .class-main{max-width:1160px;width:100%;padding:22px 30px 40px;margin:auto}
body[data-comprehensive] .foundation-primary{display:flex;justify-content:center;gap:8px;margin:0 0 18px}
body[data-comprehensive] .foundation-primary a{padding:9px 24px;min-height:44px;border:1px solid #dbe2d9;border-radius:6px;background:#fff;color:#435b3d;font-size:15px}
body[data-comprehensive] .foundation-primary a[aria-current=page]{background:#354d2e;color:#fff;border-color:#354d2e}
body[data-comprehensive] .pinyin-heading{margin:0 0 15px;display:flex;align-items:center;justify-content:space-between}
body[data-comprehensive] .pinyin-heading h1{font-size:28px;margin:0;color:#354d2e}
body[data-comprehensive] #stroke-drawing{display:block}
body[data-comprehensive] #stroke-drawing>.foundation-filters{position:static;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 15px;border:1px solid #dee7dc;border-radius:12px;background:#fff;margin-bottom:14px}
body[data-comprehensive] .foundation-pills{flex-direction:row;justify-content:flex-start;width:auto;gap:6px;margin:0}
body[data-comprehensive] .foundation-pills button{width:auto;padding:7px 13px;min-height:40px;border:1px solid #d9e3d6;border-radius:7px;background:#f9fcf9;color:#50674a;font:500 14px/1.4 inherit}
body[data-comprehensive] .foundation-pills button[aria-pressed=true]{background:#406037;border-color:#406037;color:#fff}
body[data-comprehensive] #hanzi-content{margin:0;max-width:none}
body[data-comprehensive] .lesson-inline-practice{width:100%;max-width:none;box-sizing:border-box;padding:16px;border:2px solid #b4d2ab;border-radius:18px;background:linear-gradient(130deg,#fafdf9,#f4faf3 60%,#fbfdfa);box-shadow:0 5px 18px #3e80ac09;margin:0}
body[data-comprehensive] .foundation-practice-toolbar{margin-bottom:14px}
body[data-comprehensive] .foundation-practice-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 11px;color:#3d5836;font-size:14px}
body[data-comprehensive] .foundation-practice-heading>span{color:#818e7d;font-size:12px}
body[data-comprehensive] .foundation-mode-buttons{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}
body[data-comprehensive] .foundation-mode-buttons button{min-width:0;min-height:43px;padding:7px 4px;border:1px solid #d1e0cc;border-radius:8px;background:#fff;color:#45633d;font:600 14px/1.35 inherit;cursor:pointer}
body[data-comprehensive] .foundation-mode-buttons button[aria-pressed=true]{border:2px solid #3e5c36;background:#f0f8ed;color:#354d2e;box-shadow:0 0 0 2px #e6f3e3}
body[data-comprehensive] .lesson-inline-practice-main{padding:0;border:0;background:none;box-shadow:none;min-width:0}
body[data-comprehensive] .lesson-inline-activity{padding:0;background:none;border:0}
body[data-comprehensive] .lesson-inline-activity>section{width:100%;max-width:none;padding:16px 20px;border:1px solid #d4e3d0;border-radius:12px;background:#fff;min-height:310px;box-sizing:border-box;min-width:0}
body[data-comprehensive] .lesson-inline-question-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;color:#72826d;font-size:13px}
body[data-comprehensive] .foundation-question-count{white-space:nowrap}
body[data-comprehensive] .foundation-question-count b{font-size:20px;color:#44623b}
body[data-comprehensive] .foundation-progress{display:block;flex:1;min-width:60px;height:8px;border-radius:20px;background:#edf2eb;overflow:hidden}
body[data-comprehensive] .foundation-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#a2cc96,#71a463);transition:width .2s}
body[data-comprehensive] .foundation-round-size{display:flex;gap:4px;order:0;width:auto}
body[data-comprehensive] .lesson-inline-question-top .foundation-round-size button{min-width:40px;min-height:34px;padding:5px 7px;border-radius:6px;background:#f4f8f3;color:#5c7355;border-color:#dce5da;font-size:12px}
body[data-comprehensive] .lesson-inline-question-top .foundation-round-size button[aria-pressed=true]{background:#4a6941!important;border-color:#4a6941!important}
body[data-comprehensive] .foundation-question-tools{display:flex;gap:6px}
body[data-comprehensive] .foundation-question-tools button{border:1px solid #d7e2d4;background:#fff;border-radius:6px;padding:6px 10px;min-height:34px;color:#5c7355;font-size:12px}
body[data-comprehensive] .lesson-inline-instruction{font-size:15px;color:#74846f;margin:12px 0;text-align:center}
body[data-comprehensive] .lesson-inline-prompt{font-size:clamp(48px,5.7vw,70px);line-height:1.4;letter-spacing:.05em;color:#334e2b;margin:12px 0 22px;text-align:center}
body[data-comprehensive] .lesson-inline-prompt-pinyin{font-family:Arial,sans-serif;font-size:clamp(34px,4vw,54px);letter-spacing:0}
body[data-comprehensive] .lesson-inline-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;max-width:860px;margin:auto}
body[data-comprehensive] .lesson-inline-answers button{display:flex;align-items:center;gap:14px;min-width:0;min-height:60px;padding:12px 18px;border:1px solid #c6dac1;border-radius:10px;background:#f2f9f0;color:#405c39;font-size:23px}
body[data-comprehensive] .lesson-inline-answers button:nth-child(2){background:#fff5e8;border-color:#e28e93}
body[data-comprehensive] .lesson-inline-answers button:nth-child(3){background:#edf7ee;border-color:#b9d4ba}
body[data-comprehensive] .lesson-inline-answers button:nth-child(4){background:#f2edfc;border-color:#ccbcea}
body[data-comprehensive] .lesson-inline-answers button b{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:#fff9;color:#587051!important;font:600 14px/1 Arial,sans-serif}
body[data-comprehensive] .lesson-inline-answers button span{overflow-wrap:anywhere}
body[data-comprehensive] .lesson-inline-answers button.is-correct{border:2px solid #438354;background:#e3f4e8;color:#28653a}
body[data-comprehensive] .lesson-inline-answers button.is-wrong{border:2px solid #b46969;background:#fae8e8;color:#8f4545}
body[data-comprehensive] .lesson-inline-feedback{min-height:24px;margin:16px 0 8px;text-align:center;color:#60755a}
body[data-comprehensive] .lesson-inline-next{display:block;margin:8px 0 0 auto;min-height:42px;padding:9px 20px;border:1px solid #43623a;border-radius:8px;background:#4c6f42;color:#fff}
body[data-comprehensive] .lesson-inline-next[hidden]{display:none!important}
body[data-comprehensive] .lesson-inline-flash-card{margin:10px auto;max-width:390px;height:170px}
body[data-comprehensive] .lesson-inline-line-board,body[data-comprehensive] .lesson-inline-match-board{max-width:860px;margin:16px auto}
body[data-comprehensive] .lesson-inline-text-question{border:0;background:#fafdf9;border-radius:10px;padding:12px 18px}
body[data-comprehensive] .lesson-inline-reveal{display:block;margin:12px auto}
body[data-comprehensive] button:focus-visible{outline:3px solid #cc767b;outline-offset:3px}
@media(max-width:800px){body[data-comprehensive] .class-main{padding:18px 20px 32px}body[data-comprehensive] .foundation-mode-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}body[data-comprehensive] #stroke-drawing>.foundation-filters{gap:10px}body[data-comprehensive] .foundation-question-tools{margin-left:auto}}
@media(max-width:500px){body[data-comprehensive] .class-main{padding:14px 12px 28px}body[data-comprehensive] .foundation-primary{gap:6px}body[data-comprehensive] .foundation-primary a{flex:1;font-size:13px;padding:10px 5px}body[data-comprehensive] .pinyin-heading h1{font-size:24px}body[data-comprehensive] #stroke-drawing>.foundation-filters{padding:10px}body[data-comprehensive] .foundation-pills{gap:5px}body[data-comprehensive] .foundation-pills button{padding:7px 8px;font-size:12px}body[data-comprehensive] .lesson-inline-practice{padding:10px;border-radius:14px}body[data-comprehensive] .foundation-practice-heading{align-items:flex-start;flex-direction:column;gap:4px}body[data-comprehensive] .foundation-mode-buttons{gap:6px}body[data-comprehensive] .foundation-mode-buttons button{font-size:12px;min-height:40px}body[data-comprehensive] .lesson-inline-activity>section{padding:13px 11px;min-height:300px}body[data-comprehensive] .lesson-inline-question-top{gap:8px}body[data-comprehensive] .foundation-question-tools{width:100%;justify-content:flex-end}body[data-comprehensive] .lesson-inline-answers{grid-template-columns:1fr;gap:8px}body[data-comprehensive] .lesson-inline-answers button{min-height:52px;font-size:21px;padding:9px 13px}body[data-comprehensive] .lesson-inline-line-board button,body[data-comprehensive] .lesson-inline-match-board button{font-size:17px;overflow-wrap:anywhere}body[data-comprehensive] .lesson-inline-text-question{padding:10px}}
@media(prefers-reduced-motion:reduce){.lr-foundations .lr-foundation,body[data-comprehensive] .foundation-progress i{transition:none}}
