/* ============================================================
   KENNISBANK · hub + blog detail
   Pairs with home.css topribbon + footer styles.
   ============================================================ */

/* ============ HUB: HERO ============ */
.kb-hero {
  position: relative;
  padding: 72px 56px 28px;
  max-width: 1320px;
  margin: 0 auto;
}
.kb-hero-inner {
  max-width: 920px;
}
.kb-hero .eyebrow-big {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.kb-hero .eyebrow-big .bar {
  width: 28px; height: 2px;
  background: var(--grad-line);
  border-radius: 2px;
}
.kb-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink-1);
  margin: 0 0 24px;
  text-wrap: balance;
}
.kb-hero h1 .grad {
  background: var(--grad-full);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kb-hero .lede {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 720px;
  margin: 0 0 8px;
}

/* ============ HUB: TYPE LEGEND ============ */
.kb-legend {
  display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 1320px;
  margin: 8px auto 0;
  padding: 0 56px 8px;
}
.kb-legend .kb-chip {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--chip-bg, #FFF3E4);
  color: var(--chip-color, #C2620A);
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(0,0,0,0.04);
}
.kb-legend .kb-chip::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--chip-accent, #FB993F);
}

/* ============ HUB: GRID ============ */
.kb-grid-wrap {
  max-width: 1320px;
  margin: 32px auto 80px;
  padding: 0 56px;
}
.kb-grid-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.kb-grid-head .kb-count {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--ink-4); letter-spacing: 0.04em; text-transform: uppercase;
}

/* Featured: spans full row, large cover left + content right */
.kb-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--r-2xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}
.kb-featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.kb-featured-tag {
  position: absolute; top: 32px; left: 32px;
  background: #fff;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 5px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  z-index: 2;
  border: 1px solid rgba(0,0,0,0.06);
}
.kb-featured-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-line);
}
.kb-featured .kb-cover {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.kb-featured-body {
  padding: 16px 24px 16px 8px;
  display: flex; flex-direction: column; gap: 18px;
}
.kb-featured-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.kb-featured h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink-1);
  margin: 0;
  text-wrap: balance;
}
.kb-featured .kb-excerpt {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}
.kb-featured .kb-arr {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--ink-1);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.3s ease;
  white-space: nowrap;
}
.kb-featured:hover .kb-arr { gap: 14px; }
.kb-featured .kb-arr-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad-line);
  color: #fff; font-size: 13px;
  flex: 0 0 28px;
}

/* Standard cards (3-col grid) */
.kb-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.kb-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--r-xl);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.kb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.kb-card .kb-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
}
.kb-card-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}
.kb-card-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.kb-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.006em;
  color: var(--ink-1);
  margin: 0;
  text-wrap: balance;
}
.kb-card-excerpt {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
  flex: 1;
}
.kb-card-tail {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500;
  color: var(--ink-4);
  margin-top: 4px;
}
.kb-card-arr {
  color: var(--ink-1); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.25s ease;
  white-space: nowrap;
}
.kb-card:hover .kb-card-arr { gap: 8px; }

/* Type chip — shared between featured + card */
.kb-type {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--chip-bg, #FFF3E4);
  color: var(--chip-color, #C2620A);
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(0,0,0,0.04);
}
.kb-type::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--chip-accent, #FB993F);
}
.kb-dot-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-6);
  display: inline-block;
}
.kb-meta-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0.01em;
}

/* Empty-state placeholder card (greyed) */
.kb-card.kb-card-empty {
  background: transparent;
  border: 1px dashed rgba(28,28,28,0.16);
  box-shadow: none;
  padding: 24px;
  align-items: center; justify-content: center;
  text-align: center;
  color: var(--ink-4);
  min-height: 320px;
  font-family: var(--font-display);
  font-size: 14px;
}
.kb-card.kb-card-empty:hover { transform: none; box-shadow: none; }


/* Responsive article overview. */
.kb-cover-svg { display:block; width:100%; height:100%; }
.kb-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
.kb-hero { padding-bottom:48px; }
.kb-grid-wrap { margin-top:32px; }
.kb-featured, .kb-card { border:1px solid var(--hairline); box-shadow:none; }
.kb-featured { border-radius:14px; }
.kb-card { border-radius:14px; }
.kb-card h3 { font-size:clamp(23px,2.2vw,30px); }
.kb-card-excerpt { font-size:17px; }
.kb-card-body { padding:28px; }
@media (max-width:980px) {
 .kb-featured { gap:28px; }
 .kb-featured-body { padding:8px; }
}
@media (max-width:640px) {
 .kb-hero { padding:48px 24px 24px; }
 .kb-hero h1 { font-size:42px; }
 .kb-grid-wrap { padding:0 24px; margin-bottom:56px; }
 .kb-featured { grid-template-columns:1fr; gap:20px; padding:16px; margin-bottom:28px; }
 .kb-featured .kb-cover { aspect-ratio:16/10; }
 .kb-featured-tag { top:26px; left:26px; }
 .kb-featured-body { padding:8px; }
 .kb-cards { grid-template-columns:1fr; gap:24px; }
 .kb-card-body { padding:24px; }
}
@media (prefers-reduced-motion:reduce) {
 .kb-featured, .kb-card { transition:none; }
 .kb-featured:hover, .kb-card:hover { transform:none; }
}
