/* Compact discovery tools around the existing document workspace. */
.page-downloads .downloads-desk__command-main { grid-template-columns: minmax(260px, 1fr) minmax(480px, 1.1fr); }
.page-downloads .downloads-desk__primary-filters { grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) auto; align-items: end; }
.page-downloads .downloads-desk__more-filters { min-width: 135px; }
.page-downloads .downloads-desk__more-filters summary span { display: none; }
.library-collections { display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid #dddcd8; padding-top: 10px; }
.library-collections button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; min-height: 40px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #535b5e; font: 500 .8rem "Poppins", sans-serif; cursor: pointer; }
.library-collections svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; display: block; }
.library-collections button:hover, .library-collections button[aria-pressed="true"] { color: #E85713; border-bottom-color: #E85713; }
.library-shelf { padding: 12px 0 6px; }
.library-shelf[hidden], .library-active-filters[hidden] { display: none; }
.library-shelf__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.library-shelf__heading h2 { margin: 0; color: #2f3538; font-size: 1rem; letter-spacing: -.025em; }
.library-shelf__heading > span { color: #62696b; font-size: .78rem; }
.library-shelf__items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.library-shelf__document { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; padding: 14px 12px; border-top: 1px solid #dddcd8; border-bottom: 1px solid #dddcd8; color: #2f3538; text-decoration: none; transition: background 150ms ease; }
.library-shelf__document:hover { background: #f4f3f1; }
.library-shelf__document img { display: block; width: 70px; height: 102px; object-fit: contain; object-position: center; background: #fff; box-shadow: 0 3px 9px #2f353817; }
.library-shelf__document > span { display: grid; gap: 7px; min-width: 0; }
.library-shelf__document small { color: #62696b; font-size: .73rem; }
.library-shelf__document strong { font-size: .84rem; line-height: 1.45; overflow-wrap: anywhere; }
.library-shelf__document em { font-size: .73rem; font-style: normal; color: #E85713; }
.library-active-filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; color: #3d474b; font-size: .8rem; }
.library-active-filters > span { min-width: 0; overflow-wrap: anywhere; }
.library-active-filters > span > span { margin-inline: 8px; color: #9ba19e; }
.library-active-filters button { background: transparent; border: 0; padding: 8px 0; min-height: 40px; flex-shrink: 0; color: #E85713; font: 600 .8rem "Poppins", sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.page-downloads .portal-document-row__body :is(strong, p) { display: block; -webkit-line-clamp: unset; max-height: none; overflow: visible; }
.page-downloads .portal-document-row__source small { display: block; font-size: .7rem; line-height: 1.5; color: #62696b; }
.page-downloads .portal-document-row--verified .portal-document-row__source { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
.page-downloads .portal-document-row--verified .portal-document-row__source > :is(span, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-downloads .portal-document-row--verified .portal-document-row__source em { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 760px) {
  .page-downloads .portal-document-row--verified .portal-document-row__source { display: flex; }
  .page-downloads .portal-document-row--verified .portal-document-row__source > small { display: none; }
}
.library-footnote { margin-top: 18px; font-size: .78rem; line-height: 1.65; color: #62696b; }
.library-footnote a { color: #3d474b; text-decoration: underline; text-underline-offset: 3px; }
.page-downloads .downloads-desk__empty .portal-text-link { display: inline-flex; margin: 12px; }
.page-downloads :is(.library-collections button, .library-shelf__document, .library-active-filters button):focus-visible { outline: 3px solid #E85713; outline-offset: 4px; }
@media (max-width: 1100px) {
  .page-downloads .downloads-desk__command-main { grid-template-columns: minmax(0, 1fr); }
  .library-shelf__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .page-downloads .downloads-desk__primary-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .page-downloads .downloads-desk__primary-filters > label:first-child { grid-column: 1 / -1; }
  .page-downloads .downloads-desk__more-filters { grid-column: auto; min-width: 0; }
  .library-collections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
  .library-collections button { text-align: left; font-size: .78rem; }
  .library-shelf__heading > span { display: none; }
  .library-shelf__items { gap: 10px; }
  .library-shelf__document { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; padding: 12px 4px; }
  .library-shelf__document img { width: 62px; height: 88px; }
  .library-active-filters { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .library-shelf__document { transition: none; }
}
