/* The annual catalogue has variable-length category names. */
.gxp-page #gxp-course-directory .course-tabs-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.gxp-page #gxp-course-directory .course-tab {
  width: auto;
  flex: 0 1 auto;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  white-space: normal;
  text-align: left;
  line-height: 1.5;
}

.gxp-page #gxp-course-directory .course-tab .tc {
  flex-shrink: 0;
}

.gxp-page #gxp-course-directory .course-table th:last-child {
  width: 88px;
  text-align: right;
  white-space: nowrap;
}

.gxp-page #training-alliance .gxp-alliance-compare tbody th {
  font-weight: 500;
}

@media (max-width: 520px) {
  .gxp-page #gxp-course-directory .course-tabs-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gxp-page #gxp-course-directory .course-tab {
    justify-content: space-between;
    padding: 10px;
  }

  .gxp-page #gxp-course-directory .course-table th:last-child {
    width: 76px;
  }
}
