.kb-library { min-width:0; color:#16251f; }
.kb-intro { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; border:1px solid #d7e0d9; border-left:4px solid var(--wms-brand-accent, #ff5b24); border-radius:14px; padding:26px 28px; background:#fff; }
.kb-intro > div { min-width:0; }
.kb-eyebrow { display:block; color:#6a796f; font-size:10px; font-weight:800; letter-spacing:1.4px; margin-bottom:11px; }
.kb-intro h3 { margin:0 0 9px; font-size:25px; line-height:1.25; font-weight:700; overflow-wrap:anywhere; }
.kb-intro p { margin:0; max-width:630px; color:#617068; font-size:14px; line-height:1.6; }
.kb-audience { flex-shrink:0; font-size:11px; font-weight:600; color:#49604f; background:#eef3ee; border-radius:20px; padding:8px 12px; }
.kb-filters { display:flex; align-items:flex-end; gap:18px; margin:25px 0 23px; }
.kb-filters label { display:flex; flex-direction:column; gap:8px; color:#526258; font-size:12px; font-weight:600; min-width:0; }
.kb-search { flex:1; }
.kb-category-filter { flex:0 1 240px; }
.kb-library input,.kb-library select { width:100%; max-width:100%; min-width:0; min-height:46px; padding:12px 14px; border:1px solid #bccac0; border-radius:9px; background:#fff; font:inherit; font-size:14px; color:#16251f; }
.kb-library input::placeholder { color:#748178; opacity:1; }
.kb-library input:focus,.kb-library select:focus { outline:2px solid var(--wms-brand-accent, #ff5b24); outline-offset:2px; }
.kb-library :is(button,a):focus-visible { outline:3px solid var(--wms-brand-link, #b43c10); outline-offset:3px; }
.kb-results-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px; font-size:13px; }
.kb-results-heading strong { font-weight:700; }
.kb-results-heading > span { color:#617068; font-size:12px; }
.kb-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.kb-card { min-width:0; display:flex; flex-direction:column; background:#fff; border:1px solid #d4dcd6; border-radius:14px; padding:25px; box-shadow:0 3px 14px #16251f04; }
.kb-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-bottom:22px; }
.kb-document-icon { width:50px; height:61px; position:relative; display:block; color:#b43c10; flex-shrink:0; }
.kb-document-icon svg { width:41px; height:50px; }
.kb-document-icon b { position:absolute; right:0; bottom:0; padding:3px 5px; color:#fff; background:#b43c10; font-size:10px; letter-spacing:.5px; border:2px solid #fff; border-radius:4px; }
.kb-category { min-width:0; font-size:11px; line-height:1.45; color:#526b5b; padding:6px 10px; border-radius:6px; background:#edf3ef; text-align:right; overflow-wrap:anywhere; }
.kb-card h3 { font-size:21px; line-height:1.35; margin:0 0 11px; overflow-wrap:anywhere; }
.kb-summary { color:#617068; font-size:14px; line-height:1.65; margin:0 0 23px; overflow-wrap:anywhere; }
.kb-summary:empty { display:none; }
.kb-meta { margin-top:auto; display:flex; flex-direction:column; gap:7px; color:#67776c; font-size:12px; line-height:1.5; }
.kb-meta > span:first-child { font-weight:600; color:#4e6254; }
.kb-card-actions { display:flex; flex-wrap:wrap; gap:10px; border-top:1px solid #e0e7e1; margin-top:20px; padding-top:18px; }
.kb-card-actions button { min-width:0; display:flex; align-items:center; justify-content:center; gap:10px; padding:12px 14px; border-radius:8px; min-height:44px; font-size:13px; line-height:1.3; font-weight:700; cursor:pointer; flex:1 1 145px; }
.kb-open { background:var(--wms-brand-background, #16251f); border:1px solid var(--wms-brand-background, #16251f); color:#fff; }
.kb-open:hover { background:#294536; }
.kb-download { background:#fff; border:1px solid #bdcbbf; color:#284834; }
.kb-download:hover { background:#f0f5f1; }
.kb-card-actions button span { font-size:16px; font-weight:400; }
.kb-card-actions button:disabled { opacity:.55; cursor:wait; }
.kb-message { font-size:12px; line-height:1.6; color:#536b5b; margin:10px 0 0; overflow-wrap:anywhere; }
.kb-message:empty { display:none; }
.kb-message-error { color:#a92f1c; }
.kb-file-link { color:#934015; text-decoration:underline; text-underline-offset:3px; }
.kb-library-note { color:#718077; font-size:12px; line-height:1.6; margin:21px 0 0; }
.kb-empty { grid-column:1/-1; padding:42px 24px; background:#fff; border:1px solid #d4dcd6; border-radius:14px; text-align:center; color:#617068; font-size:14px; line-height:1.6; }
.kb-empty h3 { margin:10px 0; font-size:19px; color:#16251f; }
.kb-empty p { margin:0 auto 18px; max-width:440px; }
.kb-empty-icon { display:block; color:#93a699; }
.kb-empty-icon svg { width:32px; height:38px; }
@media(min-width:1051px) { .portal-nav { grid-template-columns:repeat(8,minmax(0,1fr)); } }
@media(max-width:1100px) and (min-width:961px) { .kb-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:700px) {
  .kb-intro { flex-direction:column; padding:21px 18px; gap:17px; }
  .kb-intro h3 { font-size:22px; }
  .kb-intro p { font-size:13px; }
  .kb-filters { flex-direction:column; align-items:stretch; gap:14px; margin:22px 0; }
  .kb-category-filter { flex:auto; }
  .kb-library input,.kb-library select { font-size:16px; }
  .kb-results-heading { flex-direction:column; gap:5px; }
  .kb-grid { grid-template-columns:minmax(0,1fr); gap:15px; }
  .kb-card { padding:21px 18px; }
  .kb-card h3 { font-size:20px; }
  .kb-card-top { margin-bottom:18px; }
  .kb-card-actions { gap:9px; }
  .kb-card-actions button { flex-basis:140px; }
  .kb-library-note { margin-top:17px; }
}
