.library-main { background: var(--color-canvas); color: var(--color-ink); }
.library-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.library-main button { cursor: pointer; }
.library-main button[aria-disabled="true"] { cursor: default; }
.library-main button:focus-visible, .library-main input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.library-hero { min-height: 312px; padding: 80px var(--content-inset) 37px; }
.library-hero__eyebrow { color: var(--color-warm-grey); font-size: var(--font-size-section-meta); font-weight: 500; line-height: 1.25; letter-spacing: .18em; }
.library-hero__title { margin-top: 16px; font-family: var(--font-heading); font-size: var(--font-size-heading-2); font-weight: 300; line-height: 1.1; letter-spacing: -.015em; overflow-wrap: anywhere; }
.library-hero__title em { color: var(--color-accent); font-weight: 300; }
.library-hero__intro { max-width: 760px; margin-top: 28px; color: var(--color-warm-grey); font-size: var(--font-size-body-lg); line-height: 1.7; }
.library-mobile-search { display: none; }
html.library-motion-boot .library-hero__eyebrow, html.library-motion-boot .library-hero__title, html.library-motion-boot .library-hero__intro { opacity: 0; visibility: hidden; }

.library-search { min-height: 168px; padding: 0 var(--content-inset) 45px; }
.library-search__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.library-search__field, .library-mobile-search__field { display: flex; min-width: 0; flex: 1; align-items: center; gap: 16px; border: 1px solid #dcd8d0; border-radius: 10px; background: white; transition: border-color 180ms ease-out, transform 180ms ease-out, width 180ms ease-out; }
.library-search__field { width: 100%; min-height: 63px; padding: 0 20px; }
.library-search__field:focus-within, .library-mobile-search__field:focus-within { border-color: var(--color-accent); }
.library-search__field:focus-within { width: calc(100% + 24px); transform: translateX(-12px); }
.library-search__field img { flex: none; }
.library-search__field input, .library-mobile-search__field input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--color-ink); font-family: var(--font-body); font-size: var(--font-size-body); outline: 0; }
.library-search__field input::placeholder, .library-mobile-search__field input::placeholder { color: #a19d96; opacity: 1; }
.library-search__field input:focus-visible, .library-mobile-search__field input:focus-visible { outline: 0; }
.library-search__submit, .library-filters__apply { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 6px 9px 6px 24px; border: 0; border-radius: 999px; background: var(--color-accent); color: white; font-family: var(--font-body); font-size: var(--font-size-inline-link); transition: background-color 250ms ease-out, box-shadow 250ms ease-out; }
.library-search__submit:hover, .library-filters__apply:hover { background: #003a24; box-shadow: 0 6px 18px rgb(0 33 20 / 18%); }
.library-search__arrow, .library-filters__apply span { display: grid; flex: none; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: white; }
.library-search__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.library-search__chip { min-height: 37px; padding: 7px 17px; border: 1px solid #dcd8d0; border-radius: 999px; background: white; color: var(--color-ink); font-family: var(--font-body); font-size: var(--font-size-supporting-text); }
.library-search__chip.is-active { border-color: var(--color-accent); background: var(--color-accent); color: white; }

.library-body { display: grid; grid-template-columns: 308px minmax(0, 1fr); gap: 48px; min-height: 794px; padding: 0 var(--content-inset) 120px; }
.library-filters { min-width: 0; align-self: start; padding: 29px 27px 28px; border: 1px solid #dcd8d0; border-radius: 18px; background: white; }
.library-filters__head { display: flex; justify-content: space-between; align-items: center; }
.library-filters__head h2 { font-family: var(--font-heading); font-size: var(--font-size-heading-10); font-weight: 300; line-height: 1.2; }
.library-filters__close, .library-filter-backdrop { display: none; }
.library-filters__label { margin-top: 29px; color: var(--color-warm-grey); font-size: var(--font-size-caption); font-weight: 500; line-height: 1.2; letter-spacing: .18em; }
.library-filters__categories { min-width: 0; margin-top: 12px; padding: 0; border: 0; }
.library-filters__option { display: flex; min-height: 35px; align-items: center; gap: 12px; color: var(--color-ink); font-size: var(--font-size-supporting-text); cursor: pointer; }
.library-filters__option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.library-filters__box { display: grid; flex: none; width: 17px; height: 17px; place-items: center; border: 1px solid #bcb6ac; border-radius: 4px; background: white; transition: background-color 140ms ease-out, border-color 140ms ease-out; }
.library-filters__box img { opacity: 0; transform: scale(.5); transition: opacity 140ms ease-out, transform 140ms ease-out; }
.library-filters__option input:checked + .library-filters__box { border-color: var(--color-accent); background: var(--color-accent); }
.library-filters__option input:checked + .library-filters__box img { opacity: 1; transform: scale(1); }
.library-filters__option input:focus-visible + .library-filters__box { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.library-filters__name { min-width: 0; overflow-wrap: anywhere; }
.library-filters__number { margin-left: auto; color: var(--color-warm-grey); font-size: var(--font-size-caption); }
.library-filters__more { margin-top: 8px; padding: 0 0 3px; border: 0; border-bottom: 1px solid #a6a6a1; background: none; color: var(--color-ink); font-family: var(--font-body); font-size: var(--font-size-inline-link); font-weight: 500; line-height: 1.2; }
.library-filters__more span { margin-left: 5px; color: var(--color-accent); }
.library-filters__date-label { margin-top: 30px; }
.library-filters__dates { display: flex; gap: 12px; margin-top: 12px; }
.library-filters__dates label { min-width: 0; flex: 1; }
.library-filters__dates input { width: 100%; min-height: 41px; padding: 8px 13px; border: 1px solid #dcd8d0; border-radius: 8px; background: white; color: var(--color-ink); font-family: var(--font-body); font-size: var(--font-size-supporting-text); line-height: 1.2; }
.library-filters__dates input::placeholder { color: #a19d96; }
.library-filters__actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.library-filters__clear { padding: 7px 0; border: 0; background: none; color: var(--color-warm-grey); font-family: var(--font-body); font-size: var(--font-size-inline-link); }

.library-results { min-width: 0; }
.library-results__head { display: flex; min-width: 0; min-height: 37px; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid #dcd8d0; }
.library-results__count { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; font-size: var(--font-size-body); font-weight: 500; line-height: 1.7; }
.library-count-desktop, .library-count-mobile { position: relative; display: block; }
.library-count-old { position: absolute; top: 0; right: 0; left: 0; overflow-wrap: anywhere; pointer-events: none; animation: library-count-out 160ms ease-out both; }
.library-count-new { display: block; animation: library-count-in 160ms ease-out both; }
@keyframes library-count-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes library-count-in { from { opacity: 0; } to { opacity: 1; } }
.library-count-mobile { display: none; }
.library-results__sort { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 7px 0 0; border: 0; background: transparent; color: var(--color-warm-grey); font-family: var(--font-body); font-size: var(--font-size-supporting-text); }
.library-results__list { margin: 0; padding: 0; list-style: none; }
.library-result { border-bottom: 1px solid #dcd8d0; transition: background-color 160ms ease-out, transform 160ms ease-out; }
.library-result__row { display: flex; min-height: 140px; min-width: 0; align-items: flex-start; gap: 24px; padding: 26px 0 24px; transition: padding-inline 280ms ease-out; }
.library-result__icon { flex: none; margin-top: 2px; }
.library-result__content { min-width: 0; flex: 1; }
.library-result__title { display: block; max-width: 100%; padding: 0; border: 0; background: transparent; color: var(--color-ink); font-family: var(--font-heading); font-size: var(--font-size-heading-10); font-weight: 300; line-height: 1.2; letter-spacing: -.01em; text-align: left; overflow-wrap: anywhere; }
.library-result__mobile, .library-result__mobile-actions { display: none; }
.library-result__author { margin-top: 12px; color: var(--color-warm-grey); font-size: var(--font-size-supporting-text); line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.library-result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 8px; color: var(--color-warm-grey); font-size: var(--font-size-caption); line-height: 1.2; }
.library-result__tag { padding: 5px 11px; border-radius: 6px; background: #efede7; font-size: var(--font-size-caption); font-weight: 500; }
.library-result__dot { color: #c7c1b6; }
.library-result__actions { display: flex; flex: none; gap: 18px; margin-top: 2px; opacity: .6; transition: opacity 160ms ease-out; }
.library-result__actions button, .library-result__mobile-actions button { padding: 0; border: 0; background: transparent; color: var(--color-ink); font-family: var(--font-body); font-size: var(--font-size-inline-link); }
.library-result:hover, .library-result:focus-within { background: #f4f2ec; transform: translateY(-2px); }
.library-result:hover .library-result__row, .library-result:focus-within .library-result__row { padding-inline: 14px; }
.library-result:hover .library-result__actions, .library-result:focus-within .library-result__actions { opacity: 1; }
.library-results__empty { padding: 35px 0; color: var(--color-warm-grey); }
.library-results__empty[hidden], .library-pagination[hidden] { display: none; }
.library-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; }
.library-pagination button, .library-pagination span { display: grid; min-width: 36px; min-height: 36px; place-items: center; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: var(--color-ink); font-family: var(--font-body); font-size: var(--font-size-inline-link); }
.library-pagination .is-current { background: var(--color-accent); color: white; }
.library-result.is-filtered { display: none; }
.library-result.is-entering { animation: library-row-enter 320ms ease-out both; }
@keyframes library-row-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1366px) {
  .library-hero, .library-search { padding-inline: 48px; }
  .library-body { padding-inline: 48px; gap: 36px; }
}
@media (max-width: 900px) {
  .library-hero, .library-search { padding-inline: 36px; }
  .library-hero__title { font-size: var(--font-size-hero-tablet); }
  .library-body { grid-template-columns: 270px minmax(0, 1fr); gap: 28px; padding-inline: 36px; }
  .library-filters { padding-inline: 22px; }
  .library-result__row { gap: 14px; }
  .library-result__title { font-size: 21px; }
  .library-result__actions { display: none; }
  .library-result__mobile-actions { display: flex; gap: 16px; margin-top: 10px; }
}
@media (max-width: 700px) {
  .library-hero { min-height: 192px; padding: 56px 24px 28px; }
  .library-hero__eyebrow, .library-hero__intro, .library-search { display: none; }
  .library-hero__title { margin: 0; font-size: var(--font-size-heading-compact); line-height: 1.1; }
  .library-mobile-search { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
  .library-mobile-search__field { min-height: 48px; gap: 13px; padding: 0 16px; }
  .library-mobile-search__field img { flex: none; }
  .library-mobile-search__field input { font-size: var(--font-size-body); }
  .library-mobile-search__filters { min-height: 37px; padding: 7px 17px; border: 1px solid #dcd8d0; border-radius: 999px; background: white; color: var(--color-ink); font-family: var(--font-body); font-size: var(--font-size-inline-link); }
  .library-body { display: block; min-height: 660px; padding: 0 24px 72px; }
  .library-results__head { min-height: 30px; border: 0; }
  .library-results__count { color: var(--color-warm-grey); font-size: var(--font-size-supporting-compact); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
  .library-count-desktop, .library-results__sort, .library-pagination { display: none; }
  .library-count-mobile { display: block; }
  .library-results__list { display: flex; flex-direction: column; gap: 14px; }
  .library-result { border: 1px solid #dcd8d0; border-radius: 16px; background: white; }
  .library-result__row { min-height: 127px; padding: 21px 21px 13.5px; }
  .library-result:hover .library-result__row, .library-result:focus-within .library-result__row { padding-inline: 21px; }
  .library-result__icon, .library-result__author, .library-result__actions, .library-result__dot { display: none; }
  .library-result__desktop { display: none; }
  .library-result__mobile { display: inline; }
  .library-result__title { line-height: 1.24; }
  .library-result__meta { gap: 9px; margin-top: 12px; font-size: 11px; }
  .library-result__tag { padding: 5px 10px; font-size: var(--font-size-label-xs); letter-spacing: .12em; }
  .library-result__mobile-actions { display: flex; gap: 16px; margin-top: 12px; }
  .library-result__mobile-actions button { font-size: var(--font-size-caption); font-weight: 500; }
  .library-result:hover, .library-result:focus-within { transform: none; background: white; }
  .library-result:active { transform: scale(.99); }
  .library-filters { position: fixed; z-index: 121; right: 0; bottom: 0; left: 0; max-height: min(90vh, 720px); margin: 0; overflow-y: auto; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform 280ms ease-out; visibility: hidden; }
  .library-filters.is-open { transform: translateY(0); visibility: visible; }
  .library-filters.is-open .library-filters__close { visibility: visible; }
  .library-filters__close { display: block; padding: 0 4px; border: 0; background: none; color: var(--color-ink); font-size: 28px; line-height: 1; }
  .library-filter-backdrop.is-open { display: block; position: fixed; z-index: 120; inset: 0; background: rgb(0 0 0 / 40%); }
  html.library-sheet-open, body.library-sheet-open { overflow: hidden; }
}
@media (min-width: 481px) and (max-width: 700px) { .library-hero__title { font-size: var(--font-size-page-title-compact); } }
@media (max-width: 359px) { .library-hero, .library-body { padding-inline: 20px; } .library-hero__title { font-size: var(--font-size-heading-narrow); } .library-mobile-search { gap: 7px; } .library-mobile-search__filters { padding-inline: 13px; } }
@media (prefers-reduced-motion: reduce) {
  html.library-motion-boot .library-hero__eyebrow, html.library-motion-boot .library-hero__title, html.library-motion-boot .library-hero__intro { opacity: 1; visibility: visible; }
  .library-main *, .library-main *::before, .library-main *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .library-filters, .library-filters__close { transition: none !important; }
}
