.team-profile-page {
  margin-bottom: 30px;
}

.team-profile-hero {
  border-color: #d9e5ef;
  background: linear-gradient(135deg, #f8fbfd 0%, #eef4f9 100%);
}

.team-profile-heading {
  display: table;
  width: 100%;
}

.team-profile-flag,
.team-profile-heading-copy {
  display: table-cell;
  vertical-align: middle;
}

.team-profile-flag {
  width: 68px;
  max-width: 68px;
  height: auto;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-right: 18px;
}

.team-profile-heading-copy .page-header {
  margin-top: 0;
  margin-bottom: 12px;
  border-bottom: 0;
}

.team-profile-subtitle {
  color: #5b6b79;
  margin: 0;
}

.team-profile-hero-note {
  text-align: right;
  padding-top: 10px;
}

.team-profile-stat {
  min-height: 165px;
}

.team-profile-stat-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #708090;
  margin-bottom: 8px;
}

.team-profile-stat-value {
  font-size: 30px;
  line-height: 1.1;
  font-weight: bold;
  color: #244a68;
  margin-bottom: 10px;
}

.team-profile-stat-text {
  color: #6f7c88;
  line-height: 1.5;
}

.team-profile-card {
  margin-bottom: 20px;
}

.team-profile-history-item + .team-profile-history-item {
  margin-top: 10px;
}

.team-profile-history-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.team-profile-history-link:hover,
.team-profile-history-link:focus {
  text-decoration: none;
}

.team-profile-history-place {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.team-profile-history-copy {
  display: inline-block;
  vertical-align: middle;
  width: calc(100% - 125px);
}

.team-profile-history-copy strong,
.team-profile-history-copy small {
  display: block;
}

.team-profile-history-copy small {
  margin-top: 4px;
  color: #6f7c88;
}

.team-profile-mode-label {
  float: right;
  margin-top: 6px;
}

.team-profile-medal {
  height: 22px;
  width: auto;
}

.team-profile-detail-header {
  margin-bottom: 15px;
}

.team-profile-detail-meta {
  margin-top: 6px;
}

.team-profile-detail-label {
  display: inline-block;
  margin-bottom: 5px;
}

.team-profile-chart-shell {
  position: relative;
  width: 100%;
  min-height: 220px;
}

.team-profile-chart-block {
  margin-bottom: 18px;
}

.js-team-profile-chart-sorter {
  margin-bottom: 15px;
}

.team-profile-event-points {
  margin-bottom: 0;
}

.team-profile-event-points-meta {
  color: #6f7c88;
  margin-top: 5px;
  font-size: 12px;
}

.team-profile-empty .panel-body {
  padding-bottom: 0;
}

@media (max-width: 991px) {
  .team-profile-hero-note {
    text-align: left;
    padding-top: 0;
    margin-top: 10px;
  }

  .team-profile-history-copy {
    width: calc(100% - 80px);
  }
}

@media (max-width: 767px) {
  .team-profile-heading,
  .team-profile-flag,
  .team-profile-heading-copy {
    display: block;
  }

  .team-profile-flag {
    margin: 0 0 15px;
  }

  .team-profile-history-copy {
    width: auto;
  }

  .team-profile-mode-label {
    float: none;
    display: inline-block;
    margin-top: 10px;
  }

  .team-profile-detail-meta {
    text-align: left;
    margin-top: 15px;
  }
}
