/* Links cards page */
.vp-links-page {
  background: var(--vp-bg);
  color: var(--vp-text);
  padding-bottom: var(--vp-space-5);
}

.vp-links-hero {
  background: #f2f2e0;
  border-top: 1px solid var(--vp-border);
  border-bottom: 1px solid var(--vp-border);
  padding: 36px 0;
}

.vp-links-hero h1 {
  margin: 0;
  font-family: var(--vp-font-heading);
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.1;
  font-weight: 700;
}

.vp-links-intro {
  margin: 14px 0 0;
  max-width: 70ch;
  font-family: var(--vp-font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--vp-text);
}

.vp-links-grid-section {
  padding: 40px 0 0;
}

.vp-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.vp-link-card {
  background: var(--vp-paper);
  border: 1px solid var(--vp-border);
  box-shadow: var(--vp-shadow);
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vp-link-card-title {
  margin: 0;
  font-family: var(--vp-font-heading);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.vp-link-card-url {
  margin: 0;
  font-family: var(--vp-font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--vp-muted);
  word-break: break-word;
}

.vp-link-card-cta {
  margin: auto 0 0;
}

.vp-link-card-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--vp-font-body);
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  color: var(--vp-text);
  text-decoration: none;
}

.vp-link-card-arrow {
  width: 12px;
  height: 12px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M15 8H4' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 12.2426' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 3.75736' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M15 8H4' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 12.2426' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 8L10.7574 3.75736' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex-shrink: 0;
}

.vp-link-card-cta a:hover {
  color: var(--vp-accent);
}

.vp-link-card-cta a:hover .vp-link-card-arrow {
  background-color: currentColor;
}

.vp-links-empty {
  background: var(--vp-paper);
  border: 1px dashed var(--vp-border);
  padding: 24px;
}

.vp-links-empty p {
  margin: 0;
  font-family: var(--vp-font-body);
  color: var(--vp-muted);
}

@media (max-width: 1100px) {
  .vp-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .vp-links-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vp-links-hero {
    padding: 28px 0;
  }

  .vp-link-card {
    min-height: 180px;
  }
}
