/*
 * SMANJA v22.3.6 — Compact Teachers & Schedule
 * Makes homepage teacher slider denser, student schedule slimmer,
 * and public staff directory luxurious but compact.
 */

/* =========================
   A. HOME — compact schedule
   ========================= */
body.smanja-v2236 .sj154-schedule{
  border-radius:12px!important;
  box-shadow:0 6px 18px rgba(8,57,87,.055)!important;
}
body.smanja-v2236 .sj154-schedule-row{
  min-width:0!important;
  grid-template-columns:repeat(5,minmax(0,1fr)) minmax(118px,.72fr)!important;
}
body.smanja-v2236 .sj154-schedule-row>article{
  min-height:44px!important;
  padding:5px 9px!important;
}
body.smanja-v2236 .sj154-schedule-row>.sj154-time-card span{
  font-size:9px!important;
  line-height:1.15!important;
}
body.smanja-v2236 .sj154-schedule-row>.sj154-time-card strong{
  margin-top:3px!important;
  font-size:15px!important;
  line-height:1!important;
}
body.smanja-v2236 .sj154-schedule-row>.sj154-schedule-label{
  gap:7px!important;
  padding:5px 9px!important;
}
body.smanja-v2236 .sj154-schedule-label i{
  width:23px!important;
  height:23px!important;
  min-width:23px!important;
  font-size:9px!important;
  border-radius:7px!important;
}
body.smanja-v2236 .sj154-schedule-label strong{
  font-size:11px!important;
  line-height:1.1!important;
}
body.smanja-v2236 .sj154-schedule-label small{
  margin-top:2px!important;
  font-size:7.5px!important;
  line-height:1.15!important;
}

/* ======================================
   B. HOME — smaller luxury teacher cards
   ====================================== */
body.smanja-v2236 .sj222-teacher-section{
  padding-top:22px!important;
  padding-bottom:20px!important;
}
body.smanja-v2236 .sj15-teacher-shell{
  padding:8px!important;
  border-radius:16px!important;
}
body.smanja-v2236 .sj15-teacher-track{
  gap:8px!important;
}
body.smanja-v2236 .sj15-teacher-card{
  flex:0 0 152px!important;
  min-width:152px!important;
  border-radius:14px!important;
  box-shadow:0 10px 24px rgba(7,50,75,.14),0 2px 6px rgba(7,50,75,.07)!important;
}
body.smanja-v2236 .sj15-teacher-card:hover{
  transform:translateY(-4px)!important;
  box-shadow:0 16px 34px rgba(7,50,75,.19)!important;
}
body.smanja-v2236 .sj15-teacher-photo{
  height:154px!important;
  margin:7px 7px 0!important;
  border-radius:11px 11px 9px 9px!important;
}
body.smanja-v2236 .sj15-teacher-photo>span{
  right:7px!important;
  bottom:7px!important;
  width:24px!important;
  height:24px!important;
  font-size:8.5px!important;
}
body.smanja-v2236 .sj15-teacher-copy{
  min-height:78px!important;
  padding:9px 10px 11px!important;
}
body.smanja-v2236 .sj15-teacher-copy:before{
  width:25px!important;
  height:2px!important;
  margin-bottom:6px!important;
}
body.smanja-v2236 .sj15-teacher-copy small{
  font-size:8px!important;
  letter-spacing:.04em!important;
}
body.smanja-v2236 .sj15-teacher-copy h3{
  margin-top:3px!important;
  font-size:11.5px!important;
  line-height:1.25!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.smanja-v2236 .sj15-teacher-copy p{
  margin-top:3px!important;
  font-size:8.5px!important;
  line-height:1.3!important;
  -webkit-line-clamp:1!important;
}
body.smanja-v2236 .sj15-teacher-section .sj15-carousel-nav{
  width:32px!important;
  height:32px!important;
  font-size:10px!important;
}
body.smanja-v2236 .sj151-teacher-pagination{
  margin-top:10px!important;
  gap:5px!important;
}
body.smanja-v2236 .sj151-teacher-pagination button,
body.smanja-v2236 .sj151-teacher-pagination .sj151-page-ellipsis{
  min-width:28px!important;
  height:28px!important;
  font-size:9px!important;
}

/* =============================================
   C. STAFF DIRECTORY — compact premium 6/8 cols
   ============================================= */
body.smanja-v2236 .staff-page{
  padding:20px 0 42px!important;
}
body.smanja-v2236 .staff-shell{
  width:min(1540px,calc(100% - 32px))!important;
}
body.smanja-v2236 .staff-hero{
  min-height:185px!important;
  grid-template-columns:minmax(0,1fr) 220px!important;
  margin-bottom:16px!important;
  border-radius:22px!important;
}
body.smanja-v2236 .staff-hero-copy{
  padding:24px 30px!important;
}
body.smanja-v2236 .staff-hero h1{
  font-size:clamp(24px,2.2vw,34px)!important;
  margin-bottom:6px!important;
}
body.smanja-v2236 .staff-hero p{
  max-width:780px!important;
  font-size:12.5px!important;
  line-height:1.55!important;
}
body.smanja-v2236 .staff-stats{
  margin-top:14px!important;
}
body.smanja-v2236 .staff-stat{
  min-width:118px!important;
  padding:8px 11px!important;
  border-radius:11px!important;
}
body.smanja-v2236 .staff-stat strong{font-size:16px!important}
body.smanja-v2236 .staff-stat span{font-size:8.5px!important}
body.smanja-v2236 .staff-hero-mark{min-height:185px!important}
body.smanja-v2236 .staff-hero-mark:before{inset:18px!important;border-radius:16px!important}
body.smanja-v2236 .staff-hero-mark img{max-width:105px!important;max-height:105px!important}
body.smanja-v2236 .staff-tools{
  gap:12px!important;
  padding:10px 12px!important;
  margin-bottom:15px!important;
  border-radius:14px!important;
}
body.smanja-v2236 .staff-search{max-width:560px!important;padding-left:11px!important;border-radius:11px!important}
body.smanja-v2236 .staff-search input{height:34px!important;font-size:11.5px!important}
body.smanja-v2236 .staff-search button{height:33px!important;padding:0 14px!important;font-size:10px!important}
body.smanja-v2236 .staff-result-note{font-size:10.5px!important}
body.smanja-v2236 .staff-heading{margin-bottom:10px!important}
body.smanja-v2236 .staff-heading span{font-size:8.5px!important}
body.smanja-v2236 .staff-heading h2{font-size:20px!important}
body.smanja-v2236 .staff-heading p{font-size:10.5px!important}

body.smanja-v2236 .staff-grid{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:11px!important;
}
body.smanja-v2236 .staff-card{
  border-radius:15px!important;
  box-shadow:0 9px 22px rgba(11,54,80,.075)!important;
}
body.smanja-v2236 .staff-card:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 14px 30px rgba(11,54,80,.12)!important;
}
body.smanja-v2236 .staff-photo{
  height:168px!important;
  margin:6px 6px 0!important;
  border-radius:11px!important;
}
body.smanja-v2236 .staff-role{
  left:7px!important;
  bottom:7px!important;
  max-width:calc(100% - 14px)!important;
  padding:4px 6px!important;
  border-radius:7px!important;
  font-size:7px!important;
  line-height:1.15!important;
}
body.smanja-v2236 .staff-copy{
  padding:10px 10px 11px!important;
}
body.smanja-v2236 .staff-copy:before{
  left:10px!important;
  right:10px!important;
  height:2px!important;
}
body.smanja-v2236 .staff-copy h3{
  margin:0 0 3px!important;
  font-size:11.5px!important;
  line-height:1.25!important;
  min-height:29px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.smanja-v2236 .staff-position{
  display:block;
  min-height:22px;
  color:var(--staff-a)!important;
  font-size:8px!important;
  line-height:1.25!important;
  font-weight:800;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.smanja-v2236 .staff-nip{
  margin-top:3px!important;
  min-height:0!important;
  font-size:7.5px!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.smanja-v2236 .staff-actions{
  gap:5px!important;
  margin-top:8px!important;
}
body.smanja-v2236 .staff-btn{
  min-height:29px!important;
  border-radius:8px!important;
  gap:4px!important;
  padding:0 7px!important;
  font-size:8px!important;
}
body.smanja-v2236 .staff-pagination{margin-top:20px!important}
body.smanja-v2236 .staff-footer-note{margin-top:16px!important;padding:12px 14px!important;font-size:10px!important}

@media(min-width:1500px){
  body.smanja-v2236 .staff-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important}
  body.smanja-v2236 .staff-photo{height:156px!important}
  body.smanja-v2236 .staff-copy h3{font-size:10.8px!important}
}
@media(max-width:1199.98px){
  body.smanja-v2236 .staff-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  body.smanja-v2236 .sj15-teacher-card{flex-basis:145px!important;min-width:145px!important}
  body.smanja-v2236 .sj15-teacher-photo{height:148px!important}
}
@media(max-width:991.98px){
  body.smanja-v2236 .staff-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.smanja-v2236 .staff-hero{grid-template-columns:1fr 180px!important}
  body.smanja-v2236 .staff-hero-mark{min-height:170px!important}
  body.smanja-v2236 .sj15-teacher-card{flex-basis:136px!important;min-width:136px!important}
  body.smanja-v2236 .sj15-teacher-photo{height:140px!important}
}
@media(max-width:767.98px){
  body.smanja-v2236 .sj154-schedule-row{min-width:560px!important;grid-template-columns:repeat(5,minmax(78px,1fr)) minmax(108px,.72fr)!important}
  body.smanja-v2236 .sj154-schedule-row>article{min-height:40px!important;padding:4px 7px!important}
  body.smanja-v2236 .sj154-schedule-row>.sj154-time-card span{font-size:8px!important}
  body.smanja-v2236 .sj154-schedule-row>.sj154-time-card strong{font-size:13.5px!important}
  body.smanja-v2236 .sj154-schedule-label strong{font-size:10px!important}
  body.smanja-v2236 .sj154-schedule-label small{font-size:7px!important}

  body.smanja-v2236 .sj222-teacher-section{padding:12px!important}
  body.smanja-v2236 .sj15-teacher-card{flex-basis:122px!important;min-width:122px!important}
  body.smanja-v2236 .sj15-teacher-photo{height:126px!important;margin:6px 6px 0!important}
  body.smanja-v2236 .sj15-teacher-copy{min-height:68px!important;padding:8px 8px 9px!important}
  body.smanja-v2236 .sj15-teacher-copy h3{font-size:10.5px!important}
  body.smanja-v2236 .sj15-teacher-copy p{display:none!important}

  body.smanja-v2236 .staff-shell{width:min(100% - 16px,1540px)!important}
  body.smanja-v2236 .staff-hero{grid-template-columns:1fr!important;min-height:0!important}
  body.smanja-v2236 .staff-hero-mark{display:none!important}
  body.smanja-v2236 .staff-hero-copy{padding:20px 18px!important}
  body.smanja-v2236 .staff-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  body.smanja-v2236 .staff-photo{height:126px!important;margin:4px 4px 0!important;border-radius:9px!important}
  body.smanja-v2236 .staff-role{display:none!important}
  body.smanja-v2236 .staff-copy{padding:8px 7px 8px!important}
  body.smanja-v2236 .staff-copy:before{left:7px!important;right:7px!important}
  body.smanja-v2236 .staff-copy h3{font-size:9.5px!important;min-height:24px!important}
  body.smanja-v2236 .staff-position{font-size:7px!important;min-height:18px!important}
  body.smanja-v2236 .staff-nip{font-size:6.8px!important}
  body.smanja-v2236 .staff-actions{margin-top:6px!important}
  body.smanja-v2236 .staff-btn{min-height:26px!important;padding:0 5px!important;font-size:7px!important}
  body.smanja-v2236 .staff-btn-secondary span{display:none}
  body.smanja-v2236 .staff-heading{align-items:flex-start!important;gap:4px!important}
  body.smanja-v2236 .staff-heading p{display:none!important}
}
@media(max-width:430px){
  body.smanja-v2236 .staff-page{padding-top:12px!important}
  body.smanja-v2236 .staff-hero{border-radius:16px!important;margin-bottom:10px!important}
  body.smanja-v2236 .staff-hero-copy{padding:16px 14px!important}
  body.smanja-v2236 .staff-hero h1{font-size:22px!important}
  body.smanja-v2236 .staff-hero p{font-size:10.5px!important;line-height:1.45!important}
  body.smanja-v2236 .staff-stat{min-width:95px!important;padding:7px 8px!important}
  body.smanja-v2236 .staff-tools{padding:8px!important;margin-bottom:10px!important}
  body.smanja-v2236 .staff-search input{font-size:10px!important}
  body.smanja-v2236 .staff-result-note{display:none!important}
  body.smanja-v2236 .staff-heading h2{font-size:17px!important}
  body.smanja-v2236 .staff-grid{gap:6px!important}
  body.smanja-v2236 .staff-photo{height:112px!important}
  body.smanja-v2236 .staff-copy h3{font-size:8.8px!important}
  body.smanja-v2236 .staff-position{font-size:6.7px!important}
  body.smanja-v2236 .staff-nip{display:none!important}
  body.smanja-v2236 .staff-btn{min-height:24px!important;font-size:0!important}
  body.smanja-v2236 .staff-btn i{font-size:8px!important}
}
@media(prefers-reduced-motion:reduce){
  body.smanja-v2236 .sj15-teacher-card,
  body.smanja-v2236 .staff-card{transition:none!important}
}
