/**
 * Layout overrides for the menu link add/edit form.
 */
.layout-region {
  box-sizing: border-box;
}

.layout-region--footer .layout-region__content {
  margin-top: var(--space-l);
}

/**
 * Move to two column layout at wider widths.
 */
@media (min-width: 61rem) {
  .layout-form {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 3fr minmax(360px, 1fr);
    gap: var(--space-l);
  }

  .layout-region--main,
  .layout-region--footer {
    grid-column: 1;
    margin-inline: auto;
    width: var(--layout-region-edit-width);
  }

  /* When the layout has vertical tabs */
  .layout-region--main:has(.vertical-tabs),
  .layout-region--main:has(.vertical-tabs) ~ .layout-region--footer {
    width: var(--layout-region-edit-extended-width);
  }

  /* Push sidebar down to horizontal align with form section. */
  .layout-region--secondary {
    grid-row: span 2;
    margin-block-start: var(--space-l);
  }
}
