@charset "utf-8";

.tl-content-main {
  padding: 30px;
}

.tl-filter {
  margin-bottom: 70px;
}

.tl-alpha-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}

.tl-alpha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: var(--color-primary-2);
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tl-alpha:first-child {
  min-width: 62px;
  font-size: 18px;
}

.tl-alpha.is-active,
.tl-alpha:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.tl-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tl-filter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.tl-filter-select,
.tl-filter-search {
  display: inline-flex;
  align-items: center;
}

.tl-filter-select {
  position: relative;
  width: 300px;
  height: 50px;
}

.tl-filter-select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #788393;
  border-bottom: 1.5px solid #788393;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.tl-filter-select select,
.tl-filter-search input {
  height: 50px;
  border: 1px solid #cccccc;
  background: #ffffff;
  color: #788393;
  font: inherit;
  font-size: 16px;
  line-height: 50px;
  box-sizing: border-box;
}

.tl-filter-select select {
  width: 100%;
  padding: 0 70px 0 14px;
  appearance: none;
  -webkit-appearance: none;
}

.tl-filter-select select:focus,
.tl-filter-search input:focus {
  border-color: #cccccc;
  outline: none;
  box-shadow: none;
}

.tl-filter-search {
  position: relative;
  width: 400px;
  height: 50px;
}

.tl-filter-search input {
  flex: 1 1 auto;
  width: 350px;
  min-width: 0;
  padding: 0 44px 0 14px;
  border-right: 0;
}

.tl-filter-search input::placeholder {
  color: #788393;
}

.tl-filter-clear {
  position: absolute;
  top: 50%;
  display: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transform: translateY(-50%);
}

.tl-filter-clear.is-visible {
  display: block;
}

.tl-filter-clear::before,
.tl-filter-clear::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 1.5px;
  background: #788393;
  transform-origin: center;
}

.tl-filter-clear::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.tl-filter-clear::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.tl-filter-clear:focus {
  outline: none;
  box-shadow: none;
}

.tl-filter-select .tl-filter-clear {
  right: 40px;
}

.tl-filter-search .tl-filter-clear {
  right: 62px;
}

.tl-filter-search button[data-filter-search] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.tl-filter-search button svg {
  display: block;
  width: 22px;
  height: 22px;
}

.tl-teacher-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  gap: 30px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-teacher-item[hidden] {
  display: none !important;
}

.tl-teacher-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  width: 100%;
  min-height: 140px;
  height: auto;
}

.tl-teacher-avatar {
  display: block;
  width: 110px;
  height: 110px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 50%;
  background: #e8eef6;
}

.tl-teacher-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tl-teacher-info {
  min-width: 0;
  padding: 11px 0 15px;
}

.tl-teacher-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-height: 30px;
}

.tl-teacher-name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--color-primary-2);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.tl-teacher-name-link {
  color: inherit;
  text-decoration: none;
}

.tl-teacher-name-link.is-name-justify {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 3em;
  white-space: nowrap;
  vertical-align: top;
}

.tl-teacher-name-link.is-name-justify > span {
  display: block;
}

.tl-teacher-name-link:hover {
  color: var(--color-primary);
}

.tl-teacher-title {
  flex: 0 0 auto;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.tl-teacher-email {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e2e6ea;
  color: var(--color-primary-2);
  font-size: 16px;
  line-height: 1.35;
  word-break: break-all;
}

.tl-teacher-email[style*="display: none"] {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.research-direction {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 0;
  margin-top: 6px;
  color: var(--color-primary-2);
  font-size: 16px;
  line-height: 1.35;
  word-break: break-all;
}

.research-direction-label {
  white-space: nowrap;
}

.research-direction-value {
  min-width: 0;
}

.tl-empty {
  padding: 48px 0;
  color: var(--color-primary-3);
  font-size: 18px;
  text-align: center;
}

@media (max-width: 1320px) {
  .tl-teacher-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1140px) {
  .tl-filter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .tl-teacher-list {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .tl-teacher-card {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .tl-content-main {
    padding: 28px;
  }

  .tl-filter {
    margin-bottom: 54px;
  }
}

@media (max-width: 720px) {
  .tl-content-main {
    padding: 24px 20px;
  }

  .tl-alpha {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    font-size: 20px;
  }

  .tl-alpha:first-child {
    min-width: 58px;
    font-size: 16px;
  }

  .tl-filter-select,
  .tl-filter-search {
    width: 100%;
  }

  .tl-filter-search input {
    width: auto;
  }

  .tl-teacher-list {
    gap: 24px;
  }

  .tl-teacher-name {
    font-size: 18px;
    line-height: 1.3;
  }

  .tl-teacher-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .tl-teacher-email {
    font-size: 15px;
    line-height: 1.5;
  }
  .research-direction {
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (max-width: 540px) {
  .tl-content-main {
    padding: 22px 16px;
  }

  .tl-teacher-card {
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 14px;
    width: 100%;
    height: auto;
    min-height: 76px;
  }

  .tl-teacher-avatar {
    width: 76px;
    height: 76px;
    margin-top: 0;
  }

  .tl-teacher-info {
    padding: 5px 0 8px;
  }

  .tl-teacher-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .tl-teacher-name {
    font-size: 16px;
    line-height: 1.35;
  }

  .tl-teacher-title {
    font-size: 14px;
    line-height: 1.35;
  }

  .tl-teacher-email {
    font-size: 14px;
    line-height: 1.5;
  }
  .research-direction {
    font-size: 14px;
    line-height: 1.5;
  }
}
