/* Prevent subpixel hairline gaps between full-width sections and overlays. */
main {
    display: flow-root;
    background: var(--color-paper);
}

main > :is(section, .section-divider, .section-bg, .section-bg-texture, .contact-bg-section, .catalog-page-bg, .olive-product-top) {
    margin-block: 0;
}

main > :is(section, .section-divider, .section-bg, .section-bg-texture, .contact-bg-section, .catalog-page-bg, .olive-product-top)
+ :is(section, .section-divider, .section-bg, .section-bg-texture, .contact-bg-section, .catalog-page-bg, .olive-product-top) {
    margin-top: -1px;
}

.section-divider {
    position: relative;
    z-index: 20;
    height: 6px;
    margin-block: -1px;
    flex: 0 0 auto;
}

.section-divider--inset {
    margin-block: -1px;
    margin-inline: 5%;
}

main :is(
    .section-bg,
    .contact-bg-section,
    .catalog-page-bg,
    .brands,
    .olives,
    .oil,
    .specialties,
    .partners,
    .legal-hero,
    .legal-body,
    .sp-intro,
    .sp-grid,
    .sp-crosslinks,
    .op-products,
    .about-story,
    .about-quality-section,
    .olives-cat-section,
    .calibres-characteristics,
    .calibres-specifications,
    .calibres-applications,
    .oils-pomace,
    .op-hero--dairy,
    .op-story--dairy,
    .op-uses--dairy,
    .op-crosslinks--dairy,
    .product-characteristics,
    .products-carousel-section,
    .product-sizes,
    .product-packaging,
    .product-cta,
    .dr-crosslinks,
    .olh-hero__slab,
    .olh-why
)::before {
    inset: -1px;
}

main :is([class*="__overlay"], [class*="__bg"]) {
    inset: -1px;
}

main .hero-overlay {
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
}
