.kb { padding-top: 40px; }
.kb #page-context { margin-bottom: 24px; }
.kb h2 { font-size: clamp(20px, 2.2vw, 24px); margin-bottom: 4px; }
.kb-search > p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.kb-search-form { position: relative; display: flex; max-width: 900px; border: 1px solid #586a7b; border-radius: 10px; background: var(--surface); overflow: hidden; }
.kb-search-form:focus-within { border-color: var(--teal); }
.kb-search-icon { position: absolute; top: 50%; left: 16px; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.kb-search-form input { flex: 1; min-width: 0; padding: 13px 16px 13px 46px; border: 0; background: transparent; color: var(--text); }
.kb-search-form input::placeholder { color: var(--muted); }
.kb-search-form input:focus-visible { outline: none; }
.kb-search-form .button { flex-shrink: 0; min-width: 96px; border-radius: 0; }
.kb-topics { margin-top: 48px; }
.kb-topics-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.kb-topics-heading span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.topic-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.topic-card:hover { text-decoration: none; border-color: #5c8e9c; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.topic-image { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #0f1821; overflow: hidden; }
.topic-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Product shots on white backgrounds look better contained than cropped. */
.topic-image.is-light { background: #fff; }
.topic-image.is-light img { object-fit: contain; padding: 8px; }
.topic-image.is-missing { background: linear-gradient(140deg, #1d2b39, #142029); color: #4d6273; font-size: 52px; font-weight: 200; line-height: 1; }
.topic-title { padding: 14px 16px 12px; font-weight: 650; }
.topic-count { margin: auto 16px 0; padding: 10px 0 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.topic-card:hover .topic-count { color: var(--teal); }
@media (max-width: 900px) {
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 650px) {
  .kb { padding-top: 28px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kb-topics { margin-top: 36px; }
  .kb-topics-heading { flex-direction: column; gap: 2px; }
  .topic-title { padding: 10px 12px 8px; font-size: 15px; }
  .topic-count { margin-inline: 12px; font-size: 13px; }
  .kb-search-form .button { min-width: 72px; padding-inline: 16px; }
}
