/* Front-page topic card. Keep clear of the overlapping introduction. */
.fv-topic-wrap {
  position: relative;
}

.fv-topic {
  position: absolute;
  z-index: 2;
  right: 2vw;
  bottom: max(32rem, 120rem - 100svh + 24px);
  width: min(800px, 96vw);
  animation: fv-topic-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes fv-topic-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fv-topic:focus-within {
  animation: none;
}

.fv-topic__card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  color: #333;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e8e8e8;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  border-radius: 4px;
}

a.fv-topic__card {
  transition: box-shadow 0.2s, transform 0.2s;
}

a.fv-topic__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

a.fv-topic__card:focus-visible {
  outline: 3px solid #246b59;
  outline-offset: 4px;
}

.fv-topic__media {
  flex: 0 0 44%;
  overflow: hidden;
  border-radius: 2px;
}

.fv-topic__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.fv-topic__body {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.fv-topic__label {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #61756a;
  overflow-wrap: anywhere;
}

.fv-topic__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.fv-topic__arrow.common-btn {
  width: min(150px, 100%);
  margin-top: auto;
  margin-left: auto;
  padding-top: 20px;
}

.fv-topic__card--text {
  min-height: 130px;
}

@media (max-width: 767px) {
  .fv-topic {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    padding: 18px 16px 24px;
    background: #f5f5f5;
  }
  .fv-topic__card {
    gap: 14px;
  }
  .fv-topic__media {
    flex-basis: 42%;
  }
  .fv-topic__title {
    font-size: 13px;
  }
  .fv-topic__label {
    font-size: 10px;
    margin-bottom: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fv-topic {
    animation: none;
  }
  a.fv-topic__card {
    transition: none;
  }
  a.fv-topic__card:hover {
    transform: none;
  }
}
