/* ==========================================================================
   WordPress core compatibility
   Classes WordPress, the editor or the admin bar emit, kept separate so
   assets/css/styles.css stays exactly as designed.
   ========================================================================== */

/* --- Screen readers ------------------------------------------------------ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: var(--radius-sm, 6px);
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, .2);
  clip: auto !important;
  clip-path: none;
  color: var(--color-ink, #221c17);
  display: block;
  font-size: .875rem;
  font-weight: 700;
  height: auto;
  left: 1rem;
  line-height: normal;
  padding: .75rem 1rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

/* --- Post content from the editor ---------------------------------------- */
.alignleft {
  float: left;
  margin: .35em 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: .35em 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption,
.wp-element-caption {
  font-size: .875rem;
  color: var(--color-ink-muted, #6b6259);
  margin-top: var(--space-2, .5rem);
}

.bypostauthor > .comment-body .comment-author {
  font-weight: 700;
}

/* --- Comments ------------------------------------------------------------ */
.comment-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-5, 2rem);
}

.comment-list .children {
  list-style: none;
  padding-left: var(--space-5, 2rem);
}

/* --- Pagination ---------------------------------------------------------- */
.pagination {
  margin-top: var(--space-7, 3rem);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, .5rem);
  justify-content: center;
  align-items: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: .75rem;
  border: 1px solid var(--color-border, #e3d9cd);
  border-radius: var(--radius-pill, 999px);
  color: var(--color-ink, #221c17);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-ink, #221c17);
  border-color: var(--color-ink, #221c17);
  color: #fff;
}

/* --- Admin bar -----------------------------------------------------------
   .nav is position: sticky; top: 0, so it has to clear the fixed admin bar
   when you are logged in and previewing the site.
   ------------------------------------------------------------------------- */
.admin-bar .nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .nav {
    top: 46px;
  }
}
