.guides-archive,
.guide-single {
  min-height: 60vh;
  padding-block: 3rem 5rem;
}

.guides-archive__header {
  max-width: 52rem;
  padding-bottom: 2rem;
}

.guides-archive__eyebrow,
.guide-article__category {
  margin: 0 0 0.65rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.guides-archive__header h1,
.guide-article__header h1 {
  max-width: 100%;
  margin: 0;
  color: var(--text, #202020);
  font-size: var(--h1-lg-size);
  font-weight: var(--font-weight-heading);
  line-height: var(--h1-lg-height);
  overflow-wrap: anywhere;
}

.guides-archive__intro {
  max-width: 42rem;
  margin: 0.9rem 0 0;
  color: var(--text-muted, #5f6368);
  font-size: 1.05rem;
  line-height: 1.6;
}

.guides-categories {
  display: flex;
  gap: 0.5rem;
  margin: 1.25rem 0 2rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.5rem;
}

.guides-categories__link {
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border-light, #dedede);
  color: var(--text, #202020);
  font-size: 0.9rem;
  text-decoration: none;
}

.guides-categories__link:hover,
.guides-categories__link.is-active {
  border-color: var(--primary);
  color: var(--primary);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.guide-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-light, #dedede);
  background: var(--white, #fff);
}

.guide-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ececec;
}

.guide-card__image img,
.guide-card__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card__image img {
  transition: transform 0.3s ease;
}

.guide-card:hover .guide-card__image img {
  transform: scale(1.025);
}

.guide-card__body {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem;
}

.guide-card__category {
  margin-bottom: 0.45rem;
}

.guide-card__body h2 {
  margin: 0;
  font-size: var(--h5-lg-size);
  font-weight: var(--font-weight-heading);
  line-height: var(--h5-lg-height);
}

.guide-card__body h2 a {
  color: inherit;
  text-decoration: none;
}

.guide-card__body h2 a:hover {
  color: var(--primary);
}

.guide-card__excerpt {
  margin: 0.65rem 0 1rem;
  color: var(--text-muted, #5f6368);
  font-size: 0.95rem;
  line-height: 1.55;
}

.guide-card__read-more {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.guides-pagination {
  margin-top: 2.5rem;
}

.guides-empty {
  padding-block: 2rem;
  color: var(--text-muted, #5f6368);
}

.guide-single .guide-single__container {
  width: 100%;
  max-width: 1600px;
}

.guide-article__reading-width {
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
}

.guide-single__container
  > .guide-article
  > .smort-product-slider
  .smort-product-slider-inner.container {
  max-width: none;
  padding-inline: 0;
}

.guide-article__header {
  padding-bottom: 1.5rem;
}

.guide-article__back {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--text-muted, #5f6368);
  font-size: 0.9rem;
  text-decoration: none;
}

.guide-article__back:hover {
  color: var(--primary);
}

.guide-article__excerpt {
  max-width: 44rem;
  margin: 0.85rem 0 0;
  color: var(--text-muted, #5f6368);
  font-size: 1.15rem;
  line-height: 1.55;
}

.guide-article__featured-image {
  margin: 0 0 2rem;
  border-radius: 0.5rem;
}

.guide-article__featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-article__content {
  color: var(--text, #202020);
  font-size: 1.08rem;
  line-height: 1.75;
}

.guide-article__content > :first-child {
  margin-top: 0;
}

.guide-article__content h2,
.guide-article__content h3,
.guide-article__content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.guide-article__content h2 {
  font-size: var(--h2-lg-size);
  font-weight: var(--font-weight-heading);
  line-height: var(--h2-lg-height);
}

.guide-article__content h3 {
  font-size: var(--h3-lg-size);
  font-weight: var(--font-weight-heading);
  line-height: var(--h3-lg-height);
}

.guide-article__content h4 {
  font-size: var(--h4-lg-size);
  font-weight: var(--font-weight-heading);
  line-height: var(--h4-lg-height);
}

.guide-article__content p,
.guide-article__content ul,
.guide-article__content ol,
.guide-article__content blockquote {
  margin-block: 0 1.1rem;
}

.guide-article__content img,
.guide-article__content video,
.guide-article__content iframe {
  max-width: 100%;
}

.guide-article__content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.guide-article__content .wp-block-embed,
.guide-article__content .wp-block-image {
  margin-block: 1.5rem;
}

.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-left: 3px solid var(--primary);
  background: #111;
  color: #fff;
}

.guide-cta__content h2 {
  margin: 0;
  color: #fff;
  font-size: var(--h4-lg-size);
  font-weight: var(--font-weight-heading);
  line-height: var(--h4-lg-height);
}

.guide-cta__content p {
  margin: 0.5rem 0 0;
  color: #fff;
}

.guide-cta__button {
  display: inline-flex;
  min-height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  background: var(--primary);
  color: var(--primary-foreground, #fff);
  font-weight: 700;
  text-decoration: none;
}

.guide-cta__button:hover {
  color: var(--primary-foreground, #fff);
  background: var(--primary-hover, var(--primary));
}

.guide-faq {
  margin-top: 2.5rem;
}

.guide-faq > h2 {
  margin: 0 0 1rem;
  font-size: var(--h3-lg-size);
  font-weight: var(--font-weight-heading);
  line-height: var(--h3-lg-height);
}

.guide-faq__item {
  border-top: 1px solid var(--border-light, #dedede);
}

.guide-faq__item:last-child {
  border-bottom: 1px solid var(--border-light, #dedede);
}

.guide-faq__item summary {
  padding: 0.9rem 0;
  cursor: pointer;
  font-weight: var(--font-weight-heading);
}

.guide-faq__answer {
  padding: 0 0 0.9rem;
}

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

@media (max-width: 600px) {
  .guides-archive,
  .guide-single {
    padding-block: 2rem 3rem;
  }

  .guides-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .guide-card {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
  }

  .guide-card__image {
    height: 100%;
    min-height: 9rem;
    aspect-ratio: auto;
  }

  .guide-card__body {
    min-height: 0;
    padding: 0.85rem;
  }

  .guide-card__body h2 {
    font-size: var(--h6-sm-size);
    line-height: var(--h6-sm-height);
  }

  .guide-card__excerpt {
    margin-block: 0.45rem 0.5rem;
    font-size: 0.85rem;
  }

  .guide-article__content {
    font-size: 1rem;
  }

  .guide-article__content h2 {
    font-size: var(--h2-sm-size);
    line-height: var(--h2-sm-height);
  }

  .guide-article__content h3 {
    font-size: var(--h3-sm-size);
    line-height: var(--h3-sm-height);
  }

  .guide-article__content h4 {
    font-size: var(--h4-sm-size);
    line-height: var(--h4-sm-height);
  }

  .guide-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem;
  }

  .guide-cta__content h2 {
    font-size: var(--h4-sm-size);
    line-height: var(--h4-sm-height);
  }

  .guide-faq > h2 {
    font-size: var(--h3-sm-size);
    line-height: var(--h3-sm-height);
  }

  .guides-archive__header h1,
  .guide-article__header h1 {
    font-size: var(--h1-sm-size);
    line-height: var(--h1-sm-height);
  }
}
