.wdl-library{margin:1rem 0;padding:1rem;background:#fff;border:1px solid #e6e9ef;border-radius:14px;box-shadow:0 8px 28px rgba(16,24,40,.06)}
.wdl-library-controls{display:flex;justify-content:space-between;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:14px}
.wdl-search-wrap{min-width:280px;flex:1}
.wdl-search-label{display:block;font-size:13px;color:#475467;margin-bottom:6px}
.wdl-search-input{width:100%;padding:10px 12px;border:1px solid #d0d5dd;border-radius:10px;background:#fff}
.wdl-view-toggle{display:flex;gap:8px}.wdl-toggle-button{width:40px;height:40px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#344054;cursor:pointer;font-size:20px;display:flex;align-items:center;justify-content:center}
.wdl-toggle-button.is-active{background:#2c5aa0;color:#fff;border-color:#2c5aa0}
.wdl-view-container{display:none}.wdl-view-container.is-active{display:block}
.wdl-document-list{display:flex;flex-direction:column;gap:12px}.wdl-item{padding:12px;border:1px solid #eaecf0;border-radius:12px;background:#fff}
.wdl-doc-row{display:flex;gap:12px;align-items:flex-start}
.wdl-doc-thumb img,.wdl-card-thumb img,.wdl-document-card img{width:68px;height:88px;object-fit:cover;border:1px solid #eaecf0;border-radius:8px}
.wdl-doc-content{flex:1}.wdl-doc-title{margin:0 0 6px;font-size:18px}.wdl-doc-description{margin:0 0 6px;color:#475467}.wdl-doc-meta{margin:0;color:#667085;font-size:13px}
.wdl-doc-actions{margin-left:auto;padding-top:2px}
.wdl-button{display:inline-block;padding:8px 12px;background:#2c5aa0;color:#fff;text-decoration:none;border-radius:8px;font-weight:600}.wdl-button-small{padding:6px 9px;font-size:13px;border-radius:7px}
.wdl-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.wdl-document-card{border:1px solid #eaecf0;border-radius:12px;padding:12px;background:#fff}
.wdl-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.wdl-no-results{padding:10px;border:1px solid #eaecf0;background:#f8fafc;margin-top:10px;border-radius:10px}
.wdl-single{max-width:980px;margin:1rem auto;padding:1.25rem;border:1px solid #eaecf0;border-radius:16px;background:#fff}
.wdl-breadcrumbs{margin-bottom:12px;color:#667085;font-size:14px}.wdl-breadcrumbs a{text-decoration:none;color:#2c5aa0}
.wdl-single-header{display:grid;grid-template-columns:minmax(160px,240px) 1fr;gap:18px;align-items:start}
.wdl-single-cover{margin:0}
.wdl-single-cover img{width:100%;max-width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:12px;border:1px solid #eaecf0;display:block}
.wdl-single-headline h1{margin-top:0;margin-bottom:10px}
.wdl-single-description{font-size:1.03rem;line-height:1.55;color:#475467;margin:0 0 14px}
.wdl-single-meta{margin:0 0 14px;padding:0;display:grid;gap:8px}
.wdl-single-meta-row{display:grid;grid-template-columns:minmax(130px,190px) 1fr;gap:10px;padding:8px 10px;background:#f8fafc;border:1px solid #eef2f7;border-radius:10px}
.wdl-single-meta dt{margin:0;color:#344054;font-weight:600}.wdl-single-meta dd{margin:0;color:#475467}
.wdl-single-actions{margin:0 0 8px}
.wdl-single-body{margin-top:14px;padding-top:14px;border-top:1px solid #eaecf0}
@media (max-width:720px){.wdl-doc-row{flex-wrap:wrap}.wdl-doc-actions{margin-left:0}.wdl-single-header{grid-template-columns:1fr}.wdl-single-cover{max-width:180px}.wdl-single-meta-row{grid-template-columns:1fr}}

.wdl-doc-title a{color:inherit;text-decoration:none}.wdl-doc-title a:hover{text-decoration:underline}

.wpdl-document-page{max-width:980px;margin:1rem auto;padding:1.25rem;border:1px solid #eaecf0;border-radius:16px;background:#fff}
.wpdl-document-layout{display:grid;grid-template-columns:minmax(120px,220px) 1fr;gap:18px;align-items:start}
.wpdl-document-thumbnail img{width:100%;max-width:100%;height:auto;object-fit:cover;border:1px solid #eaecf0;border-radius:12px;display:block}
.wpdl-document-thumbnail{overflow:hidden}
.wpdl-document-content{min-width:0}
.wpdl-document-title{margin:0 0 12px}
.wpdl-document-description h2,.wpdl-document-file-info h2{font-size:1rem;margin:0 0 8px;color:#344054}
.wpdl-document-description{margin-bottom:14px;color:#475467}
.wpdl-document-meta,.wpdl-document-file-info dl{margin:0 0 14px;padding:0;display:grid;gap:8px}
.wpdl-document-meta-row{display:grid;grid-template-columns:minmax(140px,220px) 1fr;gap:10px;padding:8px 10px;background:#f8fafc;border:1px solid #eef2f7;border-radius:10px}
.wpdl-document-meta-row dt{margin:0;font-weight:600;color:#344054}
.wpdl-document-meta-row dd{margin:0;color:#475467}
.wpdl-document-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.wpdl-button{display:inline-block;padding:10px 14px;border-radius:8px;text-decoration:none;font-weight:600}
.wpdl-button-download{background:#2c5aa0;color:#fff}
.wpdl-button-open{background:#fff;color:#2c5aa0;border:1px solid #2c5aa0}
@media (max-width:720px){.wpdl-document-layout{grid-template-columns:1fr}.wpdl-document-thumbnail{max-width:180px}.wpdl-document-meta-row{grid-template-columns:1fr}.wpdl-document-actions .wpdl-button{width:100%;text-align:center}}

.wpdl-single-document{overflow:hidden}
.wpdl-single-document-layout{grid-template-columns:minmax(120px,220px) 1fr}
.wpdl-single-document-thumbnail img{width:100%;height:auto;display:block}
.wpdl-single-document-content{min-width:0}
.wpdl-single-document-title{margin:0 0 8px}
.wdl-document-content{margin-top:12px;margin-bottom:16px;font-size:16px;line-height:1.6;color:#334155}
.wdl-document-content p{margin-bottom:.75rem}
.wpdl-single-document-summary{margin:0 0 14px;color:#667085;font-size:15px}
.wpdl-single-document-description{margin-bottom:14px}
.wpdl-single-document-fields,.wpdl-single-document-file-info{margin-bottom:12px}
.wpdl-single-document-actions .wpdl-button{min-width:140px;text-align:center}
@media (max-width:720px){
  .wpdl-single-document-layout{grid-template-columns:1fr}
  .wpdl-single-document-thumbnail{max-width:180px}
}

.wdl-doc-thumb-link{display:inline-block}.wdl-badges{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 8px}.wdl-badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:600}.wdl-badge-important{background:#fee4e2;color:#b42318}.wdl-badge-new{background:#dcfae6;color:#067647}.wdl-pdf-viewer{width:100%;height:700px;border:1px solid #eaecf0;border-radius:10px}@media(max-width:720px){.wdl-pdf-viewer{height:70vh}.wdl-document-list{overflow-x:auto}}
.wdl-document-viewer-section{margin-top:20px;padding:14px;border:1px solid #e4e7ec;border-radius:12px;background:#f8fafc}.wdl-viewer-toggle{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:10px;border:1px solid #2c5aa0;background:#2c5aa0;color:#fff;font-weight:600;cursor:pointer}.wdl-viewer-toggle:hover{background:#244b86;border-color:#244b86}.wdl-document-viewer-wrap{margin-top:12px;max-width:100%;overflow:hidden}.wdl-pdf-viewer{display:block;width:100%;max-width:100%;height:700px;border:1px solid #d0d5dd;border-radius:10px;background:#fff}@media (max-width:720px){.wdl-document-viewer-section{padding:12px}.wdl-pdf-viewer{height:70vh}}

.wdl-btn{display:inline-flex;align-items:center;justify-content:center;padding:.5rem .875rem;font-size:1rem;line-height:1.5;font-weight:600;border-radius:6px;border:1px solid transparent;text-decoration:none;cursor:pointer;transition:all .15s ease-in-out}
.wdl-btn:focus{outline:0;box-shadow:0 0 0 .2rem rgba(13,110,253,.25)}
.wdl-btn-primary{color:#fff;background:#0d6efd;border-color:#0d6efd}.wdl-btn-primary:hover{background:#0b5ed7;border-color:#0a58ca;color:#fff}
.wdl-btn-outline-primary{color:#0d6efd;background:#fff;border-color:#0d6efd}.wdl-btn-outline-primary:hover{color:#fff;background:#0d6efd;border-color:#0d6efd}
.wdl-btn-secondary{color:#fff;background:#6c757d;border-color:#6c757d}.wdl-btn-secondary:hover{background:#5c636a;border-color:#565e64}
.wdl-btn-outline-secondary{color:#6c757d;background:#fff;border-color:#6c757d}.wdl-btn-outline-secondary:hover{color:#fff;background:#6c757d;border-color:#6c757d}

.wpdl-document-page{background:#fff;border:1px solid #dee2e6;border-radius:10px;padding:1.25rem}
.wpdl-document-meta-row.wdl-info-row{padding:12px 16px;border:1px solid #e9ecef;border-radius:6px;background:#f8f9fa;grid-template-columns:minmax(130px,220px) 1fr}

.wdl-document-viewer-section{margin:1rem auto 0;max-width:980px;padding:1rem;background:#fff;border:1px solid #dee2e6;border-radius:10px}
.wdl-document-viewer-header{display:flex;align-items:center;justify-content:flex-start}
.wdl-document-viewer-wrap{margin-top:.75rem;width:100%;max-width:100%;overflow:hidden}
.wdl-pdf-viewer{display:block;width:100%;max-width:100%;height:720px;border:1px solid #dee2e6;border-radius:8px;background:#fff}

@media (max-width:720px){.wpdl-document-actions .wdl-btn{width:100%}.wpdl-document-meta-row.wdl-info-row{grid-template-columns:1fr}.wdl-pdf-viewer{height:70vh}}

.wdl-library-container{width:100%;max-width:100%;margin:1rem 0}.wdl-taxonomy-header{margin:0 0 1rem}.wdl-taxonomy-title{margin:0 0 .5rem}.wdl-empty-category{padding:1rem;border:1px solid #dee2e6;border-radius:10px;background:#fff}

.wdl-library{width:100%;max-width:100%}.wdl-library-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:14px}.wdl-library-search{flex:1 1 480px;min-width:280px;max-width:none}.wdl-library-search .wdl-search-input{width:100%}.wdl-view-toggle{flex:0 0 auto}.wdl-library-results{width:100%}.wdl-document-item{width:100%}.wdl-empty-message{padding:10px;border:1px solid #eaecf0;background:#f8fafc;margin-top:10px;border-radius:10px}.wdl-taxonomy-page .wdl-library{margin:0}
@media (max-width:720px){.wdl-library-search{min-width:100%}.wdl-view-toggle{width:100%;justify-content:flex-start}}

/* v1.1.6 taxonomy width + toolbar alignment fixes */
.taxonomy-wdl_document_category .content-area,
.taxonomy-wdl_document_category .site-main,
.taxonomy-wdl_document_category .inside-article,
.taxonomy-wdl_document_category .entry-content,
.taxonomy-wdl_document_category .wdl-library-container,
.taxonomy-wdl_document_category .wdl-library,
.taxonomy-wdl_document_category .wdl-library-results,
.taxonomy-document-category .content-area,
.taxonomy-document-category .site-main,
.taxonomy-document-category .inside-article,
.taxonomy-document-category .entry-content,
.taxonomy-document-category .wdl-library-container,
.taxonomy-document-category .wdl-library,
.taxonomy-document-category .wdl-library-results {
  width: 100%;
  max-width: 100%;
}

.taxonomy-wdl_document_category .wdl-library-container,
.taxonomy-document-category .wdl-library-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.wdl-library-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}

.wdl-library-search {
  flex: 1 1 auto;
  min-width: 280px;
  max-width: none;
}

.wdl-library-search .wdl-search-input,
.wdl-library-search input {
  width: 100%;
  max-width: none;
}

.wdl-view-toggle {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.wdl-document-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.wdl-document-table th,
.wdl-document-table td {
  padding: 10px;
  border-bottom: 1px solid #eaecf0;
  vertical-align: middle;
}

.wdl-document-table .wdl-col-thumb { width: 150px; }
.wdl-document-table .wdl-col-type,
.wdl-document-table .wdl-col-size { width: 120px; }

@media (max-width: 768px) {
  .wdl-library-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .wdl-view-toggle {
    justify-content: flex-start;
  }
}

/* v1.1.7 taxonomy sidebar + mobile table readability fixes */
.taxonomy-wdl_document_category .wdl-taxonomy-page,
.taxonomy-document-category .wdl-taxonomy-page {
  width: 100%;
}

.taxonomy-wdl_document_category .wdl-library-container,
.taxonomy-document-category .wdl-library-container,
.wdl-library-container,
.wdl-library {
  width: 100%;
  max-width: 100%;
}

.wdl-document-table {
  width: 100%;
  table-layout: fixed;
}

.wdl-document-table th,
.wdl-document-table td,
.wdl-doc-title,
.wdl-doc-title a {
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

.wdl-doc-title {
  line-height: 1.3;
  overflow-wrap: break-word;
}

.wdl-document-table th:nth-child(1),
.wdl-document-table td:nth-child(1) { width: 150px; }
.wdl-document-table th:nth-child(2),
.wdl-document-table td:nth-child(2) { width: auto; min-width: 320px; }
.wdl-document-table th:nth-child(3),
.wdl-document-table td:nth-child(3) { width: 110px; }
.wdl-document-table th:nth-child(4),
.wdl-document-table td:nth-child(4) { width: 130px; }

@media (max-width: 768px) {
  .wdl-library-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .wdl-library-search,
  .wdl-library-search input,
  .wdl-library-search .wdl-search-input {
    width: 100%;
    min-width: 100%;
  }

  .wdl-view-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .wdl-document-table,
  .wdl-document-table thead,
  .wdl-document-table tbody,
  .wdl-document-table tr,
  .wdl-document-table th,
  .wdl-document-table td {
    display: block;
    width: 100% !important;
  }

  .wdl-document-table thead {
    display: none;
  }

  .wdl-document-table tbody {
    display: grid;
    gap: 12px;
  }

  .wdl-document-table tr.wdl-document-item {
    border: 1px solid #eaecf0;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
  }

  .wdl-document-table td {
    border: 0;
    padding: 4px 0;
  }

  .wdl-document-table td[data-label]:not(.wdl-doc-thumb)::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    line-height: 1.2;
    color: #667085;
    margin-bottom: 2px;
  }

  .wdl-document-table .wdl-doc-thumb {
    margin-bottom: 8px;
  }

  .wdl-document-table .wdl-doc-title {
    font-size: 17px;
    margin-bottom: 8px;
  }

}
