/* Proxy Grove — Resources Hub */
.pg-res-page {
  overflow-x: clip;
}

.pg-res-page .pg-rp-hero__title {
  max-width: 22ch;
}

.pg-res-page .pg-rp-hero__desc {
  max-width: 42rem;
}

.pg-res-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pg-res-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .pg-res-grid--cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .pg-res-grid--cats-7 {
    grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  }

  .pg-res-grid--3,
  .pg-res-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pg-res-cat,
.pg-res-kb,
.pg-res-prod {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  border-radius: 1.15rem;
}

.pg-res-cat:hover,
.pg-res-kb:hover,
.pg-res-prod:hover {
  transform: translateY(-3px);
}

.pg-res-cat:focus-visible,
.pg-res-kb:focus-visible,
.pg-res-prod:focus-visible,
.pg-res-link:focus-visible,
.pg-res-feature__title a:focus-visible {
  outline: 2px solid #137f15;
  outline-offset: 3px;
}

.pg-res-cat__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.95rem;
  background: rgb(19 0 154 / 0.08);
  color: var(--color-text-heading);
  flex-shrink: 0;
}

.pg-res-cat__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.pg-res-cat__title {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-heading);
}

.pg-res-cat__desc {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text-body) 78%, transparent);
  flex: 1;
}

.pg-res-cat__cta {
  margin-top: 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #137f15;
}

.pg-res-prod__tagline {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #137f15;
}

.pg-res-feature {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1.15rem;
  transition: transform 0.25s ease;
}

.pg-res-feature:hover {
  transform: translateY(-3px);
}

.pg-res-feature__cover {
  display: block;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(145deg, rgb(19 0 154 / 0.06), rgb(19 127 21 / 0.05)),
    #f4f6fb;
  overflow: hidden;
}

.pg-res-feature__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.pg-res-feature:hover .pg-res-feature__cover img {
  transform: scale(1.03);
}

.pg-res-feature__body {
  padding: 1.2rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pg-res-feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--color-text-body) 68%, transparent);
}

.pg-res-feature__label {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgb(19 0 154 / 0.08);
  color: #13009a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pg-res-feature__title {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.pg-res-feature__title a {
  color: inherit;
  text-decoration: none;
}

.pg-res-feature__title a:hover {
  color: #137f15;
}

.pg-res-feature__excerpt {
  margin: 0 0 1.05rem;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text-body) 78%, transparent);
}

.pg-res-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #137f15;
  text-decoration: none;
  margin-top: auto;
}

.pg-res-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.pg-res-link:hover svg {
  transform: translateX(2px);
}

.pg-res-empty {
  margin: 0;
  grid-column: 1 / -1;
  color: color-mix(in srgb, var(--color-text-body) 75%, transparent);
}

.pg-res-empty a {
  color: #137f15;
  font-weight: 700;
}

.pg-res-intro {
  margin: -0.35rem 0 1.5rem;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--color-text-body) 82%, transparent);
}

html.dark .pg-res-cat__title,
html.dark .pg-res-feature__title,
html.dark .pg-res-prod__tagline {
  color: #f0f1f7;
}

html.dark .pg-res-feature__label {
  background: rgb(255 255 255 / 0.08);
  color: #c9ceff;
}

html.dark .pg-res-feature__cover {
  background: rgb(255 255 255 / 0.04);
}

@media (prefers-reduced-motion: reduce) {
  .pg-res-cat,
  .pg-res-feature,
  .pg-res-kb,
  .pg-res-prod,
  .pg-res-feature__cover img,
  .pg-res-link svg {
    transition: none;
  }

  .pg-res-feature:hover .pg-res-feature__cover img {
    transform: none;
  }
}

@media (max-width: 639px) {
  .pg-res-page .pg-rp-hero__title {
    max-width: none;
  }
}
