@charset "UTF-8";

/* Scoped to the theme's YARPP cards to avoid changing article content. */
.post .yarpp-template-yarpp-template-nakamoto {
  margin: 3.5rem 0 0;
  font-family: inherit;
}

.post .yarpp-template-yarpp-template-nakamoto.yarpp-related-none {
  display: none;
}

.post .nm-related {
  border-top: 1px solid #383838;
  padding-top: 1.5rem;
  position: relative;
}

.post .nm-related::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background: #ffc800;
}

.post .nm-related__heading {
  margin-bottom: 1.5rem;
}

.post .nm-related__eyebrow {
  margin: 0 0 0.5rem;
  padding: 0;
  color: #ffc800;
  font-family: "commuters-sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.post .nm-related__title {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.5;
  transform: none;
}

.post .nm-related__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post .nm-related__item {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post .nm-related__card {
  height: 100%;
}

.post .nm-related__link {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: 0.45rem;
  background: #141414;
  color: #fff;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.post .nm-related__media {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: #242424;
}

.post .nm-related__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: cover;
  transition: transform 250ms ease;
}

.post .nm-related__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #1b1b1b 0, #1b1b1b 10px, #202020 10px, #202020 11px);
}

.post .nm-related__placeholder img {
  display: block;
  width: 65%;
  height: auto;
  margin: 0;
  opacity: 0.7;
}

.post .nm-related__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.85rem;
}

.post .nm-related__category {
  display: block;
  margin-bottom: 0.4rem;
  color: #ffc800;
  font-size: max(10px, 0.6rem);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.post .nm-related__post-title {
  margin: 0;
  padding: 0;
  color: #f5f5f5;
  font-size: max(14px, 0.85rem);
  font-weight: 700;
  line-height: 1.7;
  text-transform: none;
  overflow-wrap: anywhere;
}

.post .nm-related__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

.post .nm-related__date {
  color: #aaa;
  font-family: "commuters-sans", sans-serif;
  font-size: max(10px, 0.55rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.post .nm-related__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid #4a4a4a;
  border-radius: 50%;
  color: #ffc800;
  font-family: sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.post .nm-related__link:focus-visible {
  outline: 2px solid #ffc800;
  outline-offset: 4px;
}

/* Override the theme's image hover opacity for these cards. */
.post .nm-related__link:hover img,
.post .nm-related__link:active img {
  opacity: 1;
}

@media (hover: hover) {
  .post .nm-related__link:hover {
    border-color: #ffc800;
    background: #1c1c1c;
  }

  .post .nm-related__link:hover .nm-related__image {
    transform: scale(1.04);
  }

  .post .nm-related__link:hover .nm-related__arrow {
    border-color: #ffc800;
    background: #ffc800;
    color: #000;
  }
}

@media screen and (min-width: 640px) {
  .post .nm-related__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .post .nm-related__link {
    display: flex;
    flex-direction: column;
  }

  .post .nm-related__media {
    flex: none;
    min-height: 0;
    /* Match the portrait thumbnails used on the site's article list. */
    aspect-ratio: 4 / 5;
  }

  .post .nm-related__body {
    flex: 1;
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post .nm-related__link,
  .post .nm-related__image,
  .post .nm-related__arrow {
    transition: none;
  }

  .post .nm-related__link:hover .nm-related__image {
    transform: none;
  }
}
