.brx-root {
  grid-column: 1 / -1;
  width: 100%;
  font-family: var(--kr, Pretendard, Arial, sans-serif);
  color: var(--b800, #0b0b0b);
}

.brx-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.brx-tabs::-webkit-scrollbar {
  display: none;
}

.brx-tab {
  flex: none;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--b100, #f6f6f6);
  color: var(--b400, #757575);
  font: 500 15px/1 var(--kr, Pretendard, Arial, sans-serif);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.brx-tab:hover {
  color: var(--b800, #0b0b0b);
}

.brx-tab[aria-selected='true'] {
  background: var(--b800, #0b0b0b);
  color: var(--b-white, #fff);
}

.brx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.brx-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brx-card[hidden] {
  display: none;
}

.brx-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: var(--b100, #f6f6f6);
}

.brx-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transition: transform 0.7s ease-out;
}

.brx-image--profile {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--brx-profile-size);
  height: var(--brx-profile-size);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%);
}

.brx-card:hover .brx-image--profile {
  transform: translate(-50%, -50%) scale(1.03);
}

.brx-card:hover .brx-image {
  transform: scale(1.03);
}

.brx-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 4px 0;
}

.brx-title {
  display: flex;
  align-items: center;
  height: 24px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.brx-wordmark {
  max-width: 70%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0);
}

.brx-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.brx-stats {
  display: flex;
  gap: 16px;
  margin: 4px 0 0;
}

.brx-stats div {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.brx-stats dt {
  color: var(--b500, #9c9c9c);
  font-size: 13px;
}

.brx-stats dd {
  margin: 0;
  color: var(--b600, #333);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 991px) {
  .brx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .brx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .brx-media {
    border-radius: 14px;
  }

  .brx-info {
    padding-top: 12px;
    gap: 4px;
  }

  .brx-title {
    height: 20px;
    font-size: 15px;
  }

  .brx-stats {
    flex-direction: column;
    gap: 2px;
  }

  .brx-stats dt {
    font-size: 12px;
  }

  .brx-stats dd {
    font-size: 13px;
  }

  .brx-tab {
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }
}

.brx-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  grid-column: span var(--brx-cta-span, 2);
  min-height: 240px;
  padding: 32px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--b800, #0b0b0b);
  color: var(--b-white, #fff);
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.brx-cta::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%);
  opacity: 0.7;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
  z-index: -1;
}

.brx-cta:hover::before {
  transform: translate(-12%, 14%) scale(1.15);
  opacity: 1;
}

.brx-cta-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.brx-cta-title {
  margin-top: auto;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.brx-cta-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--b-white, #fff);
  color: var(--b800, #0b0b0b);
  font-size: 15px;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.brx-cta:hover .brx-cta-action {
  gap: 14px;
}

.brx-cta-arrow {
  flex: none;
}

@media (max-width: 767px) {
  .brx-cta {
    min-height: 0;
    padding: 20px;
    gap: 16px;
    border-radius: 14px;
  }

  .brx-cta-title {
    font-size: 17px;
  }

  .brx-cta-action {
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
  }
}

.brx-image[src*='.svg'] {
  box-sizing: border-box;
  padding: 14%;
  object-fit: contain;
  object-position: center;
}
