.sp-store-departments {
  --dept-bg: #f5f7fa;
  --dept-card: #fff;
  --dept-ink: #1d2732;
  --dept-muted: #526170;
  --dept-border: #d7dfe7;
  --dept-accent: #9c4608;
  --dept-active: #fff0e3;
  border-bottom: 1px solid var(--dept-border);
  background: var(--dept-bg);
  padding: 12px 0;
}

html[data-sp-theme="dark"] .sp-store-departments {
  --dept-bg: #11161d;
  --dept-card: #19212a;
  --dept-ink: #eff3f7;
  --dept-muted: #b7c3d0;
  --dept-border: #354251;
  --dept-accent: #ffb078;
  --dept-active: #38281d;
}

.sp-store-departments-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 8px;
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

.sp-store-departments a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 56px;
  padding: 7px 12px;
  border: 1px solid var(--dept-border);
  border-radius: 8px;
  background: var(--dept-card);
  color: var(--dept-ink);
  text-decoration: none;
}

.sp-store-departments a strong {
  font-size: .94rem;
  line-height: 1.24;
}

.sp-store-departments a span {
  color: var(--dept-muted);
  font-size: .78rem;
  line-height: 1.25;
}

.sp-store-departments a:is(:hover,[aria-current]) {
  border-color: var(--dept-accent);
  color: var(--dept-accent);
}

.sp-store-departments a[aria-current] {
  background: var(--dept-active);
}

.sp-store-departments a:focus-visible {
  outline: 2px solid var(--dept-accent);
  outline-offset: 3px;
}

.sp-header .sp-nav a[aria-current="true"]:not([hreflang]) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.sp57-hero .sp-hardware-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .sp-store-departments-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 32px);
  }
  .sp-store-departments a {
    padding-inline: 8px;
    overflow-wrap: anywhere;
  }
  .sp-store-departments a strong {font-size: .86rem}
  .sp-store-departments a span {font-size: .73rem}
}
