/* Knowledge Hub — blog homepage
   Scope: body.blog-hub-page
   Components: .kh-item, .kh-cat (A/B/C), .kh-featured, .kh-search */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap");

:root {
  --kh-gold: #ffb710;
  --kh-ink: rgba(255, 255, 255, 0.86);
  --kh-muted: #aebdcc;
  --kh-line: rgba(117, 128, 148, 0.28);
  --kh-surface: #22232b;
  --kh-surface-2: #2a2b34;
  --kh-radius: 14px;
  --kh-gap: 24px;
  --kh-pad: 28px;
  --kh-focus: 0 0 0 2px #000, 0 0 0 4px var(--kh-gold);
}

.blog-hub-page {
  background: #000;
}

.blog-hub-page .blog-hub-shell {
  position: relative;
  z-index: 2;
}

.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;
}

.blog-hub-shell .content {
  max-width: 1228px;
  margin: 0 auto;
  padding: 0 24px;
}

.kh-section-head {
  margin: 0 0 24px;
}

.kh-section-head h2 {
  margin: 0 0 8px;
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}

.kh-section-head p {
  margin: 0;
  color: var(--kh-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 40rem;
}

/* ========== HERO ========== */
.kh-hero {
  position: relative;
  isolation: isolate;
  padding: 112px 0 36px;
  overflow: hidden;
}

.kh-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 240px at 42% 110px, rgba(255, 183, 16, 0.22), transparent 70%),
    linear-gradient(180deg, #0a0a0c 0%, #000 78%);
}

.kh-hero .content {
  position: relative;
  z-index: 2;
}

.kh-hero__inner {
  max-width: 40rem;
}

.kh-hero__eyebrow {
  margin: 0 0 10px;
  font-family: "IBMPlexMono", monospace;
  font-size: 11px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: var(--kh-gold);
}

.kh-hero__title {
  margin: 0 0 12px;
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

.kh-hero__deck {
  margin: 0;
  color: var(--kh-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Search — mirrors production GET /blog/?q= */
.kh-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 28rem;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--kh-line);
  border-radius: 10px;
  background: rgba(18, 18, 20, 0.85);
}

.kh-search:focus-within {
  border-color: rgba(255, 183, 16, 0.55);
  box-shadow: var(--kh-focus);
}

.kh-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
}

.kh-search__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.kh-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--kh-muted);
  cursor: pointer;
}

.kh-search__submit:hover {
  color: #fff;
  background: rgba(255, 183, 16, 0.1);
}

.kh-search__submit:focus-visible {
  outline: none;
  box-shadow: var(--kh-focus);
  color: var(--kh-gold);
}

/* ========== SEARCH RESULTS ========== */
.kh-search-results {
  padding: 12px 0 8px;
}

.kh-search-results__query {
  margin: 0;
  color: var(--kh-muted);
  font-size: 0.9rem;
}

.kh-search-results__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.kh-search-results__empty {
  margin: 8px 0 0;
  padding: 28px 20px;
  border: 1px dashed var(--kh-line);
  border-radius: var(--kh-radius);
  color: var(--kh-muted);
  text-align: center;
}

.blog-hub-page.is-searching .kh-featured {
  display: none;
}

.blog-hub-page.is-searching.has-search-hits .kh-mosaic {
  display: none;
}

/* ========== MEDIA ========== */
.kh-media {
  overflow: hidden;
  background: #0a0a0c;
  flex-shrink: 0;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.kh-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.kh-media--1x1 {
  aspect-ratio: 1 / 1;
}

.kh-media--4x3 {
  aspect-ratio: 4 / 3;
}

/* ========== ARTICLE ITEMS (no nested cards) ========== */
.blog-hub-page a.kh-item,
.blog-hub-page a.kh-item:hover,
.blog-hub-page a.kh-item:focus,
.blog-hub-page a.kh-item:active,
.blog-hub-page .kh-cat__title a,
.blog-hub-page .kh-cat__title a:hover,
.blog-hub-page .kh-cat__explore,
.blog-hub-page .kh-cat__explore:hover {
  text-decoration: none;
}

.kh-item {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  outline: none;
}

.kh-item:hover,
.kh-item:hover .kh-item__meta,
.kh-item:hover .kh-item__date,
.kh-item:hover .kh-item__excerpt,
.kh-item:hover .kh-item__cat {
  text-decoration: none;
}

.kh-item:hover .kh-item__title {
  color: var(--kh-gold);
  text-decoration: none;
}

.kh-item:focus-visible {
  outline: none;
  box-shadow: var(--kh-focus);
}

.kh-item__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kh-item__date,
.kh-item__meta {
  margin: 0;
  font-family: "IBMPlexMono", monospace;
  font-size: 10px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--kh-muted);
  line-height: 1.3;
}

.kh-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.kh-item__cat {
  color: var(--kh-gold);
}

.kh-item__dot {
  opacity: 0.45;
}

.kh-item__title {
  color: #fff;
  font-family: "Newsreader", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
  text-decoration: none;
}

.kh-item__excerpt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Primary (Variant A main): image above title */
.kh-item--primary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kh-item--primary .kh-item__title {
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  letter-spacing: -0.015em;
  -webkit-line-clamp: 3;
}

.kh-item--primary.kh-item--no-media {
  gap: 8px;
}

.kh-item--primary.kh-item--no-media .kh-item__title {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  -webkit-line-clamp: 4;
}

.kh-item--primary.kh-item--no-media .kh-item__excerpt {
  -webkit-line-clamp: 3;
}

/* Stacked secondary: square thumb + title */
.kh-item--stack {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.kh-item--stack .kh-media {
  width: 112px;
}

.kh-item--stack .kh-item__copy {
  min-width: 0;
  justify-content: flex-start;
  padding-top: 0;
}

.kh-item--stack .kh-item__title {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  letter-spacing: -0.012em;
  line-height: 1.28;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.kh-item--stack .kh-item__date {
  display: none;
}

.kh-item--stack .kh-item__excerpt {
  display: none;
}

/* When thumb is absent, do not keep the grid track — it crushes titles */
.kh-item--stack.kh-item--no-media,
.kh-item--row.kh-item--no-media,
.kh-item--feature-main.kh-item--no-media,
.kh-item--feature-side.kh-item--no-media {
  display: block;
  grid-template-columns: none;
}

/* Horizontal row: square thumb + title (+ excerpt when present) */
.kh-item--row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0;
}

.kh-item--row .kh-media {
  width: 104px;
}

.kh-item--row .kh-item__copy {
  min-width: 0;
  gap: 6px;
  justify-content: flex-start;
  padding-top: 0;
}

.kh-item--row .kh-item__title {
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  letter-spacing: -0.012em;
  line-height: 1.28;
  -webkit-line-clamp: 3;
}

.kh-item--row .kh-item__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.58);
}

.kh-cat--C .kh-item--row .kh-item__title,
.kh-item--row-lead .kh-item__title {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  letter-spacing: -0.012em;
  -webkit-line-clamp: 3;
}

/* Text-only secondary links */
.kh-item--text {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--kh-line);
  border-radius: 0;
}

.kh-item--text .kh-item__title {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  letter-spacing: -0.012em;
  line-height: 1.3;
  -webkit-line-clamp: 3;
  color: #fff;
}

.kh-item--text:hover .kh-item__title {
  color: var(--kh-gold);
}

/* Featured main: horizontal square + copy */
.kh-item--feature-main {
  display: grid;
  grid-template-columns: minmax(180px, 44%) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  height: 100%;
}

.kh-item--feature-main .kh-item__title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  -webkit-line-clamp: 4;
}

.kh-item--feature-main .kh-item__copy {
  gap: 10px;
  padding-top: 0;
  justify-content: flex-start;
}

.kh-item--feature-main .kh-item__excerpt {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.45;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Featured side: square thumb + title */
.kh-item--feature-side {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  flex: 1 1 0;
  min-height: 0;
  padding: 16px 0;
  border-radius: 0;
}

.kh-item--feature-side + .kh-item--feature-side {
  border-top: 1px solid var(--kh-line);
}

.kh-item--feature-side .kh-media {
  width: 128px;
}

.kh-item--feature-side .kh-item__copy {
  justify-content: flex-start;
  padding-top: 0;
  gap: 6px;
}

.kh-item--feature-side .kh-item__title {
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  letter-spacing: -0.015em;
  line-height: 1.28;
  -webkit-line-clamp: 3;
}

/* ========== FEATURED ========== */
.kh-featured {
  padding: 28px 0 16px;
}

.kh-featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: calc(var(--kh-gap) + 4px);
  align-items: stretch;
}

.kh-featured__main,
.kh-featured__side {
  min-width: 0;
  height: 100%;
}

.kh-featured__main {
  display: flex;
}

.kh-featured__main > .kh-item {
  flex: 1;
  width: 100%;
}

.kh-featured__side {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.kh-featured__side .kh-item--feature-side:first-child {
  padding-top: 0;
}

.kh-featured__side .kh-item--feature-side:last-child {
  padding-bottom: 0;
}

/* ========== MOSAIC / BENTO ========== */
.kh-mosaic {
  padding: 36px 0 88px;
}

.kh-mosaic__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--kh-gap);
  /* Equal top/bottom edges per row; tallest content sets row height */
  align-items: stretch;
}

.kh-cat {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding: var(--kh-pad);
  border: 1px solid var(--kh-line);
  border-radius: 16px;
  background: var(--kh-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Desktop 12-col placement: 7+5 / 5+7 / 6+6 / 7+5 */
.kh-cat--span-7 {
  grid-column: span 7;
}

.kh-cat--span-5 {
  grid-column: span 5;
}

.kh-cat--span-6 {
  grid-column: span 6;
}

.kh-cat:nth-child(1) { grid-column: 1 / span 7; }
.kh-cat:nth-child(2) { grid-column: 8 / span 5; }
.kh-cat:nth-child(3) { grid-column: 1 / span 5; }
.kh-cat:nth-child(4) { grid-column: 6 / span 7; }
.kh-cat:nth-child(5) { grid-column: 1 / span 6; }
.kh-cat:nth-child(6) { grid-column: 7 / span 6; }
.kh-cat:nth-child(7) { grid-column: 1 / span 7; }
.kh-cat:nth-child(8) { grid-column: 8 / span 5; }

/* Category header — never use global `header` fixed styles */
.kh-cat__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  position: static;
  padding: 0;
  width: auto;
  max-width: none;
  margin: 0;
  flex-shrink: 0;
}

.kh-cat__title {
  margin: 0;
  font-family: "Newsreader", "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.kh-cat__title a {
  color: #fff;
  text-decoration: none;
}

.kh-cat__title a:hover {
  color: var(--kh-gold);
  text-decoration: none;
}

.kh-cat__title a:focus-visible {
  outline: none;
  box-shadow: var(--kh-focus);
}

.kh-cat__desc {
  margin: 0;
  color: var(--kh-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 36rem;
}

.kh-cat__explore {
  display: inline-block;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 16px;
  align-self: flex-end;
  font-family: "IBMPlexMono", monospace;
  font-size: 11px;
  letter-spacing: 0.2px;
  color: var(--kh-muted);
  text-decoration: none;
  white-space: nowrap;
}

.kh-cat__explore:hover {
  color: var(--kh-gold);
  text-decoration: none;
}

.kh-cat__explore:focus-visible {
  outline: none;
  box-shadow: var(--kh-focus);
}

.kh-cat__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  justify-content: flex-start;
  /* Grow above View all so leftover height fills content, not a dead gap */
  flex: 1 1 auto;
  min-height: 0;
}

/* --- Variant A: image+title | secondaries full height --- */
.kh-cat__body--A {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "primary secondary";
  column-gap: 20px;
  row-gap: 12px;
  align-items: stretch;
}

.kh-cat__primary {
  grid-area: primary;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  align-self: start;
}

.kh-cat__body--A:has(.kh-item--primary-copy.kh-item--no-media):not(:has(.kh-item--primary-media)) {
  grid-template-areas: "primary secondary";
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.kh-item--primary-media {
  display: block;
  min-width: 0;
  height: auto;
}

.kh-cat__body--A .kh-item--primary-media .kh-media--4x3 {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
}

.kh-item--primary-copy {
  display: block;
  min-width: 0;
}

.kh-item--primary-copy .kh-item__title {
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  letter-spacing: -0.015em;
  -webkit-line-clamp: 3;
}

.kh-item--primary-copy .kh-item__excerpt {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.58);
}

.kh-item--primary-copy.kh-item--no-media .kh-item__title {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  -webkit-line-clamp: 4;
}

.kh-item--primary-copy.kh-item--no-media .kh-item__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  margin-top: 6px;
}

.kh-cat__secondary {
  grid-area: secondary;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  align-self: stretch;
  min-height: 0;
  margin: 0;
  padding: 0;
  height: 100%;
}

.kh-cat__secondary > .kh-item {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-top: none;
  align-content: start;
}

/* Flexible gutters — only for full-height secondary (OTC / Global) */
.kh-cat__rule {
  flex: 1 1 0;
  min-height: 16px;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  pointer-events: none;
}

.kh-cat__rule::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--kh-line);
}

/* Three stacked secondaries (OTC / Global): equal slots, top-aligned — match adjacent B */
.kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) {
  height: 100%;
  align-self: stretch;
  justify-content: flex-start;
}

.kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) > .kh-item--stack {
  flex: 1 1 0;
  min-height: 0;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-content: start;
  align-items: start;
}

.kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) .kh-cat__rule {
  flex: 0 0 auto;
  min-height: 0;
  padding: 12px 0;
}

.kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) .kh-item--stack .kh-media {
  width: 104px;
  height: 104px;
}

.kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) .kh-item__title {
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  line-height: 1.28;
}

.kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) .kh-item__excerpt {
  display: none;
}

.kh-cat__secondary .kh-item--stack {
  align-items: start;
}

/* --- Variant A pack (Risk): secondary fills height; 3 equal slots, top-aligned with Payment B --- */
.kh-cat__body--A-pack {
  grid-template-areas: "primary secondary";
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
}

.kh-cat__body--A-pack .kh-cat__primary {
  align-self: start;
}

.kh-cat__body--A-pack .kh-cat__secondary {
  grid-area: secondary;
  height: 100%;
  align-self: stretch;
  justify-content: flex-start;
  display: flex;
  flex-direction: column;
}

.kh-cat__body--A-pack .kh-cat__secondary > .kh-item--stack {
  flex: 1 1 0;
  min-height: 0;
  align-content: start;
  align-items: start;
}

.kh-cat__body--A-pack .kh-cat__rule {
  flex: 0 0 auto;
  min-height: 0;
  padding: 12px 0;
}

.kh-cat__body--A-pack .kh-item--stack {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.kh-cat__body--A-pack .kh-item--stack .kh-media {
  width: 104px;
  height: 104px;
}

.kh-cat__body--A-pack .kh-item--stack .kh-item__title {
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  line-height: 1.28;
}

.kh-cat__body--A-pack .kh-item--stack .kh-item__excerpt {
  display: none;
}

.kh-cat__body--A-pack .kh-item--primary-media .kh-media--4x3 {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.kh-cat__body--A-pack .kh-item--primary-copy {
  align-self: start;
}

/* --- Variant B: 3 equal row slots, top-aligned (no floating gutters) --- */
.kh-cat__body--B {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 0;
}

.kh-cat__body--B > .kh-item {
  flex: 1 1 0;
  min-height: 0;
  padding: 0;
  border-top: none;
  margin: 0;
  align-content: start;
  align-items: start;
}

.kh-cat__body--B > .kh-item + .kh-item {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.kh-cat__body--B > .kh-cat__rule {
  flex: 0 0 auto;
  min-height: 0;
  padding: 12px 0;
}

.kh-cat__body--B > .kh-item .kh-media {
  width: 104px;
  height: 104px;
}

/* Pair heads so body rows share the same start line */
#otc-trading-liquidity .kh-cat__head,
#cross-border-payments .kh-cat__head,
#payment-infrastructure-settlement .kh-cat__head,
#risk-security-compliance .kh-cat__head,
#global-commerce-operations .kh-cat__head,
#company-product .kh-cat__head {
  min-height: 4.75rem;
}

/* --- Variant C: featured lead + text links; equal slots align internal rules --- */
.kh-cat--C .kh-cat__head {
  min-height: 5.25rem;
}

.kh-cat__body--C {
  display: grid;
  grid-template-rows: 8rem minmax(3.25rem, 1fr) minmax(3.25rem, 1fr);
  flex: 1 1 auto;
  gap: 0;
  min-height: 0;
  align-items: stretch;
}

.kh-cat__body--C > .kh-item--row-lead {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  align-content: start;
  padding: 0 0 14px;
  min-width: 0;
  min-height: 0;
  border-bottom: 1px solid var(--kh-line);
  box-sizing: border-box;
}

.kh-cat__body--C > .kh-item--row-lead .kh-media {
  width: 112px;
  height: 112px;
  max-width: 112px;
  flex-shrink: 0;
}

.kh-cat__body--C > .kh-item--row-lead .kh-item__copy {
  gap: 6px;
  min-width: 0;
  justify-content: flex-start;
  padding-top: 0;
}

.kh-cat__body--C > .kh-item--row-lead .kh-item__date {
  display: block;
}

.kh-cat__body--C > .kh-item--row-lead .kh-item__title {
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  letter-spacing: -0.015em;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.kh-cat__body--C > .kh-item--row-lead .kh-item__excerpt {
  display: none;
}

.kh-cat__body--C > .kh-item--text {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-top: none;
  border-bottom: none;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

.kh-cat__body--C > .kh-item--row-lead + .kh-item--text {
  border-bottom: 1px solid var(--kh-line);
  padding-top: 14px;
}

.kh-cat__body--C > .kh-item--text .kh-item__title {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  letter-spacing: -0.012em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  grid-column: auto;
}

.kh-cat__body--C > .kh-cat__rule {
  display: none;
}

/* ========== RESPONSIVE ========== */

/* Big desktop: wider shell, roomier mosaic */
@media (min-width: 1400px) {
  .blog-hub-shell .content {
    max-width: 1360px;
  }

  .blog-hub-page.blog-category-page .blog-hub-shell .content {
    max-width: 1228px;
  }

  :root {
    --kh-pad: 32px;
    --kh-gap: 28px;
  }

  .kh-featured__grid {
    gap: 36px;
  }

  .kh-item--feature-side {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 20px;
  }

  .kh-item--feature-side .kh-media {
    width: 140px;
  }

  .kh-cat__body--A {
    column-gap: 24px;
  }

  .kh-cat__body--B > .kh-item .kh-media,
  .kh-cat__body--A-pack .kh-item--stack .kh-media,
  .kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) .kh-item--stack .kh-media {
    width: 112px;
    height: 112px;
  }

  .kh-cat__body--B > .kh-item,
  .kh-cat__body--A-pack .kh-item--stack,
  .kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) > .kh-item--stack {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .kh-cat__body--C > .kh-item--row-lead {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .kh-cat__body--C > .kh-item--row-lead .kh-media {
    width: 128px;
    height: 128px;
    max-width: 128px;
  }

  .kh-cat__body--C {
    grid-template-rows: 9rem minmax(3.5rem, 1fr) minmax(3.5rem, 1fr);
  }
}

/* Tablet / small laptop: 2-col mosaic, stacked featured + A bodies */
@media (max-width: 1100px) {
  .kh-hero {
    padding: 100px 0 28px;
  }

  .kh-cat {
    --kh-pad: 22px;
  }

  #otc-trading-liquidity .kh-cat__head,
  #cross-border-payments .kh-cat__head,
  #payment-infrastructure-settlement .kh-cat__head,
  #risk-security-compliance .kh-cat__head,
  #global-commerce-operations .kh-cat__head,
  #company-product .kh-cat__head {
    min-height: 0;
  }

  /* Tablet Featured = desktop layout (main | side), slightly tighter */
  .kh-featured__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
  }

  .kh-featured__main,
  .kh-featured__side {
    height: 100%;
  }

  .kh-item--feature-main {
    grid-template-columns: minmax(160px, 42%) minmax(0, 1fr);
    gap: 18px;
    height: 100%;
    padding: 0;
    border-bottom: none;
  }

  .kh-item--feature-main .kh-media {
    width: auto;
    height: auto;
    max-width: none;
  }

  .kh-item--feature-main .kh-item__title {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    letter-spacing: -0.02em;
    line-height: 1.22;
    -webkit-line-clamp: 4;
  }

  .kh-item--feature-main .kh-item__copy {
    gap: 8px;
  }

  .kh-item--feature-main .kh-item__excerpt {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    font-size: 0.92rem;
  }

  .kh-item--feature-side {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    padding: 14px 0;
  }

  .kh-item--feature-side .kh-media {
    width: 112px;
    height: 112px;
  }

  .kh-item--feature-side .kh-item__title {
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  }

  .kh-featured__side .kh-item--feature-side:first-child {
    padding-top: 0;
  }

  .kh-featured__side .kh-item--feature-side:last-child {
    padding-bottom: 0;
  }

  .kh-item--feature-side + .kh-item--feature-side {
    border-top: 1px solid var(--kh-line);
  }

  /* Tablet: one card per row (2-col was too cramped). Keep A side-by-side like desktop. */
  .kh-mosaic__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .kh-cat:nth-child(n) {
    grid-column: auto / span 1;
  }

  .kh-cat {
    height: auto;
    --kh-pad: 24px;
  }

  .kh-cat__body--A,
  .kh-cat__body--A-pack {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, auto);
    grid-template-areas: "primary secondary";
    column-gap: 20px;
    row-gap: 0;
    align-items: stretch;
    height: auto;
    flex: 0 1 auto;
  }

  .kh-cat__body--A:has(.kh-item--primary-copy.kh-item--no-media):not(:has(.kh-item--primary-media)) {
    grid-template-areas: "primary secondary";
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: auto;
  }

  .kh-cat__body--A .kh-item--primary-media .kh-media--4x3,
  .kh-cat__body--A-pack .kh-item--primary-media .kh-media--4x3 {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .kh-item--primary-media {
    height: auto;
  }

  .kh-cat__primary {
    padding-bottom: 0;
    border-bottom: none;
  }

  .kh-cat__secondary,
  .kh-cat__body--A-pack .kh-cat__secondary {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    align-self: stretch;
    grid-column: auto;
    grid-row: auto;
    padding-top: 0;
  }

  .kh-cat__body--A-pack .kh-cat__secondary > .kh-item--stack,
  .kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) > .kh-item--stack,
  .kh-cat__secondary > .kh-item {
    flex: 1 1 0;
    min-height: 0;
    align-content: start;
    align-items: start;
  }

  .kh-cat__body--B > .kh-item {
    flex: 0 0 auto;
    min-height: auto;
    align-content: start;
    align-items: start;
  }

  .kh-cat__body--B,
  .kh-cat__body--C {
    flex: 0 1 auto;
    height: auto;
  }

  .kh-cat__body--A-pack .kh-cat__rule,
  .kh-cat__body--B > .kh-cat__rule,
  .kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) .kh-cat__rule,
  .kh-cat__rule {
    flex: 0 0 auto;
    min-height: 0;
    padding: 12px 0;
  }

  .kh-cat__body--A-pack .kh-item--stack,
  .kh-cat__secondary .kh-item--stack,
  .kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) > .kh-item--stack,
  .kh-item--row {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .kh-cat__body--A-pack .kh-item--stack .kh-media,
  .kh-cat__secondary .kh-item--stack .kh-media,
  .kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) .kh-item--stack .kh-media,
  .kh-item--row .kh-media,
  .kh-cat__body--B > .kh-item .kh-media {
    width: 120px;
    height: 120px;
  }

  /* Tablet: full excerpts — wrap, no ellipsis */
  .kh-item--row .kh-item__excerpt,
  .kh-item--stack .kh-item__excerpt,
  .kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) .kh-item__excerpt,
  .kh-cat__body--A-pack .kh-item--stack .kh-item__excerpt {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    margin-top: 4px;
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.58);
  }

  .kh-cat__body--C {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
  }

  .kh-cat__body--C > .kh-item--row-lead {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 18px;
  }

  .kh-cat__body--C > .kh-item--row-lead .kh-media {
    width: 128px;
    height: 128px;
    max-width: 128px;
  }

  .kh-cat__body--C > .kh-item--row-lead .kh-item__excerpt {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    margin-top: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .kh-search-results__grid {
    grid-template-columns: 1fr;
  }
}

/* Narrow tablet: slightly tighter, still one card / A side-by-side */
@media (max-width: 860px) and (min-width: 641px) {
  .kh-cat {
    --kh-pad: 20px;
    gap: 12px;
  }

  .kh-cat__title {
    font-size: 1.18rem;
  }

  .kh-mosaic__grid {
    gap: 14px;
  }

  .kh-cat__body--A,
  .kh-cat__body--A-pack {
    column-gap: 16px;
  }

  .kh-cat__body--A-pack .kh-item--stack,
  .kh-cat__secondary .kh-item--stack,
  .kh-item--row {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
  }

  .kh-cat__body--A-pack .kh-item--stack .kh-media,
  .kh-cat__secondary .kh-item--stack .kh-media,
  .kh-item--row .kh-media,
  .kh-cat__body--B > .kh-item .kh-media {
    width: 108px;
    height: 108px;
  }

  .kh-item--feature-main {
    grid-template-columns: minmax(140px, 40%) minmax(0, 1fr);
    gap: 14px;
  }

  .kh-item--feature-side {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
  }

  .kh-item--feature-side .kh-media {
    width: 100px;
    height: 100px;
  }
}

/* Mobile: single column — never collapse flex slots */
@media (max-width: 640px) {
  :root {
    --kh-pad: 18px;
    --kh-gap: 14px;
  }

  .blog-hub-shell .content {
    padding: 0 16px;
  }

  .kh-hero {
    padding: 88px 0 24px;
  }

  .kh-hero__title {
    font-size: 2.05rem;
  }

  .kh-hero__deck {
    font-size: 0.95rem;
  }

  .kh-featured {
    padding: 20px 0 8px;
  }

  /* Mobile Featured: stacked list (tablet keeps desktop layout) */
  .kh-featured__grid {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
  }

  .kh-featured__main,
  .kh-featured__side {
    height: auto;
  }

  .kh-mosaic {
    padding: 28px 0 56px;
  }

  .kh-mosaic__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .kh-cat {
    height: auto;
    --kh-pad: 18px;
    gap: 12px;
    border-radius: 14px;
  }

  .kh-cat__title {
    font-size: 1.2rem;
  }

  .kh-cat__explore {
    padding-top: 12px;
  }

  /* Bodies size to content — no equal-slot stretch */
  .kh-cat__body,
  .kh-cat__body--A,
  .kh-cat__body--A-pack,
  .kh-cat__body--B,
  .kh-cat__body--C {
    flex: 0 1 auto;
    height: auto;
    justify-content: flex-start;
  }

  .kh-cat__body--A,
  .kh-cat__body--A-pack {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "primary"
      "secondary";
    gap: 14px;
    height: auto;
    align-items: start;
  }

  .kh-cat__body--A:has(.kh-item--primary-copy.kh-item--no-media):not(:has(.kh-item--primary-media)) {
    grid-template-rows: auto auto;
  }

  .kh-cat__primary {
    border-bottom: 1px solid var(--kh-line);
    padding-bottom: 14px;
  }

  .kh-cat__secondary,
  .kh-cat__body--A-pack .kh-cat__secondary {
    height: auto;
    align-self: stretch;
    flex: 0 0 auto;
  }

  .kh-cat__body--B > .kh-item,
  .kh-cat__body--A-pack .kh-cat__secondary > .kh-item--stack,
  .kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) > .kh-item--stack,
  .kh-cat__secondary > .kh-item {
    flex: 0 0 auto;
    min-height: auto;
    align-content: start;
    align-items: start;
  }

  .kh-cat__body--A-pack .kh-cat__rule,
  .kh-cat__body--B > .kh-cat__rule,
  .kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) .kh-cat__rule,
  .kh-cat__rule {
    flex: 0 0 auto;
    min-height: 0;
    padding: 12px 0;
  }

  .kh-cat__body--C {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
  }

  .kh-cat__body--C > .kh-item--row-lead {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 0 0 12px;
  }

  .kh-cat__body--C > .kh-item--row-lead .kh-media {
    width: 88px;
    height: 88px;
    max-width: 88px;
  }

  .kh-cat__body--C > .kh-item--text {
    padding: 12px 0;
  }

  .kh-item--feature-main:not(.kh-item--no-media) {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    height: auto;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--kh-line);
  }

  .kh-item--feature-main .kh-media {
    width: 88px;
    height: 88px;
  }

  .kh-item--feature-main .kh-item__title {
    font-size: 1.05rem;
    -webkit-line-clamp: 3;
  }

  .kh-item--feature-main .kh-item__excerpt {
    display: none;
  }

  .kh-item--feature-side:not(.kh-item--no-media) {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    flex: 0 0 auto;
    min-height: auto;
    padding: 12px 0;
  }

  .kh-item--feature-side .kh-media {
    width: 88px;
    height: 88px;
  }

  .kh-item--feature-side .kh-item__title {
    font-size: 1.05rem;
  }

  .kh-featured__side .kh-item--feature-side:first-child {
    padding-top: 12px;
  }

  .kh-featured__side .kh-item--feature-side:last-child {
    padding-bottom: 0;
  }

  .kh-cat__body--A-pack .kh-item--stack,
  .kh-cat__secondary .kh-item--stack,
  .kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) > .kh-item--stack,
  .kh-item--row:not(.kh-item--no-media),
  .kh-item--stack {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }

  .kh-cat__body--A-pack .kh-item--stack .kh-media,
  .kh-cat__secondary .kh-item--stack .kh-media,
  .kh-cat__body--A:not(.kh-cat__body--A-pack) .kh-cat__secondary:has(> .kh-item:nth-of-type(3)) .kh-item--stack .kh-media,
  .kh-item--row .kh-media,
  .kh-item--stack .kh-media,
  .kh-cat__body--B > .kh-item .kh-media {
    width: 80px;
    height: 80px;
  }

  .kh-item--primary-media {
    display: block;
  }

  .kh-item--primary-media .kh-media--4x3 {
    aspect-ratio: 16 / 10;
    width: 100%;
  }

  .kh-item--primary-copy .kh-item__title {
    font-size: 1.05rem;
  }

  .kh-item--primary-copy .kh-item__excerpt {
    font-size: 0.88rem;
  }

  .kh-item--primary-copy.kh-item--no-media .kh-item__title {
    font-size: 1.1rem;
  }

  .kh-cat .kh-item__date {
    display: none;
  }

  .kh-item--stack .kh-item__excerpt {
    display: none;
  }

  .kh-search-results__grid {
    grid-template-columns: 1fr;
  }
}

/* ========== CATEGORY LISTING ========== */
.kh-hero--category {
  padding-bottom: 28px;
}

.kh-hero--category .kh-hero__deck {
  margin-bottom: 0;
}

.kh-hero--category .kh-hero__inner {
  max-width: 42rem;
}

.kh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: "IBMPlexMono", monospace;
  font-size: 11px;
  letter-spacing: 0.2px;
  color: var(--kh-muted);
}

.kh-breadcrumb a {
  color: var(--kh-muted);
  text-decoration: none;
}

.kh-breadcrumb a:hover {
  color: var(--kh-gold);
}

.kh-breadcrumb__sep {
  opacity: 0.45;
}

.kh-breadcrumb__current {
  color: rgba(255, 255, 255, 0.78);
}

.kh-category {
  padding: 8px 0 88px;
}

/* Category listing stays on the site shell width (not the wide mosaic shell). */
.blog-hub-page.blog-category-page .blog-hub-shell .content {
  max-width: 1228px;
}

.kh-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.kh-topic-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(117, 128, 148, 0.22);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: "IBMPlexMono", monospace;
  font-size: 13px;
  letter-spacing: 0.05px;
  text-decoration: none;
  line-height: 1.25;
}

.kh-topic-nav__link:hover {
  color: #fff;
  border-color: rgba(255, 183, 16, 0.45);
}

.kh-topic-nav__link.is-active {
  color: #000;
  background: var(--kh-gold);
  border-color: var(--kh-gold);
}

.kh-category__count {
  margin: 0 0 28px;
  font-family: "IBMPlexMono", monospace;
  font-size: 11px;
  letter-spacing: 0.2px;
  color: var(--kh-muted);
}

.kh-category__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.kh-category__list > .kh-item--card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(117, 128, 148, 0.12);
  border-radius: var(--kh-radius);
  background: #17171b;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.kh-category__list > .kh-item--card:hover {
  background: #1b1919;
  border-color: rgba(255, 183, 16, 0.56);
}

/* Category covers are always square on every breakpoint. */
.blog-category-page .kh-category__list > .kh-item--card .kh-media,
.blog-category-page .kh-category__list > .kh-item--card .kh-media--1x1,
.blog-category-page .kh-category__list > .kh-item--card .kh-media--4x3 {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
}

.blog-category-page .kh-category__list > .kh-item--card .kh-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.kh-category__list > .kh-item--card .kh-item__copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 24px 24px;
  min-width: 0;
}

.kh-category__list > .kh-item--card.kh-item--no-media .kh-item__copy {
  padding-top: 24px;
}

.kh-category__list > .kh-item--card .kh-item__date {
  display: inline-block;
  margin: 24px 0 8px;
  font-family: "IBMPlexMono", monospace;
  font-size: 12px;
  letter-spacing: 0.2px;
  line-height: 1.4;
  color: var(--kh-muted);
  text-transform: uppercase;
}

.kh-category__list > .kh-item--card .kh-item__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin: 0 0 12px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
}

.kh-category__list > .kh-item--card .kh-item__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.kh-category__empty {
  margin: 12px 0 0;
  padding: 28px 20px;
  border: 1px dashed var(--kh-line);
  border-radius: var(--kh-radius);
  color: var(--kh-muted);
  grid-column: 1 / -1;
}

.kh-category__empty a {
  color: var(--kh-gold);
}

.kh-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  width: 100%;
}

.kh-pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 10px;
  border: 1px solid var(--kh-line);
  border-radius: 8px;
  color: var(--kh-muted);
  font-family: "IBMPlexMono", monospace;
  font-size: 11px;
  text-decoration: none;
}

a.kh-pagination__item:hover {
  color: #fff;
  border-color: rgba(255, 183, 16, 0.45);
}

.kh-pagination__item.is-current {
  color: #000;
  background: var(--kh-gold);
  border-color: var(--kh-gold);
}

.kh-pagination__item.is-disabled {
  opacity: 0.4;
}

@media (max-width: 1100px) {
  .kh-category__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .kh-topic-nav {
    margin-bottom: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .kh-topic-nav__link {
    flex: 0 0 auto;
  }

  .kh-category__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kh-category__list > .kh-item--card .kh-item__copy {
    padding: 0 18px 18px;
  }

  .kh-category__list > .kh-item--card .kh-item__title {
    font-size: 1.12rem;
  }

  .kh-category {
    padding-bottom: 56px;
  }
}

