.nw-expertise-section {
  margin-top: 18px;
}

.nw-expertise-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nw-expertise-badge {
  --nw-category-accent: #8b78b9;
  --nw-category-accent-bright: #c3b6e5;
  --nw-category-accent-deep: #4a3b73;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--nw-category-accent) 30%, rgba(255, 255, 255, .09));
  border-radius: 17px;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--nw-category-accent) 15%, transparent), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .016));
  color: #f3effb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.nw-expertise-badge[data-primary="true"] {
  border-color: color-mix(in srgb, var(--nw-category-accent) 55%, rgba(255, 255, 255, .15));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 30px color-mix(in srgb, var(--nw-category-accent) 10%, transparent);
}

.nw-category-badge--showcase {
  min-height: 174px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 16px 12px 14px;
  text-align: center;
}

.nw-category-badge--standard {
  min-height: 80px;
}

.nw-category-badge--compact {
  min-height: 62px;
  gap: 9px;
  padding: 9px 10px;
}

.nw-category-badge-art {
  --nw-badge-size: 58px;
  position: relative;
  width: var(--nw-badge-size);
  height: var(--nw-badge-size);
  flex: 0 0 var(--nw-badge-size);
  display: grid;
  place-items: center;
}

.nw-category-badge-art--compact { --nw-badge-size: 42px; }
.nw-category-badge-art--standard { --nw-badge-size: 58px; }
.nw-category-badge-art--showcase { --nw-badge-size: 82px; }

.nw-category-badge-authored-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
}

.nw-category-badge-artwork-pending {
  width: 88%;
  height: 88%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 2px;
  padding: 7%;
  border: 1px dashed color-mix(in srgb, var(--nw-category-accent) 58%, rgba(255, 255, 255, .2));
  border-radius: 9px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--nw-category-accent) 9%, rgba(255, 255, 255, .025)), rgba(5, 5, 9, .86));
  color: color-mix(in srgb, var(--nw-category-accent-bright) 74%, #c7c1d0);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
}

.nw-category-badge-fallback-emblem {
  min-height: 0;
  display: grid;
  place-items: center;
}

.nw-category-badge-fallback-emblem .nw-category-emblem-svg {
  width: 72%;
  height: 72%;
  max-width: 30px;
  max-height: 30px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nw-category-emblem-svg .nw-icon-fill {
  fill: currentColor;
  stroke: none;
}

.nw-category-emblem-text {
  fill: currentColor;
  stroke: none;
  font: 900 6.2px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.3px;
}

.nw-category-badge-fallback-status {
  display: block;
  color: #8f879b;
  font-size: max(5px, calc(var(--nw-badge-size) * .085));
  font-weight: 900;
  line-height: 1;
  letter-spacing: .05em;
  white-space: nowrap;
}

.nw-category-badge-art--compact .nw-category-badge-artwork-pending {
  padding: 8%;
  border-radius: 7px;
}

.nw-category-badge-art--compact .nw-category-badge-fallback-status {
  font-size: 4px;
}

.nw-expertise-copy {
  min-width: 0;
  max-width: 100%;
}

.nw-expertise-copy b,
.nw-expertise-copy span {
  display: block;
}

.nw-expertise-copy b {
  color: #f8f5ff;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nw-expertise-copy span {
  margin-top: 4px;
  color: color-mix(in srgb, var(--nw-category-accent-bright) 68%, #a9a2b7);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.25;
}

.nw-category-badge--showcase .nw-expertise-copy b {
  font-size: 12px;
}

.nw-category-badge--showcase .nw-expertise-copy span {
  margin-top: 5px;
  font-size: 10px;
}

.nw-expertise-empty {
  grid-column: 1 / -1;
  padding: 15px;
  border: 1px dashed rgba(255, 255, 255, .1);
  border-radius: 14px;
  color: #8d8598;
  font-size: 11px;
}

.nw-expertise-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.nw-expertise-option {
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.nw-expertise-option:hover {
  transform: translateY(-1px);
}

.nw-expertise-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--nw-category-accent) 68%, white);
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--nw-category-accent) 21%, transparent), transparent 50%),
    rgba(255, 255, 255, .035);
}

.nw-expertise-option:focus-within {
  outline: 2px solid color-mix(in srgb, var(--nw-category-accent) 72%, white);
  outline-offset: 2px;
}

.nw-expertise-option input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  accent-color: var(--nw-category-accent);
}

.nw-expertise-primary {
  margin-top: 10px;
}

.nw-expertise-primary select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: #17131f;
  color: #fff;
  padding: 11px;
}

@media (max-width: 760px) {
  .nw-expertise-list,
  .nw-expertise-options {
    grid-template-columns: 1fr;
  }

  .nw-category-badge--showcase {
    min-height: 102px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 11px 13px;
    text-align: left;
  }

  .nw-category-badge--showcase .nw-category-badge-art {
    --nw-badge-size: 68px;
  }
}

@media (max-width: 420px) {
  .nw-expertise-badge {
    padding: 9px;
  }

  .nw-category-badge--showcase {
    min-height: 92px;
  }

  .nw-category-badge--showcase .nw-category-badge-art {
    --nw-badge-size: 62px;
  }

  .nw-category-badge--standard .nw-category-badge-art {
    --nw-badge-size: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nw-expertise-option {
    transition: none;
  }
}

/* Unified World + category badge presentation. */
.badges > .nw-earned-category-badge {
  min-height: 80px;
}

.nw-showcase-card-category.nw-expertise-badge {
  min-height: 154px;
}

.nw-showcase-option-category.nw-expertise-badge {
  display: flex !important;
  grid-template-columns: none;
  min-height: 62px !important;
  padding: 9px 10px !important;
}

.nw-showcase-option-category.selected {
  border-color: color-mix(in srgb, var(--nw-category-accent) 68%, white) !important;
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--nw-category-accent) 21%, transparent), transparent 50%),
    rgba(255, 255, 255, .035);
}

@media (max-width: 759px) {
  .nw-showcase-card-category.nw-expertise-badge {
    min-height: 102px;
  }
}

