.pinyin-hero{padding:5rem 0 2.5rem;background:#edf5f1}.pinyin-hero h1{max-width:950px;font-size:clamp(2.6rem,6vw,5.2rem);line-height:1.04;letter-spacing:-.04em;margin:.8rem 0 1.5rem}.pinyin-lead{font-size:1.25rem;max-width:720px;line-height:1.7}.tone-ribbon{display:grid;grid-template-columns:repeat(4,1fr);max-width:720px;border-top:1px solid #b2c7bd;margin-top:3rem;padding-top:1.5rem;gap:1rem}.tone-ribbon>span{font-size:2.4rem;color:#14634f}.tone-ribbon small{display:block;font:400 .9rem/1.5 system-ui;color:#405d50}.pinyin-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:4rem;padding-top:3rem;align-items:start}.pinyin-contents{position:sticky;top:7rem;padding-bottom:2rem}.pinyin-contents nav{display:grid;gap:.55rem}.pinyin-contents a{font-size:.95rem;text-decoration:none;padding:.2rem 0}.pinyin-contents a:hover{text-decoration:underline}.pinyin-content{max-width:890px;min-width:0}.guide-section{padding:1rem 0 3rem;border-bottom:1px solid #dce5df;margin-bottom:2rem;scroll-margin-top:7rem}.guide-section h2{font-size:clamp(1.9rem,3.8vw,2.7rem);line-height:1.15;letter-spacing:-.025em;margin:.7rem 0 1.5rem}.guide-section h3{font-size:1.3rem;line-height:1.4;margin:2rem 0 .75rem}.guide-section p,.guide-section li{line-height:1.85}.guide-section p{margin:0 0 1.2rem}.guide-section ul,.guide-section ol{padding-left:1.4rem;margin:1rem 0 1.6rem}.guide-section li{padding-left:.2rem;margin-bottom:.6rem}.guide-callout{padding:1.5rem 1.7rem;background:#f0f5f2;border-left:4px solid #14634f;margin:1.8rem 0}.guide-callout h3{margin:0 0 .6rem}.guide-callout p:last-child{margin:0}.syllable-demo{display:flex;gap:2.4rem;padding:1.6rem 0 2rem;align-items:center}.syllable-demo span{font-size:3.2rem;min-width:90px;color:#14634f}.syllable-demo small{display:block;font:400 .9rem/1.5 system-ui;color:#456253}.tone-cards{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem;margin:1.5rem 0 2rem}.tone-cards article{border:1px solid #c5d6cd;padding:1.4rem;border-radius:12px;background:white}.tone-cards h3{margin:1rem 0 .75rem}.tone-card-head{display:flex;justify-content:space-between;align-items:center}.tone-big{font-size:2.6rem;color:#14634f}.tone-card-head svg{width:110px;height:60px}.tone-card-head path{fill:none;stroke:#14634f;stroke-width:5;stroke-linecap:round}.sound-button,.inline-sound,.audio-chip button{border:1px solid #9db8aa;border-radius:7px;background:#edf5f1;color:#154e3c;font:inherit;cursor:pointer;padding:.5rem .7rem;min-height:44px}.inline-sound{display:inline;padding:.1rem .4rem;min-height:36px;font-size:inherit}.sound-button:hover,.inline-sound:hover,.audio-chip button:hover{background:#dcece3}.word-example{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;padding:1rem;background:#f0f5f2;margin-bottom:1.5rem}.word-example strong{font-size:1.6rem}.table-scroll{overflow:auto;max-width:100%;margin:1.3rem 0}.guide-table{border-collapse:collapse;width:100%;font-size:.96rem;line-height:1.65}.guide-table th,.guide-table td{text-align:left;vertical-align:top;padding:1rem .8rem;border-bottom:1px solid #cfddd5}.guide-table thead{background:#edf5f1}.guide-table caption{text-align:left;padding:.6rem 0 1rem;color:#476153;font-size:.9rem}.guide-table td:first-child{font-weight:600;min-width:110px}.guide-table td:nth-child(2){min-width:190px}.audio-chip{display:inline-flex;align-items:center;gap:.3rem;margin:.2rem .25rem .3rem 0;white-space:nowrap}.audio-chip a{font-size:.72rem}.audio-chip button{padding:.35rem .5rem}.trainer-panel{border:1px solid #b3cdbf;border-radius:16px;background:#f5f9f6;padding:1.8rem;margin:1.5rem 0}.trainer-panel h3:first-child{margin-top:0}.trainer-settings{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.trainer-settings label{display:grid;gap:.4rem;font-size:.9rem}.trainer-settings select{font:inherit;border:1px solid #94b5a3;background:white;padding:.65rem 2rem .65rem .7rem;border-radius:7px;min-height:44px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2314634f' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .65rem center}.trainer-stats{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;font-size:.95rem;padding:1rem 0;border-top:1px solid #d1e0d7}.listening-stage{text-align:center;background:white;border-radius:12px;padding:1.7rem 1rem;margin:.5rem 0 1.2rem}.listening-stage p:last-child{margin:.8rem 0 0}.tone-answers,.word-tones{display:flex;gap:.6rem;flex-wrap:wrap}.tone-answers button,.word-tones button,.rule-options button{background:white;border:1px solid #9bb9a9;border-radius:8px;min-height:48px;padding:.65rem 1rem;font:inherit;cursor:pointer;color:#163d2f}.tone-answers button{flex:1;min-width:95px}.tone-answers button:disabled,.word-tones button:disabled{opacity:.55;cursor:default}.word-tones button[aria-pressed=true]{background:#14634f;color:white;border-color:#14634f}.trainer-feedback:not(:empty){border-left:4px solid #14634f;padding:.8rem 1rem;margin:1.2rem 0;background:white;line-height:1.75}.trainer-feedback[data-correct=false]{border-left-color:#a6492e}.tone-compare{margin:1.2rem 0}.tone-compare p{margin-bottom:.4rem}.tone-compare button{margin:.2rem .3rem .2rem 0}.session-summary{margin:1.3rem 0;padding:1.2rem;background:white;border-radius:10px}.session-summary h3{margin:.2rem 0 .7rem}.word-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.word-card{border:1px solid #d0ded6;padding:1rem;border-radius:9px}.word-card strong{display:block;font-size:1.5rem}.word-card span{display:block;font-size:.95rem}.word-card button{margin:.6rem 0 .3rem}.word-card small{display:block;line-height:1.4;color:#52685d}.trainer-panel fieldset{margin:1rem 0;border:0;padding:0}.trainer-panel legend{padding:0 0 .5rem;font-size:.95rem}.rule-options{display:grid;gap:.7rem}.rule-options button{text-align:left}.rule-options button:hover:not(:disabled),.tone-answers button:hover:not(:disabled){background:#e2eee7}.rule-options button:disabled{cursor:default;color:#53675d}.pinyin-week{counter-reset:day}.credits{font-size:.95rem}.audio-global{margin:.7rem 0 1.5rem;min-height:1.5em;color:#a33920}.guide-section [hidden]{display:none!important}.pinyin-content button:focus-visible,.pinyin-content a:focus-visible,.pinyin-contents a:focus-visible{outline:3px solid #bd5b2b;outline-offset:3px}.pinyin-content .fine{font-size:.9rem}.pinyin-content .text-link{background:none;border:0;font:inherit;text-decoration:underline;cursor:pointer;min-height:44px;padding:.4rem 0}.guide-list li{margin-bottom:1rem}@media(max-width:1000px){.pinyin-layout{grid-template-columns:170px minmax(0,1fr);gap:2rem}.word-library{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.pinyin-layout{display:block;padding-top:1.5rem}.pinyin-contents{position:static;border-bottom:1px solid #d1dfd7;padding-bottom:1.5rem;margin-bottom:1rem}.pinyin-contents nav{display:flex;flex-wrap:wrap;gap:.5rem 1rem}.pinyin-contents .eyebrow{width:100%;margin:0}.pinyin-hero{padding:3rem 0 2rem}.tone-cards{grid-template-columns:1fr}.trainer-panel{padding:1.15rem}.tone-ribbon{gap:.5rem}.tone-ribbon>span{font-size:1.9rem}.tone-ribbon small{font-size:.8rem}.guide-table{font-size:.9rem}.guide-table td,.guide-table th{padding:.8rem .6rem}.word-library{grid-template-columns:repeat(2,minmax(0,1fr))}.syllable-demo{gap:1.2rem}.syllable-demo span{font-size:2.6rem;min-width:65px}.guide-section{scroll-margin-top:6rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}@media print{.pinyin-contents,.trainer-panel,.pinyin-hero .actions,.audio-chip a,.sound-button,.inline-sound{display:none}.pinyin-layout{display:block}.guide-section{break-inside:auto}.tone-cards article{break-inside:avoid}.pinyin-hero{padding:1rem 0}.word-library{display:none}}
.audio-global:empty{display:none}@media(max-width:760px){.guide-section{scroll-margin-top:12rem}}
#sound-syllable{display:block;max-width:100%;margin:.5rem 0 1rem;background:white;border:1px solid #94b5a3;border-radius:6px;padding:.65rem;font:inherit;min-width:120px}

.pinyin-book-note{border:1px solid #b5cdbf;border-radius:12px;padding:1.5rem 1.7rem;background:#fff;margin:2.2rem 0}.pinyin-hero .pinyin-book-note{max-width:740px;background:#f8fbf9}.pinyin-book-note p{line-height:1.75;margin:0 0 .8rem}.pinyin-book-note .eyebrow{margin-bottom:.55rem}.pinyin-book-note h3{margin:.2rem 0 .8rem}.pinyin-book-note .fine{font-size:.875rem;margin:.9rem 0 0}.pinyin-book-finish{background:#edf5f1;margin-bottom:3rem}.pinyin-book-finish h2{font-size:clamp(1.8rem,3.8vw,2.5rem);line-height:1.15;margin:.3rem 0 1rem}@media(max-width:760px){.pinyin-book-note{padding:1.25rem}.pinyin-hero .pinyin-book-note{margin-top:1.6rem}}
