/* Override Astra's narrow container variable */
:root {
    --ast-narrow-container-width: 1200px;
}

/* ── SINGLE POST — logo centered at top, nav centered below ── */
body.single #masthead .site-primary-header-wrap,
body.single-post #masthead .site-primary-header-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 12px 2em !important;
}

body.single #masthead .ast-builder-grid-row,
body.single-post #masthead .ast-builder-grid-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 10px !important;
}

body.single #masthead .site-header-primary-section-left,
body.single-post #masthead .site-header-primary-section-left,
body.single #masthead .site-header-primary-section-right,
body.single-post #masthead .site-header-primary-section-right {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
}

body.single #masthead .ast-site-identity,
body.single-post #masthead .ast-site-identity {
    text-align: center !important;
}

body.single #masthead .site-title,
body.single-post #masthead .site-title {
    font-size: 1.6rem !important;
    letter-spacing: 1px !important;
}

body.single #masthead .main-header-menu,
body.single-post #masthead .main-header-menu {
    justify-content: center !important;
}

/* ── DARK PINK HEADER ── */
#masthead,
.ast-primary-header-bar,
.site-header,
.main-header-bar,
.ast-primary-header-bar.ast-primary-header {
    background-color: #9c1754 !important;
    background: #9c1754 !important;
}

/* ── WHITE NAV TEXT — ID selector beats all class-based overrides ── */
#masthead .menu-link,
#masthead a.menu-link,
#masthead .menu-item > .menu-link,
#masthead .menu-item.current-menu-item > .menu-link,
#masthead .menu-item.current-menu-ancestor > .menu-link,
.ast-primary-header-bar .menu-link,
.ast-primary-header-bar a.menu-link,
.ast-primary-header-bar .menu-item > .menu-link {
    color: #ffffff !important;
}

#masthead .menu-link:hover,
#masthead .menu-item > .menu-link:hover,
.ast-primary-header-bar .menu-link:hover {
    color: #fce4ec !important;
}

/* Site title & description white */
#masthead .site-title a,
.ast-site-identity .site-title a,
.site-header .site-title a { color: #ffffff !important; }
.site-description { color: rgba(255,255,255,0.85) !important; }

/* Mobile hamburger */
.menu-toggle,
.ast-mobile-menu-trigger-minimal,
.ast-mobile-menu-trigger-minimal .ast-icon,
.menu-toggle .ast-icon { color: #ffffff !important; }

/* ── SINGLE POST — centered, full-width ── */

/* The outer container: centered 1200px wide */
body.single .site-content,
body.single-post .site-content {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 2em !important;
    box-sizing: border-box !important;
}

/* Inner ast-container: fill parent, no extra constraints */
body.single .site-content .ast-container,
body.single-post .site-content .ast-container,
body.single.ast-narrow-container .ast-container,
body.single.ast-separate-container .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* #primary content area: full width, no float */
body.single #primary,
body.single-post #primary,
body.single.ast-no-sidebar #primary,
body.single.ast-separate-container #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Article box: full width, nicely readable */
body.single .ast-article-single,
body.single-post .ast-article-single,
body.single.ast-separate-container .ast-article-single {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Entry content: full width */
body.single .entry-content,
body.single-post .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

/* ── ARCHIVE / CATALOG ── */
.blog .ast-container,
.archive .ast-container,
.category .ast-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 2em !important;
    box-sizing: border-box !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .single .site-content,
    .single-post .site-content,
    .blog .ast-container,
    .archive .ast-container { padding: 0 1em !important; }
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.3rem !important; }
    h3 { font-size: 1.1rem !important; }
    .entry-content img { max-width: 100% !important; height: auto !important; }
    div[style*="grid-template-columns:1fr 1fr 1fr 1fr"] { grid-template-columns: 1fr 1fr !important; }
    div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    table { display: block !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
    a[style*="border-radius:50px"][style*="inline-block"] { display: block !important; text-align: center !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .single .site-content,
    .single-post .site-content,
    .blog .ast-container,
    .archive .ast-container { padding: 0 1.5em !important; }
    table { display: block !important; overflow-x: auto !important; }
}
