
/* AT v18: direct translation of approved Events & Classes mockup.
   Existing Home, Javascript, authentication and calendar logic unchanged. */
#screen-events,#screen-classes{
  --home-cream:#f7e9da;--home-gold:#d9a76e;--home-line:rgba(226,188,147,.21);
  color:var(--home-cream)!important;
  background:radial-gradient(circle at 90% 0%,rgba(83,42,59,.5),transparent 43%),
             linear-gradient(#301e2c,#211822)!important;
  padding:20px 17px 35px!important;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important
}
#screen-events .app-header,#screen-classes .app-header{
  max-width:440px!important;text-align:center!important;
  margin:0 auto 18px!important;padding:27px 0 5px!important
}
#screen-events .app-header::before,#screen-classes .app-header::before{
  content:""!important;display:block!important;width:32px!important;height:1px!important;
  margin:0 auto 15px!important;background:#d9a76e!important
}
#screen-events .app-title,#screen-classes .app-title{
  font-family:Georgia,"Times New Roman",serif!important;font-weight:700!important;
  font-size:30px!important;line-height:1.16!important;
  color:#f7e9da!important;letter-spacing:0!important;text-align:center!important
}
#screen-events .app-subtitle,#screen-classes .app-subtitle{
  margin:8px auto 0!important;font-size:12px!important;letter-spacing:.02em!important;
  color:#e4c9b2!important;font-weight:400!important;text-transform:none!important
}
#screen-events .calendar-view-switch,#screen-classes .calendar-view-switch{
  width:100%!important;max-width:440px!important;
  margin:0 auto 19px!important;padding:0!important;gap:9px!important;
  display:grid!important;grid-template-columns:1fr 1fr!important;
  border:0!important;border-radius:0!important;background:transparent!important
}
#screen-events .calendar-view-button,#screen-classes .calendar-view-button{
  display:flex!important;justify-content:center!important;align-items:center!important;
  background:#2d1d2c!important;color:#f7e9da!important;
  min-width:0!important;min-height:44px!important;
  border:1px solid rgba(226,188,147,.21)!important;
  border-radius:12px!important;padding:11px 9px!important;
  font:600 12px system-ui,-apple-system,"Segoe UI",sans-serif!important;
  letter-spacing:0!important;opacity:1!important;
}
#screen-events .calendar-view-button.active,#screen-classes .calendar-view-button.active{
  background:#dfb58a!important;border-color:#dfb58a!important;color:#30202a!important;
  box-shadow:none!important
}
#screen-events .calendar-list,#screen-classes .calendar-list{
  width:100%!important;max-width:440px!important;margin:0 auto!important
}
#screen-events .calendar-card,#screen-classes .calendar-card{
  background:linear-gradient(140deg,#4b2b3d,#332333)!important;
  color:#f7e9da!important;
  border:1px solid rgba(226,188,147,.21)!important;
  border-radius:16px!important;
  padding:23px 18px 17px!important;margin:0 0 12px!important;
  text-align:center!important;
  box-shadow:0 8px 20px rgba(19,11,20,.21)!important;
  overflow:hidden!important
}
#screen-events .calendar-card::before,#screen-classes .calendar-card::before{
  content:""!important;position:static!important;
  display:block!important;width:32px!important;height:32px!important;
  margin:0 auto 12px!important;background:center/contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9a76e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3v4M17 3v4'/%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E")!important
}
#screen-classes .calendar-card::before{
 background-image:url("visual-editorial/icons/classes.png")!important;
}
#screen-events .calendar-date,#screen-classes .calendar-date{
  display:block!important;width:auto!important;text-align:center!important;
  background:transparent!important;padding:0!important;margin:0 auto!important;
  border:0!important;border-radius:0!important;
  color:#d9a76e!important;font-size:11px!important;font-weight:700!important;
  letter-spacing:.04em!important;text-transform:none!important
}
#screen-events .calendar-title,#screen-classes .calendar-title{
  color:#f7e9da!important;text-align:center!important;
  font:700 21px/1.19 Georgia,"Times New Roman",serif!important;
  margin:10px auto 9px!important;letter-spacing:0!important
}
#screen-events .calendar-type,#screen-classes .calendar-type,
#screen-events .calendar-club-badge,#screen-classes .calendar-club-badge{
  display:table!important;margin:7px auto!important;
  color:#e4c9b2!important;background:transparent!important;
  border-color:rgba(226,188,147,.22)!important
}
#screen-events .calendar-time,#screen-classes .calendar-time,
#screen-events .calendar-location,#screen-classes .calendar-location,
#screen-events .calendar-description,#screen-classes .calendar-description,
#screen-events .calendar-info-row,#screen-classes .calendar-info-row{
  color:#ecdacb!important;text-align:center!important;
  font-size:12px!important;line-height:1.75!important;
  margin-left:auto!important;margin-right:auto!important
}
#screen-events .calendar-description,#screen-classes .calendar-description{
  border-top:1px solid rgba(226,188,147,.21)!important;
  margin-top:11px!important;padding-top:11px!important
}
#screen-events .calendar-actions,#screen-classes .calendar-actions{
  display:flex!important;justify-content:center!important;
  flex-wrap:wrap!important;gap:8px!important;
  margin-top:15px!important;border:0!important;padding:0!important
}
#screen-events .calendar-actions a,#screen-classes .calendar-actions a,
#screen-events .calendar-register,#screen-classes .calendar-register,
#screen-events .calendar-more-info,#screen-classes .calendar-more-info{
  flex:1 1 115px!important;min-height:42px!important;
  border-radius:10px!important;padding:11px 8px!important;
  font:700 11px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif!important;
  letter-spacing:0!important;text-decoration:none!important;
  display:inline-flex!important;justify-content:center!important;align-items:center!important;
  box-shadow:none!important
}
#screen-events .calendar-register,#screen-classes .calendar-register{
  background:#e0b88b!important;border:1px solid #e0b88b!important;color:#291b23!important
}
#screen-events .calendar-more-info,#screen-classes .calendar-more-info{
  background:transparent!important;border:1px solid #ac826e!important;color:#f7e9da!important
}
#screen-events .calendar-featured,#screen-classes .calendar-featured{
  border-color:rgba(226,188,147,.38)!important
}
#screen-events .calendar-month-box,#screen-classes .calendar-month-box{
  max-width:440px!important;margin-inline:auto!important;
  background:linear-gradient(140deg,#4b2b3d,#332333)!important;
  border:1px solid rgba(226,188,147,.21)!important;
  border-radius:16px!important
}
#screen-events .calendar-month-title,#screen-classes .calendar-month-title{
  font:700 21px Georgia,"Times New Roman",serif!important;color:#f7e9da!important
}
@media(max-width:350px){
 #screen-events,#screen-classes{padding-inline:11px!important}
 #screen-events .calendar-card,#screen-classes .calendar-card{padding-inline:13px!important}
 #screen-events .calendar-title,#screen-classes .calendar-title{font-size:19px!important}
}
