/*
 * xrp.zvyx.net — Latest research entry
 * Namespaced to avoid collisions with the existing homepage.
 */

.zvyx-latest {
  --latest-ink: #0b1b2a;
  --latest-text: #334b5c;
  --latest-muted: #5f7381;
  --latest-line: #c7d5dc;
  --latest-line-soft: #dce6eb;
  --latest-teal: #078b84;
  --latest-teal-strong: #06736e;
  --latest-blue: #216ec6;
  width: min(calc(100% - 40px), 1180px);
  margin: clamp(22px, 3vw, 38px) auto clamp(58px, 7vw, 96px);
}

.zvyx-latest,
.zvyx-latest * {
  box-sizing: border-box;
}

.zvyx-latest__link {
  position: relative;
  min-height: 228px;
  display: grid;
  grid-template-columns: minmax(310px, .95fr) minmax(420px, 1.25fr) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 4vw, 48px);
  overflow: hidden;
  color: var(--latest-text);
  background:
    radial-gradient(circle at 76% 4%, rgba(115, 216, 206, .15), transparent 28%),
    #fff;
  border: 1px solid var(--latest-line);
  border-radius: 30px;
  box-shadow: 0 2px 3px rgba(10, 28, 43, .03), 0 22px 60px rgba(24, 54, 76, .08);
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.zvyx-latest__link::before {
  content: "";
  position: absolute;
  inset: 26px auto 26px 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--latest-teal), var(--latest-blue));
}

.zvyx-latest__link:hover {
  border-color: rgba(7, 139, 132, .55);
  box-shadow: 0 3px 5px rgba(10, 28, 43, .04), 0 28px 72px rgba(24, 54, 76, .12);
  transform: translateY(-2px);
}

.zvyx-latest__link:focus-visible {
  outline: 3px solid rgba(33, 110, 198, .42);
  outline-offset: 4px;
}

.zvyx-latest__label {
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--latest-teal-strong);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.zvyx-latest__label span {
  padding: 4px 8px;
  color: #fff;
  background: var(--latest-teal);
  border-radius: 999px;
  letter-spacing: .04em;
}

.zvyx-latest__label time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.zvyx-latest__copy h2 {
  margin: 0;
  color: var(--latest-ink);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.045em;
}

.zvyx-latest__narrow-break {
  display: none;
}

.zvyx-latest__copy > p:last-child {
  max-width: 480px;
  margin: 16px 0 0;
  color: var(--latest-muted);
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.72;
}

.zvyx-latest__logic {
  position: relative;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
}

.zvyx-latest__logic::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 30px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, var(--latest-line), var(--latest-teal), var(--latest-line));
}

.zvyx-latest__logic li {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 13px 8px 10px;
  text-align: center;
}

.zvyx-latest__logic li > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #fff;
  background: var(--latest-ink);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--latest-line);
  font: 900 .57rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.zvyx-latest__logic-core > span {
  background: linear-gradient(145deg, var(--latest-teal), var(--latest-blue)) !important;
  box-shadow: 0 0 0 1px rgba(7,139,132,.42), 0 7px 20px rgba(7,139,132,.17) !important;
  animation: zvyx-latest-pulse 3.2s ease-in-out infinite;
}

.zvyx-latest__logic strong {
  color: var(--latest-ink);
  font-size: .72rem;
  line-height: 1.35;
}

.zvyx-latest__logic small {
  margin-top: 4px;
  color: var(--latest-muted);
  font-size: .62rem;
  font-weight: 700;
}

.zvyx-latest__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--latest-ink);
  font-size: .76rem;
  font-weight: 900;
}

.zvyx-latest__cta b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--latest-ink);
  border-radius: 12px;
  transition: transform .25s ease, background .25s ease;
}

.zvyx-latest__link:hover .zvyx-latest__cta b {
  background: var(--latest-teal);
  transform: translate(2px, -2px);
}

@keyframes zvyx-latest-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@media (max-width: 960px) {
  .zvyx-latest__link {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .95fr);
  }
  .zvyx-latest__cta {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .zvyx-latest {
    width: min(calc(100% - 28px), 1180px);
    margin-top: 16px;
    margin-bottom: 68px;
  }
  .zvyx-latest__link {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 25px 20px 21px;
    border-radius: 23px;
  }
  .zvyx-latest__link::before {
    inset-block: 22px;
  }
  .zvyx-latest__label {
    margin-bottom: 12px;
    font-size: .58rem;
  }
  .zvyx-latest__copy h2 {
    font-size: clamp(1.48rem, 7vw, 2rem);
    line-height: 1.17;
  }
  .zvyx-latest__copy > p:last-child {
    margin-top: 12px;
    font-size: .76rem;
    line-height: 1.65;
  }
  .zvyx-latest__logic {
    gap: 2px;
  }
  .zvyx-latest__logic::before {
    top: 26px;
    left: 15%;
    right: 15%;
  }
  .zvyx-latest__logic li {
    min-height: 96px;
    padding-inline: 2px;
  }
  .zvyx-latest__logic li > span {
    width: 31px;
    height: 31px;
    margin-bottom: 9px;
    border-width: 4px;
  }
  .zvyx-latest__logic strong {
    font-size: .63rem;
  }
  .zvyx-latest__logic small {
    font-size: .56rem;
  }
  .zvyx-latest__cta {
    grid-column: 1;
    width: 100%;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--latest-line-soft);
  }
}

@media (max-width: 350px) {
  .zvyx-latest__narrow-break {
    display: initial;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zvyx-latest__logic-core > span {
    animation: none;
  }
  .zvyx-latest__link,
  .zvyx-latest__cta b {
    transition: none;
  }
}
