/*
 * Page Full Width template – standard block width constraints.
 *
 * WordPress's is-layout-constrained rule caps standard blocks at the
 * contentSize (800px) from theme.json.  On the Full Width template we want
 * heading and paragraph blocks to stretch up to the wideSize (1400px) while
 * custom section blocks remain truly full-width.
 *
 * Loaded only for pages that use the page-full-width.php template via
 * mimirio_full_width_styles() in functions.php.
 */

/* ── Standard blocks: constrain to wideSize (1400 px) ─────────────────── */
body.page-template-page-full-width-php .wp-block-paragraph,
body.page-template-page-full-width-php .wp-block-heading {
    max-width: 1400px; /* matches wideSize in theme.json */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    box-sizing: border-box;
}

/* ── Standard WP block typography ─────────────────────────────────────────
 * Tailwind preflight resets h1–h6 to font-size:inherit / font-weight:inherit.
 * Without a .prose wrapper these rules restore the sizes, weights and colours
 * declared in theme.json "elements", scoped to WP heading blocks
 * (.wp-block-heading) so custom section-block headings are unaffected.
 * page-full-width.css is enqueued after Tailwind, so it wins on specificity
 * at equal selector weight.
 */
body.page-template-page-full-width-php h1.wp-block-heading {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--wp--preset--color--teal-blue);
    margin-bottom: 0.5em;
}

body.page-template-page-full-width-php h2.wp-block-heading {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 2.75rem;
    letter-spacing: -0.01em;
    color: var(--wp--preset--color--teal-blue);
    margin-bottom: 0.5em;
}

body.page-template-page-full-width-php h3.wp-block-heading {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--wp--preset--color--teal-blue);
    margin-bottom: 0.5em;
}

body.page-template-page-full-width-php h4.wp-block-heading {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--wp--preset--color--teal-blue);
    margin-bottom: 0.5em;
}

body.page-template-page-full-width-php h5.wp-block-heading {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--wp--preset--color--teal-blue);
    margin-bottom: 0.5em;
}

body.page-template-page-full-width-php p.wp-block-paragraph {
    font-size: 1rem;
    line-height: 1.75;
    margin-top: 1em;
    margin-bottom: 1em;
}

body.page-template-page-full-width-php ul.wp-block-list,
body.page-template-page-full-width-php ol.wp-block-list {
    padding-left: 1.625em;
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: 1.75;
}

body.page-template-page-full-width-php ul.wp-block-list {
    list-style-type: disc;
}

body.page-template-page-full-width-php ol.wp-block-list {
    list-style-type: decimal;
}
