/**
 * Generic Heritage page template — scoped overrides
 *
 * Depends on assets/css/jocelyne-pages.css (loaded for this template via
 * jocelyne_custom_pages_assets() in functions.php). All rules here are
 * namespaced under .page-generic-heritage so they do not affect other
 * heritage pages (page-heritage-home, page-js, page-biography, etc.).
 */

/* Remove the thin underline + slate accent bar under H2 */
.jocelyne-page.page-generic-heritage h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 1rem;
}
.jocelyne-page.page-generic-heritage h2::after {
    display: none;
}

/* Tighten H3 rhythm */
.jocelyne-page.page-generic-heritage h3 {
    margin-top: 1rem;
}

/* Shrink the gap between hero and first heading */
.jocelyne-page.page-generic-heritage .jocelyne-hero {
    padding-bottom: 1.5rem;
}
.jocelyne-page.page-generic-heritage .jocelyne-hero + section {
    padding-top: 1.5rem;
}

/* Keep subsequent sections snug with each other */
.jocelyne-page.page-generic-heritage section + section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Restore generous bottom breathing room on the last section */
.jocelyne-page.page-generic-heritage section:last-child {
    padding-bottom: 4rem;
}

@media (max-width: 768px) {
    .jocelyne-page.page-generic-heritage .jocelyne-hero {
        padding-bottom: 1rem;
    }
    .jocelyne-page.page-generic-heritage section + section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}
