/* Base rules for pages built with a page builder.
   These pages were designed on the Hello Elementor theme and lean on its reset
   for heading weight, paragraph spacing and box sizing. This file repeats the
   parts they depend on, scoped to the builder content only, so they look the
   same inside this theme. It loads only on those pages and goes away when the
   last builder page is replaced. Each rule uses :where() so its weight stays as low
   as the original reset and the builders' own styles still win. */
:where(.cub-main--legacy),:where(.cub-main--legacy) *,:where(.cub-main--legacy) *::before,:where(.cub-main--legacy) *::after{box-sizing:border-box}
:where(.cub-main--legacy) h1,:where(.cub-main--legacy) h2,:where(.cub-main--legacy) h3,:where(.cub-main--legacy) h4,:where(.cub-main--legacy) h5,:where(.cub-main--legacy) h6{margin-block-start:.5rem;margin-block-end:1rem;font-family:inherit;font-weight:500;line-height:1.2;color:inherit}
:where(.cub-main--legacy) h1{font-size:2.5rem}
:where(.cub-main--legacy) h2{font-size:2rem}
:where(.cub-main--legacy) h3{font-size:1.75rem}
:where(.cub-main--legacy) h4{font-size:1.5rem}
:where(.cub-main--legacy) h5{font-size:1.25rem}
:where(.cub-main--legacy) h6{font-size:1rem}
:where(.cub-main--legacy) p{margin-block-start:0;margin-block-end:.9rem}
:where(.cub-main--legacy) a{background-color:transparent;text-decoration:none}
:where(.cub-main--legacy) img{border-style:none;height:auto;max-width:100%}
:where(.cub-main--legacy) figure{margin:0}
:where(.cub-main--legacy) ul,:where(.cub-main--legacy) ol{margin-block-start:0;margin-block-end:0}
:where(.cub-main--legacy) button,:where(.cub-main--legacy) input,:where(.cub-main--legacy) select,:where(.cub-main--legacy) textarea{font-family:inherit;font-size:1rem;line-height:1.5;margin:0}
:where(.cub-main--legacy) label{display:inline-block;line-height:1;vertical-align:middle}
:where(.cub-main--legacy) table{border-collapse:collapse;border-spacing:0}

/* Width of builder pages that used the previous theme's default page template. */
.cub-main--boxed{margin-inline:auto;width:100%}
@media (max-width:575px){.cub-main--boxed{padding-inline:10px}}
@media (min-width:576px){.cub-main--boxed{max-width:500px}}
@media (min-width:768px){.cub-main--boxed{max-width:600px}}
@media (min-width:992px){.cub-main--boxed{max-width:800px}}
@media (min-width:1200px){.cub-main--boxed{max-width:1140px}}
.cub-main--legacy .page-content a{text-decoration:underline}
