/* Chapter rows: one readable resource at a time, with stable native controls. */
.bnb-study-materials,.bnb-chapter-index,.bnb-chapter-material{--bnb-sheet-surface:#f7f4ed;--bnb-sheet-ink:#102744;--bnb-sheet-muted:#536174;--bnb-sheet-rule:#b28b3859;--bnb-sheet-gold:#8b681e}
html[data-bnb-theme="dark"] .bnb-study-materials,html[data-bnb-theme="dark"] .bnb-chapter-index,html[data-bnb-theme="dark"] .bnb-chapter-material{--bnb-sheet-surface:#102744;--bnb-sheet-ink:#f7f4ed;--bnb-sheet-muted:#bfcedf;--bnb-sheet-rule:#b28b3878;--bnb-sheet-gold:#e7c778}
body.bnb-lesson-page .bnb-lesson-dock{display:flex!important;flex-direction:column;gap:18px;padding-bottom:5.5rem}
body.bnb-lesson-page .bnb-study-materials{display:block!important;width:100%;margin:20px 0 0!important;padding:20px 24px!important;background:var(--bnb-sheet-surface)!important;color:var(--bnb-sheet-ink)!important;border:1px solid var(--bnb-sheet-rule);border-radius:12px;box-sizing:border-box}
body.bnb-lesson-page .bnb-study-materials>h2{margin:0 0 16px!important;color:var(--bnb-sheet-ink)!important;font-family:"Noto Sans Bengali",sans-serif!important;font-size:1.18rem!important;line-height:1.6!important;font-weight:700}
.bnb-chapter-material{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--bnb-sheet-surface)!important;color:var(--bnb-sheet-ink)!important;padding:18px 0;border-top:1px solid var(--bnb-sheet-rule);text-align:left;min-width:0;box-sizing:border-box}
.bnb-material-copy{flex:1;min-width:0}
body .bnb-chapter-material h3{font-family:"Noto Sans Bengali",sans-serif!important;color:var(--bnb-sheet-ink)!important;font-size:1.06rem!important;font-weight:650!important;line-height:1.65!important;margin:0!important;white-space:normal!important;overflow:visible!important;max-height:none!important;display:block!important;overflow-wrap:anywhere;-webkit-line-clamp:unset!important}
body .bnb-chapter-material p{color:var(--bnb-sheet-muted)!important;font-size:.93rem!important;line-height:1.7;margin:5px 0 0}
.bnb-material-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex-shrink:0}
body .bnb-material-actions a{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:10px 14px!important;border-radius:6px;box-sizing:border-box;font-size:.96rem!important;font-weight:600!important;line-height:1.5!important;text-decoration:none!important;white-space:normal}
body .bnb-material-actions .bnb-material-read{background:var(--bnb-sheet-ink)!important;color:var(--bnb-sheet-surface)!important;border:1px solid var(--bnb-sheet-ink)}
body .bnb-material-actions .bnb-material-download{color:var(--bnb-sheet-ink)!important;background:transparent!important;border:1px solid var(--bnb-sheet-rule)}
body .bnb-material-actions a:hover{box-shadow:0 0 0 1px var(--bnb-sheet-gold);text-decoration:underline!important;text-underline-offset:4px}
.bnb-material-actions a:focus-visible,.bnb-chapter-index>summary:focus-visible,.bnb-syllabus-topic>summary:focus-visible{outline:3px solid var(--bnb-sheet-gold,#b28b38)!important;outline-offset:4px}
.bnb-chapter-index{margin:0!important;width:100%;padding:0 24px;box-sizing:border-box;border:1px solid var(--bnb-sheet-rule);border-radius:10px;background:var(--bnb-sheet-surface)!important;color:var(--bnb-sheet-ink)!important}
body .bnb-chapter-index>summary{display:list-item!important;cursor:pointer;min-height:48px;padding:14px 0!important;color:var(--bnb-sheet-ink)!important;font-size:1rem;font-weight:650;text-align:left}
.bnb-chapter-index-rows{padding-bottom:12px}
.bnb-chapter-index .is-current{border-left:3px solid var(--bnb-sheet-gold);padding-left:14px}
body.bnb-lesson-page .bnb-lesson-pager{position:static!important;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;width:100%;margin:0!important;box-sizing:border-box;box-shadow:none!important;backdrop-filter:none!important}
body.bnb-lesson-page .bnb-lesson-pager a,body.bnb-lesson-page .bnb-lesson-pager button{min-height:44px;white-space:normal;line-height:1.6}
body.bnb-lesson-page .bnb-lesson-dock>.bnb-theme-toggle-floating{position:static!important;align-self:flex-end;transform:none!important;margin:0!important;min-height:44px;box-shadow:none!important}
.bnb-syllabus-rows>.bnb-chapter-material{padding:20px 22px;border-bottom:1px solid var(--bnb-sheet-rule)}
.bnb-material-coming{padding:12px 22px;color:inherit;font-size:.95rem}
body .bnb-syllabus-topic>summary strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.65}
.bnb-syllabus-topic>summary>span{flex-shrink:0;display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.bnb-course-start-note,.bnb-course-availability,.bnb-course-pending{font-size:.92rem;line-height:1.7;margin:.8rem 0}
.bnb-course-pending{padding-top:.6rem;border-top:1px solid #b28b3859}
@media(max-width:680px){
 body.bnb-lesson-page .bnb-study-materials{padding:18px!important;margin-top:16px!important}
 .bnb-chapter-material{flex-direction:column;align-items:stretch;gap:12px;padding:16px 0}
 .bnb-material-actions{flex-shrink:1;justify-content:flex-start}
 body .bnb-chapter-material h3{font-size:1rem!important}
 .bnb-chapter-index{padding:0 18px}
 .bnb-syllabus-rows>.bnb-chapter-material{padding:18px}
 .bnb-syllabus-topic>summary{flex-wrap:wrap;gap:8px}
 .bnb-syllabus-topic>summary>span{font-size:.85rem}
 body.bnb-lesson-page .bnb-lesson-pager{padding-right:0!important}
}
/* Completion stays in Tutor's native footer; the custom pager handles navigation. */
body.bnb-lesson-page .tutor-learning-area-footer.bnb-native-completion {
  display: flex !important;
  position: static !important;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  background: var(--bnb-global-surface, #f7f4ed) !important;
  color: var(--bnb-global-text, #102744) !important;
  border-top: 1px solid var(--bnb-global-border, #b28b3859);
}
body.bnb-lesson-page .bnb-native-completion form { margin: 0 !important; }
body.bnb-lesson-page .bnb-native-completion [name="complete_lesson_btn"] {
  min-height: 44px;
  white-space: normal;
}
