/* Public documents, filters and cover previews. */
body.portal-page .downloads-page { padding: 0 0 36px; }
body.portal-page .downloads-page .archive-header { padding: 28px 0 !important; margin: 0 0 24px !important; }
body.portal-page .downloads-page .archive-header .post-title { margin-bottom: 10px !important; }
.downloads-page .downloads-current-crumb::before, .downloads-page .downloads-current-crumb::after { content: none; }
.downloads-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.downloads-filter { position: sticky; top: 108px; padding: 22px; border: 1px solid var(--portal-border); border-radius: 16px; background: var(--portal-surface); color: var(--portal-ink); }
.downloads-filter-intro { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.downloads-filter-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--portal-blue-soft); color: var(--portal-blue); font-size: 21px; }
.downloads-filter-intro h2 { margin: 0 0 5px; color: var(--portal-ink); font-size: 15px; font-weight: 600; line-height: 1.5; }
.downloads-filter-intro p { margin: 0; color: var(--portal-muted); font-size: 10px; line-height: 1.8; }
.downloads-filter form > label { display: block; margin: 0 0 8px; color: var(--portal-ink); font-size: 11px; font-weight: 500; }
.downloads-input { display: flex; align-items: center; gap: 8px; padding: 0 11px; margin-bottom: 18px; border: 1px solid var(--portal-border); border-radius: 9px; background: var(--portal-soft); }
.downloads-input:focus-within { border-color: var(--portal-blue); box-shadow: 0 0 0 3px rgb(8 79 185 / 8%); }
.downloads-input > i { color: var(--portal-muted); font-size: 18px; }
.downloads-page #inputanFilterSearch { width: 100%; min-width: 0; height: 42px; padding: 9px 0; margin: 0; border: 0; border-radius: 0; color: var(--portal-ink); background: transparent; box-shadow: none; outline: none; font-size: 11px; }
.downloads-page #inputanFilterSearch::placeholder { color: var(--portal-muted); opacity: .75; }
.downloads-page #formType { display: block; width: 100%; min-width: 0; height: 42px; padding: 9px 30px 9px 11px; margin: 0 0 18px; border: 1px solid var(--portal-border); border-radius: 9px; color: var(--portal-ink); background-color: var(--portal-soft); font-size: 11px; cursor: pointer; }
.downloads-page #formType:disabled { opacity: .75; cursor: default; }
.downloads-category-note { display: block; margin: -6px 0 18px; color: var(--portal-muted); font-size: 10px; line-height: 1.8; }
.downloads-category-note a { color: var(--portal-blue); text-decoration: underline; text-underline-offset: 3px; }
.downloads-filter form > button { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 10px 12px; border: 1px solid var(--portal-border); border-radius: 9px; font-size: 11px; font-weight: 500; line-height: 1.5; transition: background .2s, border-color .2s; }
.downloads-filter form > button i { font-size: 17px; }
.downloads-filter .downloads-apply { border-color: #084fb9; color: #fff; background: #084fb9; }
.downloads-filter .downloads-apply:hover { background: #0f4494; border-color: #0f4494; }
.downloads-filter .downloads-reset { margin-top: 9px; color: var(--portal-muted); background: transparent; }
.downloads-filter .downloads-reset:hover { color: var(--portal-blue); background: var(--portal-blue-soft); }
.downloads-help { display: flex; align-items: flex-start; gap: 8px; padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--portal-border); color: var(--portal-muted); font-size: 9px; line-height: 1.9; }
.downloads-help i { padding-top: 2px; font-size: 16px; flex-shrink: 0; }
.downloads-results { min-width: 0; scroll-margin-top: 110px; }
.downloads-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding: 0 2px; }
.downloads-eyebrow { display: block; margin-bottom: 5px; color: var(--portal-muted); font-size: 9px; font-weight: 600; letter-spacing: .09em; }
.downloads-summary h2 { margin: 0; color: var(--portal-ink); font-size: 19px; font-weight: 500; line-height: 1.5; }
.downloads-summary h2 strong { color: var(--portal-blue); font-weight: 700; }
.downloads-summary p { margin: 7px 0 0; color: var(--portal-muted); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.downloads-summary p strong { font-weight: 500; }
.downloads-range { flex-shrink: 0; padding-bottom: 3px; color: var(--portal-muted); font-size: 10px; }
.downloads-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.downloads-document { display: flex; align-items: flex-start; gap: 18px; padding: 22px; border: 1px solid var(--portal-border); border-radius: 15px; background: var(--portal-surface); transition: border-color .2s, box-shadow .2s; }
.downloads-document:focus-within, .downloads-document:hover { border-color: var(--portal-blue); box-shadow: 0 4px 16px rgb(8 79 185 / 5%); }
.downloads-file-symbol, .downloads-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 70px; width: 70px; height: 90px; border: 1px solid var(--portal-border); border-radius: 10px; background: var(--portal-blue-soft); color: var(--portal-blue); }
.downloads-file-symbol > i { font-size: 36px; }
.downloads-file-symbol > span { margin-top: 5px; font-size: 9px; font-weight: 600; }
.downloads-cover { position: relative; overflow: hidden; padding: 0; cursor: zoom-in; }
.downloads-cover img { width: 100%; height: 100%; object-fit: cover; }
.downloads-cover > span { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(8 79 185 / 45%); color: #fff; opacity: 0; font-size: 24px; transition: opacity .2s; }
.downloads-cover:is(:hover, :focus-visible) > span { opacity: 1; }
.downloads-document-body { flex: 1; min-width: 0; }
.downloads-document-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.downloads-document-meta .downloads-category { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; background: var(--portal-blue-soft); color: var(--portal-blue); font-size: 9px; font-weight: 500; line-height: 1.5; }
.downloads-document-meta time { display: inline-flex; align-items: center; gap: 4px; color: var(--portal-muted); font-size: 9px; }
.downloads-document-meta time i { font-size: 13px; }
.downloads-document h2 { margin: 0 0 16px; color: var(--portal-ink); font-size: 16px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.downloads-document h2 a { color: inherit; }
.downloads-document h2 a:hover { color: var(--portal-blue); }
.downloads-document-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 12px; border-top: 1px solid var(--portal-border); }
.downloads-file-info { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--portal-muted); font-size: 10px; }
.downloads-file-info > span { display: inline-flex; align-items: center; gap: 4px; }
.downloads-file-info i { color: var(--portal-blue); font-size: 16px; }
.downloads-file-info > span + span { padding-left: 10px; border-left: 1px solid var(--portal-border); }
.downloads-page .downloads-file-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 7px 12px; border: 1px solid var(--portal-border); border-radius: 8px; background: var(--portal-blue-soft); color: var(--portal-blue); font-size: 10px; font-weight: 600; line-height: 1.5; transition: background .2s, color .2s, border-color .2s; }
.downloads-file-button i { font-size: 17px; }
.downloads-page .downloads-file-button:is(:hover, :focus-visible) { color: #fff; background: #084fb9; border-color: #084fb9; }
.downloads-empty { padding: 44px 24px; border: 1px solid var(--portal-border); border-radius: 16px; background: var(--portal-surface); text-align: center; }
.downloads-empty-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 20px; border: 9px solid var(--portal-soft); border-radius: 21px; background: var(--portal-blue-soft); color: var(--portal-blue); font-size: 32px; }
.downloads-empty h2 { margin: 0 0 10px; color: var(--portal-ink); font-size: 20px; font-weight: 600; line-height: 1.5; }
.downloads-empty p { max-width: 370px; margin: 0 auto; color: var(--portal-muted); font-size: 12px; line-height: 1.9; }
.downloads-empty-reset { display: inline-flex; justify-content: center; align-items: center; gap: 7px; margin-top: 20px; padding: 10px 16px; border: 1px solid var(--portal-border); border-radius: 9px; background: var(--portal-blue-soft); color: var(--portal-blue); font-size: 11px; }
.downloads-pagination { margin-top: 24px; }
.downloads-pagination ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 0; margin: 0; list-style: none; }
.downloads-pagination li > :is(a,span) { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 5px 9px; border: 1px solid var(--portal-border); border-radius: 8px; background: var(--portal-surface); color: var(--portal-muted); font-size: 11px; }
.downloads-pagination li > a:hover { color: var(--portal-blue); border-color: var(--portal-blue); }
.downloads-pagination [aria-current='page'] { background: #084fb9; color: #fff; border-color: #084fb9; }
.downloads-pagination [aria-disabled='true'] { opacity: .4; }
.downloads-page .downloads-preview .modal-dialog { max-width: 600px; }
.downloads-page .downloads-preview .modal-header { gap: 14px; }
.downloads-preview .modal-title { overflow-wrap: anywhere; line-height: 1.6; }
.downloads-page .downloads-preview .close { flex-shrink: 0; }
.downloads-page .downloads-preview .close i { font-size: 20px; }
.downloads-preview .modal-body { padding: 16px; text-align: center; }
.downloads-preview-image { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto; margin: auto; border-radius: 8px; object-fit: contain; }
.downloads-loading { display: grid; gap: 14px; }
.downloads-loading > div { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--portal-border); border-radius: 15px; background: var(--portal-surface); }
.downloads-loading span { height: 14px; border-radius: 5px; background: var(--portal-border); animation: downloads-pulse 1s ease-in-out infinite alternate; }
.downloads-loading span:first-child { width: 25%; }
.downloads-loading span:nth-child(2) { width: 80%; height: 19px; }
.downloads-loading span:last-child { width: 40%; }
@keyframes downloads-pulse { to { opacity: .4; } }
@media (max-width: 991.98px) { .downloads-layout { grid-template-columns: 235px minmax(0, 1fr); gap: 18px; } .downloads-filter { padding: 18px; } .downloads-summary { align-items: flex-start; flex-direction: column; gap: 7px; } }
@media (max-width: 767.98px) {
    body.portal-page .downloads-page .archive-header { padding: 24px 0 !important; margin-bottom: 20px !important; }
    .downloads-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .downloads-filter { position: static; }
    .downloads-filter-intro { margin-bottom: 18px; }
    .downloads-help { display: none; }
    .downloads-filter form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
    .downloads-filter form > label, .downloads-filter .downloads-input, .downloads-filter #formType, .downloads-category-note { grid-column: 1 / -1; }
    .downloads-filter .downloads-reset { margin-top: 0; }
    .downloads-filter form > button { padding: 10px 6px; font-size: 10px; gap: 5px; }
    .downloads-results { scroll-margin-top: 90px; }
    .downloads-document { padding: 16px; gap: 12px; }
    .downloads-file-symbol, .downloads-cover { width: 48px; height: 66px; flex-basis: 48px; border-radius: 8px; }
    .downloads-file-symbol > i { font-size: 28px; }
    .downloads-file-symbol > span { font-size: 8px; margin-top: 2px; }
    .downloads-document h2 { font-size: 13px; margin-bottom: 12px; }
    .downloads-document-meta { gap: 7px; margin-bottom: 8px; }
    .downloads-document-meta time, .downloads-document-meta .downloads-category { font-size: 8px; }
    .downloads-file-info { font-size: 9px; gap: 6px; }
    .downloads-file-info > span + span { padding-left: 6px; }
    .downloads-document-footer { gap: 9px; }
    .downloads-page .downloads-file-button { min-height: 32px; padding: 6px 9px; font-size: 9px; }
    .downloads-empty { padding: 32px 20px; }
    .downloads-empty h2 { font-size: 18px; }
    .downloads-empty p { font-size: 11px; }
    .downloads-pagination ul { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .downloads-page * { animation: none !important; transition: none !important; } }
