/* ============================================================
   Kennisbank - article detail page
   Reading layout, prose styles, TOC, callouts, related cards.
   Built on the shared tokens + site.css.
   ============================================================ */

.art-wrap { background: var(--bg); }

/* ---- Header band ---- */
.art-head {
  position: relative;
  background: linear-gradient(180deg, #FCFDFF 0%, #EEF3FC 100%);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--sec-pad-y) * 0.5 + 40px) 0 48px;
  overflow: hidden;
}
.art-head-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;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 100% 0%, black 0%, transparent 65%);
  opacity: 0.4;
  pointer-events: none;
}
.art-head-inner { position: relative; z-index: 2; max-width: 820px; }

.art-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.art-type {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-subtle);
}
.art-dot { width: 3px; height: 3px; border-radius: 999px; background: var(--neutral-300); }

.art-title {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--fg-strong);
  margin: 0 0 20px;
  text-wrap: balance;
}
.art-dek {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 0 28px;
  max-width: 660px;
  text-wrap: pretty;
}

.art-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.art-avatar {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--jobit-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
}
.art-byline-text { display: flex; flex-direction: column; gap: 1px; }
.art-byline-name { font-size: 14.5px; font-weight: 700; color: var(--fg-strong); }
.art-byline-sub { font-size: 13px; color: var(--fg-subtle); }
.art-byline-sub b { color: var(--fg-muted); font-weight: 600; }

/* ============================================================
   Hero variant - centered (Kenniscentrum-style, no search)
   ============================================================ */
.art-head--centered {
  background: linear-gradient(180deg, #FCFDFF 0%, #EEF3FC 100%);
  padding: calc(var(--sec-pad-y) * 0.6 + 40px) 0 calc(var(--sec-pad-y) * 0.5);
}
.art-head--centered .art-head-grid {
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
  opacity: 0.4;
}
.art-head--centered .kb-crumbs { justify-content: center; }
.art-head--centered .art-head-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.art-head--centered .art-meta-top { justify-content: center; }
.art-head--centered .art-title {
  font-size: clamp(36px, 4.6vw, 60px);
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.art-head--centered .art-title em {
  font-style: normal;
  color: var(--jobit-blue);
  position: relative;
  display: inline-block;
}
.art-head--centered .art-title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 10px;
  background: var(--jobit-blue-100);
  z-index: -1;
  border-radius: 3px;
}
.art-head--centered .art-dek {
  margin-left: auto;
  margin-right: auto;
  max-width: 580px;
}
.art-head--centered .art-byline {
  justify-content: center;
  border-top: none;
  padding-top: 4px;
}

/* Hide grid texture toggle */
.art-head.no-grid .art-head-grid { display: none; }

/* ---- Body grid: prose + sticky aside ---- */
.art-body { padding: 56px 0 72px; }
.art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 64px;
  align-items: start;
}

/* ---- Prose ---- */
.art-prose { min-width: 0; max-width: 720px; }
.art-prose > * + * { margin-top: 22px; }
.art-prose p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--fg);
  margin: 0;
  text-wrap: pretty;
}
.art-prose .art-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--fg-strong);
  font-weight: 500;
}
.art-prose a { color: var(--fg-link); text-decoration: underline; text-underline-offset: 2px; }
.art-prose a:hover { color: var(--fg-link-hover); }
.art-prose strong { color: var(--fg-strong); font-weight: 700; }

.art-prose h2 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--fg-strong);
  margin: 52px 0 0;
  scroll-margin-top: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.art-prose h2 + * { margin-top: 16px; }
.art-step-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: var(--jobit-blue-50);
  color: var(--jobit-blue-700);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  border: 1px solid var(--border-brand, rgba(67,100,173,0.18));
}
.art-prose h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 36px 0 0;
  scroll-margin-top: 96px;
}
.art-prose h3 + * { margin-top: 12px; }

.art-prose ul, .art-prose ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.art-prose li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--fg);
}
.art-prose ul > li::before {
  content: "";
  position: absolute;
  left: 6px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--jobit-blue);
}
.art-prose ol { counter-reset: art-ol; }
.art-prose ol > li { counter-increment: art-ol; }
.art-prose ol > li::before {
  content: counter(art-ol);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--jobit-blue-50);
  color: var(--jobit-blue-700);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---- Callouts ---- */
.art-callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  margin: 28px 0;
}
.art-callout-ic {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-top: 1px;
}
.art-callout-body { min-width: 0; }
.art-callout-body > * + * { margin-top: 6px; }
.art-callout-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
  text-transform: uppercase;
}
.art-callout p { font-size: 15px; line-height: 1.6; color: var(--fg-muted); margin: 0; }
.art-callout--tip { background: #eef7f2; border-color: #cfe9dc; }
.art-callout--tip .art-callout-ic { background: var(--success); }
.art-callout--tip .art-callout-title { color: #1f6b4c; }
.art-callout--info { background: var(--jobit-blue-50); border-color: rgba(67,100,173,0.18); }
.art-callout--info .art-callout-ic { background: var(--jobit-blue); }
.art-callout--info .art-callout-title { color: var(--jobit-blue-700); }
.art-callout--warn { background: #fdf4e7; border-color: #f3dcb4; }
.art-callout--warn .art-callout-ic { background: var(--warning); }
.art-callout--warn .art-callout-title { color: #9a6a16; }

/* ---- Code ---- */
.art-prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--jobit-blue-50);
  color: var(--jobit-blue-800);
  padding: 2px 6px;
  border-radius: 6px;
}
.art-code {
  margin: 28px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--neutral-800);
  background: #131827;
  box-shadow: var(--shadow-md);
}
.art-code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #0e1320;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.art-code-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.18); }
.art-code-name {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.art-code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #cfd8ec;
}
.art-code .tok-key { color: #7fa6ec; }
.art-code .tok-str { color: #8fd6a8; }
.art-code .tok-num { color: #e8b06a; }
.art-code .tok-com { color: #5c6b8a; font-style: italic; }

/* ---- Table ---- */
.art-table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
.art-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.art-table th, .art-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.art-table th {
  background: var(--bg-subtle);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.art-table tr:last-child td { border-bottom: none; }
.art-table td { color: var(--fg); }
.art-table td code { font-size: 13px; }

/* ---- Image placeholder ---- */
.art-figure { margin: 32px 0; }
.art-imgph {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(135deg, var(--bg-subtle) 0 14px, #fff 14px 28px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}
.art-imgph span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-subtle);
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.art-figcap { margin-top: 10px; font-size: 13.5px; color: var(--fg-subtle); text-align: center; }

/* ---- Pull divider ---- */
.art-rule { height: 1px; background: var(--border); border: 0; margin: 44px 0; }

/* ---- Tags + feedback ---- */
.art-foot { margin-top: 52px; }
.art-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.art-tags-lbl { font-size: 13px; font-weight: 600; color: var(--fg-subtle); margin-right: 4px; }
.art-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.art-tag:hover { color: var(--jobit-blue-700); background: var(--jobit-blue-50); border-color: rgba(67,100,173,0.2); }

.art-feedback {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-subtle);
}
.art-feedback-q { font-size: 15px; font-weight: 700; color: var(--fg-strong); margin-right: auto; }
.art-fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.art-fb-btn:hover { border-color: var(--jobit-blue); color: var(--jobit-blue-700); transform: translateY(-1px); }
.art-fb-btn.is-on { background: var(--jobit-blue); border-color: var(--jobit-blue); color: #fff; }
.art-fb-thanks { font-size: 14px; font-weight: 600; color: var(--jobit-blue-700); }

/* ============================================================
   Aside (sticky)
   ============================================================ */
.art-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }

.art-toc-title, .art-side-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 14px;
}
.art-toc { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.art-toc li { margin: 0; }
.art-toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.art-toc a:hover { color: var(--jobit-blue-700); }
.art-toc a.is-active {
  color: var(--jobit-blue-700);
  font-weight: 700;
  border-left-color: var(--jobit-blue);
}

.art-share { display: flex; flex-direction: column; gap: 8px; }
.art-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.art-share-btn:hover { border-color: var(--jobit-blue); color: var(--jobit-blue-700); background: var(--jobit-blue-50); }
.art-share-btn svg { color: var(--jobit-blue); }
.art-share-btn.is-copied { border-color: var(--success); color: #1f6b4c; }
.art-share-btn.is-copied svg { color: var(--success); }

.art-side-help {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-subtle);
}
.art-side-help h4 { font-size: 15px; font-weight: 700; color: var(--fg-strong); margin: 0 0 6px; }
.art-side-help p { font-size: 13.5px; line-height: 1.5; color: var(--fg-muted); margin: 0 0 14px; }

/* ============================================================
   Related articles
   ============================================================ */
.art-related { background: var(--bg-subtle); border-top: 1px solid var(--border); padding: 64px 0 76px; }
/* CTA notch sits below the grey .art-related section - match its bg
   (kennisbank.css forces it to --bg, override scoped to this page). */
.cta-band[data-divider-from]::after { background: var(--bg-subtle); }
.art-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.art-related-head h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 0;
}
.art-related-head a {
  font-size: 14px;
  font-weight: 700;
  color: var(--jobit-blue-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.art-related-head a:hover { color: var(--jobit-blue); }
.art-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.art-rcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.art-rcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.art-rcard-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);
}
.art-rcard-cat::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--jobit-blue); }
.art-rcard-title {
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 0;
  text-wrap: balance;
}
.art-rcard:hover .art-rcard-title { color: var(--jobit-blue-700); }
.art-rcard-ex { font-size: 14px; line-height: 1.5; color: var(--fg-muted); margin: 0; }
.art-rcard-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--jobit-blue-700);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .art-layout { grid-template-columns: 1fr; gap: 40px; }
  .art-aside { position: static; flex-direction: row; flex-wrap: wrap; gap: 28px; }
  .art-toc-block { flex: 1 1 260px; }
  .art-related-grid { grid-template-columns: 1fr 1fr; }
}

/* Kennisbank article: on mobile lift the "In dit artikel" TOC directly under
   the header, above the article text. Dissolve the aside so its blocks become
   grid items of .art-layout, then reorder: TOC, prose, share, help. */
@media (max-width: 960px) {
  .art-wrap .art-aside { display: contents; }
  .art-wrap .art-toc-block { order: -1; }
  .art-wrap .art-prose { order: 0; }
  .art-wrap .art-share-block { order: 1; }
  .art-wrap .art-side-help { order: 2; }
}
@media (max-width: 640px) {
  .art-body { padding: 40px 0 56px; }
  .art-related-grid { grid-template-columns: 1fr; }
  .art-feedback { flex-direction: column; align-items: stretch; }
  .art-feedback-q { margin-right: 0; }
  .art-prose h2 { font-size: 23px; }
}
