.tb-grid {
  --tb-grid-cols: 2;
  --tb-grid-cols-tablet: 2;
  --tb-grid-cols-mobile: 1;
  --tb-grid-gap-x: 24px;
  --tb-grid-gap-y: 24px;
  display: grid;
  gap: var(--tb-grid-gap-y) var(--tb-grid-gap-x);
  grid-template-columns: repeat(var(--tb-grid-cols), minmax(0, 1fr));
}

.tb-grid-item {
  min-width: 0;
}

.tb-grid-item .tb-member {
  height: 100%;
}

.tb-member.tb-preset-clean-avatar {
  border: 1px solid #edf1f5;
  --tb-gap: 16px;
  --tb-card-padding-y: 18px;
  --tb-card-padding-x: 18px;
  --tb-image-width: 96px;
  --tb-image-height: 96px;
  --tb-image-radius: 999px;
  --tb-name-size: 22px;
  --tb-name-line-height: 1.2;
  --tb-title-size: 14px;
  --tb-position-size: 13px;
  --tb-default-text-size: 14px;
  --tb-default-line-height: 1.7;
  --tb-default-bullet-size: 10px;
}

.tb-member.tb-preset-clean-avatar .tb-position {
  margin-top: 6px;
}

.tb-member.tb-preset-split-profile {
  background: #fff;
  border: 1px solid #edf1f5;
  box-shadow: 0 12px 30px rgba(24, 50, 74, 0.08);
  --tb-gap: 28px;
  --tb-card-padding-y: 28px;
  --tb-card-padding-x: 28px;
  --tb-image-width: 240px;
  --tb-image-height: 300px;
  --tb-image-radius: 28px;
  --tb-name-size: 36px;
  --tb-name-letter-spacing: 1px;
  --tb-title-size: 18px;
  --tb-default-text-size: 16px;
}

.tb-member.tb-preset-stacked-card {
  align-items: center;
  border: 1px solid #edf1f5;
  box-shadow: 0 8px 24px rgba(24, 50, 74, 0.06);
  flex-direction: column;
  --tb-gap: 18px;
  --tb-card-padding-y: 24px;
  --tb-card-padding-x: 24px;
  --tb-image-width: 140px;
  --tb-image-height: 140px;
  --tb-image-radius: 999px;
  text-align: center;
}

.tb-member.tb-preset-stacked-card .tb-media {
  flex-basis: auto;
  max-width: 100%;
}

.tb-member.tb-preset-stacked-card .tb-media-inner {
  margin: 0 auto;
}

.tb-member.tb-preset-stacked-card .tb-name-row {
  justify-content: center;
}

.tb-member.tb-preset-stacked-card .tb-position {
  margin-top: 8px;
}

.tb-member.tb-preset-stacked-card .tb-item {
  justify-content: center;
  text-align: left;
}

.tb-member.tb-preset-minimal-list {
  background: transparent;
  border-radius: 0;
  --tb-gap: 14px;
  --tb-card-padding-y: 0px;
  --tb-card-padding-x: 0px;
  --tb-image-width: 72px;
  --tb-image-height: 72px;
  --tb-image-radius: 999px;
  --tb-name-size: 20px;
  --tb-title-size: 13px;
  --tb-position-size: 13px;
  --tb-default-text-size: 14px;
  --tb-default-line-height: 1.65;
  --tb-default-bullet-size: 8px;
}

.tb-member.tb-preset-minimal-list .tb-position {
  margin-top: 4px;
}

.tb-member {
  --tb-card-bg: #fff;
  --tb-card-radius: 24px;
  --tb-card-padding-y: 24px;
  --tb-card-padding-x: 24px;
  --tb-gap: 24px;
  --tb-image-width: 220px;
  --tb-image-height: 260px;
  --tb-image-radius: 22px;
  --tb-image-bg: #f3f5f7;
  --tb-name-color: #1cba99;
  --tb-name-size: 34px;
  --tb-name-line-height: 1.15;
  --tb-name-letter-spacing: 0px;
  --tb-name-weight: 600;
  --tb-title-color: #1cba99;
  --tb-title-size: 22px;
  --tb-title-line-height: 1.25;
  --tb-title-letter-spacing: 0px;
  --tb-title-weight: 400;
  --tb-position-color: #7c8894;
  --tb-position-size: 15px;
  --tb-position-line-height: 1.5;
  --tb-position-weight: 400;
  --tb-position-spacing: 12px;
  --tb-title-gap: 10px;
  --tb-default-text-color: #8b8b8b;
  --tb-default-text-size: 17px;
  --tb-default-line-height: 1.8;
  --tb-default-weight: 400;
  --tb-default-bullet-color: #1cba99;
  --tb-default-bullet-size: 14px;
  --tb-list-gap: 14px;
  --tb-bullet-gap: 12px;
  --tb-media-col: var(--tb-image-width);
  --tb-text-col: 1fr;
  background: var(--tb-card-bg);
  border-radius: var(--tb-card-radius);
  box-sizing: border-box;
  display: flex;
  gap: var(--tb-gap);
  padding: var(--tb-card-padding-y) var(--tb-card-padding-x);
  width: var(--tb-member-width, auto);
  height: var(--tb-member-height, auto);
}

.tb-member.tb-layout-media-left,
.tb-member.tb-layout-media-right {
  display: grid;
  grid-template-columns: minmax(0, var(--tb-media-col)) minmax(0, var(--tb-text-col));
  align-items: start;
}

.tb-member.tb-layout-media-right {
  flex-direction: row-reverse;
}

.tb-member.tb-layout-media-top-left,
.tb-member.tb-layout-media-top-center {
  flex-direction: column;
}

.tb-member.tb-layout-media-top-center {
  align-items: center;
}

.tb-member.tb-text-center {
  text-align: center;
}

.tb-member.tb-text-right {
  text-align: right;
}

.tb-media {
  flex: 0 0 var(--tb-image-width);
  max-width: var(--tb-image-width);
}

.tb-member.tb-layout-media-left .tb-media,
.tb-member.tb-layout-media-right .tb-media {
  max-width: 100%;
  width: 100%;
}

.tb-layout-media-top-left .tb-media,
.tb-layout-media-top-center .tb-media {
  flex-basis: auto;
  max-width: 100%;
}

.tb-media-inner {
  background: var(--tb-image-bg);
  border-radius: var(--tb-image-radius);
  height: var(--tb-image-height);
  overflow: hidden;
  width: var(--tb-image-width);
}

.tb-member.tb-layout-media-left .tb-media-inner,
.tb-member.tb-layout-media-right .tb-media-inner {
  width: 100%;
}

.tb-member.tb-layout-media-right .tb-media {
  grid-column: 2;
}

.tb-member.tb-layout-media-right .tb-content {
  grid-column: 1;
}

.tb-layout-media-top-left .tb-media-inner,
.tb-layout-media-top-center .tb-media-inner {
  width: min(100%, var(--tb-image-width));
}

.tb-shape-circle .tb-media-inner {
  border-radius: 999px;
}

.tb-shape-soft-rounded .tb-media-inner {
  border-radius: calc(var(--tb-image-radius) * 1.6);
}

.tb-shape-square .tb-media-inner {
  border-radius: 0;
}

.tb-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tb-fit-contain .tb-media img {
  object-fit: contain;
}

.tb-content {
  flex: 1 1 auto;
  min-width: 0;
}

.tb-header {
  margin-bottom: 0;
}

.tb-header + .tb-divider,
.tb-header + .tb-items {
  margin-top: var(--tb-position-spacing);
}

.tb-name-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: var(--tb-title-gap);
}

.tb-title-below .tb-name-row {
  align-items: flex-start;
  flex-direction: column;
}

.tb-text-center .tb-name-row {
  justify-content: center;
}

.tb-text-right .tb-name-row {
  justify-content: flex-end;
}

.tb-name {
  color: var(--tb-name-color);
  font-size: var(--tb-name-size);
  font-weight: var(--tb-name-weight);
  letter-spacing: var(--tb-name-letter-spacing);
  line-height: var(--tb-name-line-height);
  margin: 0;
}

.tb-title {
  color: var(--tb-title-color);
  font-size: var(--tb-title-size);
  font-weight: var(--tb-title-weight);
  letter-spacing: var(--tb-title-letter-spacing);
  line-height: var(--tb-title-line-height);
}

.tb-position {
  color: var(--tb-position-color);
  font-size: var(--tb-position-size);
  font-weight: var(--tb-position-weight);
  line-height: var(--tb-position-line-height);
  margin-top: 8px;
  white-space: pre-line;
}

.tb-items {
  display: flex;
  flex-direction: column;
  gap: var(--tb-list-gap);
}

.tb-divider {
  background: var(--tb-divider-color, var(--tb-default-bullet-color));
  display: block;
  height: var(--tb-divider-thickness, 2px);
  width: var(--tb-divider-width, 72px);
}

.tb-divider + .tb-items {
  margin-top: var(--tb-divider-spacing, var(--tb-position-spacing));
}

.tb-divider-style-dashed {
  background: none;
  border-top: var(--tb-divider-thickness, 2px) dashed var(--tb-divider-color, var(--tb-default-bullet-color));
  height: 0;
}

.tb-divider-style-dotted {
  background: none;
  border-top: var(--tb-divider-thickness, 2px) dotted var(--tb-divider-color, var(--tb-default-bullet-color));
  height: 0;
}

.tb-divider-style-double {
  background: none;
  border-top: var(--tb-divider-thickness, 2px) double var(--tb-divider-color, var(--tb-default-bullet-color));
  height: 0;
}

.tb-divider-shape-square {
  border-radius: 0;
}

.tb-divider-shape-rounded {
  border-radius: 6px;
}

.tb-divider-shape-pill {
  border-radius: 999px;
}

.tb-divider-align-left {
  margin-left: 0;
  margin-right: auto;
}

.tb-divider-align-center {
  margin-left: auto;
  margin-right: auto;
}

.tb-divider-align-right {
  margin-left: auto;
  margin-right: 0;
}

.tb-item {
  --tb-item-text-color: var(--tb-default-text-color);
  --tb-item-text-size: var(--tb-default-text-size);
  --tb-item-line-height: var(--tb-default-line-height);
  --tb-item-weight: var(--tb-default-weight);
  --tb-item-bullet-color: var(--tb-default-bullet-color);
  --tb-item-bullet-size: var(--tb-default-bullet-size);
  --tb-item-gap: var(--tb-list-gap);
  align-items: flex-start;
  display: flex;
  gap: var(--tb-bullet-gap);
  margin: 0;
}

.tb-item:last-child {
  margin-bottom: 0;
}

.tb-bullet {
  background: var(--tb-item-bullet-color);
  border-radius: 999px;
  display: block;
  flex: 0 0 var(--tb-item-bullet-size);
  height: var(--tb-item-bullet-size);
  margin-top: calc((var(--tb-item-line-height) * 0.5em) - (var(--tb-item-bullet-size) / 2));
  position: relative;
  width: var(--tb-item-bullet-size);
}

.tb-bullet-square .tb-bullet {
  border-radius: 0;
}

.tb-bullet-diamond .tb-bullet {
  border-radius: 0;
  transform: rotate(45deg);
}

.tb-bullet-ring .tb-bullet {
  background: transparent;
  border: 2px solid var(--tb-item-bullet-color);
  box-sizing: border-box;
}

.tb-bullet-pill .tb-bullet {
  border-radius: 999px;
  height: calc(var(--tb-item-bullet-size) * 0.55);
  margin-top: calc((var(--tb-item-line-height) * 0.5em) - ((var(--tb-item-bullet-size) * 0.55) / 2));
  width: calc(var(--tb-item-bullet-size) * 1.5);
}

.tb-bullet-line .tb-bullet {
  border-radius: 999px;
  height: 2px;
  margin-top: calc((var(--tb-item-line-height) * 0.5em) - 1px);
  width: calc(var(--tb-item-bullet-size) * 1.6);
}

.tb-bullet-none .tb-bullet {
  background: transparent;
  flex-basis: 0;
  height: 0;
  margin-top: 0;
  width: 0;
}

.tb-bullet-none {
  gap: 0;
}

.tb-item-text {
  color: var(--tb-item-text-color);
  flex: 1 1 auto;
  font-size: var(--tb-item-text-size);
  font-weight: var(--tb-item-weight);
  line-height: var(--tb-item-line-height);
  min-width: 0;
  overflow-wrap: break-word;
}

.tb-item-align-center {
  text-align: center;
}

.tb-item-align-right {
  text-align: right;
}

.tb-item-align-justify {
  text-align: justify;
}

.tb-item-align-center .tb-item-text,
.tb-item-align-right .tb-item-text,
.tb-item-align-justify .tb-item-text {
  width: 100%;
}

@media (max-width: 767px) {
  .tb-grid {
    grid-template-columns: repeat(var(--tb-grid-cols-mobile), minmax(0, 1fr));
  }

  .tb-member.tb-mobile-stack {
    flex-direction: column;
  }

  .tb-member.tb-mobile-stack.tb-layout-media-left,
  .tb-member.tb-mobile-stack.tb-layout-media-right {
    grid-template-columns: minmax(0, 1fr);
  }

  .tb-member.tb-mobile-stack .tb-media,
  .tb-member.tb-mobile-stack .tb-content {
    grid-column: auto;
  }

  .tb-member.tb-mobile-stack .tb-media {
    flex-basis: auto;
    max-width: 100%;
  }

  .tb-member.tb-mobile-stack.tb-layout-media-left .tb-media-inner,
  .tb-member.tb-mobile-stack.tb-layout-media-right .tb-media-inner {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .tb-grid {
    grid-template-columns: repeat(var(--tb-grid-cols-tablet), minmax(0, 1fr));
  }
}
