/* EMECE public visual rhythm 1.0.1 — header is in document flow, not sticky.
   Keeps all page content, SEO and widths unchanged. The private-client portal
   retains its own content layout (see plugin's enqueue guard). */

/* Make the Astra header behave like an ordinary header instead of covering
   the following document content during page transitions and scrolling. */
html body #masthead,
html body header.site-header,
html body #ast-desktop-header,
html body #ast-mobile-header {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    inset: auto !important;
    transform: none !important;
}
html body #masthead .ast-primary-header-bar,
html body #masthead .ast-above-header-bar,
html body #masthead .ast-below-header-bar,
html body #masthead .main-header-bar,
html body #masthead .ast-builder-grid-row-container {
    position: relative !important;
    top: auto !important;
    transform: none !important;
}
html body .ast-sticky-header-placeholder,
html body .ast-sticky-header-wrap .ast-sticky-header-placeholder {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* In the theme, page/article defaults can add a separate top margin.
   Use one deliberate content offset instead; do not change horizontal widths. */
body.page:not(.page-id-688) .site-content #primary,
body.single-post .site-content #primary,
body.blog .site-content #primary,
body.archive .site-content #primary {
    margin-top: 0 !important;
    padding-top: 52px !important;
}
body.page:not(.page-id-688) .site-content .site-main,
body.single-post .site-content .site-main,
body.blog .site-content .site-main,
body.archive .site-content .site-main,
body.page:not(.page-id-688) .site-content .ast-article-single,
body.single-post .site-content .ast-article-single,
body.blog .site-content .ast-article-single,
body.archive .site-content .ast-article-single {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.page:not(.page-id-688) .site-content .entry-content,
body.single-post .site-content .entry-content,
body.blog .site-content .entry-content,
body.archive .site-content .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* The homepage already has its own approved full-height hero. Leave it intact. */

/* Studio and Contact contain internal section padding, which otherwise adds
   a second top offset on top of the shared 52 px. */
body.page-id-689 .site-content .emece-studio-identity .ee-section.ee-studio-hero {
    padding-top: 0 !important;
}
body.page-id-2363 .site-content .emece-contact-simple .ec-contact-hero {
    padding-top: 0 !important;
}

/* Editorial eyebrow matching the Studio label, above existing untouched H1s. */
body.page .site-content .entry-content > p.emece-page-eyebrow,
body.blog .site-content .entry-content > p.emece-page-eyebrow {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 19px !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    letter-spacing: .17em !important;
    text-transform: uppercase !important;
    text-align: left !important;
    color: #737373 !important;
}
body.page-id-2013 .site-content .entry-content > p.emece-page-eyebrow + h1.wp-block-heading,
body.page-id-2015 .site-content .entry-content > p.emece-page-eyebrow + h1.wp-block-heading,
body.page-id-2566 .site-content .entry-content > p.emece-page-eyebrow + h1.wp-block-heading,
body.page-id-1955 .site-content .entry-content > p.emece-page-eyebrow + h1.wp-block-heading {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Blog articles and legal pages follow the same top baseline. */
body.single-post .site-content .entry-content > h1:first-of-type {
    margin-top: 0 !important;
}

@media (max-width: 780px) {
    body.page:not(.page-id-688) .site-content #primary,
    body.single-post .site-content #primary,
    body.blog .site-content #primary,
    body.archive .site-content #primary {
        padding-top: 30px !important;
    }
    body.page .site-content .entry-content > p.emece-page-eyebrow,
    body.blog .site-content .entry-content > p.emece-page-eyebrow {
        margin-top: 0 !important;
        margin-bottom: 15px !important;
    }
}
