[data-study-library] [hidden] { display: none !important; }
.screening-room :is(#study-library, #featured-lesson-recordings, #experience-screening) { scroll-margin-top: 1rem; }

.learner-study-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem 1.25rem;
  padding: clamp(1rem, 3vw, 2rem);
  border-inline-start: 3px solid #e7c97e;
  background: linear-gradient(90deg, #132319 0%, #152820eb 58%, #14271da6 100%),
    url('/assets/site-photo/workspace.webp') center 44% / cover no-repeat;
}

.learner-study-heading h2 { margin-block: 0 .25rem; }
.learner-study-heading p { margin-block: 0; }
.learner-study-featured {
  margin-block: 0 1.75rem;
  padding: .75rem 1rem;
  border: 1px solid #476258;
  border-radius: .7rem;
}
.learner-study-featured > summary { cursor: pointer; font-weight: 650; }
.learner-study-featured .experience-screening { margin-block: 1rem 0; }
.learner-study-shortcuts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1rem;
}

.learner-study-shortcuts a {
  display: grid;
  align-content: start;
  gap: .25rem;
  min-height: 4.25rem;
  padding: .65rem .75rem;
  border: 1px solid #62776a;
  border-radius: .65rem;
  background: #182820;
  text-decoration: none;
}

.learner-study-shortcuts a:hover { background: #29392b; }
.learner-study-shortcuts span { color: #cddece; font-size: .86rem; }

.learner-study-shelf {
  margin-block: 1.25rem 0;
  padding: clamp(.9rem, 3vw, 1.5rem);
  border: 1px solid #526858;
  border-radius: 1rem;
  background: linear-gradient(125deg, #192922, #111c17 70%);
}

.learner-study-collections {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.learner-study-collections button,
.learner-study-list button {
  color: #f4efdf;
  background: #17261e;
  border: 1px solid #647769;
  border-radius: .65rem;
  font: inherit;
  cursor: pointer;
}

.learner-study-collections button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .9rem;
  min-height: 2.75rem;
  font-weight: 650;
}

.learner-study-collections small {
  padding: .05em .4em;
  border-radius: .35rem;
  background: #0004;
  color: #d0ded1;
  font-size: .77em;
}

.learner-study-shelf button[aria-pressed="true"] {
  border-color: #dbbd7e;
  background: #2d3223;
  color: #fff5db;
}

.learner-study-shelf :is(button, input, a, summary):focus-visible {
  outline: 2px solid #f2d78e;
  outline-offset: 2px;
}

.learner-study-collection-description {
  margin-block: .7rem 1rem;
  max-width: 70ch;
}

.learner-study-layout {
  display: grid;
  grid-template-columns: minmax(13rem, .8fr) minmax(0, 1.45fr);
  gap: clamp(.7rem, 2.7vw, 1.5rem);
  margin-block-start: 1rem;
}

.learner-study-picker,
.learner-study-player {
  min-width: 0;
}

.learner-study-picker label {
  display: grid;
  gap: .4rem;
  margin-block-end: .6rem;
  color: #dae4db;
  font-size: .9rem;
}

.learner-study-count { margin: .5rem 0 .3rem; font-size: .88rem; color: #c5d4c8; }

.learner-study-picker input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .5rem .7rem;
  background: #0b1711;
  border: 1px solid #647769;
  color: #f4efdf;
  font: inherit;
  border-radius: .55rem;
}

.learner-study-list {
  display: grid;
  gap: .38rem;
  max-block-size: 23rem;
  overflow: auto;
  padding: .22rem;
  scrollbar-color: #647769 #111c17;
}

.learner-study-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  text-align: start;
  padding: .48rem .6rem;
  width: 100%;
  min-height: 2.75rem;
  overflow-wrap: anywhere;
}

.learner-study-list button:hover { background: #26392c; }
.learner-study-list small {
  flex: 0 0 auto;
  max-width: 34%;
  text-align: end;
  color: #c6d5c8;
  font-size: .78rem;
}

.learner-study-player {
  padding: clamp(.75rem, 2vw, 1.25rem);
  align-self: start;
  border: 1px solid #526858;
  border-radius: .75rem;
  background: #122018;
}

.learner-study-player h3 {
  margin-block: 0 .5rem;
  overflow-wrap: anywhere;
}

.learner-study-player h3 + p { max-width: 65ch; }

[data-study-fallback] { margin-block-start: 1rem; }
[data-study-fallback] summary { cursor: pointer; }

@media (max-width: 900px) {
  .learner-study-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .learner-study-layout { grid-template-columns: minmax(0, 1fr); }
  .learner-study-list { max-block-size: 16rem; }
  .learner-study-list small { max-width: 28%; }
}
