/* The footer is the reference: --wide / 1120px, 20px gutters, 14px on phones.
   Apply only to outer content rows. Nested rows and narrower text modules retain
   their deliberate reading widths; hero and footer are untouched. */
#main-content .contentbox .bd-sponsors-band,
#main-content .contentbox .et_pb_section > .et_pb_row:not(.bd-sponsors-band):not(.semiwide):not(.narrow) {
    width: min(var(--wide, 1120px), calc(100% - 40px)) !important;
    max-width: var(--wide, 1120px) !important;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 640px) {
    #main-content .contentbox .bd-sponsors-band,
#main-content .contentbox .et_pb_section > .et_pb_row:not(.bd-sponsors-band):not(.semiwide):not(.narrow) {
        width: min(var(--wide, 1120px), calc(100% - 28px)) !important;
    }
}
/* Keep the side frame; the red utility strip starts at the top edge. */
#page-container { padding-top: 0 !important; }
/* TEC uses its own extra container instead of a Divi row. */
.tribe-events .tribe-common-l-container.tribe-events-l-container {
    width: min(var(--wide, 1120px), calc(100% - 40px)) !important;
    max-width: var(--wide, 1120px) !important;
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
}
#main-content .contentbox #tribe-events-pg-template {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
@media(max-width:640px) {
    .tribe-events .tribe-common-l-container.tribe-events-l-container {
        width: min(var(--wide, 1120px), calc(100% - 28px)) !important;
    }
}
