/* /lessons: the lessons library (search, series, lesson lines). The player's styles are in player.css. */
.sh h2 { margin: 2rem 0 .7rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.sh-tools { display: grid; gap: 14px; padding: clamp(14px, 2vw, 22px); background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.sh-tools[hidden] { display: none; }
.sh-search span { display: block; margin-bottom: 4px; font-weight: 700; color: var(--indigo-deep); }
.sh-search input { width: 100%; min-height: 50px; padding: .45em .9em; border: 2px solid #b9b1d3; border-radius: var(--r); background: #fff; color: var(--ink); font: inherit; }
.sh-search input:focus { border-color: var(--indigo); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip { min-height: 40px; padding: .25em .95em; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--indigo-deep); font: 400 1rem var(--sans); cursor: pointer; }
.sh-chip:hover { border-color: var(--indigo); }
.sh-chip[aria-pressed="true"] { border-color: var(--indigo); background: var(--indigo); color: #fff; }
.sh-n { margin-inline-start: .25em; opacity: .72; font-size: .86em; }
.sh-order { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--indigo); font: 700 1rem var(--sans); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: .25em; cursor: pointer; }
.sh-status { margin: 1rem 0 0; font-weight: 700; color: var(--indigo-deep); }

.sh-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sh-item[hidden], .sh-series[hidden], .sh-latest[hidden] { display: none; }
.sh-play { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.sh-play:hover { border-color: var(--indigo); box-shadow: 0 14px 26px -22px rgba(43, 28, 89, .8); }
.sh-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); }
.sh-icon svg { width: 22px; height: 22px; margin-left: 2px; fill: var(--indigo-deep); }
.sh-text { display: block; min-width: 0; }
.sh-title { display: block; font-weight: 700; line-height: 1.35; color: var(--indigo-deep); }
.sh-meta { display: flex; flex-wrap: wrap; column-gap: 1em; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.sh-summary { margin: .35rem 14px .5rem; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.sh-note { margin: 1rem 0 0; padding: .6rem .9rem; background: var(--lav); border-radius: var(--r); color: var(--indigo-deep); font-size: .98rem; }

.sh-series { margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 100px; }   /* the sticky header does not hide a series opened by a link */
.sh-series > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 16px 18px; cursor: pointer; list-style: none; }
.sh-series > summary::-webkit-details-marker { display: none; }
/* the arrow: down when closed, up when open (physical sides on purpose, the same in both directions of writing) */
.sh-series > summary::after { content: ''; align-self: center; width: .55em; height: .55em; margin-inline-start: auto; border-right: 2.5px solid var(--indigo); border-bottom: 2.5px solid var(--indigo); transform: rotate(45deg); }
.sh-series[open] > summary::after { transform: rotate(225deg); }
.sh-series[open] > summary { border-bottom: 1px solid var(--line); }
.sh-s-name { font: 700 1.35rem/1.3 var(--serif); color: var(--indigo-deep); }
.sh-s-meta { display: flex; flex-wrap: wrap; column-gap: 1em; color: var(--muted); font-size: .98rem; }
.sh-series .sh-list { padding: 12px; background: var(--paper); border-radius: 0 0 14px 14px; }
.sh-credit { margin: 2rem 0 0; color: var(--muted); }
@media (max-width: 700px) {
  /* on a phone the series stand in one row that is swiped sideways, so the lessons are close to the top */
  .sh-chips { flex-wrap: nowrap; overflow-x: auto; padding-block: 3px 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .sh-chip { flex: none; }
}
@media (max-width: 560px) {
  .sh-icon { width: 38px; height: 38px; }
  .sh-play { gap: 10px; padding: 10px; }
  .sh-series .sh-list { padding: 8px; }
}
