/* Shared redesigned editorial cards. Page layout belongs to page stylesheets. */

.ft-news-card {
  min-width: 0;
  height: 580px;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e9e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 32, 43, .1);
}

.ft-news-card-media {
  display: block;
  margin: 24px 24px 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 4px;
  background: #edf2f0;
  aspect-ratio: 7 / 5;
}

.ft-news-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .2s ease;
}

.ft-news-card:hover .ft-news-card-media img {
  transform: scale(1.025);
}

.ft-news-card-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
}

.ft-news-card-meta {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #718096;
  font-size: 13px;
  line-height: 18px;
}

.ft-news-card-category {
  min-width: 0;
  overflow: hidden;
  color: #008b6c;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-news-card h2 {
  margin: 10px 0 0;
  color: #172033;
  font-size: 21px;
  line-height: 27px;
  font-weight: 750;
  letter-spacing: 0;
}

.ft-news-card h2 a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: start;
  gap: 10px;
  border: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
}

.ft-news-card h2 a > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ft-news-card h2 svg {
  margin-top: 4px;
}

.ft-news-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 20px;
  color: #718096;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ft-news-card-author {
  min-height: 40px;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ft-news-card-author > img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: block;
  border-radius: 50%;
  background: #edf2f0;
  object-fit: cover;
}

.ft-news-card-author > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: #718096;
  font-size: 11px;
  line-height: 15px;
}

.ft-news-card-author strong {
  overflow: hidden;
  color: #172033;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-news-card a:focus-visible {
  outline: 3px solid #0acfa0;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ft-news-card-media img {
    transition: none;
  }

  .ft-news-card:hover .ft-news-card-media img {
    transform: none;
  }
}

@media (max-width: 767px) {
  .ft-news-card {
    height: auto;
    min-height: 540px;
  }

  .ft-news-card h2 {
    font-size: 20px;
    line-height: 26px;
  }
}
