.jwb-student-sidebar {
  --sidebar-gold: #f0cb72;
  width: 15rem;
  padding: 1rem;
  color: #f9edce;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse at 100% 6%, #1a2a42a6, transparent 44%),
    repeating-linear-gradient(0deg, transparent 0 27px, #e6bf6312 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, #e6bf6312 28px),
    #100e11;
  border-inline-end: 1px solid #a17b3d;
  box-shadow: inset -5px 0 18px #e7b63a10, 8px 0 36px #0008;
  overflow: auto;
}

body > .jwb-student-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
}

.jwb-sidebar-brand {
  display: grid;
  gap: .6rem;
  justify-items: start;
  padding: .25rem .65rem .95rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid #9b733f80;
  color: var(--sidebar-gold);
  font-size: .83rem;
  font-weight: 750;
  text-decoration: none;
}

.jwb-sidebar-brand img {
  display: block;
  width: min(100%, 10.5rem);
  max-height: 6rem;
  object-fit: contain;
  object-position: left center;
}

.jwb-student-sidebar h2 {
  margin: 1.15rem .6rem .45rem;
  color: #d8bf8b;
  font-size: .7rem;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.jwb-sidebar-row {
  display: grid;
  grid-template-columns: 1.15rem 1fr .55rem;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .4rem .6rem;
  margin-bottom: .3rem;
  color: #f9edce;
  background: #121218e8;
  border: 1px solid #c8a65c45;
  border-radius: .4rem;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}

.jwb-sidebar-row svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--sidebar-gold);
}

.jwb-sidebar-arrow { color: #e8c575; font-size: 1.15rem; }
.jwb-sidebar-row:hover { border-color: #e8c575; background: #292118; }
.jwb-sidebar-row[aria-current="page"] {
  background: linear-gradient(90deg, #55401f, #211912);
  border-color: var(--sidebar-gold);
  box-shadow: inset 3px 0 var(--sidebar-gold);
  color: #fff2cb;
}

.jwb-student-sidebar :focus-visible,
.jwb-sidebar-trigger:focus-visible,
.jwb-sidebar-close:focus-visible {
  outline: 2px solid #ffe2a0;
  outline-offset: 2px;
}

.jwb-sidebar-trigger { display: none; }
.jwb-sidebar-trigger, .jwb-sidebar-close {
  min-height: 44px;
  padding: .5rem .8rem;
  background: #201810;
  color: #ffe5a3;
  border: 1px solid #bd9551;
  border-radius: .4rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.jwb-sidebar-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(19rem, 88vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  border-inline-end: 1px solid #a17b3d;
  background: #100e11;
  color: #f9edce;
}
.jwb-sidebar-drawer::backdrop { background: #050408bb; }
.jwb-sidebar-drawer .jwb-student-sidebar { width: 100%; border: 0; box-shadow: none; }
.jwb-sidebar-close { margin: .7rem 1rem 0; }

@media (min-width: 801px) {
  body.jwb-has-sidebar { padding-inline-start: 15rem; }
}
@media (max-width: 800px) {
  body.jwb-has-sidebar > header.top { flex-wrap: wrap; }
  .jwb-sidebar-trigger { display: inline-flex; align-items: center; gap: .4rem; }
}
