/* Edit page: body field auto-resize + full width */

/* Override Claro's layout width limits */
:root {
  --layout-region-edit-width: 100% !important;
  --layout-region-edit-extended-width: 100% !important;
}

/* Form layout: full width, single column */
.layout-form {
  grid-template-columns: 1fr !important;
  max-width: 100% !important;
  width: 100% !important;
}

.layout-region--main,
.layout-region--footer {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

/* form-textarea-wrapper: full width */
.form-textarea-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

/* Body textarea: full width, auto height (grow with content) */
.form-textarea-wrapper textarea,
textarea#edit-body-0-value {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 40rem !important;
  height: auto !important;
  resize: vertical !important;
}

/* CKEditor5: auto-grow, no max height limit */
.ck-editor__editable {
  min-height: 40rem !important;
  max-height: none !important;
}

/* CKEditor5: enable auto-grow behavior */
.ck-content {
  min-height: 40rem !important;
}

/* Body field wrapper: full width */
.field--name-body,
.field--type-text-with-summary,
.field--widget-text-textarea-with-summary {
  max-width: 100% !important;
  width: 100% !important;
}

/* Content region on admin pages: full width */
.region--content {
  max-width: 100% !important;
}
