.materials.materials-expanded{display:block;margin-top:64px}
.materials-heading h3{margin:0 0 10px}
.materials-heading p{font-size:16px;line-height:1.75;margin:0}
.textbook-list{display:grid;gap:16px;margin-top:28px}
.textbook-row{display:grid;grid-template-columns:minmax(210px,.9fr) minmax(0,2fr);align-items:center;gap:24px;padding:24px;background:#f5f5f7;border-radius:16px}
.textbook-info{display:flex;align-items:center;gap:15px;min-width:0}
.textbook-info h4{font-size:20px;line-height:1.35;margin:5px 0 8px;letter-spacing:-.05em}
.textbook-subject,.textbook-info small{display:block;color:var(--muted);font-size:13px}
.textbook-cover{flex:0 0 85px;width:85px;padding:0;border:0;background:transparent;border-radius:4px;cursor:zoom-in}
.textbook-cover img{width:100%;height:auto;border-radius:4px;box-shadow:0 3px 8px #00000015}
.textbook-cover-link{border:0;padding:0;background:none;font-size:13px;color:var(--blue);font-weight:600;cursor:pointer}
.textbook-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.textbook-page{border:1px solid #e4e4e8;border-radius:10px;background:#fff;padding:0;overflow:hidden;min-width:0;cursor:zoom-in;text-align:left;color:var(--ink);transition:border-color .2s,box-shadow .2s}
.textbook-page:hover{border-color:#96baf4;box-shadow:0 3px 16px #1263d80b}
.textbook-page img{display:block;width:100%;height:auto;aspect-ratio:1.14;object-fit:contain;object-position:top;background:white}
.textbook-page>span{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;font-size:12px;font-weight:550;border-top:1px solid #efeff1}
.sample-arrow{color:var(--blue);font-size:16px;line-height:1}
.textbook-more{grid-column:1/-1;border-top:1px solid #e4e4e8;border-bottom:0;padding:4px 0 0}
.textbook-more summary{display:flex;gap:12px;align-items:center;justify-content:center;font-weight:650;list-style:none;color:var(--blue);font-size:14px;cursor:pointer;padding:12px 0}
.textbook-more summary::-webkit-details-marker{display:none}
.textbook-more summary:after,.textbook-more[open] summary:after{content:none}
.textbook-more .more-close{display:none}
.textbook-more[open] .more-close{display:inline}
.textbook-more[open] .more-open{display:none}
.more-chevron{display:inline-block;font-size:20px;line-height:1;transition:transform .2s}
.textbook-more[open] .more-chevron{transform:rotate(180deg)}
.textbook-extra{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding-top:8px}
.textbook-info small{margin:4px 0 5px}
.textbook-note{margin-top:14px;font-size:12px!important}
dialog:has(#dialog-img[src*="/book-"]){width:min(96vw,1140px)}
#dialog-img[src*="/book-"]{width:min(96%,1080px);height:auto}
@media(max-width:760px){
 .materials.materials-expanded{margin-top:48px}
 .materials-heading p{font-size:14px}
 .materials-heading br{display:none}
 .textbook-list{margin-top:20px;gap:12px}
 .textbook-row{display:block;padding:16px;gap:0}
 .textbook-info{gap:12px;margin-bottom:16px}
 .textbook-cover{flex-basis:60px;width:60px}
 .textbook-info h4{font-size:19px;margin:2px 0 4px}
 .textbook-pages{gap:8px}
 .textbook-page>span{font-size:11px;padding:8px}
 .textbook-more{margin-top:14px}
 .textbook-extra{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
}
