/* Knowledge Hub (/knowledge-hub and /knowledge-hub/<artikel>). Loaded on those
   pages only. The overview is a tag filter over a grid of cards, the newest
   article as a wide card on top; an article is a narrow reading column. */

/* ------------------------------------------------ the overview */
.kh-hero{padding-top:clamp(28px,6vh,72px);padding-bottom:clamp(36px,5vw,64px)}
.kh-hero .phead{font-size:clamp(34px,5.2vw,78px);line-height:.98;margin-top:14px}
.kh-list{padding-bottom:clamp(72px,10vw,140px)}

.kh-filter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:clamp(22px,2.6vw,32px);
  margin-bottom:clamp(22px,2.6vw,32px);border-bottom:1px solid var(--line)}
.kh-flabel{font-size:12.5px;color:var(--muted);margin-right:8px}
.kh-chip{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:13px;letter-spacing:-.01em;cursor:pointer;
  padding:6px 12px;border-radius:999px;border:1px solid var(--line-2);background:transparent;color:var(--ink);
  transition:background .2s ease,color .2s ease,border-color .2s ease}
.kh-chip span{font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums;transition:color .2s ease}
.kh-chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.kh-chip[aria-pressed="true"] span{color:var(--accent)}
@media(hover:hover){.kh-chip[aria-pressed="false"]:hover{border-color:var(--ink)}}
.kh-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.kh-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(36px,4vw,56px) clamp(16px,2vw,28px)}
.kh-card[hidden]{display:none}
.kh-card a{display:flex;flex-direction:column;gap:18px;height:100%;color:var(--ink);text-decoration:none}
.kh-img{display:block;position:relative;aspect-ratio:16/10;border-radius:10px;overflow:hidden;background:var(--wash)}
.kh-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .9s var(--swing)}
.kh-body{display:flex;flex-direction:column;gap:10px;min-width:0}
.kh-tags{display:flex;flex-wrap:wrap;gap:6px}
.kh-tag{display:inline-block;font-size:11.5px;line-height:1;padding:6px 10px;border-radius:999px;
  background:var(--wash);color:var(--ink);text-decoration:none;letter-spacing:-.005em}
.kh-title{font-size:clamp(21px,1.8vw,27px);line-height:1.1;letter-spacing:-.045em;text-wrap:balance}
.kh-desc{font-size:15px;line-height:1.5;color:var(--muted);max-width:52ch}
.kh-meta{font-size:12.5px;color:var(--muted)}
.kh-go{display:inline-flex;align-items:center;gap:8px;font-size:13px;margin-top:4px}
.kh-go svg{transition:transform .4s var(--swing)}
@media(hover:hover){
  .kh-card a:hover .kh-img img{transform:scale(1.04)}
  .kh-card a:hover .kh-title{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
  .kh-card a:hover .kh-go svg{transform:translateX(4px)}
  a.kh-tag:hover{background:var(--ink);color:var(--on-ink)}
}

/* the newest article, wide */
.kh-feat{grid-column:1 / -1}
.kh-feat a{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(20px,3.4vw,56px);align-items:center}
.kh-feat .kh-img{aspect-ratio:16/10}
.kh-feat .kh-title{font-size:clamp(28px,3.2vw,48px);line-height:1.02;letter-spacing:-.05em}
.kh-feat .kh-desc{font-size:clamp(15px,1.2vw,17px)}
.kh-feat .kh-go{padding:9px 16px;border-radius:999px;background:var(--ink);color:var(--on-ink);align-self:flex-start;margin-top:10px}
@media(hover:hover){.kh-feat a:hover .kh-go{background:var(--accent);color:var(--accent-ink)}}

.kh-empty{font-size:15px;color:var(--muted);padding:clamp(28px,4vw,48px) 0}
.kh-empty button{font:inherit;color:var(--ink);background:none;border:0;padding:0;cursor:pointer;
  text-decoration:underline;text-underline-offset:4px}

@media(max-width:1000px){.kh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .kh-grid{grid-template-columns:1fr;gap:40px}
  .kh-feat a{grid-template-columns:1fr;gap:18px}
  .kh-filter{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(var(--gutter) * -1);
    padding-inline:var(--gutter);-webkit-overflow-scrolling:touch}
  .kh-filter::-webkit-scrollbar{display:none}
  .kh-chip{flex:none}
}

/* ------------------------------------------------ an article */
.kh-ahead{margin-inline:auto;padding-top:clamp(28px,6vh,72px);max-width:calc(820px + 2 * var(--gutter))}
.kh-back{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);text-decoration:none;margin-bottom:clamp(22px,3vw,34px)}
.kh-back:hover{color:var(--ink)}
.kh-ahead .kh-tags{margin-bottom:18px}
.kh-h1{font-size:clamp(32px,4.6vw,68px);line-height:1.02;text-wrap:balance}
.kh-lede{font-size:clamp(17px,1.4vw,21px);line-height:1.5;color:var(--muted);margin-top:clamp(18px,2vw,26px);max-width:52ch}
.kh-byline{display:flex;align-items:center;gap:14px;margin-top:clamp(26px,3vw,40px);padding-top:clamp(18px,2vw,24px);border-top:1px solid var(--line)}
.kh-av{position:relative;flex:none;width:48px;height:48px;border-radius:50%;overflow:hidden;
  background:radial-gradient(120% 85% at 50% 100%,var(--wash-2),var(--wash) 70%)}
/* the portraits are tall cut-outs with the head in the top third: show head and shoulders */
.kh-av img{position:absolute;left:-50%;top:-42%;width:200%;height:auto;max-width:none}
/* Niclas stands closer to the camera, so his head is bigger in the frame: zoom out less */
.kh-av-niclas img{left:-24%;top:-22%;width:148%}
.kh-by{display:flex;flex-direction:column;gap:2px;font-size:14px}
.kh-by b{font-weight:400;letter-spacing:-.02em}
.kh-by span{font-size:12.5px;color:var(--muted)}
.kh-when{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:12.5px;color:var(--muted)}

.kh-hero-img{margin:clamp(32px,4vw,56px) auto 0;max-width:calc(820px + 2 * var(--gutter))}
.kh-hero-img img{display:block;width:100%;aspect-ratio:21/9;object-fit:cover;border-radius:10px}

.kh-prose{margin-inline:auto;max-width:calc(680px + 2 * var(--gutter));padding-top:clamp(40px,5vw,72px);padding-bottom:clamp(56px,8vw,110px);
  font-size:clamp(17px,1.4vw,21px);line-height:1.5;color:var(--muted)}
.kh-prose>*+*{margin-top:1.1em}
.kh-prose p{margin-bottom:0}
.kh-prose h2{font-size:clamp(24px,2.2vw,32px);font-weight:400;line-height:1.1;letter-spacing:-.045em;margin-top:2.2em}
.kh-prose h3{font-size:clamp(19px,1.6vw,22px);font-weight:400;letter-spacing:-.03em;margin-top:1.8em}
.kh-prose h2+*,.kh-prose h3+*{margin-top:.7em}
.kh-prose h2,.kh-prose h3,.kh-prose strong{color:var(--ink)}
.kh-prose strong{font-weight:500}
.kh-prose a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:4px}
.kh-prose ul,.kh-prose ol{padding-left:0;list-style:none}
.kh-prose li{position:relative;padding-left:2.1em}
.kh-prose li+li{margin-top:.75em}
.kh-prose ul li::before{content:"";position:absolute;left:.35em;top:.72em;width:7px;height:7px;background:var(--accent)}
.kh-prose ol{counter-reset:kh}
.kh-prose ol li{counter-increment:kh}
.kh-prose ol li::before{content:counter(kh,decimal-leading-zero);position:absolute;left:0;top:.18em;font-size:.78em;
  color:var(--muted);font-variant-numeric:tabular-nums}
.kh-prose blockquote{margin:2em 0;padding:0 0 0 clamp(18px,2vw,28px);border-left:3px solid var(--accent);
  font-size:clamp(22px,2.1vw,30px);line-height:1.2;letter-spacing:-.04em;font-style:normal}

.kh-more{padding-bottom:clamp(72px,10vw,140px)}
.kh-more-head{display:flex;align-items:end;justify-content:space-between;gap:20px;padding-top:clamp(40px,5vw,64px);
  margin-bottom:clamp(26px,3vw,40px);border-top:1px solid var(--line)}
.kh-more-head h2{font-size:clamp(26px,3vw,44px);font-weight:400;letter-spacing:-.05em;line-height:1}
.kh-all{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--ink);text-decoration:none;white-space:nowrap}

@media(max-width:760px){
  .kh-byline{flex-wrap:wrap}
  .kh-when{margin-left:0;flex-basis:100%;flex-direction:row;gap:14px;align-items:center}
  .kh-hero-img img{aspect-ratio:16/10}
}

/* ------------------------------------------------ article sidebar
   The Thirdbase icon on top and the table of contents under it (the section
   being read is lit, site.js); related articles and the four disciplines sit
   together at the foot. When it all does not fit, the panel scrolls.
   - 1200px and up: a fixed panel down the left edge. The page moves right to
     make room and the header logo steps aside for the icon in the panel. The
     button in the top row folds it into a narrow rail of icons
     (html.kh-side-folded, remembered in the browser).
   - Below: a round menu button under the logo opens it as a sheet from the
     left, and the page slides aside to make room (html.kh-side-open). */
.kh-side,.kh-fab,.kh-side-scrim{display:none}
.kh-side{flex-direction:column;position:fixed;left:0;top:0;bottom:0;overflow:hidden;background:var(--bg);
  border-right:1px solid var(--line);font-size:14px;letter-spacing:-.015em}
.kh-side-top{display:flex;align-items:center;gap:12px;padding:0 14px 0 19px;height:var(--navh,54px);box-sizing:border-box;flex:none}
/* the icon: black bars on a white tile with a grey hairline; the other way
   round (white bars on the dark page colour) in dark mode */
.kh-side-logo{display:block;flex:none;line-height:0;border-radius:8px;color:var(--bg)}
.kh-side-ic{display:block;width:30px;height:30px;box-sizing:border-box;border:1px solid var(--line-2);border-radius:7px}
.kh-side-iii{fill:var(--ink)}
.kh-side-hub{font-size:13px;color:var(--muted);text-decoration:none;white-space:nowrap;transition:color .2s ease,opacity .25s ease}
.kh-side-hub:hover{color:var(--ink)}
.kh-side-btn{margin-left:auto;display:grid;place-items:center;width:32px;height:32px;flex:none;padding:0;border:0;border-radius:8px;
  background:transparent;color:var(--muted);cursor:pointer;transition:background .2s ease,color .2s ease}
.kh-side-btn:hover{background:var(--wash);color:var(--ink)}
.kh-side-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;
  box-sizing:border-box;padding:clamp(18px,3vh,30px) 14px 14px;display:flex;flex-direction:column}
.kh-side-scroll>*{flex:none}
/* related articles and the disciplines: pushed down to the foot of the panel */
.kh-side-foot{margin-top:auto}
.kh-side-k{display:flex;align-items:center;gap:12px;margin:0 0 6px;padding:0 10px;font-size:12.5px;color:var(--muted);white-space:nowrap}
.kh-side-k svg{flex:none}
.kh-side-k b{font-weight:400;font-variant-numeric:tabular-nums;color:var(--faint)}
.kh-side-k span,.kh-side-k b,.kh-side-t{transition:opacity .25s ease}
.kh-side ol,.kh-side ul{list-style:none;margin:0;padding:0}
.kh-side-sec li+li{margin-top:2px}
.kh-side-sec a{display:flex;align-items:flex-start;gap:12px;padding:8px 10px;border-radius:8px;color:var(--ink-2);
  text-decoration:none;line-height:1.3;transition:background .2s ease,color .2s ease,width .4s var(--ease)}
.kh-side-sec a svg{flex:none;margin-top:-.5px;color:var(--muted)}
.kh-side-toc{counter-reset:side}
.kh-side-toc li{counter-increment:side}
.kh-side-toc a::before{content:counter(side,decimal-leading-zero);flex:none;width:18px;font-size:11.5px;line-height:18px;
  color:var(--muted);font-variant-numeric:tabular-nums;transition:color .2s ease}
.kh-side-t{min-width:0;padding-top:.5px}
.kh-side-rel .kh-side-t{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.kh-side-sec a:hover{background:var(--wash);color:var(--ink)}
.kh-side-toc a[aria-current="true"]{background:var(--wash);color:var(--ink)}
.kh-side-toc a[aria-current="true"]::before{color:var(--ink)}
.kh-side a:focus-visible,.kh-side button:focus-visible,.kh-fab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.kh-side-hr{border:0;border-top:1px solid var(--line);margin:18px 10px;transition:margin .4s var(--ease)}
.kh-side-foot:first-child .kh-side-hr{display:none}
/* the four disciplines: a grey box at the very foot, each with its picture from the front page */
.kh-side-svc{margin-top:14px;padding:10px 8px 8px;border-radius:10px;background:var(--wash);box-sizing:border-box;
  transition:width .4s var(--ease),padding .4s var(--ease)}
.kh-side-svc .kh-side-k{padding:0 4px;margin-bottom:8px}
.kh-side-svc ul{display:grid;grid-template-columns:1fr 1fr;gap:4px}
/* the picture's corners run parallel to the hover background's: its radius is
   the background's radius minus the padding between them (8 - 4 = 4) */
.kh-side-svc a{--r:8px;--p:4px;display:flex;align-items:center;gap:10px;padding:var(--p);border-radius:var(--r);color:var(--ink);text-decoration:none;
  font-size:13.5px;white-space:nowrap;transition:background .2s ease}
.kh-side-svc a:hover{background:var(--hover)}
.kh-side-si{display:block;flex:none;width:32px;height:32px;border-radius:calc(var(--r) - var(--p));overflow:hidden;background:var(--wash-2)}
.kh-side-si img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s var(--swing)}
.kh-side-svc a:hover .kh-side-si img{transform:scale(1.08)}
.kh-prose h2{scroll-margin-top:calc(var(--navh,54px) + 28px)}

@media(min-width:1200px){
  body:has(.kh-side){--side-open:276px;--side-w:var(--side-open);padding-left:var(--side-w);
    transition:padding-left .4s var(--ease)}
  .kh-side-folded body:has(.kh-side){--side-w:68px}
  body:has(.kh-side) .nav .logo{display:none}
  /* the header menu stays centred on the whole window, not on the space beside the panel */
  body:has(.kh-side) .navbar>.menu{transform:translateX(calc(var(--side-w) / -2));transition:transform .4s var(--ease)}
  .kh-side{display:flex;z-index:60;width:var(--side-w);transition:width .4s var(--ease)}
  /* the contents keep their open width while the panel narrows around them,
     so nothing rewraps mid-fold; only the icons stay in view */
  .kh-side-top,.kh-side-scroll{width:var(--side-open)}
  .kh-side-svc{width:calc(var(--side-open) - 28px)}

  /* folded: a 68px rail. The icon sits on top with the button under it, the
     contents and related articles show as numbers and icons (their names come
     up on hover, site.js), the disciplines as their four icons, and the text
     fades out */
  .kh-side-folded .kh-side-top{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;
    height:auto;padding-top:calc((var(--navh,54px) - 30px) / 2)}
  .kh-side-folded .kh-side-btn{margin-left:-1px}
  .kh-side-folded .kh-side-hub{position:absolute;opacity:0;pointer-events:none}
  .kh-side-folded .kh-side-k span,.kh-side-folded .kh-side-k b,.kh-side-folded .kh-side-t{opacity:0}
  .kh-side-folded .kh-side-scroll{padding-top:14px}
  .kh-side-folded .kh-side-sec a{width:38px;height:34px;box-sizing:border-box;overflow:hidden}
  .kh-side-folded .kh-side-toc a{color:transparent;white-space:nowrap}
  .kh-side-folded .kh-side-hr{margin-right:calc(var(--side-open) - 68px + 10px - 14px)}
  .kh-side-folded .kh-side-svc{width:40px;padding:4px 4px 4px}
  .kh-side-folded .kh-side-svc .kh-side-k{display:none}
  .kh-side-folded .kh-side-svc ul{grid-template-columns:1fr}
  .kh-side-folded .kh-side-svc a{--p:0px;overflow:hidden}
}

@media(max-width:1199px){
  :root{--sheet-w:min(300px,86vw)}
  /* the "Indhold" button: a glass pill like Kontakt, in the header row just
     right of the logo (53px wide, folded or not), and it stays there on scroll */
  .kh-fab{display:inline-flex;align-items:center;gap:7px;position:fixed;z-index:72;
    left:calc(var(--gutter) + 63px);top:calc(env(safe-area-inset-top,0px) + (var(--navh,58px) - 30px) / 2);
    height:30px;box-sizing:border-box;padding:0 13px 0 11px;border-radius:999px;font:inherit;font-size:12.5px;
    letter-spacing:-.02em;color:var(--ink);cursor:pointer;
    transition:transform .45s var(--ease),opacity .2s ease,background .2s ease,color .2s ease}
  .kh-fab svg{flex:none;color:var(--muted);transition:color .2s ease}
  .kh-fab:hover{background:var(--ink);color:var(--on-ink)}
  .kh-fab:hover svg{color:var(--accent)}
  /* over a dark section (the footer) it turns white with the rest of the header */
  body:has(.nav.on-dark) .kh-fab{color:#FFFFFF;
    --nav-glass:rgba(255,255,255,.1);--glass-line:rgba(255,255,255,.22)}
  body:has(.nav.on-dark) .kh-fab svg{color:rgba(255,255,255,.7)}
  body:has(.nav.on-dark) .kh-fab:hover{background:#FFFFFF;border-color:#FFFFFF;color:#141414}
  /* the burger menu covers it when open */
  body:has(.navtoggle[aria-expanded="true"]) .kh-fab{opacity:0;pointer-events:none}
  .kh-side{display:flex;z-index:80;width:var(--sheet-w);transform:translateX(-100%);visibility:hidden;
    transition:transform .45s var(--ease),visibility 0s linear .45s}
  .kh-side-scrim{display:block;position:fixed;z-index:79;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.28);
    opacity:0;pointer-events:none;transition:opacity .45s var(--ease),transform .45s var(--ease)}
  /* open: the sheet comes in and everything else slides over by its width */
  .kh-side-open .kh-side{transform:none;visibility:visible;transition:transform .45s var(--ease)}
  .kh-side-open,.kh-side-open body{overflow:hidden}
  body:has(.kh-side)>:is(.nav,main,footer){transition:transform .45s var(--ease)}
  .kh-side-open body>:is(.nav,main,footer,.kh-fab,.kh-side-scrim){transform:translateX(var(--sheet-w))}
  .kh-side-open .kh-side-scrim{opacity:1;pointer-events:auto}
  .kh-side-open .kh-fab{opacity:0;pointer-events:none}
  .kh-side-top{padding-top:env(safe-area-inset-top,0px);height:calc(var(--navh,58px) + env(safe-area-inset-top,0px))}
  .kh-side-scroll{padding-bottom:max(14px,env(safe-area-inset-bottom,0px))}
  .kh-side-sec a{padding-block:9px}
}
@media(min-width:761px) and (max-width:899px){
  .kh-fab{left:var(--gutter);top:calc(var(--navh,58px) + 6px)}
  body:has(.kh-fab) .kh-ahead{padding-top:56px}
}
@media(prefers-reduced-motion:reduce){
  .kh-side,.kh-fab,.kh-side-scrim,body:has(.kh-side)>:is(.nav,main,footer){transition:none!important}
}

/* ------------------------------------------------ illustration: a question-and-answer page */
.kh-prose{--bleed:clamp(0px,(100vw - 680px)/2 - 24px,70px)}
.kh-prose li .kh-fig{margin:1.4em calc(-1 * var(--bleed)) clamp(36px,4vw,56px) calc(-2.1em - var(--bleed))}
/* illustrations run a little wider than the text column (up to 820px against
   680px) so they read as a separate thing; the grey boxes keep the text width */
.kh-fig{margin:2em calc(-1 * var(--bleed))}
@media(max-width:760px){.kh-prose{--bleed:0px}}
.kh-fig-win{border:1px solid var(--line-2);border-radius:10px;overflow:hidden;background:var(--paper);font-size:14px;line-height:1.45}
.kh-fig-bar{display:flex;align-items:center;gap:6px;padding:10px 14px;background:var(--wash);border-bottom:1px solid var(--line)}
.kh-fig-bar i{width:8px;height:8px;border-radius:50%;background:var(--line-2)}
.kh-fig-bar span{margin-left:10px;font-size:11.5px;color:var(--muted);padding:3px 10px;border-radius:999px;background:var(--paper);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.kh-fig-page{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px 14px;align-items:baseline;padding:clamp(18px,2.4vw,30px) clamp(16px,2.4vw,30px) clamp(20px,2.6vw,32px) clamp(12px,1.6vw,20px)}
.kh-fig-tag{justify-self:start;font-size:10.5px;line-height:1;letter-spacing:.02em;padding:5px 7px;border-radius:5px;
  background:var(--wash);color:var(--muted);font-variant-numeric:tabular-nums}
.kh-fig-tag.ac{background:var(--accent);color:var(--accent-ink)}
.kh-fig-h1{font-size:clamp(19px,1.8vw,24px);line-height:1.12;letter-spacing:-.04em;color:var(--ink)}
.kh-fig-h2{font-size:16px;line-height:1.2;letter-spacing:-.03em;color:var(--ink);margin-top:6px}
.kh-fig-p{font-size:13.5px;line-height:1.5;color:var(--muted);max-width:52ch}
.kh-fig-links{display:flex;flex-direction:column;gap:7px;margin-top:6px;padding-top:14px;border-top:1px solid var(--line);font-size:13.5px}
.kh-fig-links b{font-weight:400;font-size:11.5px;color:var(--muted);margin-bottom:2px}
.kh-fig-links u{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:4px;color:var(--ink)}
.kh-fig-links u::after{content:" \2192";text-decoration:none;display:inline-block;margin-left:4px;color:var(--muted)}
/* the explanation under an illustration sits in a grey box like the others */
.kh-fig figcaption{margin-top:10px;padding:clamp(14px,1.6vw,18px) clamp(16px,2vw,22px);background:var(--wash);border-radius:10px;
  font-size:14px;line-height:1.55;color:var(--ink-2)}
@media(max-width:760px){
  .kh-fig-page{grid-template-columns:40px minmax(0,1fr);gap:12px 10px}
  .kh-fig-tag{font-size:10px;padding:4px 6px}
}

/* ------------------------------------------------ boxes and breakouts in an article */
.kh-box{background:var(--wash);border-radius:10px;padding:clamp(20px,2.4vw,30px)}
.kh-prose .kh-box>*+*{margin-top:.6em}
.kh-box-k{font-size:12.5px;color:var(--muted);letter-spacing:-.005em}
.kh-prose .kh-box ul,.kh-prose .kh-box ol{margin-top:12px;margin-bottom:0}
.kh-prose .kh-box li{font-size:.94em}
.kh-prose .kh-wide{margin-top:2em;margin-bottom:2em}

.kh-src-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.kh-src-grid div{background:var(--paper);border-radius:8px;padding:14px 14px 16px;display:flex;flex-direction:column;gap:6px}
.kh-src-grid b{font-weight:400;font-size:15px;letter-spacing:-.025em;line-height:1.2}
.kh-src-grid span{font-size:12.5px;line-height:1.4;color:var(--muted)}
.kh-src-grid div:first-child{background:var(--accent);color:var(--accent-ink);grid-column:span 2}
.kh-src-grid div:first-child span{color:var(--accent-ink);opacity:.75}

.kh-prose blockquote.kh-wide{margin:2em 0;border:0;background:var(--wash);border-radius:10px;
  padding:clamp(28px,4vw,56px) clamp(24px,4vw,56px);font-size:clamp(24px,2.4vw,34px);line-height:1.12;letter-spacing:-.045em;text-wrap:balance}
.kh-prose blockquote.kh-wide::before{content:"";display:block;width:10px;height:10px;background:var(--accent);margin-bottom:clamp(16px,2vw,24px)}

.kh-try{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr);gap:12px 28px;align-items:start}
.kh-prose .kh-try>*+*{margin-top:0}
.kh-prose .kh-try ol{margin-top:0}
.kh-try .kh-box-k{font-size:clamp(17px,1.4vw,20px);color:var(--ink);letter-spacing:-.03em;line-height:1.2}

.kh-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kh-tiles .kh-box{display:flex;flex-direction:column;gap:10px}
.kh-tiles b{font-weight:400;font-size:clamp(18px,1.6vw,22px);letter-spacing:-.035em;line-height:1.15}
.kh-tiles span{font-size:14px;line-height:1.5;color:var(--muted)}

@media(max-width:760px){
  .kh-src-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kh-src-grid div:first-child{grid-column:1 / -1}
  .kh-try{grid-template-columns:1fr}
  .kh-tiles{grid-template-columns:1fr}
}

/* a grey box that is one big link, e.g. to a service page */
.kh-prose a.kh-go{display:flex;align-items:flex-end;justify-content:space-between;gap:clamp(18px,3vw,40px);
  text-decoration:none;color:var(--ink);margin-top:2.4em}
.kh-go-t{display:flex;flex-direction:column;gap:10px;min-width:0}
.kh-go-t b{font-weight:400;font-size:clamp(21px,2vw,28px);line-height:1.12;letter-spacing:-.04em;text-wrap:balance}
.kh-go-t span:last-child{font-size:.9em;line-height:1.5;color:var(--muted);max-width:46ch}
.kh-go-a{flex:none;display:inline-flex;align-items:center;gap:10px;font-size:13px;line-height:1;
  padding:10px 16px;border-radius:999px;background:var(--ink);color:var(--on-ink);transition:background .3s ease,color .3s ease}
.kh-go-a svg{transition:transform .4s var(--swing)}
@media(hover:hover){
  .kh-prose a.kh-go:hover .kh-go-a{background:var(--accent);color:var(--accent-ink)}
  .kh-prose a.kh-go:hover .kh-go-a svg{transform:translateX(4px)}
}
.kh-prose a.kh-go:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
@media(max-width:760px){
  .kh-prose a.kh-go{flex-direction:column;align-items:flex-start}
}

/* ------------------------------------------------ diagrams drawn in the page (content article)
   Built from the article's own examples. Ink in currentColor, one accent per drawing, so they
   follow the theme. Words are HTML, so they stay readable on a phone. */
.kh-viz{border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);
  padding:clamp(20px,3vw,36px);font-size:14px;line-height:1.35}
.kh-prose .kh-viz>*+*{margin-top:0}
.kh-prose .kh-viz-h{font-size:clamp(20px,2vw,27px);line-height:1.08;letter-spacing:-.045em;max-width:28ch;margin-bottom:clamp(22px,3vw,34px)}
.kh-viz svg{display:block;overflow:visible}
.kh-viz svg *{vector-effect:non-scaling-stroke}
.kh-viz .ln{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.kh-viz .acl{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.kh-viz .ac{fill:var(--accent);stroke:var(--accent)}
.kh-viz-k{font-size:12.5px;letter-spacing:-.01em;color:var(--muted)}
.kh-viz-lab{display:block;font-size:13px;line-height:1.4;color:var(--muted);letter-spacing:-.02em}
.kh-viz-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,4vw,56px)}
.kh-viz-cols>div{display:flex;flex-direction:column;gap:14px;min-width:0}
.kh-chipx{display:inline-block;font-size:11.5px;line-height:1;padding:6px 10px;border-radius:999px;border:1px solid var(--line-2);color:var(--ink);white-space:nowrap}
.kh-chipx.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.kh-chipx.ink{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}

/* 1. thirty versions of one bet vs six bets */
.kh-ads{display:grid;gap:5px}
.kh-ads.n30{grid-template-columns:repeat(6,minmax(0,1fr))}
.kh-ads.n6{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.kh-ad{aspect-ratio:4/5;border:1.5px solid currentColor;border-radius:4px;padding:9%;display:flex;flex-direction:column;gap:9%;min-width:0}
.kh-ad::before{content:"";display:block;flex:1;border-radius:2px;background:var(--wash-2)}
.kh-ad i{display:block;height:1.5px;background:currentColor;width:80%}
.kh-ad i+i{width:55%}
.n30 .kh-ad:nth-child(5n+2) i{width:72%}
.n30 .kh-ad:nth-child(7n+3) i+i{width:62%}
.n30 .kh-ad:nth-child(4n)::before{background:var(--dim)}
.n6 .kh-ad{aspect-ratio:auto;padding:10px 10px 11px;gap:8px}
.n6 .kh-ad::before{flex:none;height:46px}
.n6 .kh-ad b{font-weight:400;font-size:12.5px;line-height:1.2;letter-spacing:-.02em}
.n6 .kh-ad.on{border-color:var(--accent);background:var(--accent);color:var(--accent-ink)}
.n6 .kh-ad.on::before{background:rgba(255,255,255,.35)}
.kh-brace{display:flex;align-items:center;gap:10px;padding-top:10px;border-top:1.5px solid currentColor;position:relative}
.kh-brace::before,.kh-brace::after{content:"";position:absolute;top:-7px;width:1.5px;height:7px;background:currentColor}
.kh-brace::before{left:0}.kh-brace::after{right:0}

/* 2. the three factors, case by case */
.kh-fx{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr)) minmax(0,1.4fr);gap:14px 16px;align-items:center}
.kh-fx .hd{font-size:12.5px;letter-spacing:-.01em;color:var(--muted)}
.kh-fx .hd.op{text-align:left}
.kh-fx .case{font-size:13.5px;letter-spacing:-.02em;line-height:1.25}
.kh-fx .mtr{display:block;position:relative;height:10px;border-radius:999px;border:1.5px solid currentColor;overflow:hidden}
.kh-fx .mtr i{position:absolute;inset:0 auto 0 0;background:currentColor}
.kh-fx .mtr.low i{background:var(--accent)}
.kh-fx .res{font-size:13.5px;letter-spacing:-.02em;line-height:1.25;color:var(--muted)}
.kh-fx .res.on{color:var(--ink)}
.kh-fx .res.on::before{content:"";display:inline-block;width:8px;height:8px;background:var(--accent);margin-right:8px;vertical-align:1px}
.kh-fx .sep{grid-column:1 / -1;height:1px;background:var(--line)}
.kh-fx-eq{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-top:clamp(20px,2.6vw,28px);padding-top:16px;border-top:1px solid var(--line);font-size:clamp(16px,1.6vw,20px);letter-spacing:-.035em}
.kh-fx-eq span{color:var(--muted)}

/* 3. four axes */
.kh-axes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.6vw,18px)}
.kh-axes>div{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.kh-axes .kh-viz-k{margin-bottom:6px}
.kh-axes .kh-viz-k b{font-weight:400;color:var(--ink);margin-left:6px}
.kh-pick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:clamp(20px,2.6vw,28px);padding-top:16px;border-top:1px solid var(--line)}
.kh-pick>span{color:var(--muted)}
.kh-pick>b{font-weight:400;margin-left:4px;letter-spacing:-.02em}
.kh-count{margin-top:12px;font-size:13px;color:var(--muted)}
.kh-count b{font-weight:400;color:var(--ink);font-variant-numeric:tabular-nums}

/* 4. one broad ad vs six narrow ones */
.kh-oval{position:relative;flex:1;min-height:180px;display:flex;align-items:center;justify-content:center}
.kh-oval svg{position:absolute;inset:0;width:100%;height:100%}
.kh-oval span{position:relative;text-align:center;color:var(--muted);font-size:13px;line-height:1.5}
.kh-shots{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.kh-prose .kh-shots li{padding:0;margin:0;display:grid;grid-template-columns:minmax(28px,64px) 22px minmax(0,1fr);align-items:center;gap:10px;font-size:13px;line-height:1.25}
.kh-prose .kh-shots li::before{content:none}
.kh-shots svg{width:100%;height:12px}
.kh-shots .tg{width:22px;height:22px}
.kh-shots li>span{color:var(--ink)}
.kh-shots b{font-weight:400}
.kh-shots li>span span{color:var(--muted)}

/* 5. the jigsaw */
.kh-vpz{display:flex;align-items:flex-start;padding-right:2%}
.kh-vpz>div{position:relative;flex:none;width:18.03%;margin-right:-1.64%}
.kh-vpz>div:last-child{margin-right:0}
.kh-vpz svg{width:100%;height:auto}
.kh-vpz .pz{position:absolute;left:0;top:0;width:90.9%;aspect-ratio:120/76;display:flex;align-items:center;justify-content:center;
  font-size:clamp(10px,1.3vw,14px);letter-spacing:-.03em;text-align:center;line-height:1.1}
.kh-vpz .on .pz{color:var(--accent-ink)}
.kh-vpz .end .pz{color:var(--muted)}
.kh-vpz p{width:90.9%;padding:10px 6px 0;font-size:12px;line-height:1.35;color:var(--muted);letter-spacing:-.015em}
.kh-vpz .on p{color:var(--ink)}
.kh-vpz .out p::after{content:"Uden for annoncen";display:block;margin-top:6px;font-size:12px;letter-spacing:-.01em;color:var(--ink)}

/* 6. explore cheap, go deep expensive */
.kh-flow{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(60px,.5fr) minmax(0,1fr);gap:clamp(12px,2vw,24px);align-items:stretch}
.kh-flow>div{display:flex;flex-direction:column;gap:12px;min-width:0}
.kh-statics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.kh-statics span{border:1.5px solid currentColor;border-radius:4px;padding:10px 10px 12px;font-size:12.5px;line-height:1.2;letter-spacing:-.02em;min-height:58px}
.kh-statics span.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.kh-funnel{justify-content:center;align-items:center;text-align:center}
.kh-funnel svg{width:100%;height:auto;max-height:150px}
.kh-big{border:1.5px solid currentColor;border-radius:6px;padding:14px;flex:1;display:flex;flex-direction:column;gap:12px;min-height:200px}
.kh-big b{font-weight:400;font-size:clamp(17px,1.6vw,21px);letter-spacing:-.035em;line-height:1.15}
.kh-big b::before{content:"";display:block;width:10px;height:10px;background:var(--accent);margin-bottom:12px}
.kh-big .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
.kh-cost{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--muted)}
.kh-cost b{font-weight:400;color:var(--ink);font-variant-numeric:tabular-nums}

@media(max-width:760px){
  .kh-viz-cols{grid-template-columns:1fr}
  .kh-ads.n30{gap:4px}
  .kh-fx{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px}
  .kh-fx .hd.case-h,.kh-fx .hd.res-h{display:none}
  .kh-fx .case,.kh-fx .res{grid-column:1 / -1}
  .kh-fx .case{margin-top:6px}
  .kh-axes{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:22px}
  .kh-flow{grid-template-columns:1fr}
  .kh-funnel svg{max-height:70px;transform:rotate(90deg)}
}
@media(max-width:560px){
  .kh-vpz{flex-wrap:wrap;row-gap:14px;padding-right:4%}
  .kh-vpz>div{width:34%;margin-right:-3.09%}
  .kh-vpz>div:nth-child(3n){margin-right:0}
  .kh-vpz .pz{font-size:12.5px}
}

/* feed illustration: a grid of near-identical ads with one that stands out (AI slop article) */
.kh-feed{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:clamp(14px,2vw,22px);
  border:1px solid var(--line-2);border-radius:10px;background:var(--wash)}
.kh-ad-c{display:flex;flex-direction:column;gap:7px;padding:8px 8px 12px;border-radius:8px;background:var(--paper);
  border:1px solid var(--line);min-width:0}
.kh-ad-img{display:block;aspect-ratio:4/3;border-radius:5px;
  background:linear-gradient(135deg,#E9E4F7 0%,#D9E6F5 45%,#F3E6EC 100%)}
.kh-ad-s{font-size:10px;line-height:1;color:var(--muted)}
.kh-ad-t{font-size:12px;line-height:1.3;letter-spacing:-.02em;color:var(--muted)}
.kh-ad-c.is-real{border:2px solid var(--accent);padding:7px 7px 11px}
.kh-ad-c.is-real .kh-ad-img{background:linear-gradient(160deg,#2C3B33 0%,#5F7A68 55%,#B9C8B7 100%)}
.kh-ad-c.is-real .kh-ad-t{color:var(--ink)}
@media(max-width:760px){.kh-feed{gap:6px;padding:10px}.kh-ad-t{font-size:10.5px}.kh-ad-s{font-size:9px}}

/* the road to third base: a diamond with HTML labels, then the five steps (holistic specialist article) */
.kh-dia{position:relative;aspect-ratio:600/470;max-width:640px;margin:0 auto clamp(30px,4.5vw,48px);font-size:13px;line-height:1.3;letter-spacing:-.02em;
  --dia-box:color-mix(in srgb,var(--ink) 4%,var(--paper));--dia-done:color-mix(in srgb,var(--ink) 55%,var(--paper))}
.kh-dia svg{position:absolute;inset:0;width:100%;height:100%}
.kh-dia-in{fill:color-mix(in srgb,var(--ink) 3%,var(--paper));stroke:var(--line-2);stroke-width:1}
.kh-dia-tk{fill:none;stroke:var(--line-2);stroke-width:1.5}
.kh-dia-lead path{fill:none;stroke:var(--accent);stroke-width:1}
.kh-dia-lead circle{fill:var(--accent)}
.kh-dia-run{fill:none;stroke-width:3;stroke-linecap:butt}
.kh-dia-run.done{stroke:var(--dia-done)}
.kh-dia-run.now{stroke:currentColor}
.kh-dia-run.home{stroke:var(--accent);stroke-dasharray:7 6}
.kh-dia-ar.done{fill:var(--dia-done)}
.kh-dia-ar.now{fill:currentColor}
.kh-dia-ar.home{fill:var(--accent)}
.kh-dia-b rect{fill:var(--paper);stroke:var(--dia-done);stroke-width:1.5}
.kh-dia-b text{fill:currentColor;font-size:17px;text-anchor:middle;font-family:var(--sans);letter-spacing:0}
.kh-dia-b.on rect{fill:var(--accent);stroke:var(--accent)}
.kh-dia-b.on text{fill:var(--accent-ink)}
.kh-dia-home{fill:currentColor}
.kh-dia-l{position:absolute;display:flex;flex-direction:column;gap:4px;padding:10px 14px 11px;border:1px solid var(--line-2);border-radius:6px;background:var(--dia-box);box-sizing:border-box}
.kh-dia-l b{font-weight:400;font-size:clamp(15px,1.6vw,20px);letter-spacing:-.035em;line-height:1.1}
.kh-dia-l i{font-style:normal;font-size:12.5px;color:var(--muted)}
.kh-dia-l.b2{left:50%;top:1.5%;transform:translateX(-50%);align-items:center;text-align:center;white-space:nowrap;min-width:46%}
.kh-dia-l.b1{left:76.3%;top:52.3%;transform:translateY(-50%);width:23.7%}
.kh-dia-l.b3{right:76.3%;top:52.3%;transform:translateY(-50%);width:23.7%;border:1.5px solid var(--accent)}
.kh-dia-l.hp{left:50%;top:87.6%;transform:translateX(-50%);align-items:center;text-align:center;white-space:nowrap;min-width:52%;padding:8px 14px 9px}
.kh-dia-home-l{position:absolute;right:65.8%;top:68.6%;text-align:right;font-size:12.5px;line-height:1.35;color:var(--muted)}
.kh-dia-home-l em{display:block;font-style:normal;color:var(--accent);font-size:13.5px}
:root:not([data-3rd="dark"]) .kh-dia-home-l em{color:color-mix(in srgb,var(--accent) 60%,var(--ink))}
.kh-dia-c{position:absolute;left:50%;top:52.3%;transform:translate(-50%,-50%);width:22%;text-align:center;font-size:clamp(13px,1.5vw,17px);letter-spacing:-.03em;line-height:1.2}
.kh-bases{list-style:none;margin:clamp(22px,3vw,34px) 0 0;padding:clamp(18px,2.4vw,26px) 0 0;border-top:1px solid var(--line);
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.kh-prose .kh-bases li:first-child{grid-column:1 / -1;display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:baseline;gap:8px 16px}
.kh-bases li:first-child .kh-chipx{align-self:center}
.kh-prose .kh-bases li{margin:0;padding:12px 12px 14px;border:1px solid var(--line-2);border-radius:8px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.kh-prose .kh-bases li::before{content:none}
.kh-prose .kh-bases li+li{margin-top:0}
.kh-bases li.on{border:2px solid var(--accent);padding:11px 11px 13px}
.kh-bases b{font-weight:400;font-size:clamp(16px,1.4vw,18px);letter-spacing:-.035em;line-height:1.1}
.kh-bases span:not(.kh-chipx){font-size:12.5px;line-height:1.4;color:var(--muted)}

/* direction, speed, control: human, AI, human, with the loop back */
.kh-rfk{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr) 40px minmax(0,1fr);gap:clamp(8px,1.2vw,14px);align-items:stretch}
.kh-rfk>div{border:1.5px solid currentColor;border-radius:6px;padding:14px 14px 16px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0}
.kh-rfk>div.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.kh-rfk b{font-weight:400;font-size:clamp(20px,2vw,26px);letter-spacing:-.045em;line-height:1.05}
.kh-rfk>div>span:not(.kh-chipx){font-size:13px;line-height:1.4;color:var(--muted)}
.kh-rfk>div.on>span:not(.kh-chipx){color:var(--accent-ink)}
.kh-rfk-ar{align-self:center;width:100%;height:12px}
.kh-rfk-back{position:relative;margin:0 16.5%;height:22px;border:1.5px solid currentColor;border-top:none;border-radius:0 0 8px 8px}
.kh-rfk-back::before{content:"";position:absolute;left:-6px;top:-1px;width:9px;height:9px;border-left:1.5px solid currentColor;border-top:1.5px solid currentColor;transform:translate(1px,0) rotate(45deg);transform-origin:center}
.kh-rfk-back span{position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);padding:0 10px;background:var(--paper);font-size:12.5px;color:var(--muted);white-space:nowrap;line-height:1.3}
.kh-rfk+.kh-rfk-back{margin-top:0}
.kh-rfk-back+.kh-fx-eq{margin-top:clamp(28px,3.4vw,40px);font-size:clamp(14px,1.3vw,16.5px)}
@media(max-width:760px){
  .kh-bases{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kh-prose .kh-bases li:first-child{display:flex}
  .kh-rfk{grid-template-columns:1fr}
  .kh-rfk-ar{width:28px;height:28px;transform:rotate(90deg);justify-self:center;height:12px}
  .kh-rfk-back{border:none;height:auto;margin:14px 0 0}
  .kh-rfk-back::before{content:none}
  .kh-rfk-back span{position:static;transform:none;padding:0;white-space:normal;display:block}
}
@media(max-width:560px){
  .kh-dia{font-size:11px}
  .kh-dia-l i,.kh-dia-home-l,.kh-dia-lead{display:none}
  .kh-dia-l{padding:6px 8px;align-items:center;text-align:center}
  .kh-dia-l.b2,.kh-dia-l.hp{min-width:0}
  .kh-dia-l b{font-size:14px}
  .kh-dia-c{font-size:11px;width:20%}
}

/* ------------------------------------------------ an author's page */
.kh-au{padding-top:clamp(28px,6vh,72px);padding-bottom:clamp(48px,6vw,96px)}
.kh-crumbs ol{list-style:none;margin:0 0 clamp(22px,3vw,40px);padding:0;display:flex;flex-wrap:wrap;gap:4px 8px;font-size:13px;color:var(--muted)}
.kh-crumbs li+li::before{content:"/";margin-right:8px;color:var(--line-2)}
.kh-crumbs a{color:var(--muted);text-decoration:none}
.kh-crumbs a:hover{color:var(--ink)}
.kh-crumbs [aria-current]{color:var(--ink)}
.kh-au-grid{display:grid;grid-template-columns:clamp(220px,24vw,340px) minmax(0,1fr);gap:clamp(28px,5vw,88px);align-items:start}
.kh-au-ph{margin:0;aspect-ratio:4/5;border-radius:10px;overflow:hidden;background:var(--wash)}
.kh-au-ph img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.kh-au-copy{padding-top:clamp(0px,1.6vw,20px)}
.kh-au-h1{margin-top:14px;font-size:clamp(38px,5.4vw,84px);line-height:1;text-wrap:balance}
.kh-au-role{margin:clamp(14px,1.6vw,20px) 0 0;font-size:clamp(16px,1.3vw,19px);color:var(--muted)}
.kh-au-role a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line-2)}
.kh-au-role a:hover{border-color:var(--ink)}
.kh-au-bio{margin:clamp(22px,2.6vw,34px) 0 0;font-size:clamp(17px,1.45vw,21px);line-height:1.5;max-width:44ch;color:var(--muted)}
.kh-aubox-bio+.kh-aubox-bio{margin-top:.7em}
.kh-au-bio+.kh-au-bio{margin-top:.9em}
.kh-au-block{margin-top:clamp(28px,3vw,40px)}
.kh-au-sub{margin:0 0 10px;font-size:13px;font-weight:400;color:var(--muted);letter-spacing:0}
.kh-au-topics{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 0;font-size:clamp(15px,1.2vw,17px)}
.kh-au-topics li:not(:last-child)::after{content:"·";margin:0 .55em;color:var(--muted)}
.kh-au-block .certs img{width:64px}
.kh-au-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:clamp(26px,3vw,40px)}
.kh-au-btn{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--ink);text-decoration:none;
  padding:9px 14px 9px 12px;border:1px solid var(--line);border-radius:10px;transition:border-color .2s}
.kh-au-btn:first-child svg{color:#0A66C2}
.kh-au-btn:hover{border-color:var(--ink)}
.kh-au-btn:focus-visible{outline:2px solid #76CF58;outline-offset:2px}
.kh-au-list{padding-bottom:clamp(72px,10vw,140px)}
.kh-au-count{font-size:13px;color:var(--muted);white-space:nowrap}
.kh-au-none{margin:0;font-size:clamp(16px,1.2vw,18px);color:var(--muted)}
.kh-au-none a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:4px}
@media(max-width:860px){
  .kh-au-grid{grid-template-columns:1fr}
  .kh-au-ph{aspect-ratio:1/1;max-width:280px}
}

/* ------------------------------------------------ under an article: who wrote it */
.kh-by b a{color:inherit;text-decoration:none;border-bottom:1px solid var(--line-2)}
.kh-by b a:hover{border-color:var(--ink)}
.kh-aubox{margin-inline:auto;max-width:calc(680px + 2 * var(--gutter));padding-bottom:clamp(56px,8vw,110px)}
/* the author sits right under the article on the page colour, set off by a
   hairline instead of a grey box */
article:has(+ .kh-aubox) .kh-prose{padding-bottom:clamp(28px,3.5vw,44px)}
.kh-aubox-in{display:flex;gap:clamp(16px,2vw,22px);align-items:flex-start;padding:clamp(24px,3vw,36px) 0 0;border-top:1px solid var(--line)}
.kh-av.kh-aubox-av{width:64px;height:64px}
.kh-aubox-txt{min-width:0}
.kh-aubox-k{margin:0;font-size:12.5px;color:var(--muted)}
.kh-aubox-nm{margin:4px 0 0;font-size:clamp(19px,1.6vw,22px);letter-spacing:-.035em;line-height:1.15}
.kh-aubox-nm a{color:var(--ink);text-decoration:none}
.kh-aubox-nm a:hover{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:4px}
.kh-aubox-rl{margin:3px 0 0;font-size:13.5px;color:var(--muted)}
.kh-aubox-bio{margin:12px 0 0;font-size:15px;line-height:1.55;color:var(--muted)}
.kh-aubox-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:16px}
.kh-aubox-go{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--ink);text-decoration:none;
  padding:8px 12px 8px 14px;border-radius:10px;background:var(--paper);border:1px solid var(--line);transition:border-color .2s}
.kh-aubox-go:hover{border-color:var(--ink)}
.kh-aubox-li{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;color:var(--muted);text-decoration:none}
.kh-aubox-li svg{color:#0A66C2}
.kh-aubox-li:hover{color:var(--ink)}
@media(max-width:560px){.kh-aubox-in{flex-direction:column}}

/* author page: experience on the profile's two columns, spacing instead of rules */
.kh-xp{padding-bottom:clamp(48px,6vw,88px)}
.kh-xp-grid{border-top:1px solid var(--line);padding-top:clamp(40px,5vw,64px);display:grid;grid-template-columns:clamp(220px,24vw,340px) minmax(0,1fr);gap:clamp(28px,5vw,88px);align-items:start}
.kh-xp-h{margin:0;font-size:clamp(26px,3vw,44px);font-weight:400;letter-spacing:-.05em;line-height:1;position:sticky;top:clamp(96px,14vh,140px)}
.kh-xp-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:clamp(10px,1vw,14px)}
/* each job in its own box */
.kh-xp-item{background:var(--wash);border-radius:10px;padding:clamp(20px,2vw,28px) clamp(20px,2.2vw,32px)}
.kh-xp-item h3{margin:0;font-size:clamp(20px,1.7vw,26px);font-weight:400;letter-spacing:-.035em;line-height:1.15}
.kh-xp-meta{margin:6px 0 0;font-size:14.5px;color:var(--muted)}
.kh-xp-txt{margin:10px 0 0;font-size:15.5px;line-height:1.55;max-width:60ch}
.kh-xp-sub{margin:clamp(44px,5vw,64px) 0 clamp(18px,2vw,24px);font-size:13px;font-weight:400;color:var(--muted)}
/* several roles at the same place: the roles joined by a line */
.kh-xp-roles{list-style:none;margin:20px 0 0;padding:0}
.kh-xp-roles li{position:relative;padding-left:26px}
.kh-xp-roles li+li{margin-top:16px}
.kh-xp-roles li::before{content:"";position:absolute;left:3px;top:.45em;width:9px;height:9px;border-radius:50%;
  background:var(--wash);border:1.5px solid var(--muted);box-sizing:border-box}
.kh-xp-roles li:not(:last-child)::after{content:"";position:absolute;left:7px;top:calc(.45em + 13px);bottom:-12px;width:1px;background:var(--line-2)}
.kh-xp-roles h4{margin:0;font-size:clamp(16px,1.3vw,18px);font-weight:400;letter-spacing:-.025em;line-height:1.3}
.kh-xp-roles .kh-xp-meta{margin-top:2px;font-size:13.5px}
@media(max-width:860px){
  .kh-xp-grid{grid-template-columns:1fr;gap:clamp(20px,5vw,28px)}
  .kh-xp-h{position:static}
}
