/* 04 §3.3 (E2a): file library list and detail. Current site look; the 3.1 refresh restyles it later. */
.download-section .section-title h1 { font-size: 40px; overflow-wrap: anywhere; text-wrap: balance; }

.library-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.library-tab {
	display: inline-block; padding: 8px 16px; border: 1px solid #0B63B5; border-radius: 20px;
	color: #0B63B5; text-decoration: none; line-height: 1.3;
}
.library-tab:hover { background-color: #E8F0F9; color: #084C8B; }
.library-tab.active { background-color: #0B63B5; color: #fff; }

.library-search { display: flex; gap: 8px; }
.library-search .form-control { min-width: 0; }
.library-result-note { color: #444; }

.library-list { margin: 0; padding: 0; }
.library-item-row {
	display: flex; align-items: center; gap: 20px; padding: 20px 24px; margin-bottom: 16px;
	border: 1px solid #E3E3E3; border-radius: 4px; background: #fff;
}
.library-item-row .file-icon { flex: 0 0 64px; height: 64px; width: 64px; }
.library-item-row .file-icon i { line-height: 64px; font-size: 26px; }
.library-item-body { flex: 1 1 auto; min-width: 0; }
.library-item-title { font-size: 20px; font-weight: 600; margin: 0 0 4px; line-height: 1.35; overflow-wrap: anywhere; text-wrap: balance; }
.library-item-title a { color: #1A1A1A; text-decoration: none; }
.library-item-title a:hover { color: #0B63B5; text-decoration: underline; }
.library-item-desc { margin: 0 0 4px; color: #444; overflow-wrap: anywhere; text-wrap: pretty; }
.library-item-meta { margin: 0; color: #595959; font-size: 14px; }
.library-item-meta span + span { white-space: nowrap; }
.library-item-meta span + span::before { content: "·"; margin: 0 6px; }
.library-download {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px;
	color: #0B63B5; text-decoration: none; border-radius: 4px; min-height: 44px;
}
.library-download:hover { background-color: #E8F0F9; color: #084C8B; }
.library-empty { padding: 40px 0; text-align: center; color: #595959; }

.library-detail-wrapper { max-width: 960px; }
.library-detail-head { margin-bottom: 24px; }
.library-detail-head h1 { font-size: 34px; overflow-wrap: anywhere; text-wrap: balance; }
.library-detail-desc { color: #333; max-width: 70ch; overflow-wrap: anywhere; text-wrap: pretty; }
.library-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.library-notice { padding: 12px 16px; background: #FFF6E0; border-radius: 4px; color: #5C4300; }
.library-view-tabs { margin-bottom: 16px; }
.library-view-tabs .nav-link { color: #0B63B5; }
.library-view-tabs .nav-link.active { color: #1A1A1A; }

.pdf-viewer { background: #E9E9E9; padding: 12px; border-radius: 4px; max-height: 85vh; overflow-y: auto; }
.pdf-page { background: #fff; margin: 0 auto 12px; width: 100%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.pdf-page:last-child { margin-bottom: 0; }
.pdf-page canvas { display: block; width: 100%; height: auto; }
.pdf-status { margin: 0; padding: 40px 0; text-align: center; color: #444; }
.library-image { display: block; max-width: 100%; height: auto; margin: 0 auto; }

.library-text-title { font-size: 22px; margin-bottom: 12px; }
.library-text { line-height: 1.6; overflow-wrap: anywhere; }
.library-text img, .library-text iframe { max-width: 100%; height: auto; }
.library-text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.library-text td, .library-text th { padding: 4px 8px; }

@media screen and (max-width: 575px) {
	.download-section .section-title h1 { font-size: 28px; }
	.library-detail-head h1 { font-size: 26px; }
	.library-item-title { font-size: 17px; }
	.library-item-row { flex-wrap: wrap; gap: 12px; padding: 16px; }
	.library-item-row { align-items: flex-start; }
	.library-item-row .file-icon { flex-basis: 48px; height: 48px; width: 48px; margin: 0; }
	.library-item-row .file-icon i { line-height: 48px; font-size: 20px; }
	.library-item-body { flex-basis: calc(100% - 60px); }
	.library-download { margin-left: 60px; padding-left: 0; }
	.pdf-viewer { padding: 6px; max-height: none; }
}
