.chapter-availability { margin: -6px 0 22px; color: #4e6073; font-size: 12px; }
.chapter-prerequisite { color: var(--muted); font-size: 13px; margin-top: 22px; }
.chapter-course-head .page-description { max-width: 770px; }
.chapter-course-head .handout-facts { margin: 22px 0 0; }
.chapter-library { padding: 8px 0 40px; }
.chapter-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.chapter-library-heading h2 { font: 500 25px/1.5 var(--serif); }
.chapter-library-heading > span { color: #85907e; font-size: 10px; letter-spacing: .14em; }
.chapter-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.chapter-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #d9dfe5; border-radius: 10px; padding: 24px 28px 20px; transition: border-color .2s,transform .2s; }
a.chapter-card:hover { border-color: #8694a2; transform: translateY(-3px); }
.chapter-card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.chapter-number { font: 32px/1.2 var(--serif); color: #8e9ba8; }
.chapter-status { display: inline-flex; align-items: center; gap: 6px; color: #4e5f71; background: #e8eef4; border-radius: 4px; padding: 4px 9px; font-size: 10px; }
.chapter-status > span { font-size: 7px; }
.chapter-card-body { flex: 1; padding: 24px 0; }
.chapter-card-body h3 { font-size: 20px; line-height: 1.6; }
.chapter-card-body p { margin-top: 7px; color: #7f8a79; font-size: 12px; line-height: 1.65; }
.chapter-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 16px; border-top: 1px solid #e5e8ec; font-size: 11px; }
.chapter-card-bottom > span:first-child { color: #8b9484; }
.chapter-card-bottom > span:last-child { color: var(--forest); }
.chapter-card-locked { background: #f3f3ee; color: #7c8577; }
.chapter-status-locked { background: #e3e6e9; color: #808779; }
.chapter-card-locked .chapter-card-bottom > span:last-child { color: #8b9484; }
@media(max-width:650px) {
  .chapter-grid { grid-template-columns: 1fr; gap: 14px; }
  .chapter-card { padding: 20px 22px 18px; }
  .chapter-card-body { padding: 18px 0; }
  .chapter-card-body h3 { font-size: 18px; }
  .chapter-library-heading > span { font-size: 9px; }
}
@media(prefers-reduced-motion:reduce) { .chapter-card { transition: none; } a.chapter-card:hover { transform: none; } }
