/* Loaded after the landing CSS and before the theme CSS (help/layout.twig). The WordPress theme
   was written against the browser defaults, while the landing's Bootstrap and style.css style
   bare elements (h2 at 2rem, label inline-block, svg vertical-align: middle, a site <header>
   fixed from 1200px...). Inside .help-kb those properties go back to the browser defaults
   (revert) at specificity (0,1,0): above the landing's element rules, and before the theme, so
   every theme rule still wins. The list comes from the landing rules that match help content;
   width/height of img and svg are not reverted, which would drop their HTML attributes. */
.help-kb :where(h1, h2, h3, h4, h5, h6) {
    font-size: revert;
    font-weight: revert;
    line-height: revert;
    color: revert;
    margin-top: revert;
    margin-bottom: revert;
}

.help-kb :where(p, ul, ol, dl, figure) {
    margin-top: revert;
    margin-bottom: revert;
}

.help-kb :where(strong, b) {
    font-weight: revert;
}

.help-kb :where(a) {
    color: revert;
    text-decoration: revert;
    background-color: revert;
}

.help-kb :where(label) {
    display: revert;
    margin-bottom: revert;
}

.help-kb :where(pre) {
    display: revert;
    font-family: revert;
    font-size: revert;
    color: revert;
    overflow: revert;
    margin-top: revert;
    margin-bottom: revert;
}

/* Bootstrap colours inline code pink (#e83e8c) and breaks it anywhere; on WP it is the text
   colour on the theme's grey background. kbd: Bootstrap's dark key cap. */
.help-kb :where(code, kbd, samp) {
    font-size: revert;
    color: revert;
    overflow-wrap: revert;
}

.help-kb :where(kbd) {
    background-color: revert;
    border-radius: revert;
    padding: revert;
}

/* The landing draws every input placeholder bold (700) and hides it on focus; on WP the search
   placeholder has the field's own weight and stays. The colour is the theme's (sellerboard.css).
   The focus rule needs :focus outside :where() to outweigh input:focus::placeholder (0,1,2). */
.help-kb :where(input)::placeholder {
    font-weight: revert;
}

.help-kb :where(input):focus::placeholder {
    opacity: 1;
}

.help-kb :where(svg) {
    overflow: revert;
    vertical-align: revert;
}

/* The landing's .icon sizes its own icons; help's take the size of their width/height attributes. */
.help-kb :where(svg.icon) {
    width: auto;
    height: auto;
    flex-shrink: revert;
}

.help-kb :where(header) {
    display: revert;
    position: revert;
    z-index: revert;
    top: revert;
    left: revert;
    right: revert;
    width: revert;
    max-width: revert;
    margin: revert;
    padding: revert;
}

.help-kb :where(table) {
    border-collapse: revert;
}

.help-kb :where(th) {
    text-align: revert;
}

.help-kb :where(hr) {
    box-sizing: revert;
    height: revert;
    overflow: revert;
    margin-top: revert;
    margin-bottom: revert;
    border: revert;
}

.help-kb :where(button, input) {
    margin: revert;
    font-family: revert;
    font-size: revert;
    line-height: revert;
    overflow: revert;
    text-transform: revert;
    border-radius: revert;
    outline: revert;
}

.help-kb :where(summary) {
    display: revert;
    cursor: revert;
}

.help-kb :where(.container) {
    width: revert;
    max-width: revert;
    padding: revert;
    margin-right: revert;
    margin-left: revert;
}

.help-kb :where(.pagination) {
    display: revert;
    padding-left: revert;
    list-style: revert;
    border-radius: revert;
}
