/* =========================================================
   AVOZOVA — PAGE (page.php)

   page.php uses the same markup as single.php, so the layout, the card, the header,
   the content, the footer and the comments are styled in assets/css/single-post.css
   (classes .avozova-single-container, .avozova-single-layout, .avozova-single-post,
   .avozova-single-header, .avozova-single-content, .avozova-single-footer ...).
   Only what is special to pages lives here. The article of a page also has the class
   .avozova-single-page, which is what these rules use.

   Enqueued after single-post.css (avozova_post_types_frontend_assets), so a rule here
   wins over the same-strength rule there.
   ========================================================= */


/* =========================================================
   1. PAGE LINKS (wp_link_pages: "Pages: 1 2 3" for a page split with <!--nextpage-->)
   ========================================================= */

.avozova-single-page .page-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    color: var(--avozova-color-text);
    font-weight: 600;
}

.avozova-single-page .page-links .post-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--avozova-color-bg);
    color: var(--avozova-color-text);
    border: 1px solid var(--avozova-color-border);
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.avozova-single-page .page-links a.post-page-numbers:hover,
.avozova-single-page .page-links a.post-page-numbers:focus {
    background: var(--avozova-color-primary);
    color: #ffffff;
    border-color: var(--avozova-color-primary);
}

/* The page you are on. */
.avozova-single-page .page-links .post-page-numbers.current {
    background: var(--avozova-color-primary);
    color: #ffffff;
    border-color: var(--avozova-color-primary);
}


/* =========================================================
   2. WIDE AND FULL-WIDTH BLOCKS (block editor)
   A page card has side padding and hides anything that sticks out, so a "wide" or
   "full width" block would be cut at the edge. Keep them inside the card instead.
   ========================================================= */

.avozova-single-page .avozova-single-content .alignwide,
.avozova-single-page .avozova-single-content .alignfull {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* =========================================================
   3. ALIGNMENT FIX
   The page card must start at the same height as the sidebar.
   A margin saved in Customizer > Single Page > Design still wins
   (its dynamic CSS has a stronger selector).
   ========================================================= */

.avozova-single-layout > .avozova-single-page {
    margin-top: 0;
    align-self: start;
}