.challenge-study{max-width:1240px;margin:auto;color:#1c3c31}
.study-title{padding:2.25rem 0 1.25rem;border-bottom:1px solid #ccd9ce;margin-bottom:1.3rem}
.study-title h1{font-family:Georgia,serif;line-height:1.1;margin:.4rem 0 1rem;font-size:clamp(2rem,5vw,3.45rem)}
.study-layout{display:grid;grid-template-columns:minmax(260px,34%) minmax(0,1fr);gap:1.4rem;align-items:start;padding-bottom:3rem}
.study-media{position:sticky;top:1rem;border:1px solid #ccd9ce;border-radius:1rem;padding:.8rem;background:#eaf0e8}
.study-media video{display:block;width:100%;aspect-ratio:16/9;background:#10211b;border-radius:.55rem}
.study-media video[hidden],.study-panel[hidden],.study-zh[hidden]{display:none}
.study-media p{font-size:.88rem;margin:.45rem 0}
.study-actions,#sections{display:flex;flex-wrap:wrap;gap:.45rem}
#sections{margin-bottom:.8rem}
.challenge-study button{font:inherit;font-size:.9rem;color:#174734;background:#f8faf5;border:1px solid #a3bdae;border-radius:.5rem;cursor:pointer;padding:.45rem .67rem;text-align:left}
.challenge-study button:hover,.challenge-study button[aria-current="true"]{background:#205c46;color:#fff}
.study-actions a,.study-panel a{color:#175640;text-decoration:underline}
.study-panel{border:1px solid #ccd9ce;background:#fffdf6;border-radius:.9rem;padding:clamp(.8rem,2vmin,1.4rem);line-height:1.5;overflow-wrap:anywhere}
.study-panel h2{margin:0 0 .9rem}
.study-panel .study-item,.study-panel .study-group{margin:.7rem 0;padding:.85rem;border:1px solid #d5e0d7;border-radius:.65rem}
.study-panel h3,.study-panel h4{margin:.2rem 0 .45rem}
.study-panel p,.study-panel ol,.study-panel ul{margin:.4rem 0 .62rem}
.study-panel summary{font-weight:700;cursor:pointer}
.study-zh{color:#476256}
.study-panel textarea,.study-panel input[type="text"]{width:100%;box-sizing:border-box;border:1px solid #a9bfb1;border-radius:.45rem;font:inherit;padding:.45rem;margin:.35rem 0 .1rem}
.study-panel label{display:block}
.study-panel textarea{min-height:4rem;resize:vertical}
.study-answer{margin:.55rem 0;background:#edf3e9;padding:.7rem;border-radius:.4rem}
.study-reading .study-reading-paragraph{margin:0 0 1.1rem;line-height:1.85}
.study-reading .study-reading-paragraph:last-child{margin-bottom:0}
.study-reading .study-script-cue{
  display:inline;margin:0;padding:.12em .18em;border:0;border-radius:.28em;
  appearance:none;background:none;color:inherit;font:inherit;line-height:inherit;cursor:pointer;
  text-align:left;user-select:text;overflow-wrap:anywhere;
}
.study-reading .study-script-cue .study-zh{display:block;font-size:.9em;padding:.12em 0 .2em}
.study-reading .study-script-cue .study-zh[hidden]{display:none}
.study-reading .study-script-cue:hover{background:#edf2e8;color:#173e30}
.study-reading .study-script-cue[aria-current="true"]{background:#d5ead8;color:#173e30}
.study-reading .study-script-cue:focus-visible{outline:2px solid #205c46;outline-offset:2px}
.study-chart{margin:.5rem 0;overflow-x:auto}
.study-chart svg{display:block;background:#f1f6f0;width:100%;min-width:390px}
.study-chart text{fill:#24473b;font-size:11px}
.study-chart .pitch-guide{stroke:#b5c8bc;stroke-width:1}
.study-chart .pitch-line{fill:none;stroke:#146a58;stroke-width:1.7}
.study-chart .pitch-step{stroke:#875524;stroke-width:1.6;stroke-dasharray:3 2}
@media(max-width:730px){
  .study-title{padding-top:1rem}
  .study-layout{grid-template-columns:minmax(0,1fr);gap:.8rem}
  .study-media{position:static}
  .study-chart svg{min-width:350px}
}

.study-panel .study-inline-answer{display:inline}
.study-panel .study-inline-answer input{width:min(13em,100%);margin:.2rem .25rem;vertical-align:middle}
.study-outline{padding-left:2rem}
.study-outline ol{padding-left:1.8rem}
.study-points{font-size:.88rem;color:#496153}
.study-panel audio{max-width:100%;margin:.4rem 0}
.study-panel .answer-image-card img{display:block;width:auto;max-width:100%;max-height:240px}
.study-panel .answer-image-picker label,.study-panel input[type=file]{margin:.3rem 0;max-width:100%}

.study-chart-scroll{overflow-x:auto;max-width:100%}
.study-chart-scroll svg{display:block;width:auto;max-width:none;height:auto}
.study-connection-line{overflow-x:auto;line-height:1.45;margin:.3rem 0;padding-bottom:.35rem}
.study-connection-group{display:inline-flex;align-items:baseline;white-space:nowrap;min-height:1.9rem}
.study-connection-group:has(.study-glide){min-height:2.45rem}
.study-connection-mark{position:relative;display:inline-block;width:.44em;flex:none}
.study-connection-mark svg{position:absolute;left:-.45em;top:.23em;width:1.34em;height:.57em;overflow:visible}
.study-connection-mark path{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.study-glide{position:absolute;left:50%;top:1em;transform:translateX(-50%);font-size:.72em;font-weight:700}
.study-connections .link-CV{color:#176557}
.study-connections .link-CC{color:#795020}
.study-connections .link-VV{color:#365694}
.study-link-legend{display:flex;flex-wrap:wrap;gap:.25rem 1rem;padding:0;list-style:none;font-size:.88rem}
