/* WTP Finance — Knowledge Base scoped styles.
   SSOT: publishing/knowledge-base/wtp-kb.css. Paste into Appearance → Customize →
   Additional CSS (one-time, WP-native; no plugin/infra — DEC-026). Scoped to .wtp-kb
   so it never touches the rest of the theme. The page title (H1) is theme-rendered
   above this wrapper; everything below is styled here. */

.wtp-kb{max-width:780px;margin:6px 0 0;color:#26303c;font-size:16px;line-height:1.65;
  font-family:inherit;-webkit-font-smoothing:antialiased}
.wtp-kb a{color:#0b7a6b;text-decoration:none}
.wtp-kb a:hover{text-decoration:underline}

/* ============ HUB ============ */
.wtp-kb-hub .kb-lead{font-size:17px;line-height:1.6;color:#46525f;margin:2px 0 32px;max-width:680px}
.wtp-kb-hub .kb-sec{margin:0 0 34px}
.wtp-kb-hub .kb-sec>h2{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;
  color:#0b7a6b;margin:0 0 14px;padding-bottom:9px;border-bottom:2px solid #e7ebef}
.wtp-kb-hub .kb-sec-intro{font-size:14.5px;line-height:1.55;color:#5b6776;margin:-2px 0 16px;max-width:660px}
.wtp-kb-hub .kb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.wtp-kb-hub .kb-card{display:block;border:1px solid #e7ebef;border-radius:12px;padding:13px 15px;background:#fff;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.wtp-kb-hub .kb-card:hover{border-color:#bfe0d9;box-shadow:0 4px 14px rgba(11,122,107,.09);
  transform:translateY(-1px);text-decoration:none}
.wtp-kb-hub .kb-card .t{display:block;font-weight:700;color:#16202c;font-size:15px;line-height:1.3}
.wtp-kb-hub .kb-card .d{display:block;font-size:12.5px;line-height:1.45;color:#69757f;margin-top:4px}

/* ============ ARTICLE ============ */
.wtp-kb-article{max-width:720px}
.wtp-kb-article .kb-tldr{background:#eef7f5;border-left:3px solid #0b7a6b;border-radius:0 10px 10px 0;
  padding:14px 17px;margin:4px 0 24px;font-size:16px;line-height:1.55;color:#1d3b35}
.wtp-kb-article>p{margin:0 0 16px}
/* section headings (## in source). Without this they inherit the theme's large default
   margins -> a big gap to the green sub-label below. Keep top airy, bottom tight. */
.wtp-kb-article h2{font-size:20px;font-weight:800;line-height:1.3;color:#16202c;margin:30px 0 8px}
.wtp-kb-article h2:first-child{margin-top:6px}
/* labeled definition paragraphs: "Label: value" -> label becomes a small green lead-in */
.wtp-kb-article>p>strong:first-child{display:block;font-size:12px;font-weight:800;text-transform:uppercase;
  letter-spacing:.5px;color:#0b7a6b;margin-bottom:3px}
/* a green label immediately under a section heading sits tight (no double gap) */
.wtp-kb-article h2+p>strong:first-child{margin-top:0}
.wtp-kb-article .kb-related{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;
  margin:24px 0 0;padding:15px 0 0;border-top:1px solid #eef0f3}
.wtp-kb-article .kb-related .kb-rl{font-size:11.5px;font-weight:800;text-transform:uppercase;
  letter-spacing:.5px;color:#8a94a0}
.wtp-kb-article .kb-note{font-size:13px;line-height:1.5;color:#5b6776;background:#f6f7f9;border-radius:10px;
  padding:12px 14px;margin:20px 0 0}
.wtp-kb-article .kb-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;
  margin:28px 0 0;padding:18px 0 0;border-top:1px solid #e7ebef}
.wtp-kb-article .kb-foot a{display:inline-block;font-weight:700;font-size:14px;border-radius:9px;padding:9px 16px}
.wtp-kb-article .kb-foot .kb-back{color:#46525f;background:#f1f3f5}
.wtp-kb-article .kb-foot .kb-back:hover{background:#e7ebef;text-decoration:none}
.wtp-kb-article .kb-foot .kb-cta{color:#fff;background:#0b7a6b}
.wtp-kb-article .kb-foot .kb-cta:hover{background:#096055;text-decoration:none}

@media (max-width:600px){
  .wtp-kb{font-size:15.5px}
  .wtp-kb-hub .kb-grid{grid-template-columns:1fr}
  .wtp-kb-article .kb-foot{flex-direction:column;align-items:stretch}
  .wtp-kb-article .kb-foot a{text-align:center}
}
