.guide-page {
  max-width: 1060px;
  padding: clamp(66px, 10vw, 122px) 0 clamp(92px, 12vw, 142px);
}

.guide-page h1,
.guide-page h2,
.guide-page h3,
.guide-page p,
.guide-page li,
.guide-page a {
  overflow-wrap: anywhere;
}

.guide-hero {
  max-width: 880px;
}

.guide-hero h1 {
  max-width: 850px;
  font-size: clamp(3.15rem, 7vw, 6.5rem);
}

.guide-lede {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.2rem);
  line-height: 1.75;
}

.guide-boundary {
  max-width: 790px;
  margin-top: 34px;
  padding: 22px 24px;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted);
  line-height: 1.65;
}

.guide-section {
  margin-top: 84px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.guide-section-heading {
  max-width: 750px;
  margin-bottom: 36px;
}

.guide-section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4.45rem);
}

.guide-section-heading p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.guide-grid,
.framework-grid,
.failure-grid,
.guide-links {
  display: grid;
  gap: 18px;
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card,
.framework-card,
.failure-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.guide-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
}

.guide-card-number,
.framework-label {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-card h2 {
  margin-top: 20px;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.guide-card p,
.framework-card p,
.failure-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.guide-card a,
.guide-links a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.guide-card a {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 26px;
}

.framework-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.framework-card h3,
.failure-card h3 {
  margin-top: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 1.12rem;
  line-height: 1.35;
}

.framework-card ul,
.guide-checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.failure-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-checklist-wrap {
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--green);
  background: rgba(40, 180, 126, 0.07);
}

.guide-checklist-wrap h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.2rem;
  line-height: 1.35;
}

.guide-checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 34px;
}

.guide-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-links a {
  min-height: 92px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
}

.guide-page a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 800px) {
  .guide-grid,
  .failure-grid,
  .guide-links {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .framework-grid,
  .guide-checklist {
    grid-template-columns: 1fr;
  }

  .guide-boundary,
  .guide-card,
  .framework-card,
  .failure-card,
  .guide-checklist-wrap {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-page *,
  .guide-page *::before,
  .guide-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
