/* MG title bands — approved 2026-10-26. BEGIN */
/* Decorative assets; existing homepage and page content are retained. */
body:not(.home) .entry-content-wrap > .entry-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 -20px 36px;
    padding: 64px 40px 48px;
    background: #000 url("https://matthewgorner.com/wp-content/uploads/2026/10/matthew-gorner-title-background-black.webp") center / cover no-repeat;
    text-align: left;
}

body:not(.home) .entry-content-wrap > .entry-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -60px;
    bottom: -90px;
    width: 380px;
    height: 290px;
    background: url("https://matthewgorner.com/wp-content/uploads/2026/10/matthew-gorner-title-lotus-glow.png") right bottom / contain no-repeat;
    opacity: 0.45;
    pointer-events: none;
}

/* Replace the theme's centred black divider with the orange title rule. */
body:not(.home) .entry-content-wrap > .entry-header::after {
    content: none;
    display: none;
}

body:not(.home) .entry-content-wrap > .entry-header .entry-title {
    position: relative;
    max-width: 640px;
    margin: 0;
    color: #fff;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 400;
    text-align: left;
    text-wrap: balance;
    overflow-wrap: break-word;
}

body:not(.home) .entry-content-wrap > .entry-header .entry-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 22px;
    background: #f65b0b;
}

body:not(.home) .entry-content-wrap > .entry-header .entry-title a,
body:not(.home) .entry-content-wrap > .entry-header .entry-meta a {
    color: #fff;
}

body:not(.home) .entry-content-wrap > .entry-header a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

body:not(.home) .entry-content-wrap > .entry-header a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

body:not(.home) .entry-content-wrap > .entry-header .entry-meta {
    position: relative;
    margin: 18px 0 0;
    color: #fff;
}

body:not(.home) .entry-content-wrap > .mg-breadcrumb {
    margin-bottom: 16px;
}

/* The existing full-width page template has 40px content-panel padding. */
body.mg-full-width-page:not(.home) .entry-content-wrap > .entry-header {
    margin-left: -40px;
    margin-right: -40px;
}

@media only screen and (max-width: 767px) {
    body.mg-full-width-page:not(.home) .entry-content-wrap {
        padding: 20px;
    }

    body:not(.home) .entry-content-wrap > .entry-header,
    body.mg-full-width-page:not(.home) .entry-content-wrap > .entry-header {
        padding: 36px 20px 32px;
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: 28px;
    }

    body:not(.home) .entry-content-wrap > .entry-header::before {
        right: -68px;
        bottom: -67px;
        width: 200px;
        height: 160px;
        opacity: 0.5;
    }

    body:not(.home) .entry-content-wrap > .entry-header .entry-title {
        font-size: 30px;
        line-height: 36px;
    }

    body:not(.home) .entry-content-wrap > .mg-breadcrumb {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 21px;
        overflow-wrap: break-word;
    }
}
/* MG title bands — approved 2026-10-26. END */



/* Genesis .site-inner has a fixed header offset; Kadence header occupies 70px in normal flow. */
body:not(.home) .content-area{margin-top:80px;margin-bottom:20px}
.entry-content-wrap>.mg-breadcrumb{font-size:.7em}
.primary-sidebar{background:#fff;padding:20px}
@media(max-width:960px){body:not(.home) .content-area{margin-top:60px}}
@media(max-width:767px){body:not(.home) .entry-content-wrap>.mg-breadcrumb{font-size:14px;line-height:21px;overflow-wrap:break-word}}
/* Header rules adapted from Genesis markup to native Kadence navigation. */
@media(min-width:1024px){
.site-header .main-navigation .primary-menu-container>ul>li>a{padding-left:11px;padding-right:11px;font-size:13px;letter-spacing:.5px}
}
.site-header .main-navigation .primary-menu-container .sub-menu{width:250px;padding:8px 0;background:#111;border:0}
.site-header .main-navigation .primary-menu-container .sub-menu a{width:250px;padding:12px 18px;font-size:12px;line-height:1.4;letter-spacing:.3px;text-transform:none}
@media(min-width:1024px) and (max-width:1150px){
.site-header-main-section-left{flex:0 1 27%;min-width:0}.site-header-main-section-right{flex:0 1 73%;min-width:0}
.site-header .main-navigation .primary-menu-container>ul{white-space:nowrap}
.site-header .main-navigation .primary-menu-container>ul>li>a{padding-left:7px!important;padding-right:7px!important;font-size:11px!important;letter-spacing:.2px!important}
}
/* Retain the existing footer's intent; the visible Kadence footer replaces Genesis's hidden site-footer shell. */
.site-footer{padding:0!important}
.footer-widgets{padding:32px 0}.footer-widgets .widget{margin-bottom:16px}.footer-widgets .widget:last-child{margin-bottom:0}
@media(max-width:1023px){.footer-widgets{padding:24px!important}}

/* Restore Genesis widget wrapper geometry so the original mobile CSS keeps its intended text width. */
@media(max-width:767px){.home .home-odd>.wrap,.home .home-even>.wrap{max-width:none;width:100%;padding:0 5%}}
