/* --------------------------------------------------
DIVI ROW WIDTH CORRECTION
Divi rows often stretch too wide or behave
inconsistently. This forces rows to respect
the Pagecafe container width.
-------------------------------------------------- */
.et_pb_row {
  width: min(100% - 40px, var(--pc-max-width));
}
/* --------------------------------------------------
REMOVE EXTRA TEXT MODULE SPACING
Divi text modules often leave awkward spacing
after the final paragraph or list.
-------------------------------------------------- */
.et_pb_text_inner > *:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------
PREVENT LAST MODULE SPACING STACKING
Sometimes Divi stacks margins when modules
are placed inside columns.
-------------------------------------------------- */
.et_pb_module:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------
MOBILE MENU IMPROVEMENTS
Improves spacing and readability of Divi’s
default mobile navigation.
-------------------------------------------------- */
@media (max-width: 980px) {
  .et_mobile_menu {
    padding: 10px 0;
    border-top: 3px solid var(--pc-action);
  }
  .et_mobile_menu li a {
    padding: 12px 20px;
  }
}
