/* DENSE//DS overrides & layout primitives for VBERKOZ//DS */
html { background: var(--bg-0); height: auto; min-height: 100%; max-width: 100%; overflow-y: visible; overflow-x: clip; }
body {
  display: flex; flex-direction: column;
  width: 100%; max-width: 768px; min-height: 100dvh; height: auto;
  margin-inline: auto; background: var(--bg-0);
  overflow-y: visible; overflow-x: clip;
}

.skip-link {
  position: fixed; left: 8px; top: -48px; z-index: 100;
  padding: 5px 10px; background: var(--ac-solid); color: var(--on-ac);
  border-radius: var(--r); font: 600 11px/1 var(--f-cond); letter-spacing: .06em; text-transform: uppercase;
}
.skip-link:focus-visible { top: 8px; }

.wrap { width: 100%; max-width: 768px; margin-inline: auto; padding-inline: 12px; }
.site-main { display: flex; flex-direction: column; gap: 14px; flex: 1 0 auto; padding-block: 12px 24px; min-width: 0; }

/* Sticky responsive header */
.site-header {
  position: sticky; top: 0; z-index: 40; flex: none;
  block-size: var(--h-bar); background: var(--bg-1); border-bottom: 1px solid var(--ln);
}
.site-header.is-measuring * { transition: none !important; }
.header-inner {
  display: flex; align-items: center; gap: 8px;
  block-size: 100%; max-width: 768px; margin-inline: auto; padding-inline: 12px;
}
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.header-inner > .spacer { flex: 1 1 auto; min-width: 0; }

.brand { display: inline-flex; align-items: center; gap: 8px; padding: 2px 4px 2px 0; border-radius: var(--r); }
.brand-t { font: 700 14px/1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-0); }
.brand-t span { color: var(--fg-2); font-weight: 500; }
.btn-ic .lucide { vertical-align: middle; }
.btn-ic .when-dark, .btn-ic .when-light { line-height: 0; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.menu-btn { anchor-name: --menu-btn; min-height: 24px; }
.site-menu {
  position: fixed; inset: auto;
  inset-block-start: calc(var(--h-bar) + 6px);
  inset-block-start: anchor(--menu-btn bottom);
  inset-inline-end: 12px;
  inline-size: min(80dvw, 18rem);
  max-inline-size: calc(100dvw - 24px);
  block-size: fit-content;
  max-block-size: calc(100dvh - 5rem);
  margin: 4px 0 0; padding: 4px; overflow: auto;
  background: var(--bg-2); color: var(--fg-0);
  border: 1px solid var(--ln-2); border-radius: var(--r-2); box-shadow: var(--sh);
}
.site-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-block-size: 26px; padding: 4px 8px; border-radius: var(--r);
  font: 500 12px/1 var(--f-ui); color: var(--fg-1);
}
.site-menu a:hover { background: var(--bg-3); color: var(--fg-0); }
.site-menu a[aria-current="page"] { background: var(--ac-bg); color: var(--ac); }

.site-header.is-wide .menu-btn { display: none; }
.site-header.is-wide .site-menu {
  position: static; display: flex; align-items: center; gap: 2px;
  inline-size: auto; max-inline-size: none; block-size: auto; max-block-size: none;
  overflow: visible; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu a { min-block-size: 24px; padding: 0 7px; font-size: 11.5px; }

/* Section headers & grids */
.sec-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding-bottom: 6px; border-bottom: 1px solid var(--ln); margin-bottom: 8px; min-width: 0;
}
.sec-title { font: 700 13px/1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-0); }
.sec-sub { font: 500 11px/1 var(--f-mono); color: var(--fg-2); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* Hero & portrait */
.vb-hero { display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 10px; align-items: stretch; }
.vb-hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; flex: 1 1 auto; }
.vb-hero-top { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vb-h1 { font: 700 clamp(22px, 2.8vw, 30px)/1.06 var(--f-cond); letter-spacing: .01em; color: var(--fg-0); }
.vb-lead { font-size: 12.5px; line-height: 1.45; color: var(--fg-1); max-width: 60ch; }
.vb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vb-hero-kpis { border-top: 1px solid var(--ln); margin: 0 -8px -8px; }
.vb-hero-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.vb-portrait-wrap { display: flex; flex-direction: column; min-width: 0; }
.vb-portrait-img { display: block; width: 100%; aspect-ratio: 1; max-height: 204px; object-fit: cover; border-bottom: 1px solid var(--ln); background: var(--bg-2); }

/* Toolbars, cards, tags & dense stream rows */
.vb-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 6px 8px; background: var(--bg-1); border: 1px solid var(--ln); border-radius: var(--r); min-width: 0;
}
.vb-bar-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.vb-bar-search { width: 180px; max-width: 100%; flex: 0 1 180px; }
.vb-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.vb-card-title { font: 600 13.5px/1.25 var(--f-ui); color: var(--fg-0); overflow-wrap: anywhere; }
.vb-card-title a:hover { color: var(--ac); text-decoration: underline; text-underline-offset: 2px; }
.vb-desc { font-size: 11.5px; line-height: 1.45; color: var(--fg-1); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.tags .tag { max-width: 100%; white-space: normal; height: auto; min-height: 16px; padding-block: 2px; line-height: 1.2; }

.vb-stream { display: flex; flex-direction: column; }
.vb-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 6px 10px;
  padding: 8px 10px; border-bottom: 1px solid var(--ln); align-items: start; min-width: 0;
}
.vb-row:last-child { border-bottom: 0; }
.vb-row:hover { background: var(--bg-2); }
.vb-row-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.vb-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vb-row-act { display: flex; align-items: center; gap: 4px; flex: none; }

/* Contact & languages */
.vb-ch-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--ln); min-width: 0; }
.vb-ch-row:last-child { border-bottom: 0; padding-bottom: 0; }
.vb-ch-row:first-child { padding-top: 0; }
.vb-lang-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 72px; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--ln); font-size: 11.5px; min-width: 0; }
.vb-lang-row:last-child { border-bottom: 0; padding-bottom: 0; }
.vb-lang-row:first-child { padding-top: 0; }

/* Prose & article */
.vb-prose { font-size: 12.5px; line-height: 1.55; color: var(--fg-1); min-width: 0; overflow-wrap: break-word; }
.vb-prose > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.vb-prose h2 { font: 700 14px/1.2 var(--f-cond); letter-spacing: .05em; text-transform: uppercase; color: var(--fg-0); margin: 16px 0 6px; padding-top: 10px; border-top: 1px solid var(--ln); }
.vb-prose h3 { font: 600 12.5px/1.3 var(--f-ui); color: var(--fg-0); margin: 12px 0 4px; }
.vb-prose p, .vb-prose ul, .vb-prose ol { margin: 0 0 8px; }
.vb-prose ul { list-style: disc; padding-left: 18px; }
.vb-prose ol { list-style: decimal; padding-left: 18px; }
.vb-prose li + li { margin-top: 2px; }
.vb-prose strong { color: var(--fg-0); font-weight: 600; }
.vb-prose a { color: var(--ac); }
.vb-prose a:hover { text-decoration: underline; text-underline-offset: 2px; }
.vb-prose :not(pre) > code { padding: 1px 4px; background: var(--bg-2); border: 1px solid var(--ln); border-radius: var(--r); font-size: 11px; color: var(--fg-0); overflow-wrap: anywhere; }
.vb-prose .code { margin: 10px 0; max-width: 100%; overflow-x: auto; touch-action: pan-x pan-y; }
.vb-article-h { padding: 10px; border-bottom: 1px solid var(--ln); display: flex; flex-direction: column; gap: 6px; }
.vb-article-h h1 { font: 700 clamp(20px, 2.6vw, 26px)/1.12 var(--f-cond); color: var(--fg-0); }

/* Footer */
.site-footer { flex: none; border-top: 1px solid var(--ln); background: var(--bg-1); padding-block: 10px; font-size: 11px; color: var(--fg-2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-links a:hover { color: var(--fg-0); text-decoration: underline; text-underline-offset: 2px; }
.footer-links a[aria-current="page"] { color: var(--fg-0); font-weight: 600; }

@media (min-width: 769px) {
  body { border-inline: 1px solid var(--ln); }
}
@media (max-width: 720px) {
  .vb-hero { grid-template-columns: minmax(0, 1fr); }
  .vb-portrait-wrap { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: stretch; }
  .vb-portrait-img { height: 100%; max-height: 112px; border-bottom: 0; border-right: 1px solid var(--ln); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .vb-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .vb-row-meta { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
@media (max-width: 480px) {
  .vb-hero-kpis { grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); }
  .vb-bar-search { width: 100%; flex: 1 1 100%; }
}
@media (forced-colors: active) {
  .site-menu a[aria-current="page"] { outline: 2px solid Highlight; }
}
