/* ============================================================
   KENNISBANK - Editorial header
   ============================================================ */
.kb-header {
  position: relative;
  padding-top: calc(var(--sec-pad-y) * 0.6 + 40px);
  padding-bottom: calc(var(--sec-pad-y) * 0.55);
  background: linear-gradient(180deg, #FCFDFF 0%, #F1F5FC 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.kb-header-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--neutral-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--neutral-100) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at 100% 0%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 0%, transparent 65%);
  pointer-events: none;
}
.kb-header-inner { position: relative; z-index: 2; }

.kb-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-subtle);
  margin-bottom: 36px;
}
.kb-crumbs a { color: var(--fg-muted); text-decoration: none; }
.kb-crumbs a:hover { color: var(--jobit-blue); text-decoration: underline; }
.kb-crumbs svg { color: var(--neutral-300); }
.kb-crumbs span { color: var(--fg-strong); }

/* Editorial split */
.kb-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-bottom: 44px;
}
.kb-editorial-text { min-width: 0; }

.kb-section-marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jobit-blue-700);
  margin-bottom: 22px;
}
.kb-section-marker-bar {
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--jobit-blue);
  border-radius: 2px;
  transform: rotate(18deg);
}
.kb-section-marker-bar:nth-child(1) { height: 10px; }
.kb-section-marker-bar:nth-child(2) { height: 14px; }
.kb-section-marker-bar:nth-child(3) { height: 18px; margin-right: 4px; }
.kb-section-marker-ring {
  display: inline-block;
  width: 10px; height: 10px;
  border: 2.5px solid var(--jobit-blue);
  border-radius: 999px;
  margin-right: 6px;
}

.kb-title {
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--fg-strong);
  margin: 0 0 22px;
  text-wrap: balance;
}
.kb-title em {
  font-style: normal;
  color: var(--jobit-blue);
  position: relative;
}
.kb-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 12px;
  background: var(--jobit-blue-100);
  z-index: -1;
  border-radius: 3px;
}
.kb-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 0 28px;
  max-width: 460px;
  text-wrap: pretty;
}

.kb-stats {
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}
.kb-stats > div { display: flex; flex-direction: column; gap: 2px; }
.kb-stats dt {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  font-feature-settings: "tnum";
  margin: 0;
}
.kb-stats-unit { font-size: 16px; font-weight: 700; color: var(--fg-muted); margin-left: 2px; }
.kb-stats dd {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0;
}

/* Featured article card */
.kb-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-md);
  transition: all var(--dur-base) var(--ease-out);
  overflow: hidden;
  --cat: var(--jobit-blue);
}
.kb-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(67,100,173,0.05) 100%);
  pointer-events: none;
  z-index: 0;
}
.kb-feature::after { display: none; }
.kb-feature:hover {
  transform: translateY(-3px);
  border-color: var(--jobit-blue-200);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.kb-feature > * { position: relative; z-index: 1; }

/* Featured media band */
.kb-feature-media {
  position: relative;
  height: 208px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--cat) 12%, #eef2f8);
  overflow: hidden;
}
.kb-feature-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 28px 22px;
}
.kb-feature-flag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jobit-blue);
  background: rgba(255,255,255,0.94);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  box-shadow: 0 2px 8px rgba(31,47,84,0.20);
}
.kb-feature-flag svg { color: var(--jobit-blue); }
.kb-feature-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.kb-feature-type {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-subtle);
}
.kb-feature-title {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 0 0 10px;
  text-wrap: balance;
}
.kb-feature:hover .kb-feature-title { color: var(--jobit-blue-700); }
.kb-feature-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.kb-feature-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.kb-feature-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
}
.kb-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--jobit-blue);
}
.kb-feature-cta svg { transition: transform var(--dur-base) var(--ease-out); }
.kb-feature:hover .kb-feature-cta svg { transform: translateX(4px); }

/* Prominent search bar */
.kb-searchbar {
  position: relative;
}
.kb-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 10px 18px 10px 26px;
  box-shadow: 0 16px 40px rgba(31,47,84,0.10), 0 1px 0 rgba(31,47,84,0.04);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  min-height: 64px;
}
.kb-search:focus-within {
  border-color: var(--jobit-blue);
  box-shadow: 0 20px 50px rgba(67,100,173,0.18), 0 0 0 4px rgba(67,100,173,0.10);
}
.kb-search-icon { color: var(--jobit-blue); flex-shrink: 0; }
.kb-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--fg-strong);
  padding: 12px 4px;
}
.kb-search-input::placeholder { color: var(--fg-subtle); font-weight: 400; }
.kb-search-clear {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--bg-muted);
  color: var(--fg-muted);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease-out);
}
.kb-search-clear:hover { background: var(--jobit-blue-50); color: var(--jobit-blue); }
.kb-search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-width: 26px;
  padding: 0 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.kb-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0 6px;
}
.kb-popular-lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-right: 4px;
}
.kb-popular-chip {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-strong);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.kb-popular-chip:hover {
  background: var(--jobit-blue-50);
  border-color: var(--jobit-blue-200);
  color: var(--jobit-blue-700);
  transform: translateY(-1px);
}

/* ============================================================
   KENNISBANK - Body layout
   ============================================================ */
.kb-body {
  padding-top: calc(var(--sec-pad-y) * 0.45);
  background: var(--bg);
}
/* CTA-band on the Blog page sits below the .kb-body section (--bg) -
   the divider arrow should match that section's background. Scoped to the
   Blog page so it does not leak onto other pages that load blog.css (e.g. the
   homepage, where the CTA band sits below the subtle AI section). */
.cta-band[data-divider-from]::after { background: var(--bg); }
.kb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  column-gap: 56px;
  row-gap: 0;
  align-items: start;
}
/* Toolbar + active-filter row stretch across both columns so the article
   cards (left) and the first sidebar card (right) share a top edge. */
.kb-toolbar { grid-column: 1 / -1; }
.kb-active  { grid-column: 1 / -1; }

/* ============================================================
   KENNISBANK - Toolbar (count + recency note)
   ============================================================ */
.kb-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.kb-toolbar-count { font-size: 14px; color: var(--fg-muted); }
.kb-toolbar-count strong { color: var(--fg-strong); font-weight: 800; font-size: 18px; margin-right: 2px; }
.kb-toolbar-in em { font-style: normal; font-weight: 700; color: var(--jobit-blue); }
.kb-toolbar-note {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

/* ============================================================
   KENNISBANK - Active filter chips
   ============================================================ */
.kb-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.kb-active-lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-right: 2px;
}
.kb-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-strong);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.kb-chip-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--jobit-blue);
}
.kb-chip-active {
  background: var(--jobit-blue);
  border-color: var(--jobit-blue);
  color: white;
}
.kb-chip-active .kb-chip-dot { background: white; }
.kb-chip-active:hover { background: var(--jobit-blue-600); border-color: var(--jobit-blue-600); }
.kb-active-clear {
  margin-left: 4px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--jobit-blue);
  cursor: pointer;
  padding: 6px 4px;
  transition: color var(--dur-fast) var(--ease-out);
}
.kb-active-clear:hover { color: var(--jobit-blue-700); text-decoration: underline; }

/* ============================================================
   KENNISBANK - Article cards grid
   ============================================================ */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
  --cat: var(--jobit-blue);
}
.blog-card-trends             { --cat: #4364AD; }
.blog-card-arbeidsmarkt       { --cat: #D9544B; }
.blog-card-product            { --cat: #2A4071; }
.blog-card-klantverhalen      { --cat: #2E9D6F; }
.blog-card-werkgevers         { --cat: #E8A53B; }
.blog-card-werkzoekenden      { --cat: #6884C0; }
.blog-card-tech               { --cat: #36528E; }
.blog-card-achter-de-schermen { --cat: #1F2F54; }

/* category --cat setters shared with the featured card media */
.kb-cat-trends             { --cat: #4364AD; }
.kb-cat-arbeidsmarkt       { --cat: #D9544B; }
.kb-cat-product            { --cat: #2A4071; }
.kb-cat-klantverhalen      { --cat: #2E9D6F; }
.kb-cat-werkgevers         { --cat: #E8A53B; }
.kb-cat-werkzoekenden      { --cat: #6884C0; }
.kb-cat-tech               { --cat: #36528E; }
.kb-cat-achter-de-schermen { --cat: #1F2F54; }

.blog-card:hover {
  border-color: color-mix(in srgb, var(--cat) 42%, var(--border));
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}

/* Cover image */
.blog-card-media {
  position: relative;
  width: 100%;
  height: 172px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--cat) 12%, #eef2f8);
  overflow: hidden;
}
.blog-card-media image-slot,
.kb-feature-media image-slot {
  display: block;
  width: 100%;
  height: 100%;
}
.blog-card-media image-slot::part(frame),
.kb-feature-media image-slot::part(frame) {
  background: transparent;
  border-radius: 0;
}
.blog-card-media image-slot::part(empty),
.kb-feature-media image-slot::part(empty) {
  color: color-mix(in srgb, var(--cat) 60%, #5a6678);
}
.blog-card-media image-slot::part(ring),
.kb-feature-media image-slot::part(ring) {
  border-color: color-mix(in srgb, var(--cat) 32%, rgba(31,47,84,0.16));
}
/* category badge over the image */
.blog-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
  background: var(--cat);
  padding: 6px 11px;
  border-radius: var(--r-pill);
  box-shadow: 0 2px 8px rgba(31,47,84,0.20);
}
/* card body */
.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 22px 18px;
}
.blog-card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat);
  margin-bottom: 9px;
}
.kb-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.kb-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--jobit-blue-700);
  background: var(--jobit-blue-50);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  position: relative;
}
.kb-card-cat::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--jobit-blue);
}
.kb-card-cat-trends::before             { background: #4364AD; }
.kb-card-cat-arbeidsmarkt::before       { background: #D9544B; }
.kb-card-cat-product::before            { background: #2A4071; }
.kb-card-cat-klantverhalen::before      { background: #2E9D6F; }
.kb-card-cat-werkgevers::before         { background: #E8A53B; }
.kb-card-cat-werkzoekenden::before      { background: #6884C0; }
.kb-card-cat-tech::before               { background: #36528E; }
.kb-card-cat-achter-de-schermen::before { background: #1F2F54; }
.kb-card-type {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-subtle);
}
.kb-card-title {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 0 0 8px;
  text-wrap: balance;
}
.blog-card:hover .kb-card-title { color: var(--jobit-blue-700); }
.kb-card-excerpt {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.kb-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.kb-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--bg-subtle);
  padding: 4px 9px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.kb-tag:hover {
  background: var(--jobit-blue-50);
  color: var(--jobit-blue-700);
}
.kb-tag.is-active {
  background: var(--jobit-blue);
  color: white;
}
.kb-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-subtle);
}
.kb-card-dot { color: var(--neutral-300); }
.kb-card-read { display: inline-flex; align-items: center; gap: 5px; }
.kb-card-arrow {
  margin-left: auto;
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-subtle);
  border-radius: var(--r-pill);
  color: var(--cat);
  transition: all var(--dur-base) var(--ease-out);
}
.blog-card:hover .kb-card-arrow {
  background: var(--cat);
  color: white;
  transform: translateX(2px);
}

/* ============================================================
   KENNISBANK - Empty state
   ============================================================ */
.kb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
}
.kb-empty-icon {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  color: var(--jobit-blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.kb-empty h3 { font-size: 22px; margin: 0 0 6px; color: var(--fg-strong); font-weight: 800; }
.kb-empty p  { color: var(--fg-muted); margin: 0 0 18px; }

/* ============================================================
   KENNISBANK - Sidebar
   ============================================================ */
.kb-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.kb-side-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 20px;
}
.kb-side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.kb-side-head h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jobit-blue-700);
  margin: 0;
}
.kb-side-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-subtle);
}
.kb-side-reset {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--jobit-blue);
  cursor: pointer;
  padding: 0;
}
.kb-side-reset:hover { text-decoration: underline; }

/* Category list */
.kb-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.kb-cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 10px;
  margin: 0 -10px;
  border-radius: var(--r-md);
  font-family: inherit;
  cursor: pointer;
  color: var(--fg);
  transition: background var(--dur-fast) var(--ease-out);
}
.kb-cat-row:hover { background: var(--bg-subtle); }
.kb-cat-row.is-active {
  background: var(--jobit-blue-50);
}
.kb-cat-row.is-active .kb-cat-name { color: var(--jobit-blue-700); }
.kb-cat-row.is-active .kb-cat-num {
  background: var(--jobit-blue);
  color: white;
}
.kb-cat-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--jobit-blue);
}
.kb-cat-mark-trends             { background: #4364AD; }
.kb-cat-mark-arbeidsmarkt       { background: #D9544B; }
.kb-cat-mark-product            { background: #2A4071; }
.kb-cat-mark-klantverhalen      { background: #2E9D6F; }
.kb-cat-mark-werkgevers         { background: #E8A53B; }
.kb-cat-mark-werkzoekenden      { background: #6884C0; }
.kb-cat-mark-tech               { background: #36528E; }
.kb-cat-mark-achter-de-schermen { background: #1F2F54; }
.kb-cat-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.kb-cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-strong);
}
.kb-cat-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-subtle);
  margin-top: 2px;
}
.kb-cat-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  background: var(--bg-subtle);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  flex-shrink: 0;
  min-width: 28px;
  text-align: center;
  transition: all var(--dur-fast) var(--ease-out);
}

/* Tag cloud */
.kb-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kb-tag-btn {
  display: inline-block;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 5px 11px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.kb-tag-btn:hover {
  background: var(--jobit-blue-50);
  color: var(--jobit-blue-700);
  border-color: var(--jobit-blue-100);
}
.kb-tag-btn.is-active {
  background: var(--jobit-blue);
  border-color: var(--jobit-blue);
  color: white;
}

/* Help card */
.kb-side-help {
  background: linear-gradient(160deg, var(--jobit-blue-700), var(--jobit-blue));
  border: none;
  color: white;
}
.kb-side-help-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14);
  border-radius: 12px;
  margin-bottom: 12px;
}
.kb-side-help h4 {
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.kb-side-help p {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  margin: 0 0 14px;
}
.kb-side-help .btn {
  background: white;
  color: var(--jobit-blue-700);
  font-size: 13px;
  padding: 9px 14px;
}
.kb-side-help .btn:hover {
  background: var(--jobit-blue-50);
  transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .kb-layout { grid-template-columns: 1fr; gap: 40px; }
  .kb-sidebar { position: relative; top: 0; order: 2; }
  .kb-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .kb-side-help { grid-column: span 2; }
}
@media (max-width: 980px) {
  .kb-editorial { grid-template-columns: 1fr; gap: 36px; align-items: stretch; }
  .kb-feature { max-width: 560px; }
  .kb-stats { gap: 28px; }
  .kb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .kb-sidebar { grid-template-columns: 1fr; }
  .kb-side-help { grid-column: span 1; }
  .kb-toolbar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .kb-search { flex-wrap: nowrap; padding: 8px 14px 8px 20px; min-height: 56px; }
  .kb-search-input { font-size: 15px; }
  .kb-search-kbd { display: none; }
  .kb-stats { gap: 20px; }
  .kb-stats dt { font-size: 24px; }
}

/* ============================================================
   TWEAK · HERO = SPOTLIGHT
   ============================================================ */
.kb-header-spotlight {
  padding-top: calc(var(--sec-pad-y) * 0.7 + 40px);
  padding-bottom: calc(var(--sec-pad-y) * 0.65);
}
.kb-header-spotlight .kb-header-grid {
  mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 70%);
}
.kb-header-spotlight .kb-crumbs { justify-content: center; }
.kb-spotlight {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.kb-spotlight .kb-title {
  font-size: clamp(40px, 5.6vw, 72px);
  margin: 16px 0 16px;
}
.kb-spotlight .kb-sub {
  margin: 0 auto 40px;
  max-width: 560px;
  font-size: 18px;
}
.kb-spotlight .kb-searchbar { width: 100%; }
.kb-spotlight .kb-popular { justify-content: center; }
.kb-header-spotlight .kb-section-marker { margin-bottom: 10px; }

/* ============================================================
   TWEAK · HERO = MINIMAL
   ============================================================ */
.kb-header-minimal {
  padding-top: calc(var(--sec-pad-y) * 0.45 + 40px);
  padding-bottom: calc(var(--sec-pad-y) * 0.4);
  border-bottom: 1px solid var(--border);
  background: white;
}
.kb-header-minimal .kb-header-grid { display: none; }
/* No decorative grid to clip on the minimal header, so let the search results
   dropdown escape the header instead of being clipped by overflow: hidden. */
.kb-header-minimal { overflow: visible; }
.kb-header-minimal .kb-crumbs { margin-bottom: 20px; }
.kb-minimal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.kb-minimal-text { min-width: 0; }
.kb-header-minimal .kb-title {
  font-size: clamp(32px, 3.4vw, 44px);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.kb-title-dot { color: var(--jobit-blue); }
.kb-header-minimal .kb-sub {
  font-size: 14px;
  margin: 6px 0 0;
  color: var(--fg-subtle);
  letter-spacing: 0.01em;
}
.kb-header-minimal .kb-searchbar { width: 100%; }
.kb-header-minimal .kb-search { min-height: 52px; padding: 6px 16px 6px 22px; box-shadow: var(--shadow-sm); }
.kb-header-minimal .kb-search-input { font-size: 15px; padding: 10px 4px; }
@media (max-width: 780px) {
  .kb-minimal-row { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   TWEAK · LAYOUT = LIST
   ============================================================ */
.kb-grid-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kb-grid-list .blog-card {
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
}
.kb-grid-list .blog-card-media {
  width: 232px;
  height: auto;
  align-self: stretch;
}
.kb-grid-list .blog-card-body {
  padding: 20px 24px;
}
.kb-grid-list .blog-card-kicker { margin-bottom: 7px; }
.kb-grid-list .kb-card-title {
  font-size: 18px;
  margin: 0 0 6px;
}
.kb-grid-list .kb-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 14px;
}
.kb-grid-list .kb-card-arrow {
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.kb-grid-list .blog-card:hover .kb-card-arrow { opacity: 1; }
@media (max-width: 640px) {
  .kb-grid-list .blog-card { flex-direction: column; }
  .kb-grid-list .blog-card-media { width: 100%; height: 168px; }
}

/* ============================================================
   TWEAK · ACCENT = MONO
   ----------
   All per-category dots collapse to the brand blue, giving the
   page a uniform "documentation" feel instead of a magazine one.
   ============================================================ */
:root[data-kb-accent="mono"] .kb-card-cat::before,
:root[data-kb-accent="mono"] .kb-card-cat-trends::before,
:root[data-kb-accent="mono"] .kb-card-cat-arbeidsmarkt::before,
:root[data-kb-accent="mono"] .kb-card-cat-product::before,
:root[data-kb-accent="mono"] .kb-card-cat-klantverhalen::before,
:root[data-kb-accent="mono"] .kb-card-cat-werkgevers::before,
:root[data-kb-accent="mono"] .kb-card-cat-werkzoekenden::before,
:root[data-kb-accent="mono"] .kb-card-cat-tech::before,
:root[data-kb-accent="mono"] .kb-card-cat-achter-de-schermen::before { background: var(--jobit-blue); }

:root[data-kb-accent="mono"] .blog-card { --cat: var(--jobit-blue); }
:root[data-kb-accent="mono"] .kb-avatar,
:root[data-kb-accent="mono"] .kb-avatar-trends,
:root[data-kb-accent="mono"] .kb-avatar-arbeidsmarkt,
:root[data-kb-accent="mono"] .kb-avatar-product,
:root[data-kb-accent="mono"] .kb-avatar-klantverhalen,
:root[data-kb-accent="mono"] .kb-avatar-werkgevers,
:root[data-kb-accent="mono"] .kb-avatar-werkzoekenden,
:root[data-kb-accent="mono"] .kb-avatar-tech,
:root[data-kb-accent="mono"] .kb-avatar-achter-de-schermen { background: var(--jobit-blue); }

:root[data-kb-accent="mono"] .kb-cat-mark,
:root[data-kb-accent="mono"] .kb-cat-mark-trends,
:root[data-kb-accent="mono"] .kb-cat-mark-arbeidsmarkt,
:root[data-kb-accent="mono"] .kb-cat-mark-product,
:root[data-kb-accent="mono"] .kb-cat-mark-klantverhalen,
:root[data-kb-accent="mono"] .kb-cat-mark-werkgevers,
:root[data-kb-accent="mono"] .kb-cat-mark-werkzoekenden,
:root[data-kb-accent="mono"] .kb-cat-mark-tech,
:root[data-kb-accent="mono"] .kb-cat-mark-achter-de-schermen { background: var(--jobit-blue); }

/* ============================================================
   [hidden] toggles (set by initKbPage)
   ============================================================ */
.blog-card[hidden],
.kb-card[hidden],
.kb-grid[hidden],
.kb-empty[hidden],
.kb-active[hidden],
.kb-toolbar-in[hidden],
.kb-search-clear[hidden] { display: none; }
