/* Loaded after the landing CSS and before the theme CSS (blog/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 .blog-wp 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 blog content;
   width/height of img and svg are not reverted, which would drop their HTML attributes. */
.blog-wp :where(h1, h2, h3, h4, h5, h6) {
    font-size: revert;
    font-weight: revert;
    line-height: revert;
    color: revert;
    margin-top: revert;
    margin-bottom: revert;
}

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

.blog-wp :where(strong, b) {
    font-weight: revert;
}

.blog-wp :where(a) {
    color: revert;
    text-decoration: revert;
    background-color: revert;
}

.blog-wp :where(label) {
    display: revert;
    margin-bottom: revert;
}

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

.blog-wp :where(svg) {
    overflow: revert;
    vertical-align: revert;
}

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

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

/* The landing's legacy style.css pins every <header> once landing.js adds "scrolled" on scroll
   (header.scrolled at >= 992px: position fixed, top 0, full width, padding, navy background, (0,1,1)).
   Inside the blog that would pin the post title (header.entry-header), which the :where() reset above
   (0,1,0) cannot outweigh. (0,2,1) does; margins and max-width stay the theme's. */
.blog-wp header.scrolled {
    position: revert;
    top: revert;
    left: revert;
    right: revert;
    width: revert;
    z-index: revert;
    padding: revert;
    background: revert;
}

.blog-wp :where(table) {
    border-collapse: revert;
}

.blog-wp :where(th) {
    text-align: revert;
}

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

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

.blog-wp :where(summary) {
    display: revert;
    cursor: revert;
}

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

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

/* "Load more" is the theme's .btn.btn_secondary: Bootstrap's .btn properties the theme does not set go back to the defaults. */
.blog-wp :where(.btn) {
    display: revert;
    font-weight: revert;
    color: revert;
    text-align: revert;
    vertical-align: revert;
    user-select: revert;
    background-color: revert;
    border: revert;
    padding: revert;
    font-size: revert;
    line-height: revert;
    border-radius: revert;
    transition: revert;
}

/* The landing breaks zh text with `body[data-locale="zh"] h2, … p { word-break: break-word }` (public/css/style.css),
   which beats the theme's `div.blog-wp[lang='zh-CN'] { word-break: keep-all }` that the live blog inherits: Chinese
   lines would break between any two characters instead of at punctuation. Inside .blog-wp the two properties are
   inherited again, so the theme's rule decides (specificity 0,2,2 against the landing's 0,1,2). */
body[data-locale="zh"] .blog-wp h2,
body[data-locale="zh"] .blog-wp p {
    overflow-wrap: inherit;
    word-break: inherit;
}
