/* Editorial surfaces for the Atlas. Artwork stays separate from live type. */
.edition-doors,.book-grid,.course-edition,.edition-volume,.shelf-reading,.edition-library{--atlas-ink:#263b3d;--atlas-berry:#55496e;--atlas-lip:#777382}
.edition-doors.do-resources{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;margin:16px 0}
.edition-doors[hidden],.book-grid[hidden]{display:none!important}
.edition-search{max-width:none;margin:0}
.edition-door{grid-column:span 2;display:flex;flex-direction:column;align-items:flex-start;gap:11px;padding:17px 19px 16px;--lip:var(--atlas-lip);border-radius:13px}
.edition-door h2,.edition-pocket strong,.volume-heading h1,.lesson-key strong,.study-desk h1{font-family:TonSerif,Georgia,serif;letter-spacing:-.045em}
.edition-door h2{font-size:clamp(1.2rem,2.3vw,1.8rem);line-height:1.1;margin:0 0 5px}
.edition-door p{font-size:.94rem;line-height:1.36}.edition-door>b{position:absolute;right:14px;top:10px;font-size:1.4rem}
.door-books{background:#ddd4ef}.door-chart{background:#cbe7d8}.door-course{background:#f7dfab}
.door-design{display:flex;align-items:center;justify-content:center;width:84px;height:62px;color:#26383e;position:relative}
.book-emblem i{width:42px;height:45px;background:#fbefd0;border:3px solid currentColor;border-bottom:5px solid;border-radius:4px 10px 2px 4px;transform:skewY(10deg)}
.book-emblem i+i{transform:skewY(-10deg);border-radius:9px 4px 4px 2px;margin-left:-2px}
.book-emblem i:after{content:"";position:absolute;inset:10px 5px 12px;background:repeating-linear-gradient(to bottom,#5b6f65 0 2px,transparent 2px 6px)}
.chart-emblem{width:86px;display:grid;grid-template-columns:repeat(3,1fr);gap:2px;align-content:center;transform:rotate(-4deg)}
.chart-emblem i{display:grid;place-items:center;border:2px solid;border-radius:4px;line-height:1.15;background:#f4f8e6;font:700 18px/1.12 Georgia,serif}.chart-emblem i:nth-child(2),.chart-emblem i:nth-child(6){background:#94c6b0}
.course-emblem{gap:4px}.course-emblem i{width:9px;height:16px;background:#325453;border-radius:3px}.course-emblem i:nth-child(2n){height:32px}.course-emblem i:nth-child(3){height:53px}
.edition-pocket{grid-column:span 3;display:grid;grid-template-columns:1fr auto;align-content:center;gap:2px 9px;padding:14px 17px;border-radius:9px;--lip:#aaa896;background:#fffdf5}
.edition-pocket strong{font-size:1.18rem}.edition-pocket span{grid-row:2;font-size:.86rem}.edition-pocket b{grid-row:1/3;grid-column:2;align-self:center}
button.do-hit{width:100%;background:#fffdf8;border:0;border-bottom:1px solid #cdd3c7;text-align:left;cursor:pointer}button.do-hit:hover{background:#eff5e9}
.edition-title h1,.volume-heading h1{margin:0}.edition-library .shelf-search{margin:13px 0 8px}.edition-library .shelf-search input{max-width:none}
.book-grid.shelf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px 18px;margin:20px 0 26px}
.book-jacket,.lesson-key{
  display:flex;flex-direction:column;color:var(--atlas-ink);position:relative;min-width:0;border:1.8px solid #293f40;
  border-radius:5px 13px 10px 5px;box-shadow:0 4px #3b4d46;text-decoration:none;transition:transform .13s,box-shadow .13s
}
.book-jacket{padding-left:11px;background:var(--shelf-ink);overflow:hidden}
.jacket-face{position:relative;display:grid;grid-template-rows:auto 1fr auto;flex:1;justify-items:start;align-items:center;padding:15px 14px 9px 17px;border-left:2px solid #fff6;
  background:var(--shelf-paper);color:var(--shelf-ink)}
.jacket-face:after{content:"";position:absolute;inset:0 auto 0 3px;width:1px;background:#171d2324}
.jacket-face h2{font:900 clamp(1.25rem,2.25vw,1.85rem)/1.04 TonSerif,Georgia,serif;color:var(--shelf-ink);letter-spacing:-.05em}
.jacket-face .edition-print{display:block;justify-self:center;width:74%;height:112px;object-fit:contain;margin:3px 0}
.jacket-face p{font-size:.85rem;line-height:1.3;color:#334344}
.book-jacket>small{border-top:1px solid #718275;background:repeating-linear-gradient(to bottom,#fffcf0 0 3px,#ebe7d8 3px 4px);padding:3px 15px 4px;font-size:.73rem;color:#34494a;font-weight:650}
.volume-heading{display:flex;align-items:center;gap:20px;border:1.5px solid var(--shelf-ink);border-left:10px solid var(--shelf-ink);padding:10px 18px;border-radius:4px 13px 13px 4px;background:var(--shelf-paper);color:var(--shelf-ink)}
.volume-heading img{width:110px;height:78px;object-fit:contain}.volume-heading p{margin:4px 0 0}
.edition-volume .shelf-topics a,.shelf-field li a,.shelf-results a,.shelf-tool [data-part],.study-passes button{border:1px solid #98a59b;box-shadow:0 2px #a6b0a5;color:#293f40;border-radius:8px;text-decoration:none;background:#fffdf7}
.edition-volume .shelf-topics a{padding:12px;gap:6px}.edition-volume .shelf-specimen,.shelf-reading .reading-specimen{background:var(--shelf-paper)}
.shelf-reading{margin:0 auto}.shelf-reading>h1,.lesson-heading h1{margin:0 0 9px}
.shelf-reading .reading-specimen{display:inline-block;font:600 clamp(1.3rem,3.5vw,2rem)/1.2 Georgia,serif;padding:7px 15px;border-left:4px solid var(--shelf-ink);margin:1px 0 10px}
.shelf-reading .shelf-copy{font-size:1.02rem;line-height:1.56}.shelf-reading .shelf-question,.lesson-check,.contact-tool,.lesson-depth{border:1.5px solid #a6b4aa;border-radius:12px;background:#fffdf6;padding:16px 20px}
.shelf-reading details summary,.lesson-depth summary{cursor:pointer;min-height:38px;align-content:center;color:#345849;font-weight:680}
.shelf-tool [data-part][aria-pressed=true],.study-passes [aria-pressed=true]{background:var(--shelf-ink,#473e58);color:#fff;border-color:var(--shelf-ink,#473e58)}
.study-passes,.edition-audios,.contact-controls,.blind-samples,.gesture-duet{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.study-passes button{padding:7px 12px;min-height:44px;font-weight:660}
.audio-leaf,.gesture-disc{display:inline-flex;align-items:center;gap:12px;min-height:46px;padding:7px 12px 7px 7px;border:1.5px solid #46665d;border-radius:10px;box-shadow:0 3px #647d71;background:#f1f6e8;color:#233f38;text-align:left}
.atlas-play-icon{box-sizing:border-box;display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid #49665a;border-radius:50%;background:#fff9df;color:#294d41;line-height:1;font-size:.91rem;font-style:normal}
[data-atlas-audio][aria-pressed=true] .atlas-play-icon{background:#285749;color:white}.leaf-type{display:grid;gap:1px}.leaf-type strong{font-size:1rem;line-height:1.23}.leaf-type small{font-size:.76rem;color:#4c6157}
.course-intro{display:grid;grid-template-columns:1fr 23%;gap:20px;align-items:center;border:2px solid var(--atlas-ink);border-radius:16px;background:#f6e6bd;padding:20px 26px}
.course-intro h1{font-size:clamp(1.9rem,4.5vw,3.3rem);margin:0}.course-intro p{margin:5px 0 10px}.course-intro .arrow-key,.course-footer .arrow-key{text-decoration:none}
.course-preview>div{display:flex;gap:7px}.course-preview>strong{display:block;font-size:.81rem;color:#524c3b;margin-bottom:6px}
.course-preview-key{position:relative;display:grid;grid-template-columns:1fr;place-items:center;overflow:hidden;min-width:0;flex:1;padding:0;background:#fff6d9;color:#2d4541;border:1.5px solid #4a5f50;border-radius:8px;box-shadow:0 3px #6e775a}
.course-preview-key .gl-drawing{display:block;width:100%;height:63px}.course-preview-key>span{width:100%;border-top:1px solid #9bac8e;display:flex;gap:5px;align-items:center;justify-content:center;padding:3px;background:#edf1d9}
.course-preview-key em{font:bold 1.04rem Georgia,serif}.course-preview-key .atlas-play-icon{width:22px;height:22px;font-size:.68rem}
.course-preview-key[aria-pressed=true]>span{background:#b9d5bd}.course-preview-key:active{transform:translateY(2px)}
.edition-source{color:#5a665c;font-size:.8rem;margin:9px 0 0}.edition-practice{display:inline-flex;align-items:center;min-height:44px;color:#305d4e;font-weight:660}
.course-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.course-path section h2{font:900 1.25rem/1.15 TonSerif,Georgia,serif;letter-spacing:-.04em;margin:0 0 12px}
.course-path .course-index{display:grid;grid-template-columns:1fr;gap:10px;margin:0}
.course-index a.lesson-key{display:grid;align-items:center;gap:8px;padding:11px 10px;min-height:77px;background:#fffdf5;border:1.5px solid #64766b;border-radius:9px;box-shadow:0 3px #9aa89b}
.lesson-number{display:grid;place-items:center;width:29px;height:31px;background:#eff1da;border:1px solid #7f9283;border-radius:5px;font-weight:700}
.lesson-key strong,.lesson-key small{display:block}.lesson-key strong{font-size:1.02rem;line-height:1.15}.lesson-key small{font-family:Georgia,serif;margin-top:3px;font-size:.85rem}.lesson-key b{color:#5b6e60}
.lesson-page{max-width:870px}.lesson-heading small{font-size:.84rem;font-weight:680;color:#536858}.lesson-heading h1{font-size:clamp(1.95rem,4.1vw,3.2rem)}
.lesson-heading p{font-size:1rem;max-width:70ch}.lesson-check{margin:16px 0;background:#f3f1e5}.lesson-check h2{font:900 clamp(1.18rem,2.3vw,1.48rem)/1.2 TonSerif,Georgia,serif}
.listen-answers{display:flex;gap:9px;flex-wrap:wrap;margin:13px 0 3px}.listen-answers button{border:1.5px solid #627369;border-radius:8px;min-height:44px;padding:7px 13px;background:#fffcf3;color:#293f38;font-weight:670;box-shadow:0 2px #809085}
.listen-answers [data-verdict=miss]{background:#f7d9c9;border-color:#874737}.listen-answers [data-verdict=hit]{background:#d8ecd8;border-color:#37674d}
.listen-answers [data-verdict=hit]:before{content:"✓ ";font-weight:800}.listen-answers [data-verdict=miss]:before{content:"× ";font-weight:800}
.check-note:not(:empty){margin:12px 0 0;line-height:1.5}
.blind-samples,.gesture-duet{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.blind-samples .audio-leaf{padding:18px;background:#e9e2f2;border-color:#756380;box-shadow:0 4px #92869b}.blind-key .leaf-type strong{font:900 1.4rem/1.12 TonSerif,Georgia,serif}.blind-key:only-child{grid-column:1/-1}
.gesture-disc{display:grid;grid-template-columns:1fr;justify-items:center;gap:5px;padding:8px;background:#fcf6e7}
.gesture-disc .d-detail{width:100%;height:125px;object-fit:contain}.gesture-disc>span{display:flex;align-items:center;gap:10px;font:900 1.55rem TonSerif,Georgia,serif}
.contact-tool{display:grid;grid-template-columns:minmax(100px,140px) 1fr;gap:15px;margin:15px 0;align-items:center}
.contact-controls{display:grid;margin:0}.contact-controls [aria-current]{border:2px solid #315c51;background:#d8ebd8}
.contact-view{display:grid;grid-template-columns:minmax(100px,1fr) 1fr;align-items:center;gap:10px;margin:0}.contact-view strong{font:900 1.8rem TonSerif,Georgia,serif}.contact-view .mouth-plate{width:100%;max-width:190px}
.lesson-depth{padding:8px 17px;margin:12px 0 16px}.lesson-depth[open]{padding-bottom:16px}.lesson-depth .edition-audios{margin:10px 0}
@media(hover:hover){.book-jacket:hover,.course-index a.lesson-key:hover,.audio-leaf:hover,.gesture-disc:hover{transform:translateY(-2px);box-shadow:0 5px #788b80}.edition-pocket:hover strong{text-decoration:underline}}
.book-jacket:active,.course-index a.lesson-key:active,.audio-leaf:active,.gesture-disc:active{transform:translateY(2px);box-shadow:0 1px #667c70}
@media(max-width:770px){.course-path{grid-template-columns:1fr}.course-path .course-index{grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr))}.book-grid.shelf-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .edition-doors.do-resources{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.edition-door{grid-column:1/-1;display:grid;grid-template-columns:60px 1fr;gap:12px;align-items:center;padding:11px 24px 11px 12px}.edition-door>b{font-size:1rem;right:8px;top:6px}
 .door-design{width:58px;height:48px}.book-emblem i{width:27px;height:31px}.book-emblem i:after{inset:6px 3px 5px}.chart-emblem i{font-size:13px}.course-emblem i{width:6px}.course-emblem i:nth-child(3){height:39px}
 .edition-door p{font-size:.84rem}.edition-pocket{grid-column:span 1;padding:10px;gap:3px}.edition-pocket strong{font-size:.98rem}.edition-pocket span{font-size:.78rem}.edition-pocket b{display:none}
 .jacket-face{padding:10px 7px 8px 10px}.jacket-face h2{font-size:clamp(1.05rem,4.5vw,1.4rem)}.jacket-face .edition-print{width:100%;height:76px}.jacket-face p{font-size:.76rem}.book-jacket{padding-left:6px}.book-jacket>small{font-size:.66rem;padding-inline:7px}
 .volume-heading{padding:9px 12px;gap:9px}.volume-heading img{width:64px;height:55px}.volume-heading h1{font-size:1.8rem}.volume-heading p{font-size:.85rem}
 .course-intro{padding:14px;grid-template-columns:1fr;gap:0}.course-preview{display:flex;gap:12px;align-items:center;margin-top:12px}.course-preview>strong{max-width:8ch;line-height:1.25}.course-preview>div{width:155px}.course-preview-key .gl-drawing{height:42px}.course-intro h1{font-size:1.95rem}.course-intro p{font-size:.9rem}.course-path{gap:15px}
 .contact-tool{grid-template-columns:1fr;padding:11px;gap:9px}.contact-controls{display:flex;gap:7px}.contact-controls .audio-leaf{gap:5px}.contact-view{grid-template-columns:1fr 1.1fr}.shelf-reading .shelf-question,.lesson-check{padding:13px}
 .blind-samples{gap:7px}.blind-samples .audio-leaf{gap:7px;padding:12px 7px}.blind-key .leaf-type strong{font-size:1.05rem}
 .gesture-disc .d-detail{height:88px}.course-footer .arrow-key{color:white}
}
@media(prefers-reduced-motion:reduce){.book-jacket,.lesson-key{transition:none}.book-jacket:hover,.book-jacket:active,.course-index a.lesson-key:hover,.course-index a.lesson-key:active,.audio-leaf:hover,.audio-leaf:active,.gesture-disc:hover,.gesture-disc:active{transform:none}}
.blind-key{min-width:0;padding:0;overflow:hidden;display:grid;border:1.8px solid #39534a;box-shadow:0 4px #62796e;background:#d9e8d6;color:#284d40;border-radius:11px;text-align:left}
.blind-key:nth-child(2){background:#e7dff1;color:#594a70;border-color:#655675;box-shadow:0 4px #867993}
.course-wave{display:block;width:100%;height:70px;padding:9px 8px 6px;background-image:linear-gradient(0deg,transparent 49%,#66776433 49%,#66776433 51%,transparent 51%)}.course-wave path{stroke:currentColor;stroke-width:2.4;stroke-linecap:round;fill:none}
.wave-legend{display:flex;align-items:center;gap:9px;padding:8px 12px;background:#fffdf4;border-top:1px solid #a0ad9d}.wave-legend strong{font:900 1.25rem/1.1 TonSerif,Georgia,serif;letter-spacing:-.04em}.wave-legend small{margin-left:auto;color:#52635a}
.wave-cursor{stroke:#985021;stroke-width:1.7;display:none}.blind-key[aria-pressed=true] .wave-cursor{display:block}.blind-key:active{transform:translateY(2px);box-shadow:0 1px #607368}
@media(max-width:650px){.wave-legend{padding:6px;gap:6px}.wave-legend strong{font-size:1.02rem}.wave-legend small{display:none}.course-wave{height:53px}}
@media(prefers-reduced-motion:reduce){.blind-key[aria-pressed=true] .wave-cursor{display:none}.blind-key:active{transform:none}}
