/* ==========================================================================
   4net-kb-v1.css — ცოდნის ბაზის სტატიის გვერდის დიზაინი (prefix: kb-)
   იგივე დიზაინ-სისტემა რაც დანარჩენ გვერდებზე (pink #FD0B5F / navy #101B45)
   ========================================================================== */

:root{
  --kb-pink:#FD0B5F;
  --kb-pink-soft:#FFE8F0;
  --kb-navy:#101B45;
  --kb-muted:#7C87A6;
  --kb-border:#E9EDF6;
  --kb-bg:#F3F8FC;
}

.kb{ max-width:1240px; margin:0 auto; padding:28px 24px 60px; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans Georgian',sans-serif; color:var(--kb-navy); }
.kb .icon{ width:1em; height:1em; display:inline-block; vertical-align:-0.125em; fill:currentColor; }

/* ---- Hero ---- */
.kb-hero{ display:flex; gap:22px; align-items:flex-start; background:linear-gradient(135deg,#FFF0F6 0%,#F3F8FC 70%); border:1px solid var(--kb-border); border-radius:24px; padding:28px 32px; margin-bottom:22px; }
.kb-hero-icon{ flex:0 0 auto; width:64px; height:64px; border-radius:18px; background:var(--kb-pink); display:flex; align-items:center; justify-content:center; box-shadow:0 10px 26px rgba(253,11,95,.25); }
.kb-hero-icon .icon{ width:32px; height:32px; color:#fff; }
.kb-hero-text h1{ font-size:26px; font-weight:900; margin:4px 0 8px; line-height:1.25; }
.kb-hero-sub{ color:var(--kb-muted); font-size:14.5px; margin:0; max-width:760px; }
.kb-crumb{ display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--kb-muted); margin-bottom:6px; }
.kb-crumb a{ color:var(--kb-muted); text-decoration:none; }
.kb-crumb a:hover{ color:var(--kb-pink); }
.kb-crumb strong{ color:var(--kb-navy); font-weight:700; }
.kb-crumb b{ font-weight:400; }

/* ---- Toolbar ---- */
.kb-toolbar{ display:flex; gap:14px; align-items:center; margin-bottom:22px; flex-wrap:wrap; }
.kb-search{ flex:1 1 320px; display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--kb-border); border-radius:999px; padding:12px 20px; color:var(--kb-muted); }
.kb-search input{ border:none; outline:none; flex:1; font-size:14px; color:var(--kb-navy); background:transparent; }
.kb-toolbar-actions{ display:flex; gap:10px; }
.kb-btn{ display:inline-flex; align-items:center; gap:8px; border-radius:999px; padding:12px 20px; font-size:13.5px; font-weight:700; border:none; cursor:pointer; white-space:nowrap; }
.kb-btn-outline{ background:#fff; border:1px solid var(--kb-border); color:var(--kb-navy); }
.kb-btn-outline:hover{ border-color:var(--kb-pink); color:var(--kb-pink); }
.kb-btn-pink{ background:var(--kb-pink); color:#fff; box-shadow:0 8px 18px rgba(253,11,95,.25); }
.kb-btn-pink:hover{ background:#e00a55; }

/* ---- Layout ---- */
.kb-layout{ display:grid; grid-template-columns:280px 1fr; gap:24px; align-items:start; }
@media (max-width:900px){ .kb-layout{ grid-template-columns:1fr; } .kb-side{ order:2; } }

.kb-side{ display:flex; flex-direction:column; gap:16px; position:sticky; top:20px; }
.kb-side-card{ background:#fff; border:1px solid var(--kb-border); border-radius:18px; padding:18px 18px; box-shadow:0 8px 24px rgba(16,27,69,.04); }
.kb-side-card h4{ font-size:13px; text-transform:uppercase; letter-spacing:.03em; color:var(--kb-muted); margin:0 0 12px; font-weight:800; }

.kb-toc{ display:flex; flex-direction:column; gap:2px; }
.kb-toc a{ display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:12px; color:var(--kb-navy); text-decoration:none; font-size:13.5px; font-weight:600; }
.kb-toc a:hover{ background:var(--kb-bg); }
.kb-toc a.active{ background:var(--kb-pink-soft); color:var(--kb-pink); }
.kb-toc-num{ flex:0 0 auto; width:22px; height:22px; border-radius:50%; background:var(--kb-bg); color:var(--kb-muted); font-size:11.5px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.kb-toc a.active .kb-toc-num{ background:var(--kb-pink); color:#fff; }
.kb-toc-empty{ color:var(--kb-muted); font-size:13px; margin:0; }

.kb-cat-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.kb-cat-list a{ display:block; padding:8px 10px; border-radius:12px; color:var(--kb-navy); text-decoration:none; font-size:13.5px; font-weight:600; }
.kb-cat-list a span{ color:var(--kb-muted); font-weight:500; }
.kb-cat-list li.active a{ background:var(--kb-pink-soft); color:var(--kb-pink); }
.kb-cat-list a:hover{ background:var(--kb-bg); }

.kb-help{ background:var(--kb-navy); border-radius:18px; padding:20px 18px; color:#fff; }
.kb-help h4{ margin:0 0 6px; font-size:14.5px; font-weight:800; }
.kb-help p{ margin:0 0 14px; font-size:12.5px; color:#B9C1DE; }
.kb-help-btn{ display:inline-flex; align-items:center; gap:6px; background:var(--kb-pink); color:#fff; border-radius:999px; padding:10px 18px; font-size:13px; font-weight:700; text-decoration:none; }
.kb-help-btn:hover{ background:#e00a55; }

/* ---- Main content ---- */
.kb-card{ background:#fff; border:1px solid var(--kb-border); border-radius:20px; padding:30px 34px; margin-bottom:18px; box-shadow:0 8px 24px rgba(16,27,69,.04); }

.kb-article-content{ font-size:14.5px; line-height:1.85; color:#344159; }
.kb-article-content p{ margin:0 0 14px; }
.kb-article-content a{ color:var(--kb-pink); }

.kb-article-content p.kb-section-head{
  display:flex; align-items:center; gap:12px;
  font-size:18px; font-weight:800; color:var(--kb-navy);
  margin:30px 0 14px; padding-top:14px; border-top:1px solid var(--kb-border);
  scroll-margin-top:110px;
}
.kb-article-content p.kb-section-head:first-child{ border-top:none; padding-top:0; margin-top:0; }
.kb-section-num{
  flex:0 0 auto; width:30px; height:30px; border-radius:10px;
  background:var(--kb-pink); color:#fff; font-size:14px; font-weight:800;
  display:flex; align-items:center; justify-content:center;
}

/* ---- Vote widget ---- */
.kb-vote{ text-align:center; }
.kb-vote h4{ margin:0 0 14px; font-size:15px; font-weight:800; }
.kb-vote-btns{ display:flex; gap:12px; justify-content:center; }

/* ---- Related articles ---- */
.kb-related h3{ font-size:16px; font-weight:800; margin:4px 0 14px; }
.kb-related-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; }
.kb-related-card{ display:block; background:#fff; border:1px solid var(--kb-border); border-radius:16px; padding:16px 18px; text-decoration:none; box-shadow:0 6px 18px rgba(16,27,69,.04); }
.kb-related-card:hover{ border-color:var(--kb-pink); }
.kb-related-card h5{ margin:0; font-size:13.5px; font-weight:700; color:var(--kb-navy); line-height:1.4; }

/* ---- Print ---- */
@media print{
  .kb-hero, .kb-toolbar, .kb-side, .kb-vote, .kb-related{ display:none !important; }
  .kb-layout{ display:block; }
  .kb-card{ box-shadow:none; border:none; padding:0; }
}
