/* Library index: the shop's research-area pills as filter buttons.
   Size, colour, glass icon and the phone scroll all come from shop.css (.s3 .s3-area). This file fits the row into the Library
   page and adds the two states a filter has and a link does not: pressed and unavailable. */

.cl-research-library .cl3-lib-areas.c3-root.s3{--s3-gut:40px;background:none;color:inherit;padding:0 0 23.25px;overflow:visible} /* same height as the row it replaced */
html.no-js .cl-research-library .cl3-lib-areas{display:none}
@media (max-width:600px){
  .cl-research-library .cl3-lib-areas.c3-root.s3{--s3-gut:19px;padding-bottom:19px}
}

.cl-research-library .cl3-lib-areas .s3-area{
  transition:background-color .25s var(--s3-ease-out),box-shadow .25s var(--s3-ease-out),transform .15s var(--s3-ease-out),opacity .25s var(--s3-ease-out)}
.cl-research-library .cl3-lib-areas .s3-area::before{transition:opacity .25s var(--s3-ease-out),scale .7s var(--s3-ease)}
.s3 .s3-area[aria-pressed="true"]{background:var(--s3-ink);box-shadow:none;color:#fff}
.s3 .s3-area[aria-pressed="true"]::before{opacity:.4}
.s3 .s3-area[disabled]{opacity:.38;pointer-events:none}

/* Cards stay in the page and are shown or hidden, so they can glide. Rows keep their height while the grid's height animates. */
.cl-research-library .card-grid{position:relative;align-content:start;overflow-anchor:none}
.cl-research-library .card-grid.is-moving{overflow:clip}
.cl-research-library .compound-card.is-leaving{position:absolute;margin:0;pointer-events:none}

@media (prefers-reduced-motion:reduce){
  .cl-research-library .cl3-lib-areas .s3-area,.cl-research-library .cl3-lib-areas .s3-area::before{transition:none}
}
