/* Sticky footer */
body.sr-news-index {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.sr-news-index .site-footer {
  margin-top: auto;
}

.sr-ready .site-nav__item--news .site-nav__link {
  color: #1677ff;
}

.sr-ready .site-nav__item--news .site-nav__link::after {
  opacity: 1;
  transform: scaleX(1);
}

.tr-directory {
  background: #fff;
}

.tr-directory-wrap {
  width: 100%;
}

.tr-tabs,
.tr-card-grid,
.tr-directory-cta {
  width: calc(100% - (var(--header-pad) * 2));
  max-width: var(--header-shell);
  margin-left: auto;
  margin-right: auto;
}

.tr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  margin-bottom: 24px;
}

.tr-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #155cae;
  border-radius: 0;
  background: #fff;
  color: #155cae;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.tr-tabs a:hover,
.tr-tabs a:focus,
.tr-tabs a.is-active {
  border-color: #1677ff;
  background: #f5f9ff;
  color: #096de6;
  text-decoration: none;
}

.tr-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.tr-card {
  display: flex;
  flex-direction: column;
  min-height: 254px;
  padding: 28px 26px;
  border: 1px solid #d6e2f0;
  border-radius: 0;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(13, 45, 84, .08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tr-card:hover,
.tr-card:focus {
  transform: translateY(-3px);
  border-color: #1677ff;
  box-shadow: 0 18px 36px rgba(13, 45, 84, .12);
  color: inherit;
  text-decoration: none;
}

.tr-card--featured {
  border-top: 3px solid #1677ff;
  background: linear-gradient(145deg, #fff 0%, #f1f7ff 100%);
}

.tr-card-date {
  display: block;
  margin: 2px 0 18px;
  color: #71869b;
  font-size: 12px;
  font-weight: 700;
}

.tr-card-tag {
  display: inline-flex;
  width: max-content;
  margin-bottom: 18px;
  color: #1677ff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.tr-card h2 {
  margin: 0 0 14px;
  color: #071f3f;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  min-height: 50px;
}

.tr-card p {
  flex: 1 0 auto;
  margin: 0 0 22px;
  color: #49617d;
  font-size: 14px;
  line-height: 1.7;
}

.tr-card-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  border: 1px solid #155cae;
  color: #155cae;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.tr-card:hover .tr-card-more,
.tr-card:focus .tr-card-more {
  border-color: #1677ff;
  background: #f5f9ff;
  color: #096de6;
}

.tr-directory-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 48px;
  margin-bottom: 80px;
  padding: 34px 30px;
  border: 1px solid #d6e2f0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 18px 36px rgba(13, 45, 84, .08);
}

.tr-directory-cta h2 {
  margin: 0 0 12px;
  color: #071f3f;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.tr-directory-cta p {
  margin: 0;
  color: #49617d;
  font-size: 14px;
  line-height: 1.7;
}

.tr-directory-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid #1677ff;
  background: #fff;
  color: #096de6;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.tr-directory-cta a:hover,
.tr-directory-cta a:focus {
  border-color: #1677ff;
  background: #f5f9ff;
  color: #096de6;
  text-decoration: none;
}

@media (max-width: 991px) {
  .tr-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tr-tabs,
  .tr-card-grid,
  .tr-directory-cta {
    width: calc(100% - (var(--header-pad) * 2));
  }

  .tr-card-grid {
    grid-template-columns: 1fr;
  }

  .tr-directory-cta {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 36px;
    margin-bottom: 56px;
    padding: 28px 22px;
  }
}
