/* Step 192 — knowledge navigation, stable share counters and approved mobile news flow. */

/* Knowledge home: categories belong to the main content, including empty ones. */
.kb-home-sections { margin: 28px 0 32px; }
.kb-home-sections__head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:14px; }
.kb-home-sections__head h2 { margin:2px 0 0; color:#111827; font:500 28px/1.15 var(--st190-serif, Georgia, serif); }
.kb-home-sections__head > a { color:var(--st190-red, #d7193f); font:500 14px/1.2 var(--st190-sans, Arial, sans-serif); text-decoration:none; }
.kb-home-sections__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.kb-home-section-card { min-width:0; overflow:hidden; border:1px solid #e0e4ea; border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(15,23,42,.035); }
.kb-home-section-card__main { display:grid; grid-template-columns:54px minmax(0,1fr) 24px; gap:13px; align-items:center; min-height:84px; padding:14px; color:#111827; text-decoration:none; }
.kb-home-section-card__icon,.kb-home-section-card__image { display:grid; place-items:center; width:54px; height:54px; overflow:hidden; border-radius:13px; background:#f1f4f8; color:var(--kb-card-accent,var(--st190-red,#d7193f)); font-size:26px; }
.kb-home-section-card__image img { width:100%; height:100%; object-fit:cover; }
.kb-home-section-card__copy { display:grid; gap:4px; min-width:0; }
.kb-home-section-card__copy strong { color:#171b24; font:600 17px/1.25 var(--st190-sans,Arial,sans-serif); overflow-wrap:anywhere; }
.kb-home-section-card__copy small { color:#6f7785; font:400 13px/1.3 var(--st190-sans,Arial,sans-serif); }
.kb-home-section-card__arrow { color:var(--kb-card-accent,var(--st190-red,#d7193f)); font:400 22px/1 Arial,sans-serif; }
.kb-home-section-card__children { display:flex; flex-wrap:wrap; gap:7px; padding:0 14px 14px 81px; }
.kb-home-section-card__children a { padding:6px 9px; border:1px solid #e1e5eb; border-radius:999px; background:#fafbfc; color:#343a46; font:400 12px/1.2 var(--st190-sans,Arial,sans-serif); text-decoration:none; }
.kb-home-section-card__main:hover strong,.kb-home-section-card__children a:hover { color:var(--st190-red,#d7193f); }

/* Share row: badges remain attached to their own button and never collide. */
.article-share-panel.share-icon-strip { overflow:visible !important; }
.article-share-panel.share-icon-strip .share-panel-title { display:flex !important; align-items:center !important; gap:10px !important; }
.article-share-panel.share-icon-strip .share-panel-title > span { color:#303744 !important; font-weight:700 !important; }
.article-share-panel.share-icon-strip .share-panel-title > a { margin-left:auto; color:#c51f3f !important; font-size:12px !important; font-weight:650 !important; letter-spacing:0 !important; text-transform:none !important; text-decoration:none !important; }
.article-share-panel.share-icon-strip .ss-btn { position:relative !important; overflow:visible !important; }
.article-share-panel.share-icon-strip .share-platform-count { position:absolute !important; z-index:2 !important; top:-7px !important; right:-7px !important; display:grid !important; place-items:center !important; min-width:18px !important; height:18px !important; padding:0 4px !important; border:2px solid #fff !important; border-radius:999px !important; background:#c91838 !important; color:#fff !important; font:700 10px/1 Arial,sans-serif !important; box-sizing:border-box !important; }
.article-share-panel.share-icon-strip .share-platform-count[hidden] { display:none !important; }

/* A visible, real social destination instead of placeholder links. */
.site-footer .footer-social-column h4 { color:#111827; }
.site-footer .footer-socials { display:flex; flex-wrap:wrap; gap:8px; }
.site-footer .footer-socials a { width:auto !important; min-width:44px; height:38px; padding:0 12px; border:1px solid #d8dee7; border-radius:9px; background:#fff; color:#202733 !important; font:600 13px/1 Arial,sans-serif; text-decoration:none; }
.site-footer .footer-socials a:hover { border-color:#c91838; color:#c91838 !important; }

@media (max-width:640px) {
  .kb-home-sections { margin:24px 0 28px; }
  .kb-home-sections__head h2 { font-size:24px; }
  .kb-home-sections__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .kb-home-section-card { border-radius:12px; }
  .kb-home-section-card__main { display:flex; align-items:flex-start; min-height:126px; padding:12px; flex-direction:column; gap:8px; }
  .kb-home-section-card__icon,.kb-home-section-card__image { width:46px; height:46px; border-radius:11px; font-size:23px; }
  .kb-home-section-card__copy strong { font-size:15px; line-height:1.22; }
  .kb-home-section-card__copy small { font-size:12px; }
  .kb-home-section-card__arrow { display:none; }
  .kb-home-section-card__children { display:none; }

  /* Image floats; long headlines continue below it at full card width. */
  .news190-rail-item,.news190-row { display:block !important; min-height:106px; padding:12px 48px 12px 0 !important; }
  .news190-rail-image,.news190-row-image { float:left; width:108px !important; height:82px !important; margin:0 12px 5px 0; }
  .news190-rail-item > div,.news190-row-copy { display:block; min-width:0; }
  .news190-rail-item h3,.news190-row-copy h2,.news190-row-copy h3 { margin-top:4px; font-weight:500; }
  .news190-rail-item::after,.news190-row::after { content:""; display:block; clear:both; }
  .news190-hero-copy > p { display:-webkit-box; overflow:hidden; color:#343941; font-weight:400; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
  .article-share-panel.share-icon-strip .share-panel-title { flex-wrap:wrap !important; }
  .article-share-panel.share-icon-strip .share-panel-title > a { margin-left:0; }
}
