/* Knowledge hub (public /insights/). Brand primary #00bcd4 shared with the
   landing pages. Editorial typography, three-column grid on desktop. */

:root {
  --kh-brand: #00bcd4;
  --kh-brand-dark: #0097a7;
  --kh-brand-tint: #e0f7fa;
  --kh-ink: #16202a;
  --kh-ink-2: #3d4f61;
  --kh-ink-3: #6b7d8f;
  --kh-line: #e2e8ee;
  --kh-line-2: #eef2f6;
  --kh-bg: #ffffff;
  --kh-bg-2: #f6f8fa;
  --kh-ok: #1f8b4c;
  --kh-warn: #a16207;
  --kh-warn-bg: #fef6e0;
  --kh-danger: #c0392b;
  --kh-danger-bg: #fdeceb;
  --kh-info-bg: #e7f2fa;
  --kh-radius: 10px;
  --kh-shadow: 0 1px 2px rgba(22, 32, 42, .05), 0 4px 14px rgba(22, 32, 42, .05);
  --kh-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --kh-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --kh-gap: 32px;
  --kh-left: minmax(220px, 250px);
  --kh-right: minmax(280px, 320px);
  --kh-max: 1460px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.insights { margin: 0; font-family: var(--kh-sans); font-size: 16px; line-height: 1.6; color: var(--kh-ink); background: var(--kh-bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--kh-brand-dark); }
a:hover { color: var(--kh-ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--kh-ink); color: #fff; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--kh-brand-dark); outline-offset: 2px; }
.kh-muted { color: var(--kh-ink-3); }

/* Header ------------------------------------------------------------------- */
.kh-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--kh-line); }
.kh-header__inner { max-width: var(--kh-max); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 24px; }
.kh-brand img { display: block; height: 32px; width: auto; }
.kh-nav { display: flex; gap: 18px; }
.kh-nav a { color: var(--kh-ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.kh-nav a:hover, .kh-nav a[aria-current="page"] { color: var(--kh-ink); border-bottom-color: var(--kh-brand); }
.kh-search { margin-left: auto; display: flex; align-items: center; max-width: 360px; flex: 1; }
.kh-search input { flex: 1; height: 38px; border: 1px solid var(--kh-line); border-radius: 999px 0 0 999px; padding: 0 14px; font: inherit; font-size: 14px; background: var(--kh-bg-2); min-width: 0; }
.kh-search input:focus { outline: none; border-color: var(--kh-brand); background: #fff; }
.kh-search button { height: 38px; border: 1px solid var(--kh-line); border-left: 0; border-radius: 0 999px 999px 0; background: #fff; padding: 0 14px; cursor: pointer; font-size: 18px; line-height: 1; }
.kh-search--page { max-width: 640px; margin-top: 12px; }
.kh-search--page button { border-radius: 0 999px 999px 0; padding: 0 18px; font-size: 14px; }
.kh-menu-toggle { display: none; height: 38px; border: 1px solid var(--kh-line); background: #fff; border-radius: 999px; padding: 0 14px; font: inherit; font-weight: 600; cursor: pointer; }

/* Grid ---------------------------------------------------------------------- */
.kh-main { max-width: var(--kh-max); margin: 0 auto; padding: 28px 24px 64px; }
.kh-grid { display: grid; grid-template-columns: var(--kh-left) minmax(0, 1fr) var(--kh-right); gap: var(--kh-gap); align-items: start; }
.kh-grid--two { grid-template-columns: var(--kh-left) minmax(0, 1fr); }
.kh-center { min-width: 0; max-width: 780px; width: 100%; justify-self: center; }
.kh-center--wide { max-width: 1040px; }
.kh-left__sticky, .kh-right__sticky { position: sticky; top: 84px; }
.kh-right__sticky { max-height: calc(100vh - 100px); overflow: auto; padding-right: 2px; }

/* Left navigation ------------------------------------------------------------- */
.kh-navblock { margin-bottom: 26px; }
.kh-navblock__title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--kh-ink-3); margin: 0 0 8px; font-weight: 700; }
.kh-navblock ul { list-style: none; margin: 0; padding: 0; }
.kh-navblock li a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--kh-ink-2); text-decoration: none; font-size: 14.5px; }
.kh-navblock li a:hover { background: var(--kh-bg-2); color: var(--kh-ink); }
.kh-navblock li a.is-active { background: var(--kh-brand-tint); color: var(--kh-brand-dark); font-weight: 600; }
.kh-navblock__icon { width: 20px; text-align: center; font-size: 15px; }
.kh-navblock__label { flex: 1; min-width: 0; }
.kh-navblock__count { font-size: 12px; color: var(--kh-ink-3); background: var(--kh-bg-2); border-radius: 999px; padding: 1px 8px; }
.kh-navblock li a.is-active .kh-navblock__count { background: #fff; }
.kh-navblock__empty { font-size: 13px; color: var(--kh-ink-3); padding: 6px 10px; }

/* Right modules ---------------------------------------------------------------- */
.kh-module { background: #fff; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--kh-shadow); }
.kh-module--next { background: linear-gradient(160deg, #f3fcfd, #ffffff); border-color: #c6eef3; }
.kh-module--compass { background: var(--kh-ink); color: #dbe6ef; border-color: var(--kh-ink); }
.kh-module--compass .kh-module__title { color: #fff; }
.kh-module--bootcamp { border-left: 4px solid var(--kh-brand); }
.kh-module__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kh-module__title { font-size: 15px; margin-bottom: 8px; }
.kh-module__lead { font-size: 14px; color: var(--kh-ink-2); margin-bottom: 12px; }
.kh-module__more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.kh-minisearch { display: flex; gap: 6px; margin-top: 12px; }
.kh-minisearch input { flex: 1; min-width: 0; height: 36px; border: 1px solid var(--kh-line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; }
.kh-cardlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* Buttons ---------------------------------------------------------------------- */
.kh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 8px; font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, transform .05s; }
.kh-btn:active { transform: translateY(1px); }
.kh-btn--primary { background: var(--kh-brand); color: #06262b; }
.kh-btn--primary:hover { background: #13c9e0; color: #06262b; }
.kh-btn--secondary { background: #fff; color: var(--kh-ink); border-color: var(--kh-line); }
.kh-btn--secondary:hover { background: var(--kh-bg-2); }
.kh-btn--outline { background: transparent; border-color: var(--kh-brand-dark); color: var(--kh-brand-dark); }
.kh-btn--ghost { background: transparent; border-color: var(--kh-line); color: var(--kh-ink-2); height: 36px; }
.kh-btn--block { width: 100%; }

/* Article header --------------------------------------------------------------- */
.kh-crumbs { font-size: 13px; color: var(--kh-ink-3); margin-bottom: 14px; }
.kh-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kh-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--kh-line); }
.kh-crumbs a { color: var(--kh-ink-3); text-decoration: none; }
.kh-crumbs a:hover { color: var(--kh-brand-dark); text-decoration: underline; }
.kh-preview-banner { background: var(--kh-warn-bg); color: var(--kh-warn); padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.kh-article-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.kh-eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--kh-brand-dark); text-decoration: none; }
.kh-eyebrow--topic { color: var(--kh-ink-3); }
.kh-eyebrow-sep { color: var(--kh-line); }
.kh-badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--kh-bg-2); color: var(--kh-ink-2); text-decoration: none; }
.kh-badge--news { background: var(--kh-warn-bg); color: var(--kh-warn); }
.kh-badge--campaign { background: var(--kh-brand-tint); color: var(--kh-brand-dark); }
.kh-article-head__title { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.kh-article-head__subtitle { font-size: 19px; line-height: 1.5; color: var(--kh-ink-2); margin-bottom: 18px; font-family: var(--kh-serif); }
.kh-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 0; border-top: 1px solid var(--kh-line); border-bottom: 1px solid var(--kh-line); font-size: 14px; }
.kh-byline__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--kh-brand-tint); color: var(--kh-brand-dark); display: grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; }
.kh-byline__avatar img { width: 36px; height: 36px; object-fit: cover; }
.kh-byline__text { display: flex; flex-direction: column; line-height: 1.25; }
.kh-byline__name { font-weight: 600; }
.kh-byline__role { color: var(--kh-ink-3); font-size: 12.5px; }
.kh-byline__dates { color: var(--kh-ink-3); }
.kh-share { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.kh-share__btn { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--kh-line); background: #fff; font: inherit; font-size: 12.5px; color: var(--kh-ink-2); text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.kh-share__btn:hover { background: var(--kh-bg-2); color: var(--kh-ink); }
.kh-hero { margin: 24px 0; }
.kh-hero img { width: 100%; border-radius: var(--kh-radius); display: block; aspect-ratio: 1200/630; object-fit: cover; }
.kh-hero figcaption, .kh-figure figcaption, .kh-video figcaption, .kh-gallery figcaption { font-size: 13px; color: var(--kh-ink-3); margin-top: 8px; }
.kh-toc { background: var(--kh-bg-2); border-radius: var(--kh-radius); padding: 16px 20px; margin: 24px 0; }
.kh-toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--kh-ink-3); margin-bottom: 8px; }
.kh-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; font-size: 14.5px; }
.kh-toc li { break-inside: avoid; margin-bottom: 4px; }
.kh-toc a { text-decoration: none; }

/* Body typography ------------------------------------------------------------- */
.kh-body { font-family: var(--kh-serif); font-size: 19px; line-height: 1.7; color: #1d2833; }
.kh-body .kh-p { margin: 0 0 1.25em; }
.kh-h2 { font-family: var(--kh-sans); font-size: 27px; margin: 1.8em 0 .6em; scroll-margin-top: 90px; }
.kh-h3 { font-family: var(--kh-sans); font-size: 21px; margin: 1.5em 0 .5em; scroll-margin-top: 90px; }
.kh-h4 { font-family: var(--kh-sans); font-size: 17px; margin: 1.3em 0 .4em; }
.kh-list { margin: 0 0 1.25em; padding-left: 1.4em; }
.kh-list li { margin-bottom: .4em; }
.kh-quote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--kh-brand); font-size: 22px; line-height: 1.5; font-style: italic; }
.kh-quote footer { font-family: var(--kh-sans); font-size: 14px; font-style: normal; color: var(--kh-ink-3); margin-top: 8px; }
.kh-callout { font-family: var(--kh-sans); font-size: 15.5px; border-radius: var(--kh-radius); padding: 16px 18px; margin: 1.5em 0; border: 1px solid var(--kh-line); background: var(--kh-bg-2); }
.kh-callout--info { background: var(--kh-info-bg); border-color: #c6dff0; }
.kh-callout--success { background: #e8f6ee; border-color: #bfe3cc; }
.kh-callout--brand { background: var(--kh-brand-tint); border-color: #b2ebf2; }
.kh-callout--note { background: var(--kh-bg-2); }
.kh-callout--warning { background: var(--kh-warn-bg); border-color: #f3dc9a; }
.kh-callout__title { display: block; margin-bottom: 4px; }
.kh-code { margin: 1.5em 0; font-family: var(--kh-sans); }
.kh-code pre { background: #0f1720; color: #e6edf3; padding: 16px; border-radius: var(--kh-radius); overflow: auto; font-size: 14px; line-height: 1.5; }
.kh-divider { border: 0; border-top: 1px solid var(--kh-line); margin: 2em 0; }
.kh-figure { margin: 1.8em 0; }
.kh-figure img { border-radius: var(--kh-radius); display: block; }
.kh-figure__credit { color: var(--kh-ink-3); }
.kh-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.kh-gallery__grid img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.kh-video { margin: 1.8em 0; }
.kh-video__frame { position: relative; aspect-ratio: 16/9; border-radius: var(--kh-radius); overflow: hidden; background: #000; }
.kh-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kh-stats-block { margin: 1.8em 0; font-family: var(--kh-sans); }
.kh-stats-block__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0; }
.kh-stat { background: var(--kh-bg-2); border-radius: var(--kh-radius); padding: 16px; border-top: 3px solid var(--kh-brand); }
.kh-stat dt { font-size: 13px; color: var(--kh-ink-3); font-weight: 600; margin-bottom: 4px; }
.kh-stat dd { margin: 0; }
.kh-stat__value { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; }
.kh-stat--up .kh-stat__value { color: var(--kh-ok); }
.kh-stat--down .kh-stat__value { color: var(--kh-danger); }
.kh-stat__detail { display: block; font-size: 13.5px; color: var(--kh-ink-2); margin-top: 4px; }
.kh-stat__source { display: block; font-size: 12px; margin-top: 6px; }
.kh-table-wrap { overflow-x: auto; margin: 1.8em 0; font-family: var(--kh-sans); }
.kh-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.kh-table caption { text-align: left; caption-side: bottom; font-size: 13px; color: var(--kh-ink-3); padding-top: 8px; }
.kh-table th, .kh-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--kh-line); vertical-align: top; }
.kh-table thead th { background: var(--kh-bg-2); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--kh-ink-3); }
.kh-table tbody th { font-weight: 600; }
.kh-timeline { margin: 1.8em 0; font-family: var(--kh-sans); }
.kh-timeline ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--kh-line); }
.kh-timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 0 0 20px 18px; position: relative; font-size: 15.5px; }
.kh-timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--kh-brand); }
.kh-timeline__label { font-weight: 700; color: var(--kh-brand-dark); font-size: 13.5px; }
.kh-timeline p { margin: 4px 0 0; color: var(--kh-ink-2); }
.kh-faq { margin: 2em 0; font-family: var(--kh-sans); }
.kh-faq__item { border-bottom: 1px solid var(--kh-line); padding: 6px 0; }
.kh-faq__item summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 10px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.kh-faq__item summary::-webkit-details-marker { display: none; }
.kh-faq__item summary::after { content: "+"; color: var(--kh-brand-dark); font-size: 22px; line-height: 1; }
.kh-faq__item[open] summary::after { content: "–"; }
.kh-faq__answer { font-size: 16px; color: var(--kh-ink-2); padding: 0 0 12px; }
.kh-cards-block { margin: 2em 0; font-family: var(--kh-sans); }
.kh-cta { margin: 2em 0; padding: 24px; border-radius: var(--kh-radius); background: var(--kh-ink); color: #dbe6ef; font-family: var(--kh-sans); }
.kh-cta h3 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.kh-cta p { font-size: 15.5px; }
.kh-cta--secondary, .kh-cta--outline { background: var(--kh-bg-2); color: var(--kh-ink-2); border: 1px solid var(--kh-line); }
.kh-cta--secondary h3, .kh-cta--outline h3 { color: var(--kh-ink); }
.kh-related-block, .kh-references, .kh-download, .kh-newsletter { font-family: var(--kh-sans); margin: 2em 0; }
.kh-related-block__list { padding-left: 1.2em; font-size: 15.5px; }
.kh-references__list { font-size: 14.5px; padding-left: 1.4em; color: var(--kh-ink-2); }
.kh-references__list li { margin-bottom: 8px; }
.kh-references__key { font-weight: 700; color: var(--kh-brand-dark); }
.kh-download { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border: 1px dashed var(--kh-brand-dark); border-radius: var(--kh-radius); font-size: 15px; }
.kh-newsletter { background: var(--kh-brand-tint); border-radius: var(--kh-radius); padding: 22px; font-size: 15px; }
.kh-newsletter h3 { margin-bottom: 6px; }
.kh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.kh-tag { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--kh-bg-2); color: var(--kh-ink-2); text-decoration: none; border: 1px solid var(--kh-line); }
.kh-tag:hover { background: var(--kh-brand-tint); color: var(--kh-brand-dark); border-color: #b2ebf2; }
.kh-tag__count { color: var(--kh-ink-3); }
.kh-notice { background: var(--kh-warn-bg); color: var(--kh-warn); padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.kh-conversion-inline { margin: 32px 0; padding: 26px; border-radius: var(--kh-radius); background: linear-gradient(140deg, #eafbfd, #ffffff); border: 1px solid #c6eef3; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kh-conversion-inline h2 { flex-basis: 100%; font-size: 22px; }
.kh-conversion-inline p { flex-basis: 100%; color: var(--kh-ink-2); margin-bottom: 4px; }
.kh-related { margin: 36px 0; }
.kh-related h2 { font-size: 22px; margin-bottom: 14px; }

/* Cards ------------------------------------------------------------------------ */
.kh-cardgrid { display: grid; gap: 18px; }
.kh-cardgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kh-cardgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kh-card { background: #fff; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--kh-shadow); transition: transform .12s, box-shadow .12s; }
.kh-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(22,32,42,.09); }
.kh-card__media { display: block; background: var(--kh-bg-2); aspect-ratio: 16/9; overflow: hidden; }
.kh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kh-card__placeholder { display: grid; place-items: center; height: 100%; font-size: 34px; color: var(--kh-ink-3); }
.kh-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kh-card__meta { display: flex; gap: 8px; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.kh-card__cat { color: var(--kh-brand-dark); text-decoration: none; }
.kh-card__kind { color: var(--kh-ink-3); }
.kh-card__kind--news { color: var(--kh-warn); background: var(--kh-warn-bg); padding: 1px 7px; border-radius: 999px; letter-spacing: .04em; }
.kh-card__title { font-size: 17px; line-height: 1.3; }
.kh-card__title a { color: var(--kh-ink); text-decoration: none; }
.kh-card__title a:hover { color: var(--kh-brand-dark); }
.kh-card__excerpt { font-size: 14px; color: var(--kh-ink-2); margin: 0; }
.kh-card__foot { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--kh-ink-3); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.kh-card--large { grid-template-columns: 1.3fr 1fr; display: grid; }
.kh-card--large .kh-card__media { aspect-ratio: auto; min-height: 260px; }
.kh-card--large .kh-card__title { font-size: 26px; }
.kh-card--large .kh-card__body { padding: 24px; justify-content: center; }
.kh-card--horizontal { display: grid; grid-template-columns: 140px 1fr; }
.kh-card--horizontal .kh-card__media { aspect-ratio: auto; }
.kh-entry { display: flex; flex-direction: column; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); overflow: hidden; background: #fff; }
.kh-entry__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.kh-entry__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.kh-entry__kind { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--kh-brand-dark); }
.kh-entry--event .kh-entry__kind { color: #7c3aed; }
.kh-entry--bootcamp .kh-entry__kind { color: #b45309; }
.kh-entry--internship .kh-entry__kind { color: #0f766e; }
.kh-entry__title { font-size: 15.5px; line-height: 1.3; }
.kh-entry__title a { color: var(--kh-ink); text-decoration: none; }
.kh-entry__title a:hover { color: var(--kh-brand-dark); }
.kh-entry__facts { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--kh-ink-2); }
.kh-entry__facts div { display: flex; gap: 4px; }
.kh-entry__facts dt { color: var(--kh-ink-3); }
.kh-entry__facts dt::after { content: ":"; }
.kh-entry__facts dd { margin: 0; }
.kh-entry__summary { font-size: 14px; color: var(--kh-ink-2); margin: 4px 0 0; }
.kh-entry__cta { font-size: 13.5px; font-weight: 600; text-decoration: none; margin-top: 6px; }
.kh-entry--compact .kh-entry__body { padding: 10px 12px; }

/* Hub, lists, hubs ------------------------------------------------------------- */
.kh-hero-band { padding: 8px 0 26px; border-bottom: 1px solid var(--kh-line); margin-bottom: 26px; }
.kh-hero-band h1 { font-size: clamp(30px, 4vw, 40px); margin: 6px 0 8px; }
.kh-hero-band__lead { font-size: 18px; color: var(--kh-ink-2); max-width: 640px; margin: 0; }
.kh-section { margin-bottom: 36px; }
.kh-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.kh-section__head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.kh-section__title { font-size: 21px; margin-bottom: 14px; }
.kh-section__head .kh-section__title { margin-bottom: 0; }
.kh-ranked { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.kh-ranked li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--kh-line-2); }
.kh-ranked__num { font-size: 22px; font-weight: 700; color: var(--kh-brand); width: 28px; line-height: 1.1; }
.kh-ranked__title { font-weight: 600; color: var(--kh-ink); text-decoration: none; font-size: 15px; }
.kh-ranked__meta { display: block; font-size: 12.5px; color: var(--kh-ink-3); }
.kh-tilegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kh-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); text-decoration: none; color: var(--kh-ink); background: #fff; transition: border-color .12s; }
.kh-tile:hover { border-color: var(--kh-brand); color: var(--kh-ink); }
.kh-tile__icon { font-size: 22px; }
.kh-tile__label { font-weight: 600; font-size: 15px; }
.kh-tile__count { font-size: 12.5px; color: var(--kh-ink-3); }
.kh-list-head { margin-bottom: 22px; }
.kh-list-head h1, .kh-topic-head h1, .kh-campaign-head h1 { font-size: clamp(28px, 3.6vw, 36px); margin-bottom: 8px; }
.kh-list-head__sub, .kh-topic-head__lead { font-size: 17px; color: var(--kh-ink-2); }
.kh-list-head__count { font-size: 13px; color: var(--kh-ink-3); }
.kh-topic-head { margin-bottom: 26px; }
.kh-stats { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kh-stats li { background: var(--kh-bg-2); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; color: var(--kh-ink-2); }
.kh-stats strong { display: block; font-size: 20px; color: var(--kh-ink); line-height: 1.1; }
.kh-clusters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kh-cluster { border: 1px solid var(--kh-line); border-radius: var(--kh-radius); padding: 18px; }
.kh-cluster h2 { font-size: 18px; margin-bottom: 6px; }
.kh-cluster h2 a { text-decoration: none; color: var(--kh-ink); }
.kh-cluster p { font-size: 14px; color: var(--kh-ink-2); }
.kh-cluster__children { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kh-cluster__children a { font-size: 13.5px; text-decoration: none; padding: 4px 10px; background: var(--kh-bg-2); border-radius: 999px; color: var(--kh-ink-2); }
.kh-cluster__count { font-size: 12px; color: var(--kh-ink-3); font-weight: 500; }
.kh-campaign-head__intro { font-size: 16px; color: var(--kh-ink-2); max-width: 720px; }
.kh-empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--kh-line); border-radius: var(--kh-radius); color: var(--kh-ink-3); }
.kh-empty h2 { font-size: 18px; color: var(--kh-ink); margin-bottom: 6px; }
.kh-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px 0; }
.kh-pager__status { font-size: 14px; color: var(--kh-ink-3); }

/* Lead form -------------------------------------------------------------------- */
.kh-leadform { margin: 36px 0 0; padding: 26px; border-radius: var(--kh-radius); background: var(--kh-bg-2); border: 1px solid var(--kh-line); font-family: var(--kh-sans); scroll-margin-top: 90px; }
.kh-leadform__title { font-size: 21px; margin-bottom: 6px; }
.kh-leadform__intro { color: var(--kh-ink-2); font-size: 15px; }
.kh-leadform__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.kh-field { display: flex; flex-direction: column; gap: 4px; }
.kh-field label { font-size: 13.5px; font-weight: 600; }
.kh-field input, .kh-field textarea, .kh-field select { font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--kh-line); border-radius: 8px; background: #fff; }
.kh-field input:focus, .kh-field textarea:focus { outline: none; border-color: var(--kh-brand); box-shadow: 0 0 0 3px rgba(0,188,212,.18); }
.kh-field textarea { min-height: 90px; grid-column: 1 / -1; }
.kh-field--check { flex-direction: row; align-items: flex-start; gap: 8px; grid-column: 1 / -1; font-size: 13.5px; }
.kh-field--check label { font-weight: 400; }
.kh-field--invalid input { border-color: var(--kh-danger); }
.kh-field__error { color: var(--kh-danger); font-size: 13px; }
.kh-leadform__form .kh-btn { grid-column: 1 / -1; }
.kh-leadform__note { grid-column: 1 / -1; font-size: 12.5px; color: var(--kh-ink-3); margin: 0; }
.kh-field:has(textarea) { grid-column: 1 / -1; }

/* Footer ----------------------------------------------------------------------- */
.kh-footer { background: var(--kh-ink); color: #a8bacb; margin-top: 40px; }
.kh-footer__inner { max-width: var(--kh-max); margin: 0 auto; padding: 36px 24px; display: grid; gap: 18px; grid-template-columns: 1fr auto; align-items: start; font-size: 14px; }
.kh-footer strong { color: #fff; font-size: 16px; }
.kh-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.kh-footer nav a { color: #cfd9e3; text-decoration: none; }
.kh-footer nav a:hover { color: #fff; text-decoration: underline; }
.kh-footer__legal { grid-column: 1 / -1; font-size: 12.5px; margin: 0; }

/* Responsive ------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .kh-grid { grid-template-columns: var(--kh-left) minmax(0, 1fr); }
  .kh-right { grid-column: 2; }
  .kh-right__sticky { position: static; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .kh-module { margin-bottom: 0; }
  .kh-center { max-width: none; }
  .kh-cardgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .kh-header__inner { gap: 12px; height: 58px; }
  .kh-nav { display: none; }
  .kh-search { max-width: none; }
  .kh-menu-toggle { display: inline-flex; align-items: center; }
  .kh-grid, .kh-grid--two { display: flex; flex-direction: column; }
  /* Mobile order: article, conversion, related, then topic navigation. */
  .kh-center { order: 1; }
  .kh-right { order: 2; width: 100%; }
  .kh-left { order: 3; width: 100%; border-top: 1px solid var(--kh-line); padding-top: 16px; }
  .kh-left__sticky { position: static; }
  .kh-left.is-open { order: 0; border-top: 0; padding-top: 0; }
  .kh-right__sticky { grid-template-columns: 1fr; }
  .kh-cardgrid--2, .kh-cardgrid--3, .kh-clusters, .kh-ranked { grid-template-columns: 1fr; }
  .kh-card--large, .kh-card--horizontal { grid-template-columns: 1fr; display: flex; }
  .kh-leadform__form { grid-template-columns: 1fr; }
  .kh-body { font-size: 17.5px; }
  .kh-toc ol { columns: 1; }
  .kh-share { margin-left: 0; }
  .kh-footer__inner { grid-template-columns: 1fr; }
  .kh-timeline li { grid-template-columns: 1fr; gap: 2px; }
  .kh-download { flex-direction: column; align-items: flex-start; }
  .kh-main { padding: 20px 16px 48px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .kh-card { transition: none; } }
