.faculty-info {
  margin-bottom: 2rem;
}

.faculty-info__wrapper {
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .faculty-info__wrapper {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 4rem;
  }
}

.faculty-info__left {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .faculty-info__left {
    margin: 0;
    position: sticky;
    top: calc(var(--header-height-1px, 60px) + 2rem);
  }
}

.faculty-info__logo {
  width: 100%;
}

/* At 200px the emblem took half of a phone's first screen before a word of text. */
@media (max-width: 899px) {
  .faculty-info__logo {
    max-width: 120px;
    margin: 0 auto;
  }
}

@media (min-width: 900px) {
  .faculty-info__logo {
    max-width: 300px;
    margin: 0 auto;
  }
}

.faculty-info__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .faculty-info__left {
    max-width: unset;
  }
}

.faculty-buttons-scroll {
  width: calc(100% + 24px);
  margin-left: -12px;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 12px 16px 12px 12px; /* Space for shadows and scrollbar */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 164px; /* 140px + 24px padding */
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  .faculty-buttons-scroll {
    margin-top: 2.25rem;
    margin-bottom: 2rem;
  }
}

/* Beautiful neat scrollbar */
.faculty-buttons-scroll::-webkit-scrollbar {
  width: 4px;
}
.faculty-buttons-scroll::-webkit-scrollbar-track {
  background: rgba(var(--color-blue-100--rgb), 0.05);
  border-radius: 4px;
  margin: 12px 0; /* Don't overlap padding */
}
.faculty-buttons-scroll::-webkit-scrollbar-thumb {
  background: rgba(var(--color-blue-100--rgb), 0.3);
  border-radius: 4px;
}
.faculty-buttons-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-blue-100--rgb), 0.5);
}

.faculty-presentation-strip {
  width: 100%;
  flex-shrink: 0;
}

.fps-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 1rem;
  text-decoration: none !important;
  color: var(--color-text-heading);
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  transition: all 0.3s ease;
  gap: 0.75rem;
}

@media (hover: hover) {
  .fps-link:hover {
    background-color: var(--color-bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--color-blue-100--rgb), 0.12);
  }
}

.fps-link:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(var(--color-blue-100--rgb), 0.1);
  background-color: rgba(var(--color-blue-100--rgb), 0.03);
  transition: all 0.1s ease;
}

.fps-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.fps-label,
.fps-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(var(--color-blue-100--rgb), 0.3);
  padding-right: 0.75rem;
  color: inherit;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

@media (hover: hover) {
  .fps-link:hover .fps-label,
  .fps-link:hover .fps-icon-wrapper {
    border-right-color: var(--color-border-strong);
  }
}

.fps-label {
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fps-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  display: block;
}

.fps-icon--mask {
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  width: 20px;
  height: 20px;
  display: inline-block;
}

@media (hover: hover) {
  .fps-link:hover .fps-icon {
    opacity: 1;
  }
}

.fps-title {
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: inherit;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fps-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-heading);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (hover: hover) {
  .fps-link:hover .fps-arrow {
    transform: translateX(5px);
  }
}

@media (max-width: 768px) {
  .fps-title {
    font-size: 0.85rem;
  }
}

.faculty-info__description {
  width: 100%;
}

@media (min-width: 900px) {
  .faculty-info__description {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
}

.faculty-history-text {
  max-height: 250px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

@media (max-width: 899px) {
  .faculty-history-text h2 {
    margin-top: 0rem !important;
  }
}

.faculty-history-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(var(--color-bg-primary--rgb), 0), var(--color-bg-primary));
  transition: opacity 0.3s ease;
}

.faculty-history-text._expanded {
  max-height: 10000px;
  transition: max-height 0.8s ease-in-out;
}

.faculty-history-text._expanded::after {
  opacity: 0;
  pointer-events: none;
}

.faculty-history-toggle {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--color-text-heading);
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 1.5rem 0 0 0;
  margin: 0;
  transition: color 0.3s ease;
}

.faculty-history-toggle:hover {
  color: var(--color-link);
}

.faculty-history-toggle._expanded svg {
  transform: rotate(180deg);
}

.faculty-compound__title__container {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.875rem;
}

.faculty-compound__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 116%;
  color: var(--color-text-heading);
}

.faculty-compound-list {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.875rem;
}

.faculty-compound-list > .faculty-compound-list__item * .faculty-compound-list__item {
  border-top: 1px solid var(--color-border);
  padding-top: 1.875rem;
}

.faculty-compound-list._department:not(._active) .faculty-compound-list__item:not(:first-child) {
  display: none;
}

.faculty-compound-list__more {
  grid-column-start: 1;
  width: fit-content;
}

.faculty-compound-list__more:not(._active) .less,
.faculty-compound-list__more._active .more {
  display: none;
}

.faculty-worker {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  line-height: 140%;
  color: var(--color-text-secondary);
}

.faculty-worker.ai-center {
  align-items: center;
}

.faculty-worker__img {
  position: relative;
  display: block;
  width: 5rem;
  flex-shrink: 0;
  border-radius: 50%;
  transform: translate3d(0, 0, 0);
  overflow: hidden;
}

.faculty-worker__img__container {
  display: block;
  padding-top: 100%;
}

.faculty-worker__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-worker__info {
  flex: 1;
  min-width: 0;
  width: auto;
}

.faculty-worker__info > * + * {
  margin-top: 0.625rem;
}

.faculty-worker__link {
  position: relative;
  display: block;
  color: var(--color-text-heading);
}

.faculty-worker__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 116%;
  text-decoration-color: var(--color-text-heading);
  text-underline-offset: 0.375rem;
}

html:not(.v-mobile) .faculty-worker__link:hover .faculty-worker__title,
.faculty-worker__link:focus-visible .faculty-worker__title {
  text-decoration: underline;
}

.faculty-worker__description {
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 0;
  width: 100%;
}

.faculty-worker-details {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faculty-worker-details__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faculty-worker-details__item > * + * {
  margin-left: 0.625rem;
}

.faculty-worker-details__name {
  width: 100%;
  max-width: 4.5rem;
  flex-shrink: 0;
}

.faculty-structure__container {
  padding: 0 var(--wrap-1);
}

.faculty-worker-details__value > * + * {
  margin-top: 0.5em;
}

.faculty-worker-details__value > *:last-child::after {
  display: none;
}

.faculty-worker-details__value > a {
  color: inherit;
  word-break: break-word;
  
  text-underline-offset: 0.1875rem;
}

html:not(.v-mobile) .faculty-worker-details__value > a:hover,
.faculty-worker-details__value > a:focus-visible {
  text-decoration: underline;
}

.faculty-structure._grey .faculty-structure__container {
  padding: 0 var(--wrap);
}

.faculty-structure__container.col_2 {
  display: grid;
  gap: 3.25rem;
}

.faculty-structure._grey .faculty-structure__wrapper {
  background-color: var(--color-bg-secondary);
}

.faculty-structure__image {
  width: 100%;
  height: 100%;
  max-height: 90px;
  object-fit: cover;
}

.faculty-structure__title__container {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.275rem;
}

.faculty-structure__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 116%;
  color: var(--color-text-heading);
}

.faculty-structure-list__item > * + * {
  margin-top: 0.625rem;
}

.faculty-structure-list__link {
  color: var(--color-text-heading);
}

.faculty-structure-list__title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 116%;
  color: inherit;
  text-decoration-color: var(--color-text-heading);
  text-underline-offset: 0.375rem;
}

html:not(.v-mobile) .faculty-structure-list__link:hover .faculty-structure-list__title,
.faculty-structure-list__link:focus-visible .faculty-structure-list__title {
  text-decoration: underline;
}

.faculty-structure-list__additional {
  font-weight: 400;
  line-height: 140%;
  color: var(--color-text-secondary);
}

.faculty-structure-list__additional > * + * {
  margin-top: 0.625rem;
}

.faculty-structure .typography table {
  width: 100%;
  margin: 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.partners-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  padding: 10px;
  background-color: var(--color-bg-primary);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.partners-grid__item:hover {
  border-color: var(--color-border);
  background-color: var(--color-bg-secondary);
}

.partners-grid__item img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
  display: block;
}

.partners-grid__item a {
  color: var(--color-text-heading);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  line-height: 1.3;
  padding: 15px;
  transition: color 0.3s ease;
}

.partners-grid__item a:hover {
  color: var(--color-link);
}

/* A partner entered as a name only, without a logo or a link. */
.partners-grid__name {
  color: var(--color-text-heading);
  font-size: 1.25rem;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
  padding: 15px;
}

@media (max-width: 899px) {
  .faculty-info__wrapper > * + * {
    margin-top: 2rem;
  }
  .faculty-compound__title {
    font-size: var(--fs-section);
  }
  /* The people's cards were set at 12px, a step under the scale's smallest. */
  .faculty-worker {
    font-size: var(--fs-secondary);
  }
  .faculty-worker > * + * {
    margin-left: 1.5rem;
  }
  .faculty-worker__img {
    max-width: 5rem;
  }
  .faculty-worker__title {
    font-size: 1rem;
  }
  .faculty-structure._grey .faculty-structure__wrapper {
    padding: 1.5rem var(--wrap-colored);
  }
  .faculty-structure__title {
    font-size: var(--fs-section);
  }
  .faculty-structure-list > * + * {
    margin-top: 1.25rem;
  }
  .faculty-structure-list__title {
    font-size: 1rem;
  }
  .faculty-structure-list__additional {
    padding-left: 1.5rem;
    font-size: var(--fs-secondary);
  }
  .faculty-structure-list__description > * + * {
    margin-top: 0.5em;
  }
}

@media (max-width: 1199px) {
  .faculty-structure._grey .faculty-structure__container {
    padding: 0;
  }
}

@media (min-width: 900px) {
  .faculty-worker {
    font-size: 0.875rem;
  }
  .faculty-worker > * + * {
    margin-left: 2rem;
  }
  .faculty-structure__container.col_2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
  .faculty-structure._grey .faculty-structure__wrapper {
    padding: 2.5rem var(--wrap-colored);
  }
  .faculty-structure-list {
    max-width: 26.25rem;
  }
  .faculty-structure-list > * + * {
    margin-top: 1.625rem;
  }
  .faculty-structure-list__additional {
    padding-left: 2rem;
    font-size: 1rem;
  }
  .faculty-structure-list__description > * + * {
    margin-top: 0.25em;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .faculty-compound__title {
    font-size: 1.375rem;
  }
  .faculty-worker__img {
    width: 7.5rem;
    max-width: 7.5rem;
  }
  .faculty-worker__title {
    font-size: 1rem;
  }
  .faculty-structure__title {
    font-size: 1.375rem;
  }
  .faculty-structure-list__title {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .faculty-compound__title {
    font-size: 1.375rem;
  }
  .faculty-worker__img {
    width: 7.5rem;
    max-width: 7.5rem;
  }
  .faculty-worker__title {
    font-size: 1.125rem;
  }
  .faculty-structure__title {
    font-size: 1.375rem;
  }
  .faculty-structure-list__title {
    font-size: 1.125rem;
  }
}

@media (min-width: 1200px) and (min-width: 1350px) {
  .faculty-compound-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .faculty-compound-list > .faculty-compound-list__item + .faculty-compound-list__item:nth-child(2) {
    border-top: unset;
    padding-top: unset;
  }
}

@media (min-width: 1200px) and (min-width: 1540px) {
  .faculty-compound__title {
    font-size: 1.5rem;
  }
  .faculty-structure__title {
    font-size: 1.5rem;
  }
}

@media (min-width: 1200px) and (max-width: 1620px) {
  .faculty-compound-list {
    column-gap: 2.625rem;
  }
}

@media (min-width: 1200px) and (min-width: 1620px) {
  .faculty-compound-list__item {
    margin-right: 4.0625rem;
  }
  .faculty-worker__img {
    width: 10rem;
    max-width: 10rem;
  }
}

@media (min-width: 1200px) and (min-width: 1700px) {
  .faculty-worker-details__value > * + * {
    margin-top: unset;
    margin-left: 0.25em;
  }
}

@media (min-width: 2000px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
  }
  .partners-grid__item {
    min-height: 180px;
    padding: 20px;
  }
  .partners-grid__item img {
    max-height: 160px;
  }
  .partners-grid__item a {
    font-size: 1.75rem;
  }
}

@media (max-width: 991px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
  }
  .partners-grid__item {
    min-height: 100px;
  }
  .partners-grid__item a {
    font-size: 1rem;
    padding: 10px;
  }
  .partners-grid__item img {
    max-height: 80px;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .partners-grid__item a {
    font-size: 0.9rem;
  }
}

.specialities-table td {
  vertical-align: top !important;
}

.specialities-table .dropdown-list {
  border-left: 2px solid var(--color-border-strong);
  padding-left: 1.25rem !important;
  margin-top: 0 !important;
  margin-bottom: 0;
  margin-left: 0.5rem !important;
}

.specialities-table .dropdown-list._open {
  margin-top: 1rem !important;
  margin-bottom: 0.5rem;
}

.specialities-table .dropdown-list li {
  position: relative !important;
  margin-bottom: 0.75rem !important;
  padding-left: 0 !important;
  line-height: 1.4;
}

.specialities-table .dropdown-list li:last-child {
  margin-bottom: 0 !important;
}

.specialities-table .dropdown-list li::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background-color: var(--color-border-strong);
  border-radius: 0 2px 2px 0;
  transition: width 0.3s ease;
}

.specialities-table .dropdown-list li:hover::before {
  width: 16px;
  background-color: var(--color-accent);
}

.specialities-table .dropdown-list li a {
  font-size: 0.9em;
  color: var(--color-text-heading);
}

.specialities-table .dropdown-list li span {
  font-size: 0.9em;
  color: inherit;
}