/* ============================================================================
   Generic subject bookshelf — static CSS, zero PHP/DB dependency (markup is
   rendered server-side in study-material.php, since this is always a single
   shelf — no client-side grouping needed, unlike the Little Learners /
   Primary Classes / NCERT hub pages).

   Used for ANY subject page that has sub-subjects (General English, Life
   Sciences, General Aptitude, General Studies, General Knowledge, an NCERT
   class page visited directly, and so on) - this was the original design
   for these pages too, lost to the same card-grid refactor that NCERT's
   own hub page lost its shelf to.

   Default tint: a neutral tan wash - the original, un-customized shelf
   background (per the comment in little-learners-shelf.css/
   primary-classes-shelf.css about "NCERT's neutral tan" being the baseline
   before those two pages got their own pink/gold tint). A page whose own
   breadcrumb trail passes through NCERT Notes & Solutions (an NCERT class
   page visited directly, say) gets the `.sm-shelf-violet` variant instead,
   to match the violet NCERT hub it belongs to.

   !important on every rule, same reason as the other shelf CSS files: a
   sitewide base stylesheet also targets these .ls- class names, and
   without !important it wins.
   ============================================================================ */

.sm-shelf-page .ls-shelf-wrap{background:linear-gradient(180deg,#f7f1e4,#efe2c4)!important;border-radius:14px!important;overflow:hidden!important;border:1px solid #e4d7b0!important;position:relative!important}
.sm-shelf-page.sm-shelf-violet .ls-shelf-wrap{background:linear-gradient(180deg,#f2f0fb,#e6e0f6)!important;border:1px solid #d9d0ef!important}
.sm-shelf-page .ls-shelf-plaque,.sm-shelf-page .ls-shelf-sub{position:relative!important;z-index:1!important}
.sm-shelf-page .ls-shelf-plaque{display:flex!important;align-items:center!important;justify-content:center!important;padding:14px 32px!important;background:linear-gradient(180deg,#5a3a1a,#3d2810)!important;border-bottom:2px solid #2e1c0a!important;position:relative!important}
.sm-shelf-page .ls-shelf-plaque::after{content:''!important;position:absolute!important;top:4px!important;left:12px!important;right:12px!important;height:1px!important;background:rgba(255,255,255,.1)!important}
.sm-shelf-page .ls-shelf-plaque h1{margin:0!important;font-size:24px!important;font-weight:700!important;color:#F5E6C8!important;letter-spacing:3.5px!important;text-transform:uppercase!important}
.sm-shelf-page .ls-shelf-plaque i{margin-right:14px!important;font-size:26px!important;color:#F5E6C8!important}
.sm-shelf-page .ls-shelf-sub{text-align:center!important;font-size:15px!important;color:#5c5248!important;margin:10px 20px 2px!important;line-height:1.4!important;display:block!important}
.sm-shelf-page .ls-shelf-plank{height:14px!important;border-top:2px solid #6a4a2a!important;position:relative!important;background:linear-gradient(180deg,#5a3a1a,#3d2810 40%,#4a3218 70%,#2e1c0a)!important}
.sm-shelf-page .ls-shelf-plank::after{content:''!important;position:absolute!important;top:4px!important;left:0!important;right:0!important;height:1px!important;background:rgba(255,255,255,.15)!important}
.sm-shelf-page .ls-shelf-shadow{height:8px!important;background:linear-gradient(180deg,#e2d4ac,#efe2c4)!important}
.sm-shelf-page.sm-shelf-violet .ls-shelf-shadow{background:linear-gradient(180deg,#ded4f2,#e6e0f6)!important}
.sm-shelf-page .ls-bk{cursor:pointer!important;transition:transform .25s!important;text-decoration:none!important;display:block!important}
.sm-shelf-page .ls-bk:hover{transform:translateY(-10px)!important}
.sm-shelf-page .ls-bk-pages{height:7px!important;margin-left:4px!important;margin-right:1px!important;background:#fff!important;border-radius:0 1px 0 0!important;border-top:1px solid #e0dcd4!important;border-right:1px solid #e0dcd4!important;position:relative!important;overflow:hidden!important}
.sm-shelf-page .ls-bk-pages::before{content:''!important;position:absolute!important;top:3px!important;left:0!important;right:0!important;height:1px!important;background:rgba(0,0,0,.04)!important}
.sm-shelf-page .ls-bk-spine{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;padding:10px 5px!important;border-left:4px solid rgba(0,0,0,.18)!important;position:relative!important}
.sm-shelf-page .ls-bk-spine::after{content:''!important;position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:6px!important;background:linear-gradient(90deg,rgba(0,0,0,.12),transparent)!important}
.sm-shelf-page .ls-bk-badge{width:36px!important;height:36px!important;border:1.5px solid rgba(255,255,255,.35)!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;margin-bottom:10px!important}
.sm-shelf-page .ls-bk-badge i{font-size:17px!important;color:#fff!important}
.sm-shelf-page .ls-bk-name{writing-mode:vertical-rl!important;text-orientation:mixed!important;transform:rotate(180deg)!important;font-size:16px!important;font-weight:700!important;color:#fff!important;letter-spacing:1.2px!important;text-shadow:0 1px 2px rgba(0,0,0,.25)!important}
.sm-shelf-page .ls-ncert-shelf{display:flex!important;align-items:stretch!important}
.sm-shelf-page .ls-ncert-class-label{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:56px!important;padding:12px 6px!important;background:linear-gradient(180deg,#5a3a1a,#3d2810)!important;position:relative!important;box-sizing:border-box!important}
.sm-shelf-page .ls-ncert-class-label::after{content:''!important;position:absolute!important;right:0!important;top:8px!important;bottom:8px!important;width:1px!important;background:rgba(255,255,255,.12)!important}
.sm-shelf-page .ls-ncert-num{font-size:34px!important;font-weight:800!important;color:#fff!important;line-height:1!important;text-shadow:0 1px 3px rgba(0,0,0,.2)!important;text-align:center!important}
.sm-shelf-page .ls-ncert-word{font-size:13px!important;font-weight:700!important;color:rgba(255,255,255,.8)!important;letter-spacing:2.5px!important;text-transform:uppercase!important;margin-top:3px!important}
.sm-shelf-page .ls-ncert-books{display:flex!important;align-items:flex-end!important;gap:9px!important;flex-wrap:wrap!important;flex:1!important;padding:14px 16px 0!important;min-height:80px!important}

@media(max-width:768px){
  .sm-shelf-page .ls-bk-name{font-size:14px!important;letter-spacing:.8px!important}
  .sm-shelf-page .ls-bk-badge{width:30px!important;height:30px!important}
  .sm-shelf-page .ls-bk-badge i{font-size:14px!important}
  .sm-shelf-page .ls-shelf-plaque h1{font-size:20px!important;letter-spacing:2.5px!important}
  .sm-shelf-page .ls-shelf-plaque i{font-size:22px!important}
  .sm-shelf-page .ls-ncert-class-label{min-width:46px!important;padding:10px 4px!important}
  .sm-shelf-page .ls-ncert-num{font-size:28px!important}
  .sm-shelf-page .ls-ncert-books{gap:7px!important;padding:10px 12px 0!important}
}
@media(max-width:480px){
  .sm-shelf-page .ls-bk:hover{transform:translateY(-6px)!important}
  .sm-shelf-page .ls-bk-name{font-size:13px!important;letter-spacing:.6px!important}
  .sm-shelf-page .ls-bk-badge{width:24px!important;height:24px!important;margin-bottom:5px!important}
  .sm-shelf-page .ls-bk-badge i{font-size:11px!important}
  .sm-shelf-page .ls-bk-spine{padding:8px 3px!important}
  .sm-shelf-page .ls-bk>div{max-width:52px!important}
  .sm-shelf-page .ls-shelf-plaque h1{font-size:18px!important;letter-spacing:2px!important}
  .sm-shelf-page .ls-shelf-plaque i{font-size:20px!important}
  .sm-shelf-page .ls-shelf-plaque{padding:12px 16px!important}
  .sm-shelf-page .ls-shelf-sub{font-size:11px!important;margin:6px 12px 4px!important}
  .sm-shelf-page .ls-ncert-shelf{flex-direction:column!important}
  .sm-shelf-page .ls-ncert-class-label{flex-direction:row!important;justify-content:center!important;width:100%!important;min-width:100%!important;max-width:100%!important;flex:none!important;padding:8px 16px!important;gap:8px!important;box-sizing:border-box!important}
  .sm-shelf-page .ls-ncert-class-label::after{right:16px!important;left:16px!important;top:auto!important;bottom:0!important;width:auto!important;height:1px!important}
  .sm-shelf-page .ls-ncert-num{font-size:22px!important}
  .sm-shelf-page .ls-ncert-word{font-size:14px!important;margin-top:0!important;font-weight:700!important;letter-spacing:1.5px!important}
  .sm-shelf-page .ls-ncert-books{gap:4px!important;padding:8px 8px 0!important;justify-content:center!important}
}
