/* The library is intentionally separate from the live radio controls. */
.classes-section { background: #f7f9fc; padding-top: 64px; padding-bottom: 64px; scroll-margin-top: 100px; }
.classes-section [hidden] { display: none !important; }
.library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.library-eyebrow { display: block; margin-bottom: 12px; color: #55748d; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.classes-section h2 { font-size: clamp(32px, 3.5vw, 44px); font-weight: 500; letter-spacing: -.035em; }
.classes-section .section-heading p { margin-top: 14px; font-size: 16px; line-height: 1.5; }
.classes-section .library-summary { display: grid; gap: 5px; margin: 0 0 3px; text-align: right; flex-shrink: 0; font-size: 13px; }
.library-summary strong { font-size: 22px; color: var(--blue-950); font-weight: 700; }
.class-browser { margin-top: 32px; }
.library-navigation { display: flex; gap: 4px; border-bottom: 1px solid #dbe3ec; margin-bottom: 24px; }
.library-navigation button { position: relative; min-height: 52px; padding: 8px 22px 16px; border: 0; background: transparent; color: #5b6d81; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.library-navigation button:first-child { padding-left: 0; padding-right: 28px; }
.library-navigation button[aria-pressed="true"] { color: var(--blue-800); }
.library-navigation button[aria-pressed="true"]::after { position: absolute; content: ""; height: 3px; background: var(--blue-800); bottom: -1px; left: 12px; right: 12px; border-radius: 3px 3px 0 0; }
.library-navigation button:first-child::after { left: 0; }
.library-toolbar { display: flex; gap: 12px; align-items: center; }
.library-search-wrap { flex: 1; position: relative; min-width: 0; }
.library-search-wrap > svg { position: absolute; width: 21px; height: 21px; left: 17px; top: 16px; color: #74859a; pointer-events: none; }
.class-search { display: block; width: 100%; min-height: 54px; padding: 12px 16px 12px 49px; border: 1px solid #d5dfea; border-radius: 10px; background: white; color: var(--blue-950); font: inherit; font-size: 16px; font-weight: 400; box-shadow: 0 2px 3px #0a284403; }
.class-search::placeholder { color: #758399; opacity: 1; }
.library-filter-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px; color: var(--blue-950); border: 1px solid #d5dfea; border-radius: 10px; background: white; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.library-filter-toggle svg { width: 20px; height: 20px; }
.library-filter-toggle[aria-expanded="true"] { background: #edf3fa; border-color: #9eb6d0; }
#library-filter-count { min-width: 20px; padding: 2px 4px; border-radius: 50%; background: var(--blue-800); color: white; font-size: 11px; }
.library-filters { display: grid; grid-template-columns: 1.3fr 1.1fr 1fr 1fr; gap: 16px; margin-top: 16px; padding: 20px; border: 1px solid #dbe4ee; border-radius: 12px; background: #eef3f9; }
.library-filters label { min-width: 0; display: grid; gap: 8px; color: #4d6178; font-size: 12px; font-weight: 700; }
.library-filters select { width: 100%; max-width: 100%; min-height: 44px; padding: 8px 28px 8px 10px; border: 1px solid #cbd8e6; border-radius: 7px; color: var(--blue-950); background: white; font: inherit; font-size: 14px; font-weight: 400; text-overflow: ellipsis; }
.library-active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.library-filter-chip { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; max-width: 100%; padding: 7px 12px; background: #e5edf7; color: #214873; border: 1px solid #cfdbeb; border-radius: 24px; font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.library-filter-chip > span:last-child { font-size: 19px; line-height: 1; }
.library-clear { border: 0; background: none; min-height: 40px; padding: 8px; color: #466589; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.library-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 28px 0 16px; }
.library-results-heading h3 { margin: 0; color: #163c61; font-size: 18px; font-weight: 650; scroll-margin-top: 110px; }
.classes-section .classes-status { margin: 0; flex-shrink: 0; color: #6a7b8d; font-size: 13px; font-weight: 400; text-align: right; }
.class-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.class-card { display: flex; flex-direction: column; min-width: 0; min-height: 234px; gap: 0; padding: 23px; background: white; border: 1px solid #dfe6ef; border-radius: 12px; box-shadow: 0 2px 6px #15355b03; }
.class-card-top { margin-bottom: 12px; }
.class-speaker { display: inline; padding: 0; border: 0; background: none; color: #346878; font: inherit; font-size: 12px; font-weight: 650; text-transform: none; text-align: left; cursor: pointer; line-height: 1.5; }
.class-speaker:hover { text-decoration: underline; text-underline-offset: 3px; }
.class-title { margin: 0; color: #17395c; font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
.class-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 16px 0 20px; }
.class-topic-label { padding: 4px 7px; border-radius: 4px; background: #f2f5f8; color: #65778c; font-size: 10px; line-height: 1.25; }
.class-card-bottom { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 15px; border-top: 1px solid #edf0f5; }
.class-duration { color: #718196; font-size: 12px; white-space: nowrap; }
.class-download-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; color: #1b5896; font-size: 12px; font-weight: 650; text-decoration: none; }
.class-download-link svg { width: 17px; height: 17px; }
.class-download-link:hover { text-decoration: underline; }
.library-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.speaker-directory-card { display: flex; align-items: center; gap: 14px; min-height: 107px; padding: 20px; border: 1px solid #dfe6ef; border-radius: 12px; background: white; font: inherit; color: #17395c; text-align: left; cursor: pointer; }
.speaker-monogram { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #eaf1f6; color: #477081; font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
.speaker-directory-text { flex: 1; min-width: 0; display: grid; gap: 7px; }
.speaker-directory-text strong { font-size: 14px; line-height: 1.4; font-weight: 650; }
.speaker-directory-meta { color: #78879a; font-size: 12px; }
.directory-arrow { color: #7188a2; font-size: 18px; }
.topic-directory-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 218px; padding: 25px; border: 1px solid #dfe6ef; border-radius: 12px; background: white; color: #17395c; font: inherit; text-align: left; cursor: pointer; }
.topic-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 18px; border-radius: 9px; background: #edf3f8; color: #466d8a; }
.topic-icon svg { width: 22px; height: 22px; }
.topic-directory-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.topic-description { display: block; margin: 9px 0 24px; color: #718196; font-size: 13px; line-height: 1.5; }
.topic-card-footer { display: flex; width: 100%; margin-top: auto; align-items: center; justify-content: space-between; color: #58728e; font-size: 12px; }
.speaker-directory-card:hover, .topic-directory-card:hover { border-color: #96b3cf; box-shadow: 0 3px 10px #17395c09; }
.library-pagination { display: grid; justify-items: center; gap: 12px; margin-top: 28px; }
.library-more { min-height: 46px; padding: 10px 24px; border: 1px solid #b5c8df; border-radius: 8px; background: transparent; color: #244e7e; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.library-more:hover { background: #eaf1f9; }
.classes-section #library-page-status { margin: 0; color: #7d8b9d; font-size: 12px; }
.library-pagination:has(#library-show-more[hidden]):has(#library-page-status:empty) { display: none; }
.library-empty { grid-column: 1 / -1; display: grid; justify-items: center; padding: 42px 20px; border: 1px dashed #c7d5e5; border-radius: 12px; text-align: center; }
.library-empty > svg { width: 36px; height: 36px; color: #839cb6; }
.library-empty h4 { margin: 20px 0 0; color: #34597c; font-size: 20px; }
.classes-section .library-empty p { margin: 12px 0 22px; font-size: 14px; line-height: 1.5; }
.classes-section :is(button, a, input, select):focus-visible { outline: 3px solid #5d93c8; outline-offset: 3px; }

@media (min-width: 1500px) {
  .classes-section { padding-left: max(72px, calc((100% - 1296px) / 2)); padding-right: max(72px, calc((100% - 1296px) / 2)); }
}
@media (max-width: 1050px) {
  .class-list, .library-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classes-section .class-search { width: 100%; }
}
@media (max-width: 640px) {
  .classes-section { padding: 38px 20px; }
  .library-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .classes-section .library-summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; text-align: left; font-size: 12px; }
  .library-summary strong { font-size: 15px; }
  .classes-section .section-heading p { font-size: 14px; }
  .library-eyebrow { font-size: 10px; }
  .class-browser { margin-top: 21px; }
  .library-navigation { gap: 0; margin-bottom: 18px; }
  .library-navigation button { flex: 1; padding: 9px 6px 15px; font-size: 12px; white-space: nowrap; }
  .library-navigation button:first-child { flex: .7; padding: 9px 6px 15px 0; }
  .library-toolbar { gap: 8px; }
  .library-search-wrap > svg { left: 13px; width: 18px; }
  .class-search { min-height: 52px; padding-left: 39px; padding-right: 8px; font-size: 16px; }
  .library-filter-toggle { min-height: 52px; padding: 0 12px; font-size: 12px; gap: 6px; }
  .library-filter-toggle svg { display: none; }
  .library-filters { padding: 16px 12px; gap: 16px 10px; }
  .library-filters select { font-size: 16px; }
  .library-results-heading { margin-top: 24px; align-items: flex-start; gap: 10px; }
  .library-results-heading h3 { font-size: 16px; }
  .classes-section .classes-status { font-size: 11px; padding-top: 2px; }
  .class-list, .library-directory { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .class-card { min-height: 196px; padding: 21px; }
  .class-title { font-size: 21px; }
  .class-card-top { margin-bottom: 9px; }
  .class-tags { margin: 14px 0; }
  .speaker-directory-card { min-height: 90px; padding: 17px; }
  .topic-directory-card { min-height: 185px; padding: 21px; }
  .topic-description { margin-bottom: 17px; }
  .topic-icon { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .classes-section * { scroll-behavior: auto; }
}
