#knowledge-base { --ink:#2d4150; --muted:#50656e; --teal:#087c70; --line:#dce8e5; font-family:Inter,Arial,sans-serif; color:var(--ink); }
#knowledge-base * { box-sizing:border-box; }
#knowledge-base [hidden] { display:none !important; }
#knowledge-base .wrap { width:min(1180px,calc(100% - 48px)); margin-inline:auto; }
#knowledge-base .kb-hero { padding:30px 0 26px; }
#knowledge-base h1 { font-size:clamp(28px,3vw,38px) !important; letter-spacing:-.025em; line-height:1.16 !important; margin:0; max-width:900px !important; }
#knowledge-base .kb-hero p { font-size:16px !important; line-height:1.5 !important; max-width:900px; color:var(--muted) !important; margin:12px 0 20px; }
#knowledge-base .kb-search { display:block; max-width:760px; }
#knowledge-base .kb-search label { display:block; font-weight:600; font-size:15px; margin-bottom:10px; }
#knowledge-base .kb-search-field { display:flex; align-items:center; gap:8px; }
#knowledge-base .kb-search input { min-width:0; width:100%; min-height:50px; height:50px !important; border:1px solid #a5bbb5 !important; border-radius:10px !important; padding:12px 14px; font:inherit; line-height:24px; background:#fff; color:var(--ink); }
#knowledge-base #kb-search-hint { font-size:13px !important; margin:10px 0 0; }
#knowledge-base button { font:600 14px Inter,Arial,sans-serif; cursor:pointer; color:var(--ink); min-height:44px; }
#knowledge-base .kb-main { padding:22px 0 56px; }
#knowledge-base .kb-filters { display:flex; flex-wrap:wrap; gap:8px; position:static; margin-bottom:24px; }
#knowledge-base .kb-filter { padding:11px 15px; border:1px solid var(--line) !important; border-radius:10px !important; background:#fff; text-align:left; }
#knowledge-base .kb-filter.is-active { color:#086b60 !important; background:#e3f3ef !important; border-color:#90bcb1 !important; }
#knowledge-base .kb-filter:hover { background:#edf6f3 !important; color:#086b60 !important; }
#knowledge-base .kb-topline { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:12px; margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid var(--line); }
#knowledge-base h2 { font-size:24px; line-height:1.25; letter-spacing:-.02em; margin:0; }
#knowledge-base .kb-count { font-size:14px; color:var(--muted); }
#knowledge-base .kb-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:20px !important; }
#knowledge-base .kb-card { display:flex; min-width:0; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:none !important; text-decoration:none; transition:border-color .15s; }
#knowledge-base .kb-card:hover { transform:none; border-color:#75a99d; }
#knowledge-base .kb-card-body { display:flex; width:100%; min-height:0; flex-direction:column; gap:8px; padding:16px 18px 18px !important; }
#knowledge-base .kb-card small { color:#08796e !important; font-size:11px !important; letter-spacing:.03em !important; text-transform:uppercase; font-weight:700; }
#knowledge-base .kb-card strong { display:block; height:auto !important; min-height:0 !important; overflow:visible; font-size:18px !important; line-height:1.35 !important; letter-spacing:-.015em !important; overflow-wrap:anywhere; }
#knowledge-base .kb-card em { display:block; height:auto !important; min-height:0 !important; overflow:visible; color:var(--muted) !important; font-size:14px !important; line-height:1.5 !important; font-style:normal; }
#knowledge-base .kb-card b { display:flex; justify-content:space-between; min-height:36px; margin-top:auto; padding:10px 0 0 !important; border:0; border-radius:0; background:transparent !important; color:#08796e !important; font-size:13px; }
#knowledge-base #kb-clear, #knowledge-base #kb-reset { flex-shrink:0; padding:12px; background:#fff; border:1px solid #90bcb1; border-radius:10px; }
#knowledge-base .kb-empty { display:block; padding:28px 0; color:var(--muted); }
#knowledge-base .kb-empty h3 { color:var(--ink); font-size:22px; margin:0 0 12px; }
#knowledge-base :is(button,a,input):focus-visible { outline:3px solid #087c70; outline-offset:4px; }
#knowledge-base ::selection { color:#173840; background:#c8e9df; }
@media(max-width:1000px) { #knowledge-base .kb-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media(max-width:600px) {
  #knowledge-base .wrap { width:calc(100% - 32px); }
  #knowledge-base .kb-grid { grid-template-columns:minmax(0,1fr) !important; }
  #knowledge-base .kb-hero { padding:24px 0 !important; }
  #knowledge-base h1 { font-size:28px !important; }
  #knowledge-base .kb-search-field { flex-wrap:wrap; }
  #knowledge-base .kb-filters { gap:8px; margin-bottom:28px; }
  #knowledge-base .kb-filter { padding:10px 12px; font-size:13px; }
  #knowledge-base .kb-card-body { padding:16px 18px 18px !important; }
}
@media(prefers-reduced-motion:reduce) { #knowledge-base .kb-card { transition:none; } }

/* Article illustrations keep the title in text, outside the image. */
#knowledge-base .kb-card{flex-direction:column;overflow:hidden}
#knowledge-base .kb-card-image{display:block!important;width:100%!important;height:144px!important;aspect-ratio:auto;object-fit:contain;padding:12px 20px 0;background:transparent;margin:0!important;border:0;border-radius:0!important}
#knowledge-base .kb-card-body{flex:1}
@media(max-width:600px){#knowledge-base .kb-card-image{height:152px!important}}
