.restatify-blog-query--grid {
  width: calc(100% - 2rem);
  max-width: 78rem;
  margin-inline: auto;
}

.restatify-blog-query--grid .wp-block-post-template {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), min(100%, 24rem)));
  justify-content: center;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  row-gap: clamp(2rem, 4vw, 3rem);
}

.restatify-blog-query--grid .wp-block-query-pagination {
  display: none;
}

.restatify-blog-scroll {
  min-height: 3rem;
  padding-block: 1rem;
  text-align: center;
  color: var(--rs-color-text);
}

.restatify-blog-scroll__retry {
  margin-inline: 0.75rem;
  min-height: 44px;
}

.restatify-blog-scroll__retry:focus-visible {
  outline: 3px solid var(--rs-color-primary);
  outline-offset: 3px;
}

.restatify-adjacent-posts {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-block: clamp(2rem, 5vw, 3.5rem);
  padding-block: 1.25rem;
  border-block: 1px solid var(--rs-color-blog-border);
}

.restatify-adjacent-posts__link {
  display: grid;
  gap: 0.35rem;
  max-width: 48%;
  color: var(--rs-color-text);
  text-decoration: none;
}

.restatify-adjacent-posts__link--next {
  margin-inline-start: auto;
  text-align: end;
}

.restatify-adjacent-posts__label {
  color: var(--rs-color-primary);
}

.restatify-adjacent-posts__title {
  font-weight: 600;
}

.restatify-adjacent-posts__link:hover .restatify-adjacent-posts__title {
  color: var(--rs-color-primary);
}

.restatify-adjacent-posts__link:focus-visible {
  outline: 3px solid var(--rs-color-primary);
  outline-offset: 4px;
}

.restatify-post-comments {
  margin-block: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rs-color-blog-border);
  border-radius: 1rem;
  background: var(--rs-color-blog-surface);
  color: var(--rs-color-text);
}

.restatify-post-comments > .wp-block-comments-title {
  margin-block-start: 0;
}

.restatify-post-comments :where(h1, h2, h3, h4, h5, h6) {
  font-size: clamp(1.125rem, 1.7vw, 1.4rem);
  line-height: 1.3;
}

.restatify-post-comments .comment-reply-title {
  margin-block: 1.5rem 0.75rem;
}

.restatify-post-comments__item {
  margin-block: 1.5rem;
  padding-block-end: 1.5rem;
  border-block-end: 1px solid var(--rs-color-blog-border);
}

.restatify-post-comments .comment-reply-link,
.restatify-post-comments .wp-block-comment-reply-link a {
  color: var(--rs-color-primary);
}

.restatify-post-comments input,
.restatify-post-comments textarea {
  max-width: 100%;
}

.restatify-post-comments :where(input, textarea, button, a):focus-visible {
  outline: 3px solid var(--rs-color-primary);
  outline-offset: 3px;
}

.restatify-comment-honeypot {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.restatify-comment-captcha {
  margin-block: 1rem;
}

.restatify-comment-captcha__error {
  margin-block: 0.5rem;
  color: var(--rs-color-primary);
}

.restatify-comment-security-notice {
  font-size: 0.875rem;
}

@media (max-width: 680px) {
  .restatify-blog-query--grid {
    width: calc(100% - 1.25rem);
  }

  .restatify-blog-query--grid .wp-block-post-template {
    grid-template-columns: minmax(0, min(100%, 24rem));
  }

  .restatify-adjacent-posts {
    gap: 1rem;
  }

  .restatify-adjacent-posts__link {
    max-width: 50%;
  }

  .restatify-post-comments {
    padding: 1rem;
  }
}
