/*
    WordPress 7 block compatibility
    ===============================

    Restores how core blocks looked on WordPress 6.4, where this theme's
    css/main.css was written and tested. Loaded straight after main.css (see
    wprebel_ThemeSetup::assets).

    Why this is needed: WordPress 6.5+ rewrote many of its own block styles
    with :where()/:root :where(), which lowers their specificity so themes can
    override them easily. That is good in general, but this theme's broad rules
    (e.g. `.type ul`) now win where core's used to, and WP 7's global styles add
    new button defaults. Found by pixel-diffing live (6.4) against the upgraded
    local site on 1 Oct 2026 - every other page compared was identical.

    Hand-written plain CSS on purpose: the SCSS build (node-sass, ~2018) does
    not run on a current Node, and main.css is compiled output, never edited.
    If the build is ever fixed, fold these rules into
    scss/partials/4.ui/partials/blocks/_wp-blocks.scss and delete this file.
*/

/*
    Latest Posts block (the News list on the home page).
    Core 6.4 had `.wp-block-latest-posts.wp-block-latest-posts__list
    { padding-left: 0 }`; 7.x wraps it in :root :where(), so the theme's
    `.type ul { padding-left: 25px }` now indents the list. Two classes here
    out-rank `.type ul` again.
*/
.wp-block-latest-posts.wp-block-latest-posts__list {
    padding-left: 0;
}

/*
    Button block.
    6.4's classic-theme styles set buttons to 1.125em (18px here); WP 7's
    global styles add `font-size: inherit` at equal specificity and print
    later, shrinking buttons to 16px. Padding is in em, so restoring the font
    size restores the padding too.
*/
.wp-block-button__link.wp-element-button {
    font-size: 1.125em;
}
