.guides-hero {
  display: grid;
  background: #efe3d1;
  border-bottom: 1px solid var(--line);
}

.guides-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 9vw, 112px) clamp(20px, 6vw, 76px);
}

.guides-breadcrumbs {
  display: flex;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.guides-breadcrumbs a {
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: none;
}

.guides-hero h1 {
  max-width: 10ch;
}

.guides-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: #38484b;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.guides-hero > img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.guide-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.guide-category-links a {
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(31, 43, 45, 0.12);
  border-radius: 999px;
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.guide-category {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 116px) 0;
  scroll-margin-top: 86px;
}

.guide-category-soft {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100% - var(--max)) / 2));
  background: #f3eadc;
}

.guide-category-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}

.guide-index {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0;
  color: var(--white);
  background: var(--blue-deep);
  border-radius: 50%;
  font-size: 0.86rem;
  font-weight: 900;
}

.guide-category-heading h2 {
  font-size: clamp(2.25rem, 6vw, 4.6rem);
}

.guide-category-heading div > p:last-child {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
}

.guide-article-card,
.guide-topic-panel {
  display: grid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.guide-article-card {
  text-decoration: none;
}

.guide-article-card + .guide-article-card {
  margin-top: 24px;
}

.guide-article-card:hover .guide-card-link {
  color: var(--blue-deep);
  transform: translateX(3px);
}

.guide-article-card img,
.guide-topic-panel img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.guide-article-card > div,
.guide-topic-panel > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: clamp(26px, 5vw, 52px);
}

.guide-card-category {
  margin: 0 0 10px;
  color: var(--wood);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-article-card h3,
.guide-topic-panel h3 {
  font-size: clamp(1.65rem, 4vw, 2.7rem);
}

.guide-article-card p,
.guide-topic-panel p {
  color: var(--muted);
}

.guide-card-link,
.guide-topic-panel .text-link {
  margin-top: 8px;
  color: var(--blue-deep);
  font-weight: 900;
  text-decoration: none;
  transition: 160ms ease;
}

.planned-guides {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}

.planned-guides li {
  position: relative;
  padding-left: 24px;
  color: #38484b;
  font-weight: 750;
}

.planned-guides li::before {
  position: absolute;
  left: 0;
  color: var(--blue-deep);
  content: "→";
}

.guide-up-next {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  padding: 16px 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.88rem;
}

.guide-up-next strong {
  color: var(--ink);
}

.guides-cta {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  width: min(100% - 36px, var(--max));
  margin: 0 auto clamp(70px, 10vw, 116px);
  padding: clamp(34px, 6vw, 64px);
  color: var(--white);
  background: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.guides-cta .eyebrow {
  color: #9fc4d2;
}

.guides-cta h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.guides-cta p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: #d8e1e2;
}

@media (min-width: 820px) {
  .guides-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    min-height: 640px;
  }

  .guide-article-card,
  .guide-topic-panel {
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  }

  .guide-topic-panel-reverse {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  }

  .guide-topic-panel-reverse img {
    grid-column: 2;
    grid-row: 1;
  }

  .guide-topic-panel-reverse > div {
    grid-column: 1;
    grid-row: 1;
  }

  .guide-article-card img,
  .guide-topic-panel img {
    height: 100%;
    min-height: 430px;
  }

  .guides-cta {
    flex-direction: row;
    align-items: center;
  }

  .guides-cta .button {
    min-width: 210px;
  }
}

@media (max-width: 520px) {
  .guide-category-heading {
    grid-template-columns: 1fr;
  }

  .guides-hero > img {
    min-height: 300px;
  }
}
