/* Rationale for the non-obvious rules, and each rule's layer: docs/css-reset-notes.md */
@layer shwt-reset {
  .shwt-wp-content input,
  .shwt-wp-content textarea,
  .shwt-wp-content select,
  .shwt-wp-content button {
    border: revert;
    outline: revert;
    background: revert;
    -webkit-appearance: revert;
    -moz-appearance: revert;
    appearance: revert;
    padding: revert;
  }

  .shwt-wp-content textarea {
    resize: revert;
    overflow: revert;
  }

  .shwt-wp-content .comment-form label {
    display: block;
  }

  .shwt-wp-content .comment-form input[type="text"],
  .shwt-wp-content .comment-form input[type="email"],
  .shwt-wp-content .comment-form input[type="url"],
  .shwt-wp-content .comment-form textarea {
    display: block;
    border: 1px solid hsla(0, 0%, 48%, 0.5);
  }

  .shwt-wp-content .comment-form input[type="submit"] {
    background: none;
    border: 1px solid hsla(0, 0%, 49%, 0.5);
    color: hsla(0, 0%, 49%, 0.5);
    cursor: pointer;
    font: inherit;
    margin-top: 10px;
    padding: 10px;
    width: auto;
  }

  .shwt-wp-content .post-password-form input[type="submit"] {
    background: none;
    border: 1px solid currentColor;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0.4em 1em;
    margin-left: 0.5em;
  }

  .shwt-wp-content .post-password-form input[type="password"] {
    border: 1px solid hsla(0, 0%, 48%, 0.5);
    padding: 0.4em 0.6em;
  }

  .shwt-wp-content .comment-reply-title small,
  .shwt-wp-content #cancel-comment-reply-link {
    margin-left: 0.75em;
  }

  .shwt-postloop-empty {
    padding: 4em 1.5em;
    text-align: center;
    font: inherit;
  }

  .shwt-postloop-empty .shwt-title,
  .shwt-postloop-empty .shwt-paragraph {
    text-align: center;
  }

  .shwt-postloop-empty .searchform > div {
    display: inline-flex;
    gap: 0.5em;
    align-items: stretch;
  }

  .shwt-postloop-empty .searchform input[type="text"] {
    padding: 0.5em 0.75em;
    border: 1px solid hsla(0, 0%, 48%, 0.5);
    min-width: 14em;
  }

  .shwt-postloop-empty .searchform input[type="submit"] {
    background: none;
    border: 1px solid hsla(0, 0%, 49%, 0.5);
    color: hsla(0, 0%, 49%, 0.5);
    cursor: pointer;
    padding: 0.5em 1em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
}

@layer shwt-theme {
  .shwt-wp-content .comment-reply-title {
    font-size: inherit;
    font-weight: inherit;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
  }
}

@layer shwt-common {
  .shwt-wp-content .comment-list,
  .shwt-wp-content ol.commentlist {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
  }

  .shwt-postloop-empty .shwt-element {
    position: static;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    max-width: 32em;
  }
}
