/* Knowledge Base listing. Everything is scoped to .kb-app so nothing else on the site is touched.
   Change the two colours below to match your brand variables if they differ. */
.kb-app{--kb-blue:#1b3a63;--kb-green:#0d6133;--kb-line:#dce3e9;--kb-muted:#566477}

.kb-app .screen-reader-text,
#kbAnnounce.screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.kb-app.is-loading .kb-results,
.kb-app.is-loading .kb-status-row{opacity:.5;transition:opacity .15s}

/* Filters: row 1 = All / Focus Areas / Resource Type, row 2 = Country / Year */
.kb-app .kb-filters--grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;margin-top:18px}
.kb-app .kb-filters--grid>:nth-child(1){grid-column:span 3}
.kb-app .kb-filters--grid>:nth-child(2){grid-column:span 5}
.kb-app .kb-filters--grid>:nth-child(3){grid-column:span 4}
.kb-app .kb-filters--grid>:nth-child(4),
.kb-app .kb-filters--grid>:nth-child(5){grid-column:span 6}
.kb-app .kb-filters--grid .kb-filters__select{width:100%;min-width:0}
.kb-app .kb-filters--grid .kb-filters__all{display:flex;align-items:center;justify-content:center;min-height:49px;text-decoration:none}

/* Browse by focus area */
.kb-app .kb-focus{margin-top:26px;margin-bottom:30px}
.kb-app .kb-focus__label{font-weight:600;margin:0 0 12px;color:var(--kb-blue)}
.kb-app .kb-focus__buttons{display:flex;flex-wrap:wrap;gap:10px}
.kb-app .kb-focus__btn{flex:1 1 calc(33.333% - 10px);min-width:220px;min-height:67px;display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;background:#fff;border:1px solid #becbd9;border-radius:3px;color:var(--kb-blue);font-size:13px;line-height:1.45;text-decoration:none;transition:background .2s,color .2s}
.kb-app .kb-focus__btn:hover{background:#eef4f1}
.kb-app .kb-focus__btn.is-active{background:var(--kb-blue);color:#fff;border-color:var(--kb-blue);box-shadow:inset 0 -3px var(--kb-green)}
.kb-app :is(a,button,input,select):focus-visible{outline:3px solid var(--kb-green);outline-offset:3px}

/* Status row */
.kb-app .kb-status-row{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;color:var(--kb-muted);font-size:13px;margin-bottom:22px}
.kb-app .kb-status{margin:0}
.kb-app .kb-clear{color:var(--kb-green);text-decoration:underline}

/* Resource groups */
.kb-app .kb-group{margin-bottom:34px}
.kb-app .kb-group__top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid var(--kb-line);padding-bottom:10px;margin-bottom:14px}
.kb-app .kb-group__title{font-size:25px;line-height:1.3;margin:0;color:var(--kb-blue)}
.kb-app .kb-group__count{font-size:12px;color:#657183;white-space:nowrap}
.kb-app .kb-group__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.kb-app .kb-group__more{display:flex;justify-content:flex-end;margin-top:12px}
.kb-app .kb-group__view-all{display:inline-block;background:#fff;border:1px solid #b5c3d2;border-radius:0px;padding:8px 14px;color:var(--kb-blue);font-size:15px;text-decoration:none}
.kb-app .kb-group__view-all:hover{background:#eef4f1}

/* Resource card */
.kb-app .kb-resource{display:flex;align-items:flex-start;gap:16px;padding:20px;background:#f5f7f9;border-radius:6px;min-width:0}
.kb-app .kb-resource__copy{min-width:0;flex:1}
.kb-app .kb-resource__meta{font-size:11px;color:#607087;margin-bottom:8px}
.kb-app .kb-resource__title{font-size:22px;font-weight:600;line-height:1.35;margin:0}
.kb-app .kb-resource__title a{color:var(--kb-blue);text-decoration:none}
.kb-app .kb-resource__title a:hover{text-decoration:underline}
.kb-app .kb-resource__summary{font-size:15px;color:#586675;line-height:1.55;margin:9px 0}
.kb-app .kb-resource__tag{display:block;font-size:13px;color:var(--kb-green);margin-top:10px}
.kb-app .kb-resource__cover{flex:0 0 69px;width:69px;height:91px;display:block;overflow:hidden;background:var(--kb-blue);border-bottom:4px solid var(--kb-green);box-shadow:3px 4px 0 #dfe5eb}
.kb-app .kb-resource__cover img{width:100%;height:100%;object-fit:cover;display:block}
.kb-app .kb-resource__ph{display:flex;align-items:flex-end;height:100%;padding:8px;color:#fff;font-size:9px;letter-spacing:.05em}

/* Pagination (single resource type) and empty state */
.kb-app .kb-pagination ul{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding:0;margin:20px 0 0}
.kb-app .kb-pagination .page-numbers{display:inline-block;padding:8px 12px;border:1px solid #becbd9;border-radius:3px;color:var(--kb-blue);text-decoration:none}
.kb-app .kb-pagination .page-numbers.current{background:var(--kb-blue);border-color:var(--kb-blue);color:#fff}
.kb-app .kb-empty{padding:26px 0;color:var(--kb-muted)}

@media (max-width:700px){
	.kb-app .kb-group__grid{grid-template-columns:1fr}
	.kb-app .kb-filters--grid{grid-template-columns:1fr}
	.kb-app .kb-filters--grid>*{grid-column:1/-1!important}
}
@media (max-width:480px){
	.kb-app .kb-resource{padding:16px;gap:12px}
	.kb-app .kb-resource__cover{flex-basis:54px;width:54px;height:76px}
	.kb-app .kb-group__title{font-size:19px}
	.kb-app .kb-focus__btn{flex-basis:100%}
}
