/* =====================================================================
   St. Bonaventure — SUB PAGE CHROME 2026 (Ticket 36789)
   The home page's header and footer treatment, for every page that is not
   the home page (body.site-sub).

   Loaded on the Base Outline, so #Outline, #Grid and #Sponsors inherit it.
   The title banner on sub pages is NOT touched here — it keeps the theme's
   own styling.
   ===================================================================== */

html body.site-sub {
    --hp-red: var(--primary-color, #950f03);
    --hp-blue: var(--secondary-color, #003e72);
    --hp-gold: var(--tertiary-color, #e5ab67);
    --hp-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Footer: church photo under a semi-transparent red veil, crest medallion ---- */
html body.site-sub #g-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--hp-red);
}
html body.site-sub #g-footer:after {
    content: '';
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    right: 0;
    background: url('/images/stories/parish-pics/church.jpg') 50% 40% / cover no-repeat;
    z-index: -1;
}
html body.site-sub #g-footer:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(149, 15, 3, .82) 0%, rgba(110, 10, 2, .9) 100%);
    z-index: 0;
}
html body.site-sub #g-footer > .g-container {
    position: relative;
    z-index: 1;
}
html body.site-sub #g-footer .g-content-array,
html body.site-sub #g-footer .g-content-array .g-grid,
html body.site-sub #g-footer .g-content-array .g-block,
html body.site-sub #g-footer .g-array-item {
    background: transparent;
}
html body.site-sub #g-footer .footer-content:before {
    content: '';
    display: block;
    width: 7.5rem;
    height: 7.5rem;
    margin: 0 0 1.25rem;
    border-radius: 50%;
    background: #fff url('/images/template/apple-touch-icon.png') 50% 50% / 112% auto no-repeat;
    box-shadow: 0 0 0 4px var(--hp-gold), 0 .75rem 1.75rem rgba(0, 0, 0, .35);
}
@media only screen and (max-width: 50.99rem) {
    html body.site-sub #g-footer .footer-content:before {
        width: 6rem;
        height: 6rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---- Header: navigation lays out the same as the home page ---- */
html body.site-sub #g-navigation .nav-social-icons .g-social {
    display: flex;
    align-items: center;
    justify-content: inherit;
    gap: .75rem;
}
html body.site-sub #g-navigation .g-grid:has(> .nav-social-icons) {
    overflow: visible;
}
html body.site-sub #g-navigation .hp-tr,
html body.site-sub #g-navigation .hp-tr * {
    pointer-events: auto;
}

/* ---- Sponsor ad strips sit on white, not on red ---- */
html body.site-sub #g-bottom {
    background: #fff !important;
}
