/*
 * /resources (Figma "11 Resources", node 5846:118). Shared bands, cards, links
 * and the FAQ come from v3.css; this file only sizes the page's own pieces.
 */

/* Skip link: site.css used to style .skip; no shared v3 rule exists yet. */
.v3 .skip {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 16px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--k-button);
  color: #fff;
  font: 600 15px/1.2 var(--k-font-text);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--k-dur-ui) var(--k-ease);
}

.v3 .skip:focus {
  transform: none;
}

/*
 * v3.css sets `.v3 a { color: inherit }`, which outranks `.v3-btn` and
 * `.v3-link` on anchors (button text turns ink on ink). Restore their
 * colours until the shared rule is fixed.
 */
.v3 a.v3-btn {
  color: #fff;
}

.v3 a.v3-link {
  color: var(--k-green);
}

/* The server-injected breadcrumb is not in the Figma; keep it for assistive tech only. */
.v3 .knBreadcrumb {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.res-hero .v3-stack {
  gap: 28px;
}

.res-title {
  max-width: 900px;
  font-size: clamp(38px, 4.6vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.res-lead {
  max-width: 600px;
}

.res-band {
  padding-top: 112px;
  padding-bottom: 112px;
}

.res-head {
  margin-bottom: 40px;
}

.res-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* "Make the first step easy." */
.res-start-card {
  gap: 16px;
  padding: 28px;
}

.res-start-title {
  font-size: 26px;
}

/* "Ideas for a better introduction." */
.res-article {
  gap: 16px;
  padding: 28px;
  justify-items: start;
}

.res-cover {
  width: 100%;
  aspect-ratio: 1200 / 630;
  border: 1px solid rgb(0 0 0 / 6%);
  border-radius: 14px;
  object-fit: cover;
}

.res-tag {
  padding: 6px 12px;
  border-radius: 100px;
  color: var(--k-ink-2);
  font: 500 13px/1.2 var(--k-font-text);
}

.res-tag.is-peach { background: #fde7d6; }
.res-tag.is-sky { background: #dfeeff; }
.res-tag.is-mint { background: var(--k-green-soft); }
.res-tag.is-lilac { background: #efe5ff; }
.res-tag.is-butter { background: #fff4cc; }

.res-article-title {
  margin: 0;
  color: var(--k-ink);
  font: 600 24px/1.25 var(--k-font-display);
  text-wrap: balance;
}

.res-article-link {
  margin-top: auto;
  font-size: 15px;
  font-weight: 500;
}

/* The dark "Every article on the blog" card closes the grid. */
.v3-card.res-more {
  align-content: space-between;
  min-height: 240px;
  background: var(--k-button);
}

.res-more .res-article-title {
  color: #fff;
}

.res-more .res-article-link {
  color: #7fd8bf;
}

/* "Asked a lot." */
.res-faq {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: start;
  gap: 80px;
}

.res-faq-list .v3-faq:first-child summary {
  padding-top: 0;
}

.res-faq-list .v3-faq-body p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .v3 .skip {
    transition: none;
  }
}

@media (max-width: 960px) {
  .res-band {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .res-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 639px) {
  .res-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .res-start-title {
    font-size: 24px;
  }

  .res-article-title {
    font-size: 22px;
  }

  .v3-card.res-more {
    min-height: 180px;
  }
}
