/**
 * FORRE_DARK - Content Shell
 */

.tw-content-section {
  width: 100%;
  flex: 1;
  background: var(--body-bg);
  padding: 20px 16px; /* 20px gap from header */
}

.tw-content-inner {
  margin: 0 auto;
  max-width: var(--max-width);
}

.tw-page-wrapper {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--panel-bg);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px; /* 20px gap to footer */
}

/* Page wrapper dividers */
.tw-page-divider-top {
  position: absolute;
  inset-x: 0;
  top: 0;
  height: 1px;
  background: #3a3a3a;
}

.tw-page-divider-bottom {
  position: absolute;
  inset-x: 0;
  top: 1px;
  height: 1px;
  background: #1f1f1f;
}

.tw-page-content {
  padding: 16px;
  color: var(--text-primary);
}

/* Profile alignment safeguards in live mode: saved pb-widget margins must not push first widgets out of line */
body.tw-page-profile:not(.builder-edit-mode) .pb-col > .builder-drop-zone,
body.tw-page-profile[data-edit-mode="false"] .pb-col > .builder-drop-zone {
  min-height: 0;
}

/* Profile page in builder edit mode: remove row/drop-zone top space that pushes first widget down */
body.builder-edit-mode.tw-page-profile .pb-row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.builder-edit-mode.tw-page-profile .pb-col {
  min-height: 0 !important;
}

body.builder-edit-mode.tw-page-profile .pb-col > .builder-drop-zone {
  min-height: 0 !important;
}

body.builder-edit-mode.tw-page-profile .pb-col > .builder-drop-zone:empty {
  min-height: 50px !important;
}

