/* A coherent illustrated entry point; all teaching labels remain accessible HTML. */
.lr-foundations .lr-foundation{padding:12px;border-color:#d8e2e8;border-radius:9px;background:#fff;overflow:hidden;transition:box-shadow .2s,border-color .2s}
.lr-foundations .lr-foundation:hover{border-color:#98acbb;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:#183653;color:#fff;font-size:12px;line-height:1.5;text-decoration:none}
.lr-foundations .lr-foundation:hover .lr-start{background:#2a4c69}
.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:#f6f8fb}
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 #d3dfe8;border-radius:6px;background:#fff;color:#284c70;font-size:15px}
body[data-comprehensive] .foundation-primary a[aria-current=page]{background:#193d62;color:#fff;border-color:#193d62}
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:#193d62}
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 #d4e2ef;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 #ceddeb;border-radius:7px;background:#f6faff;color:#355a7c;font:500 14px/1.4 inherit}
body[data-comprehensive] .foundation-pills button[aria-pressed=true]{background:#1b4c7c;border-color:#1b4c7c;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 #91c7ec;border-radius:18px;background:linear-gradient(130deg,#f7fcff,#eef8ff 60%,#f8fcff);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:#1e4770;font-size:14px}
body[data-comprehensive] .foundation-practice-heading>span{color:#71859a;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 #bfd8ed;border-radius:8px;background:#fff;color:#23537d;font:600 14px/1.35 inherit;cursor:pointer}
body[data-comprehensive] .foundation-mode-buttons button[aria-pressed=true]{border:2px solid #1c4a76;background:#e6f2ff;color:#193d62;box-shadow:0 0 0 2px #d7eaff}
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 #c2ddf1;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:#5f7790;font-size:13px}
body[data-comprehensive] .foundation-question-count{white-space:nowrap}
body[data-comprehensive] .foundation-question-count b{font-size:20px;color:#214f7c}
body[data-comprehensive] .foundation-progress{display:block;flex:1;min-width:60px;height:8px;border-radius:20px;background:#e7eff6;overflow:hidden}
body[data-comprehensive] .foundation-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#70bcf2,#367ed1);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:#f0f6fb;color:#416787;border-color:#d2e1ed;font-size:12px}
body[data-comprehensive] .lesson-inline-question-top .foundation-round-size button[aria-pressed=true]{background:#255985!important;border-color:#255985!important}
body[data-comprehensive] .foundation-question-tools{display:flex;gap:6px}
body[data-comprehensive] .foundation-question-tools button{border:1px solid #caddec;background:#fff;border-radius:6px;padding:6px 10px;min-height:34px;color:#416787;font-size:12px}
body[data-comprehensive] .lesson-inline-instruction{font-size:15px;color:#617a92;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:#143b65;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 #afcdec;border-radius:10px;background:#eaf4ff;color:#204875;font-size:23px}
body[data-comprehensive] .lesson-inline-answers button:nth-child(2){background:#fff5e8;border-color:#e8c79d}
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:#3c6085!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:#486b87}
body[data-comprehensive] .lesson-inline-next{display:block;margin:8px 0 0 auto;min-height:42px;padding:9px 20px;border:1px solid #1f527d;border-radius:8px;background:#245c8d;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:#f7fbff;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 #be9146;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}}
