/* =========================================================
   K-TERM 2026 — Znalostní báze (statické články)
   Loaded ON TOP of shared ../styles.css.
   ========================================================= */

.znalosti-body { background: #F3F5F8; }

/* ---------- Page header ---------- */
.kb-header {
  background: #fff;
  border-bottom: 1px solid var(--k-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(6,42,79,0.04);
}
.kb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.kb-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #062A4F;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px 6px 6px;
  border-radius: 6px;
  transition: background 150ms ease;
}
.kb-back:hover { background: #F0F3F7; color: #0E7FB8; }
.kb-header-logo img { height: 38px; display: block; }
.kb-cta {
  background: #D97706;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  transition: background 150ms ease;
}
.kb-cta:hover { background: #B45309; }

/* ---------- Hero ---------- */
.kb-hero {
  padding: 72px 0 28px;
  background: linear-gradient(180deg, #fff 0%, #F3F5F8 100%);
  text-align: center;
}
.kb-hero .caption {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0E7FB8;
  font-weight: 700;
}
.kb-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: #062A4F;
  margin: 12px auto 16px;
  max-width: 760px;
  text-wrap: balance;
}
.kb-hero-sub {
  font-size: 16px;
  color: #3D4551;
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto;
}

/* ---------- Categories ---------- */
.kb-categories {
  padding: 24px 0 8px;
  position: sticky;
  top: 65px;
  background: #F3F5F8;
  z-index: 40;
}
.kb-cat-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.kb-cat {
  background: #fff;
  border: 1px solid var(--k-border);
  color: #062A4F;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 150ms ease;
}
.kb-cat:hover { border-color: #B6D5E8; }
.kb-cat.active {
  background: #062A4F;
  border-color: #062A4F;
  color: #fff;
}

/* ---------- Article grid ---------- */
.kb-articles { padding: 28px 0 56px; }
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.kb-card {
  background: #fff;
  border: 1px solid var(--k-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 200ms ease;
  color: inherit;
}
a.kb-card:hover {
  transform: translateY(-3px);
  border-color: #B6D5E8;
  box-shadow: 0 10px 24px -14px rgba(14,127,184,0.25);
}
.kb-card-soon {
  opacity: 0.6;
  cursor: not-allowed;
}
.kb-card-img {
  height: 140px;
  position: relative;
  overflow: hidden;
}
.kb-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.1) 100%);
}
.kb-img-energy {
  background: linear-gradient(135deg, #B6D5E8 0%, #7AC4E5 50%, #FAF4D0 100%);
}
.kb-img-acoustic {
  background: linear-gradient(135deg, #FAB87A 0%, #C45A1F 100%);
}
.kb-img-krypton {
  background: linear-gradient(135deg, #DBCFEF 0%, #8E6BC4 100%);
}
.kb-img-safety {
  background: linear-gradient(135deg, #4B7EA0 0%, #062A4F 100%);
}
.kb-img-cgp {
  background: linear-gradient(135deg, #C8E0EB 0%, #5FA6C8 100%);
}
.kb-img-dim {
  background:
    linear-gradient(135deg, #E0EEF5 0%, #95C9E0 100%),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(8,84,128,0.08) 19px 20px);
  background-blend-mode: multiply;
}
.kb-img-skn {
  background: linear-gradient(135deg, #6BA8D6 0%, #2D5C7E 50%, #C8E0EB 100%);
}
.kb-img-vsg {
  background:
    linear-gradient(180deg, #E0EEF5 0%, #C8E0EB 30%, #FFE7A6 35%, #C8E0EB 40%, #E0EEF5 100%);
}
.kb-img-railing {
  background: linear-gradient(135deg, #2D5C7E 0%, #062A4F 70%, #4B7EA0 100%);
}
.kb-img-quality {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 30%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.3), transparent 25%),
    linear-gradient(135deg, #95C9E0 0%, #5FA6C8 100%);
}
.kb-img-care {
  background: linear-gradient(135deg, #FFE7D6 0%, #FAB87A 50%, #C45A1F 100%);
}
.kb-img-rc {
  background:
    linear-gradient(135deg, #2F7D4A 0%, #1E5E33 60%, #0F4220 100%),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.04) 10px 20px);
  background-blend-mode: overlay;
}
.kb-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.kb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.kb-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.kb-tag-coatings  { background: #E6F2FA; color: #0E7FB8; }
.kb-tag-thermal   { background: #E7F3EA; color: #16A34A; }
.kb-tag-acoustic  { background: #FFE7D6; color: #C45A1F; }
.kb-tag-safety    { background: #E8EDF2; color: #062A4F; }
.kb-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: #062A4F;
  margin: 4px 0 0;
  line-height: 1.3;
}
.kb-card-body p {
  margin: 0;
  font-size: 14px;
  color: #3D4551;
  line-height: 1.55;
}
.kb-readmore {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0E7FB8;
  letter-spacing: -0.005em;
}
a.kb-card:hover .kb-readmore { color: #062A4F; }
.kb-soon {
  margin-top: auto;
  padding-top: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B7280;
  font-weight: 600;
}

/* ---------- Article page styles ---------- */
.kb-article {
  background: #fff;
  padding: 56px 0 80px;
  border-bottom: 1px solid var(--k-border);
}
.kb-article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.kb-art-category {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0E7FB8;
  font-weight: 700;
}
.kb-art-h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.024em;
  color: #062A4F;
  line-height: 1.15;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.kb-art-lede {
  font-size: 19px;
  line-height: 1.6;
  color: #3D4551;
  margin: 0 0 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--k-border);
}
.kb-art-section {
  margin: 36px 0;
}
.kb-art-section h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: #062A4F;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kb-art-section h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #0E7FB8 0%, #062A4F 100%);
  border-radius: 2px;
}
.kb-art-section p {
  font-size: 16.5px;
  line-height: 1.7;
  color: #1F2328;
  margin: 0 0 14px;
}
.kb-art-section p strong { color: #062A4F; }

/* Pro / Con bullet lists */
.kb-bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kb-bullets li {
  padding: 16px 18px 16px 50px;
  background: #F8FAFC;
  border-left: 3px solid #0E7FB8;
  border-radius: 4px;
  position: relative;
}
.kb-bullets li::before {
  content: '✓';
  position: absolute;
  left: 18px;
  top: 16px;
  font-weight: 700;
  color: #16A34A;
  font-size: 16px;
}
.kb-bullets strong {
  display: block;
  color: #062A4F;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.008em;
  margin-bottom: 4px;
}
.kb-bullets span {
  display: block;
  font-size: 14.5px;
  color: #3D4551;
  line-height: 1.55;
}

/* Specs table */
.kb-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--k-border);
  border-radius: 8px;
  overflow: hidden;
}
.kb-table th, .kb-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--k-border-soft);
}
.kb-table th {
  background: #F8FAFC;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B7280;
  font-weight: 700;
}
.kb-table tr:last-child td { border-bottom: none; }
.kb-table td:last-child {
  font-weight: 700;
  color: #062A4F;
  font-family: "JetBrains Mono", monospace;
}

/* Use cases bullet list */
.kb-uses {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 640px) { .kb-uses { grid-template-columns: 1fr; } }
.kb-uses li {
  padding: 12px 16px 12px 38px;
  background: #fff;
  border: 1px solid var(--k-border);
  border-radius: 6px;
  position: relative;
  font-size: 14.5px;
  color: #1F2328;
}
.kb-uses li::before {
  content: '→';
  position: absolute;
  left: 14px;
  top: 11px;
  color: #0E7FB8;
  font-weight: 700;
}

/* Conclusion / "Why choose" */
.kb-why {
  background: linear-gradient(120deg, #062A4F 0%, #0E7FB8 100%);
  color: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
}
.kb-why h2 {
  color: #fff;
  margin: 0 0 14px;
}
.kb-why h2::before {
  background: rgba(255,255,255,0.4);
}
.kb-why ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kb-why li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  line-height: 1.55;
}
.kb-why li::before {
  content: '➜';
  position: absolute;
  left: 0;
  top: 7px;
  color: #7AC4E5;
  font-weight: 700;
}

/* K-Term tip box */
.kb-tip {
  background: #FFF7E6;
  border: 1px solid #FAD588;
  border-left: 4px solid #D97706;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1F2328;
}
.kb-tip strong {
  color: #92400E;
  font-weight: 700;
}

/* Article footer / related links */
.kb-related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--k-border);
}
.kb-related h3 {
  font-size: 14px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B7280;
  font-weight: 700;
  margin: 0 0 16px;
}
.kb-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 640px) { .kb-related-grid { grid-template-columns: 1fr; } }
.kb-related-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: #F8FAFC;
  border: 1px solid var(--k-border);
  border-radius: 8px;
  text-decoration: none;
  color: #062A4F;
  transition: all 150ms ease;
}
.kb-related-link:hover {
  border-color: #0E7FB8;
  background: #F0F7FB;
  transform: translateX(2px);
}
.kb-related-link .rl-arrow {
  font-size: 20px;
  color: #0E7FB8;
  flex-shrink: 0;
  margin-top: -2px;
}
.kb-related-link .rl-body strong {
  display: block;
  font-size: 14.5px;
  letter-spacing: -0.008em;
}
.kb-related-link .rl-body span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #6B7280;
  font-weight: 400;
}

/* Disclaimer paragraph at the end of each article */
.kb-art-disclaimer {
  margin-top: 40px;
  padding: 14px 18px;
  background: #FFF7E6;
  border: 1px solid #FAD588;
  border-left: 3px solid #D97706;
  border-radius: 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #5C3A0C;
}
.kb-art-disclaimer strong { color: #92400E; }

/* Page footer */
.kb-page-footer {
  margin-top: auto;
  padding: 32px 0;
  background: #062A4F;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.kb-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.kb-page-footer strong { color: #fff; }
.kb-page-footer a {
  color: #7AC4E5;
  font-weight: 600;
  text-decoration: none;
}
.kb-page-footer a:hover { color: #fff; }
.kb-page-footer .kb-back {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
}
.kb-page-footer .kb-back:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ---------- Article FAQ (static <details> accordion) ---------- */
.kb-faq {
  margin: 40px 0 8px;
  padding-top: 32px;
  border-top: 1px solid var(--k-border, #E4E7EA);
}
.kb-faq > h2 {
  font-size: 24px;
  color: #062A4F;
  margin: 0 0 18px;
}
.kb-faq-item {
  border: 1px solid var(--k-border, #E4E7EA);
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}
.kb-faq-item[open] {
  border-color: #C8E0EB;
  box-shadow: 0 4px 16px rgba(8, 84, 128, 0.06);
}
.kb-faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  color: #062A4F;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.kb-faq-item > summary::-webkit-details-marker { display: none; }
.kb-faq-item > summary::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #E8F3FA;
  color: #085480;
  font-size: 17px;
  font-weight: 500;
}
.kb-faq-item[open] > summary::after { content: '\2212'; }
.kb-faq-item > summary:hover { color: #085480; }
.kb-faq-a {
  padding: 0 20px 18px;
}
.kb-faq-a p {
  margin: 0;
  color: #4A5560;
  font-size: 15.5px;
  line-height: 1.7;
}
