.sbl-category-page {
  box-sizing: border-box;
  width: 100%;
  margin: 16px auto 36px;
  padding: 6px 12px;
  color: #343a40;
  font-family: inherit;
  container-type: inline-size;
}
.sbl-category-page *, .sbl-category-page *::before, .sbl-category-page *::after { box-sizing: border-box; }
.sbl-category-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.sbl-category-eyebrow { margin: 0 0 4px; color: #667085; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sbl-category-intro h1 { margin: 0; color: #303640; font-size: clamp(25px, 4vw, 36px); line-height: 1.15; }
.sbl-category-intro p:last-child { margin: 6px 0 0; color: #667085; }
.sbl-category-add, .sbl-category-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid #44556c;
  border-radius: 9px;
  background: #fff;
  color: #343a40;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.sbl-category-add:hover, .sbl-category-search button:hover { border-color: #315d91; background: #f3f7fc; }
.sbl-category-add:focus-visible, .sbl-category-search button:focus-visible, .sbl-category-pill:focus-visible { outline: 2px solid #315d91; outline-offset: 2px; }
.sbl-category-add span { font-size: 20px; line-height: 1; }
.sbl-category-search { max-width: 620px; margin: 0 0 24px; }
.sbl-category-search label { display: block; margin-bottom: 6px; color: #343a40; font-size: 13px; font-weight: 700; }
.sbl-category-search-row { display: flex; gap: 8px; }
.sbl-category-search input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #cbd3dd;
  border-radius: 9px;
  background: #fff;
  color: #343a40;
  font: inherit;
}
.sbl-category-search input:focus { outline: 2px solid #a9c3e3; outline-offset: 1px; }
.sbl-category-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sbl-category-heading h2 { margin: 0; color: #303640; font-size: 20px; }
.sbl-category-heading span { color: #667085; font-size: 13px; }
.sbl-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sbl-category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  min-height: 184px;
  padding: 6px 12px;
  border: 1px solid var(--sbl-category-accent);
  border-radius: 10px;
  background: var(--sbl-category-accent);
  color: #fff;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 3px 9px rgba(24, 42, 63, .12);
  transition: box-shadow .16s ease, filter .16s ease, transform .16s ease;
}
.sbl-category-pill:nth-child(8n+1), .sbl-category-pill:nth-child(8n+4), .sbl-category-pill:nth-child(8n+6), .sbl-category-pill:nth-child(8n+8) { grid-column: span 2; }
.sc-card a.sbl-category-pill, .sc-card a.sbl-category-pill:hover { color: #fff !important; text-decoration: none; }
.sbl-category-pill:hover { box-shadow: 0 10px 22px rgba(24, 42, 63, .2); filter: brightness(1.08); transform: translateY(-2px); }
.sbl-category-icon { display: grid; flex: 0 0 68px; place-items: center; width: 68px; height: 68px; color: #fff; }
.sbl-category-icon svg { width: 60px; height: 60px; stroke-width: 1.5; }
.sbl-category-icon:has(img) { width: 76px; height: 76px; flex-basis: 76px; padding: 4px; border-radius: 12px; background: #fff; }
.sbl-category-icon img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.sbl-category-copy { display: grid; justify-items: center; min-width: 0; gap: 5px; }
.sbl-category-copy strong { color: #fff; font-size: 17px; font-weight: 700; line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; }
.sbl-category-copy small { color: rgba(255, 255, 255, .86); font-size: 13px; }
.sbl-category-empty { grid-column: 1 / -1; margin: 0; padding: 6px 12px; border: 1px solid #dce2e8; border-radius: 9px; background: #fff; color: #667085; }
@container (max-width: 1100px) {
  .sbl-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sbl-category-pill:nth-child(n) { grid-column: auto; }
  .sbl-category-pill:nth-child(3n+1) { grid-column: span 2; }
}
@container (max-width: 680px) {
  .sbl-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 440px) {
  .sbl-category-grid { grid-template-columns: 1fr; }
  .sbl-category-pill:nth-child(n) { grid-column: auto; }
}
@media (max-width: 560px) {
  .sbl-category-add { width: 100%; }
  .sbl-category-search-row { flex-wrap: wrap; }
  .sbl-category-search-row input { flex-basis: 100%; }
  .sbl-category-search button { width: 100%; }
}
