.g1-picture-active .sh-dock{display:none!important}
@font-face{font-family:G1ReadingKai;src:url('/sync-reading/shared/assets/fonts/school-reading-kai.woff2') format('woff2');font-display:swap}
@font-face{font-family:G1Pinyin;src:url('/sync-reading/shared/assets/fonts/noto-sans-pinyin.woff2') format('woff2');font-display:swap}
.g1-picture{--g1p-size:42px;color:#193b59;background:#fff;border:1px solid #d9e7f0;border-radius:18px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:calc(100dvh - 110px);min-height:480px;max-height:860px;width:100%;overflow:hidden;font-family:'PingFang SC','Microsoft YaHei',sans-serif;box-sizing:border-box}
.g1-picture *{box-sizing:border-box}.g1-picture button,.g1p-modal>button,.g1p-source button{font:500 14px/1.4 'PingFang SC','Microsoft YaHei',sans-serif;border:1px solid #d7e3ed;background:#fff;border-radius:9px;padding:7px 12px;color:#23496a;cursor:pointer;min-height:36px}.g1-picture button:hover{background:#f0f7fc}.g1-picture button:focus-visible,.g1-picture ruby:focus-visible,.g1-picture p:focus-visible{outline:3px solid #6ba7d4;outline-offset:3px}.g1-picture button[aria-pressed=true]{background:#e7f3fd;border-color:#89b2d0;color:#123f6a}.g1-picture button:disabled{opacity:.35;cursor:default}.g1p-toolbar{padding:9px 12px;border-bottom:1px solid #e6eef4;display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}.g1p-toolbar nav,.g1p-tools{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.g1p-stage{min-height:0;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:safe center;gap:12px;padding:16px 24px;overscroll-behavior:contain;background:white}.g1p-scene{display:block;object-fit:contain;min-height:100px;max-height:calc(100% - 125px);width:100%;height:330px;flex:1 1 230px}.g1p-lines{flex:none;text-align:center;max-width:100%}.g1p-lines p{font:400 var(--g1p-size)/1.55 G1ReadingKai,serif;margin:1px 0;cursor:pointer;white-space:normal;overflow-wrap:anywhere}.g1p-lines p.g1p-speaking{background:#edf7fc;border-radius:9px}.g1-picture ruby{cursor:pointer;white-space:nowrap;ruby-align:center}.g1-picture rt{font:400 .34em/1.15 G1Pinyin,sans-serif;color:#587185;visibility:hidden}.g1p-pinyin rt,.g1-picture .g1p-revealed rt{visibility:visible}.g1p-cards{display:grid;grid-template-columns:repeat(var(--g1p-cards),minmax(0,1fr));gap:18px;max-width:1100px;width:100%;align-items:center;min-height:0}.g1p-card{position:relative;text-align:center;min-width:0}.g1p-card img{width:100%;height:min(29dvh,260px);object-fit:contain;display:block}.g1p-card>div{font:400 var(--g1p-size)/1.4 G1ReadingKai,serif}.g1p-position{position:absolute;right:0;top:5%;font:36px G1ReadingKai,serif;color:#35688b}.g1p-letters{display:flex;gap:20px;justify-content:center;align-items:center;flex-wrap:wrap;width:100%;flex:none}.g1p-letters>span{font:400 clamp(46px,6vw,84px)/1.35 G1Pinyin,sans-serif;min-width:100px;text-align:center;padding:5px 18px;color:#205a84;background:#f5faff;border-radius:13px}.g1p-word-group{display:flex;gap:24px;justify-content:center;flex-wrap:wrap}.g1p-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;border-top:1px solid #e6eef4;background:#fff;font-size:13px;flex-wrap:wrap}.g1p-player{display:flex;align-items:center;gap:6px}.g1p-player [role=status]{font-size:12px}.g1p-bottom output{font-variant-numeric:tabular-nums;color:#70869a}.g1p-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;width:100%;max-width:1000px}.g1p-counts>div{display:flex;flex-direction:column;align-items:center;gap:10px;justify-content:flex-end}.g1p-counts strong{font:400 var(--g1p-size) G1ReadingKai,serif}.g1p-count-objects{display:flex;gap:3px;flex-wrap:wrap;justify-content:center;align-content:center;max-width:170px;min-height:150px}.g1p-count-objects img{width:55px;height:55px;object-fit:contain}.g1-picture:fullscreen{height:100dvh;max-height:none;border-radius:0;border:0}.g1p-modal{width:min(1200px,96vw);max-width:none;max-height:96dvh;padding:12px;border:1px solid #c3d5e3;border-radius:15px;background:#fff}.g1p-modal::backdrop,.g1p-source::backdrop{background:#12283c99}.g1p-modal .g1-picture{height:calc(94dvh - 65px);max-height:none}.g1p-close{margin:0 0 7px auto;display:block}.g1p-source{width:min(1000px,94vw);max-height:94dvh;border:1px solid #bfd2e1;border-radius:14px;padding:14px;background:white}.g1p-source>div{position:sticky;top:-14px;background:white;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:8px;z-index:1}.g1p-source h2{font:600 18px sans-serif;margin:0}.g1p-source section{display:grid;gap:16px}.g1p-source section img{display:block;width:100%;height:auto}.g1p-lesson-nav{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}.g1p-lesson-nav a{font:14px/1.4 G1Pinyin,sans-serif;color:#294e6d;border:1px solid #d5e5ef;border-radius:8px;padding:6px 10px;background:#fff;text-decoration:none}.g1p-lesson-nav a[aria-current=page]{background:#e7f3fd;border-color:#8db5d5}.g1p-writing{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;width:100%;max-width:940px}.g1p-write-card{height:200px;position:relative;background:repeating-linear-gradient(to bottom,transparent 0,transparent 49px,#adc8dc 49px,#adc8dc 50px);border-top:1px solid #adc8dc;border-bottom:1px solid #adc8dc}.g1p-write-card>span{position:absolute;inset:0;display:grid;place-items:center;font:140px G1Pinyin,sans-serif;color:#bdcbd58c;pointer-events:none}.g1p-write-card canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
@media(max-width:760px){.g1-picture{height:calc(100dvh - 100px);min-height:460px;border-radius:12px}.g1p-toolbar{padding:7px;gap:7px}.g1p-toolbar nav{flex:1 1 100%}.g1p-tools{margin-left:auto}.g1-picture button{font-size:12px;min-height:32px;padding:5px 8px}.g1p-stage{padding:12px 10px;gap:8px}.g1p-lines p{font-size:calc(var(--g1p-size)*.72)}.g1p-scene{height:250px;flex-basis:160px;max-height:calc(100% - 140px)}.g1p-cards{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}.g1p-cards:has(.g1p-card:nth-child(4)){grid-template-columns:repeat(3,minmax(0,1fr))}.g1p-cards:has(.g1p-card:nth-child(2)):not(:has(.g1p-card:nth-child(3))){grid-template-columns:repeat(2,minmax(0,1fr))}.g1p-card img{height:125px}.g1p-card>div{font-size:34px}.g1p-position{font-size:24px}.g1p-bottom{padding:8px;gap:6px}.g1p-player{gap:3px}.g1p-counts{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.g1p-count-objects{min-height:80px;max-width:100px}.g1p-count-objects img{width:36px;height:36px}.g1p-counts strong{font-size:30px}.g1p-letters{gap:8px}.g1p-letters>span{font-size:43px;min-width:65px;padding:5px 10px}.g1p-word-group{gap:10px}.g1p-writing{gap:6px}.g1p-write-card{height:160px;background-size:auto 40px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 39px,#adc8dc 39px,#adc8dc 40px)}.g1p-write-card>span{font-size:90px}.g1p-modal{padding:7px}.g1p-modal .g1-picture{height:calc(94dvh - 60px);min-height:0}.g1p-pinyin-host .g1-picture{height:calc(100dvh - 170px)}.g1p-lesson-nav a{font-size:12px;padding:5px 7px}}

.g1p-write-card{background:linear-gradient(#adc8dc,#adc8dc) 0 33.333%/100% 1px no-repeat,linear-gradient(#adc8dc,#adc8dc) 0 66.666%/100% 1px no-repeat}.g1p-write-card>span{transform:translateY(-7%)}
/* Every displayed pinyin is a direct sound target, including ruby annotations. */
.g1p-letters>button,.g1p-equations button,.g1p-write-labels button{font:400 clamp(38px,5vw,72px)/1.45 G1Pinyin,sans-serif;min-width:80px;border:1px solid #d6e7f3;background:#f7fbff;border-radius:13px;padding:7px 18px}.g1p-letters{gap:15px}.g1p-sounding{background:#dff0fb!important;color:#17517e!important;box-shadow:0 0 0 2px #6aadd0}.g1-picture rt[data-g1-sound]{cursor:pointer;border-radius:4px;padding:1px 0}.g1-picture rt[data-g1-sound]:hover{color:#176092;background:#e7f4ff}.g1-picture rt[data-g1-sound]:focus-visible{outline:2px solid #538db9}.g1p-equations{display:flex;flex-direction:column;gap:15px;width:100%;max-width:1000px}.g1p-equations>div{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.g1p-equations>div>span{font-size:28px;color:#6890ab}.g1p-letters>button:focus-visible,.g1p-tone-card:focus-visible{outline:3px solid #377cae;outline-offset:3px}.g1p-tones{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;width:100%;max-width:1050px}.g1-picture .g1p-tone-card{display:grid;gap:6px;text-align:center;justify-items:center;padding:18px 12px;background:white;min-width:0}.g1p-tone-card>span{font-size:18px;color:#5d7c91}.g1p-tone-card>strong{font:400 clamp(50px,7vw,90px)/1.3 G1Pinyin,sans-serif}.g1p-tone-card svg{width:100%;height:110px;overflow:visible}.g1p-tone-card svg path{stroke:#6c98ba;stroke-width:6;stroke-linecap:round;fill:none}.g1p-tone-card circle{fill:#e07e62;visibility:hidden}.g1p-tone-card.g1p-sounding circle{visibility:visible}.g1p-rhyme-title{font:400 28px/1.5 G1ReadingKai,serif;margin:0;flex:none}.g1p-lines p.g1p-instruction{font-size:18px;color:#72879a;margin-bottom:5px}.g1p-numerals{display:flex;gap:25px;flex-wrap:wrap;justify-content:center}.g1p-numerals>span{font:400 48px G1ReadingKai,serif;color:#537da0}.g1p-write-labels{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.g1p-write-labels button{font-size:27px;padding:3px 15px;min-width:50px}.g1p-course-main{max-width:1250px!important;margin:16px auto!important;padding:0 20px!important}.g1p-course-shell{height:calc(100dvh - 120px);min-height:520px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px}.g1p-course-head nav{display:flex;gap:14px;align-items:center;color:#6c8397;font-size:14px}.g1p-course-head nav>div{margin-left:auto;display:flex;gap:12px}.g1p-course-head nav a{padding:6px 10px;border:1px solid #d7e5ef;border-radius:8px;background:white;color:#254e6b;text-decoration:none}.g1p-course-head h1{font:600 23px/1.5 'PingFang SC',sans-serif;text-align:center;margin:5px 0 0}.g1p-course-head h1>span{font-family:G1Pinyin,sans-serif;font-weight:400;margin-left:10px}.g1p-course-shell>[data-g1-course-host]{min-height:0}.g1p-course-shell .g1-picture{height:100%;max-height:none;min-height:0}.g1p-course-page .ls-footer{display:none}.g1p-course-page .class-main:after{display:none}.g1p-credit{color:#54748b;font-size:13px}.g1p-source .g1p-credit{padding:10px 0}
@media(max-width:760px){.g1p-course-main{padding:0 10px!important;margin:9px auto!important}.g1p-course-shell{height:calc(100dvh - 88px);min-height:450px;gap:7px}.g1p-course-head nav{font-size:11px;gap:5px}.g1p-course-head nav a{padding:5px 7px}.g1p-course-head nav>div{gap:4px}.g1p-course-head h1{font-size:17px;margin:4px 0 0}.g1p-letters>button,.g1p-equations button{font-size:34px;min-width:58px;padding:7px 10px}.g1p-letters{gap:9px}.g1p-equations>div{gap:6px}.g1p-equations>div>span{font-size:20px}.g1p-tones{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.g1-picture .g1p-tone-card{padding:10px 6px;gap:2px}.g1p-tone-card svg{height:75px}.g1p-tone-card>span{font-size:13px}.g1p-tone-card>strong{font-size:48px}.g1p-rhyme-title{font-size:24px}.g1p-write-labels button{font-size:22px;min-width:35px}.g1p-lines p.g1p-instruction{font-size:15px}}
@media(prefers-reduced-motion:reduce){.g1p-tone-card circle{display:none}}
.g1p-equations>div{display:grid;grid-template-columns:auto 35px auto;gap:14px}.g1p-equation-parts{display:flex;align-items:center;justify-content:center;gap:12px}.g1p-equation-parts>span{font-size:28px;color:#6890ab}
@media(max-width:760px){.g1p-equations>div{grid-template-columns:minmax(0,1fr) 22px auto;gap:5px}.g1p-equation-parts{gap:4px}.g1p-equation-parts>span{font-size:16px}.g1p-equations .g1p-equation-parts button{min-width:0;font-size:26px;padding:5px}.g1p-equations>div>button{font-size:30px;min-width:0;padding:5px 7px}}
.g1-picture rt{text-align:center!important;white-space:nowrap;letter-spacing:0!important;word-spacing:0!important}.g1p-pinyin-syllable{display:inline-block;white-space:nowrap;letter-spacing:0;word-spacing:0;text-align:center}
.g1p-figures{display:grid;grid-template-columns:repeat(var(--g1p-figures),minmax(0,1fr));gap:18px;width:100%;max-width:1080px;min-height:100px;flex:1 1 220px;max-height:360px}.g1p-figures img{display:block;width:100%;height:100%;max-height:360px;min-height:0;object-fit:contain}.g1p-figures:has(img:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}.g1p-tone-picture{width:100%;height:95px;object-fit:contain}.g1p-tone-card:has(.g1p-tone-picture) svg{height:70px}.g1p-hanzi-writing{display:flex;gap:30px;justify-content:center;flex-wrap:wrap;width:100%}.g1p-hanzi-writing>div{display:grid;gap:12px;justify-items:center}.g1p-hanzi-card{width:230px;height:230px;border:1px solid #94b6ce;background:linear-gradient(#bed2e2,#bed2e2) center/100% 1px no-repeat,linear-gradient(90deg,#bed2e2,#bed2e2) center/1px 100% no-repeat}.g1p-hanzi-card>span{font-family:G1ReadingKai,serif!important;transform:none}.g1p-hanzi-card [data-g1-stroke-model]{position:absolute;inset:0}.g1p-hanzi-card [hidden]{display:none}.g1p-matching{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:70px;width:100%;max-width:850px}.g1p-matching>div{display:grid;gap:12px;align-content:stretch}.g1p-matching button{border-width:3px;font:36px/1.35 G1ReadingKai,serif;min-height:70px}.g1p-matching [data-g1-match-left]{border-color:var(--pair-color)}.g1p-matching [data-g1-match-left][aria-pressed=true]{box-shadow:0 0 0 4px #b4d6ec}.g1p-matching img{width:100%;height:110px;object-fit:contain}.g1p-matching button:disabled{opacity:1}.g1p-task-status{min-height:25px;font:18px/1.4 sans-serif;color:#24714b}.g1p-choice{text-align:center}.g1p-choice>p{font:42px G1ReadingKai,serif}.g1p-choice>div{display:flex;justify-content:center;gap:20px;margin:25px 0}.g1p-choice [data-g1-choice]{font:42px G1ReadingKai,serif;padding:16px 30px}.g1p-timetable{width:100%;overflow:auto;text-align:center}.g1p-timetable h2{font-size:24px}.g1p-timetable table{border-collapse:collapse;width:100%;min-width:620px;font:20px/1.5 G1ReadingKai,serif}.g1p-timetable th,.g1p-timetable td{border:1px solid #a6bfd2;padding:7px;color:#244d6c}.g1p-timetable th{background:#f0f7fc}.g1p-timetable p{font:24px G1ReadingKai,serif}.g1p-stage:has(.g1p-timetable){justify-content:flex-start}.g1p-stage:has(.g1p-matching) .g1p-lines{order:-1}.g1p-stage:has(.g1p-hanzi-writing) .g1p-lines{order:-1}.g1p-stage:has(.g1p-matching) [data-g1-pinyin]{display:none}
@media(max-width:760px){.g1p-figures{gap:8px;max-height:230px;flex-basis:150px}.g1p-figures img{max-height:230px}.g1p-hanzi-writing{gap:14px}.g1p-hanzi-card{width:155px;height:155px}.g1p-matching{gap:25px}.g1p-matching button{font-size:27px;min-height:65px}.g1p-matching img{height:85px}.g1p-choice>p{font-size:32px}.g1p-choice>div{gap:12px}.g1p-choice [data-g1-choice]{font-size:30px;padding:10px 17px}.g1p-tone-picture{height:65px}.g1p-tone-card:has(.g1p-tone-picture) svg{height:45px}.g1p-stage:has(.g1p-tones) .g1p-tones{flex:none}.g1p-timetable table{font-size:18px}}
.g1p-free-writing{width:min(90%,800px);min-height:110px;resize:vertical;border:1px solid #9ebbd0;border-radius:8px;padding:12px;font:32px/1.5 G1ReadingKai,serif;color:#23496a;background:white}.g1p-stage:has(.g1p-free-writing){justify-content:flex-start}
.g1p-activities-open{font:500 14px/1.4 sans-serif;color:#235979;background:#f1f8fd;border:1px solid #bfd6e6;border-radius:8px;padding:8px 13px;cursor:pointer;white-space:nowrap}.g1p-course-page{overflow:hidden}.g1p-course-shell{min-height:0}.g1p-course-page .g1p-course-main{height:calc(100dvh - 112px)}
.g1p-figures,.g1p-cards,.g1p-lines{margin-left:auto!important;margin-right:auto!important;align-self:center}.g1p-figures{justify-items:center}.g1p-figures img,.g1p-card img{object-position:center center}.g1p-lines{width:100%;text-align:center!important}.g1p-lines p{text-align:center!important;margin-left:auto!important;margin-right:auto!important}.g1p-guided-hanzi{width:100%;max-width:650px;margin-inline:auto}.g1p-stage:has(.g1p-guided-hanzi){justify-content:flex-start;padding-block:12px}.g1p-stage:has(.g1p-guided-hanzi) .g1p-lines{order:-1}.g1p-lines p.g1p-instruction{font-size:18px}
@media(max-width:760px){.g1p-stage{padding-left:12px;padding-right:12px}.g1p-stage:has(.g1p-guided-hanzi){padding:10px 8px}.g1p-lines p.g1p-instruction{font-size:15px}.g1p-figures{max-width:100%;flex:0 0 210px;height:210px;max-height:230px}.g1p-figures img{height:100%;max-height:230px}.g1p-stage:has(.g1p-figures) .g1p-lines p{font-size:clamp(23px,7vw,30px);line-height:1.65}}

.g1p-writing-tools{display:flex;justify-content:center;gap:8px}.g1p-demo-mode .g1p-write-card>span{visibility:hidden}.g1p-write-card{background:linear-gradient(to bottom,transparent 24%,#a9bfd2 24%,#a9bfd2 24.7%,transparent 24.7%,transparent 44%,#d8a9a9 44%,#d8a9a9 44.7%,transparent 44.7%,transparent 64%,#a9bfd2 64%,#a9bfd2 64.7%,transparent 64.7%,transparent 84%,#a9bfd2 84%,#a9bfd2 84.7%,transparent 84.7%)}

.g1p-card-objects{display:flex;align-items:center;justify-content:center;gap:4px}.g1p-card-objects img{width:48%!important;min-width:0}.g1p-card[data-g1-line]{cursor:pointer;border-radius:12px}.g1p-card[data-g1-line]:focus-visible{outline:3px solid #6ba7d4;outline-offset:3px}@media(max-width:600px){.g1p-card>div{font-size:26px}.g1p-cards{gap:8px}.g1p-card img{height:160px}}

.g1p-timetable{max-width:100%;overflow:auto}.g1p-timetable table{width:100%;table-layout:fixed;min-width:660px}.g1p-timetable th,.g1p-timetable td{overflow-wrap:anywhere;font-family:G1ReadingKai,serif;font-size:24px}.g1p-timetable td[data-g1-line]{cursor:pointer;background:#f8fcff}.g1p-timetable td[data-g1-line]:hover{background:#e7f3fd}.g1p-timetable td[data-g1-line]:focus-visible{outline:3px solid #6ba7d4;outline-offset:-3px}.g1p-timetable rt{font-size:.42em}

.g1p-lines.g1p-natural-prose{font:400 var(--g1p-size)/1.65 G1ReadingKai,serif;text-align:left;max-width:100%;white-space:normal;overflow-wrap:normal;word-break:normal}.g1p-natural-prose>[data-g1-line]{display:inline;cursor:pointer}.g1p-natural-prose>[data-g1-line].g1p-speaking{background:#edf7fc;border-radius:6px}

/* Keep each illustration together with its own sentence. */
.g1p-paired-scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:24px;width:100%;max-width:1200px;flex:0 0 auto;margin-inline:auto}.g1p-scene-pair{display:flex;flex-direction:column;gap:12px;align-items:center;min-width:0}.g1p-scene-pair>img{display:block;width:100%;height:clamp(160px,30dvh,300px);object-fit:contain;object-position:center}.g1p-scene-pair .g1p-lines p{font-size:calc(var(--g1p-size)*.82);line-height:1.65;overflow-wrap:normal;word-break:normal}.g1p-stage>*{flex-shrink:0}.g1p-figures{flex:0 0 auto;height:clamp(160px,32dvh,330px);max-height:none}.g1p-figures img{height:100%;max-height:100%;min-width:0}.g1p-stage:has(.g1p-paired-scenes)>.g1p-lines:empty{display:none}
@media(max-width:650px){.g1p-paired-scenes{grid-template-columns:1fr;gap:24px}.g1p-scene-pair>img{height:185px}.g1p-scene-pair .g1p-lines p{font-size:calc(var(--g1p-size)*.65)}.g1p-figures{height:210px}.g1p-stage:has(.g1p-paired-scenes){justify-content:flex-start}}

.g1p-paired-scenes:not(:has(.g1p-scene-pair:nth-child(2))){grid-template-columns:minmax(0,1fr)}

.g1p-scene-pair>img[role=button]{cursor:pointer;border-radius:8px}.g1p-scene-pair>img:focus-visible{outline:3px solid #6ba7d4;outline-offset:3px}

.g1p-figures>figure{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;height:100%;min-width:0;min-height:0;margin:0}.g1p-figures>figure>img{flex:1;min-height:0}.g1p-figures figcaption{flex:none}.g1p-figures figcaption button{font:400 42px/1.3 G1Pinyin,sans-serif;min-width:66px}.g1p-figures:has(figure:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){.g1p-figures:has(figure:nth-child(3)){height:auto;max-height:none;grid-template-columns:repeat(2,minmax(0,1fr))}.g1p-figures:has(figure:nth-child(3))>figure{height:180px}.g1p-figures>figure:nth-child(3):last-child{grid-column:1/-1}.g1p-figures figcaption button{font-size:30px}}

.g1p-math-example{font:500 64px/1 G1Pinyin,sans-serif;color:#193b59;flex:none;text-align:center}
.g1p-lines.g1p-natural-prose{text-align:left!important;max-width:1000px}.g1p-natural-prose ruby{display:inline-flex;flex-direction:column-reverse;vertical-align:bottom;align-items:center;line-height:1.5}.g1p-natural-prose rt{display:block;line-height:1.1}@media(max-width:650px){.g1p-lines.g1p-natural-prose{font-size:calc(var(--g1p-size)*.72);line-height:1.7}}
.g1p-scene-pair ruby{display:inline-flex;flex-direction:column-reverse;vertical-align:bottom;align-items:center;line-height:1.5}.g1p-scene-pair rt{display:block;line-height:1.1}

/* Text-bearing teaching diagrams use real fonts, rather than rasterized words. */
.g1p-native-notebook,.g1p-native-greeting,.g1p-native-word-cards{width:min(90%,850px);display:grid;gap:24px;padding:28px;border:1px solid #d8e1e7;border-radius:14px;background:#fff;font:400 var(--g1p-size)/1.6 G1ReadingKai,serif}.g1p-native-notebook>div{display:flex;align-items:baseline;gap:28px;cursor:pointer}.g1p-field-line{flex:1;border-bottom:1px solid #bccbd5;min-width:45px}.g1p-native-word-cards{grid-template-columns:repeat(2,minmax(0,1fr));border:0;padding:12px}.g1p-native-word-cards>div{border:1px solid #d8e1e7;border-radius:12px;padding:20px;text-align:center;cursor:pointer}.g1p-native-greeting>div:first-child{text-align:left}.g1p-native-greeting>div:nth-child(n+3){text-align:right}.g1p-native-greeting{border-top:5px solid #c87365}.g1p-native-tianzi{width:240px;height:240px;border:2px solid #a7b9c6;background:linear-gradient(90deg,transparent calc(50% - .5px),#ccd6dd calc(50% - .5px),#ccd6dd calc(50% + .5px),transparent calc(50% + .5px)),linear-gradient(transparent calc(50% - .5px),#ccd6dd calc(50% - .5px),#ccd6dd calc(50% + .5px),transparent calc(50% + .5px))}.g1p-native-structure{display:grid;gap:35px;width:min(100%,900px);font:400 var(--g1p-size)/1.6 G1ReadingKai,serif}.g1p-native-structure>div{display:flex;gap:28px;justify-content:center;flex-wrap:wrap}.g1p-native-structure section{display:flex;justify-content:space-around;gap:18px}.g1p-native-structure strong{display:grid;place-items:center;border:2px solid #b6bfc4;border-radius:10px;width:100px;height:100px;font-weight:400;font-size:64px}@media(max-width:650px){.g1p-native-notebook,.g1p-native-greeting,.g1p-native-word-cards{font-size:calc(var(--g1p-size)*.65);padding:18px;gap:18px}.g1p-native-word-cards{grid-template-columns:1fr}.g1p-native-structure{font-size:30px}.g1p-native-structure strong{font-size:48px;width:75px;height:75px}}

.g1p-rhyme-title{word-break:normal;overflow-wrap:normal;max-width:100%;font-size:clamp(18px,3.8vw,28px)}.g1p-short-title{white-space:nowrap!important;word-break:keep-all}.g1p-without-pictures .g1p-scene-pair{gap:0}.g1p-without-pictures .g1p-paired-scenes{align-items:center}.g1p-without-pictures .g1p-cards .g1p-card{min-height:100px}

@media(max-width:650px){.g1p-cards:has(.g1p-card:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}.g1p-card>div:last-child{font-size:clamp(22px,6vw,30px);line-height:1.6}.g1p-card img{height:110px}}

/* Keep first-grade characters prominent and the pronunciation smaller. */
.g1-picture[data-g1-lesson^="g1u-"] .g1p-lines p{font-size:calc(var(--g1p-size)*.82)}
.g1-picture[data-g1-lesson^="g1u-"] rt{font-size:.39em}
.g1-picture .g1p-stage:has(.g1p-paired-scenes){justify-content:safe center}
.g1p-recognition-grid{width:min(100%,1100px);display:grid;grid-template-columns:repeat(var(--recognition-count),minmax(0,1fr));align-items:start;gap:22px}
.g1p-recognition-card{display:flex;flex-direction:column;align-items:center;gap:14px;min-width:0}
.g1p-recognition-character{font:400 calc(var(--g1p-size)*1.65)/1.5 G1ReadingKai,serif;cursor:pointer}
.g1p-stroke-sequence{display:flex;flex-wrap:wrap;justify-content:center;align-content:start;gap:4px;width:100%;min-height:56px}
.g1p-stroke-sequence svg{width:50px;height:50px;flex:none;background:#fff}
.g1p-recognition-actions{display:flex;justify-content:center;gap:5px;flex-wrap:wrap}
.g1p-recognition-actions button{font-size:13px;padding:5px 8px}
.g1p-recognition-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #c7d9e4;border-radius:14px;padding:12px;color:#193b59;background:#fff}
.g1p-recognition-dialog::backdrop{background:#17375255}
.g1p-writing-close{float:right;border:1px solid #c7d9e4;background:#fff;color:#23496a;border-radius:8px;padding:8px 12px;cursor:pointer}
.g1p-recognition-dialog .school-hanzi-practice{clear:both}
.g1p-cards[data-body-parts]{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.g1p-cards[data-body-parts] .g1p-card img{height:min(28dvh,230px)}
@media(max-width:760px){.g1-picture[data-g1-lesson^="g1u-"] .g1p-lines p,.g1-picture[data-g1-lesson^="g1u-"] .g1p-card>div:last-child{font-size:calc(var(--g1p-size)*.74);line-height:1.65}.g1p-recognition-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.g1p-recognition-character{font-size:calc(var(--g1p-size)*1.3)}.g1p-stroke-sequence svg{width:40px;height:40px}.g1p-recognition-actions button{font-size:12px}.g1p-cards[data-body-parts]{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.g1p-cards[data-body-parts] .g1p-card img{height:95px}}


.g1-picture .g1p-speaking,.pb-reader .pb-speaking-line{background:transparent!important;box-shadow:none!important}
.school-reading-character.school-char-read{background:#fff8d7!important;border-radius:2px}
.school-reading-character.school-char-current{background:#fff3c2!important;border-radius:2px;position:relative}
.school-reading-character.school-char-current::before{content:"";position:absolute;left:-2px;top:0;width:2px;height:1.2em;background:#9b7a24;border-radius:2px}
